Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
getCompilerVersion() {
return require('coffee-script/package.json').version;
}
}
getCachePath = function(code) {
var digest;
if (!cachePath) {
return;
}
digest = crypto.createHash('sha1').update(code, 'utf8').digest('hex');
if (CoffeeScriptVersion == null) {
CoffeeScriptVersion = require('coffee-script/package.json').version;
}
return path.join(cachePath, CoffeeScriptVersion, "" + digest + ".json");
};
initializeCompiler() {
coffee = require('coffee-script');
return require('coffee-script/package.json').version;
}
getCachePath = function(code) {
var digest;
if (!cachePath) {
return;
}
digest = crypto.createHash('sha1').update(code, 'utf8').digest('hex');
if (CoffeeScriptVersion == null) {
CoffeeScriptVersion = require('coffee-script/package.json').version;
}
return path.join(cachePath, CoffeeScriptVersion, "" + digest + ".json");
};