Sha256: 81906e3c5344a9b90e716b363580c81a217049e4e25f80d6bab3a1965fc62fb2

Contents?: true

Size: 1.71 KB

Versions: 25

Compression:

Stored size: 1.71 KB

Contents

"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
Object.defineProperty(exports, "default", {
  enumerable: true,
  get: function () {
    return _full.default;
  }
});
exports.loadOptionsAsync = exports.loadOptionsSync = exports.loadOptions = exports.loadPartialConfigAsync = exports.loadPartialConfigSync = exports.loadPartialConfig = void 0;

function _gensync() {
  const data = _interopRequireDefault(require("gensync"));

  _gensync = function () {
    return data;
  };

  return data;
}

var _full = _interopRequireDefault(require("./full"));

var _partial = require("./partial");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

const loadOptionsRunner = (0, _gensync().default)(function* (opts) {
  const config = yield* (0, _full.default)(opts);
  return config ? config.options : null;
});

const maybeErrback = runner => (opts, callback) => {
  if (callback === undefined && typeof opts === "function") {
    callback = opts;
    opts = undefined;
  }

  return callback ? runner.errback(opts, callback) : runner.sync(opts);
};

const loadPartialConfig = maybeErrback(_partial.loadPartialConfig);
exports.loadPartialConfig = loadPartialConfig;
const loadPartialConfigSync = _partial.loadPartialConfig.sync;
exports.loadPartialConfigSync = loadPartialConfigSync;
const loadPartialConfigAsync = _partial.loadPartialConfig.async;
exports.loadPartialConfigAsync = loadPartialConfigAsync;
const loadOptions = maybeErrback(loadOptionsRunner);
exports.loadOptions = loadOptions;
const loadOptionsSync = loadOptionsRunner.sync;
exports.loadOptionsSync = loadOptionsSync;
const loadOptionsAsync = loadOptionsRunner.async;
exports.loadOptionsAsync = loadOptionsAsync;

Version data entries

25 entries across 25 versions & 3 rubygems

Version Path
trusty-cms-5.0.7 node_modules/@babel/core/lib/config/index.js
trusty-cms-5.0.6 node_modules/@babel/core/lib/config/index.js
trusty-cms-5.0.5 node_modules/@babel/core/lib/config/index.js
trusty-cms-5.0.4 node_modules/@babel/core/lib/config/index.js
trusty-cms-5.0.3 node_modules/@babel/core/lib/config/index.js
trusty-cms-5.0.2 node_modules/@babel/core/lib/config/index.js
trusty-cms-5.0.1 node_modules/@babel/core/lib/config/index.js
trusty-cms-4.3.5 node_modules/@babel/core/lib/config/index.js
trusty-cms-5.0.0 node_modules/@babel/core/lib/config/index.js
trusty-cms-4.3.4 node_modules/@babel/core/lib/config/index.js
trusty-cms-4.3.3 node_modules/@babel/core/lib/config/index.js
trusty-cms-4.3.2 node_modules/@babel/core/lib/config/index.js
trusty-cms-4.3.1 node_modules/@babel/core/lib/config/index.js
trusty-cms-4.3 node_modules/@babel/core/lib/config/index.js
trusty-cms-4.2.3 node_modules/@babel/core/lib/config/index.js
trusty-cms-4.2.2 node_modules/@babel/core/lib/config/index.js
trusty-cms-4.2.1 node_modules/@babel/core/lib/config/index.js
trusty-cms-4.2 node_modules/@babel/core/lib/config/index.js
trusty-cms-4.1.9 node_modules/@babel/core/lib/config/index.js
trusty-cms-4.1.8 node_modules/@babel/core/lib/config/index.js