INNER CODE UNIT · JavaScript

Promise

agutoli/serverless-layers · src/runtimes/index.js:52

    return new Promise((resolve, reject) => {
      exec(cmd, (err, stdout, out) => {
        if (err) return reject(err);
        return resolve(stdout || out);
      });
    });
  }

  getDefaultSettings(inboundSettings = {}) {
    if (inboundSettings.packagePath) {
      console.warn('WARN You should use "dependenciesPath" instead of the deprecated "packagePath" param.');
      inboundSettings.dependenciesPath = inboundSettings.packagePath;
    }
    return { ...this._runtime.default, ...inboundSettings };
  }

  getCommands() {
    return this._runtime.commands;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…