Sha256: a9bb93b3fa92effc712c4bbc9060ee19ee170c0488aace613fe8a4efb804d6b5
Contents?: true
Size: 1.4 KB
Versions: 1
Compression:
Stored size: 1.4 KB
Contents
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.parse = void 0; exports.parseAsync = parseAsync; exports.parseSync = parseSync; function _gensync() { const data = require("gensync"); _gensync = function () { return data; }; return data; } var _index = require("./config/index.js"); var _index2 = require("./parser/index.js"); var _normalizeOpts = require("./transformation/normalize-opts.js"); var _rewriteStackTrace = require("./errors/rewrite-stack-trace.js"); const parseRunner = _gensync()(function* parse(code, opts) { const config = yield* (0, _index.default)(opts); if (config === null) { return null; } return yield* (0, _index2.default)(config.passes, (0, _normalizeOpts.default)(config), code); }); const parse = function parse(code, opts, callback) { if (typeof opts === "function") { callback = opts; opts = undefined; } if (callback === undefined) { { return (0, _rewriteStackTrace.beginHiddenCallStack)(parseRunner.sync)(code, opts); } } (0, _rewriteStackTrace.beginHiddenCallStack)(parseRunner.errback)(code, opts, callback); }; exports.parse = parse; function parseSync(...args) { return (0, _rewriteStackTrace.beginHiddenCallStack)(parseRunner.sync)(...args); } function parseAsync(...args) { return (0, _rewriteStackTrace.beginHiddenCallStack)(parseRunner.async)(...args); } 0 && 0; //# sourceMappingURL=parse.js.map
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
trusty-cms-6.3.1 | node_modules/@babel/core/lib/parse.js |