zapier-platform-cli
Version:
The CLI for apps in the Zapier Developer Platform.
16 lines (13 loc) • 548 B
JavaScript
;
var LAMBDA_VERSION = require('../constants').LAMBDA_VERSION;
var isCorrectVersion = function isCorrectVersion(context) {
if (process.version !== LAMBDA_VERSION) {
context.line('You\'re performing commands on Node ' + process.version + ', but Zapier runs your code on ' + LAMBDA_VERSION + '. The version numbers must match. See https://zapier.github.io/zapier-platform-cli/index.html#requirements for more info.');
return false;
} else {
return true;
}
};
module.exports = {
isCorrectVersion: isCorrectVersion
};