Server IP : 150.95.80.236 / Your IP : 3.15.26.135 Web Server : Apache System : Linux host-150-95-80-236 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64 User : social-telecare ( 10000) PHP Version : 7.4.33 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/vhosts/pcu.in.th/api-uat.pcu.in.th/node_modules/@babel/core/lib/config/helpers/ |
Upload File : |
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.makeConfigAPI = makeConfigAPI; exports.makePluginAPI = makePluginAPI; exports.makePresetAPI = makePresetAPI; function _semver() { const data = require("semver"); _semver = function () { return data; }; return data; } var _index = require("../../index.js"); var _caching = require("../caching.js"); function makeConfigAPI(cache) { const env = value => cache.using(data => { if (typeof value === "undefined") return data.envName; if (typeof value === "function") { return (0, _caching.assertSimpleType)(value(data.envName)); } return (Array.isArray(value) ? value : [value]).some(entry => { if (typeof entry !== "string") { throw new Error("Unexpected non-string value"); } return entry === data.envName; }); }); const caller = cb => cache.using(data => (0, _caching.assertSimpleType)(cb(data.caller))); return { version: _index.version, cache: cache.simple(), env, async: () => false, caller, assertVersion }; } function makePresetAPI(cache, externalDependencies) { const targets = () => JSON.parse(cache.using(data => JSON.stringify(data.targets))); const addExternalDependency = ref => { externalDependencies.push(ref); }; return Object.assign({}, makeConfigAPI(cache), { targets, addExternalDependency }); } function makePluginAPI(cache, externalDependencies) { const assumption = name => cache.using(data => data.assumptions[name]); return Object.assign({}, makePresetAPI(cache, externalDependencies), { assumption }); } function assertVersion(range) { if (typeof range === "number") { if (!Number.isInteger(range)) { throw new Error("Expected string or integer value."); } range = `^${range}.0.0-0`; } if (typeof range !== "string") { throw new Error("Expected string or integer value."); } if (_semver().satisfies(_index.version, range)) return; const limit = Error.stackTraceLimit; if (typeof limit === "number" && limit < 25) { Error.stackTraceLimit = 25; } const err = new Error(`Requires Babel "${range}", but was loaded with "${_index.version}". ` + `If you are sure you have a compatible version of @babel/core, ` + `it is likely that something in your build process is loading the ` + `wrong version. Inspect the stack trace of this error to look for ` + `the first entry that doesn't mention "@babel/core" or "babel-core" ` + `to see what is calling Babel.`); if (typeof limit === "number") { Error.stackTraceLimit = limit; } throw Object.assign(err, { code: "BABEL_VERSION_UNSUPPORTED", version: _index.version, range }); } 0 && 0; //# sourceMappingURL=config-api.js.map