Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// NOTE: important, don't use any new javascript language features in this file!
// (other than es6 modules, which are transpiled)
import pleaseUpgradeNode from 'please-upgrade-node'
import pkg from '../package.json'
const currentNodeVersion = process.versions.node
const requiredNodeVersion = pkg.engines.node.replace('>=', '')
pleaseUpgradeNode(pkg, {
message: function message() {
return (
// eslint-disable-next-line prefer-template
'serverless-offline requires node.js version ' +
requiredNodeVersion +
' or higher, but found version ' +
currentNodeVersion +
'. Please upgrade!'
)
},
})
const packageJson = require('../package.json'); // tslint:disable-line:no-require-imports no-var-requires
import pleaseUpgradeNode from 'please-upgrade-node';
pleaseUpgradeNode(packageJson);
export {
default as App,
AppOptions,
Authorize,
AuthorizeSourceData,
AuthorizeResult,
AuthorizationError,
ActionConstraints,
LogLevel,
Logger,
} from './App';
export { ErrorCode } from './errors';
export {