mirror of
https://github.com/x1xhlol/system-prompts-and-models-of-ai-tools.git
synced 2026-02-04 14:00:49 +00:00
nhj
more
This commit is contained in:
22
unified-ai-platform/node_modules/@babel/helper-module-transforms/LICENSE
generated
vendored
Normal file
22
unified-ai-platform/node_modules/@babel/helper-module-transforms/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2014-present Sebastian McKenzie and other contributors
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
19
unified-ai-platform/node_modules/@babel/helper-module-transforms/README.md
generated
vendored
Normal file
19
unified-ai-platform/node_modules/@babel/helper-module-transforms/README.md
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
# @babel/helper-module-transforms
|
||||
|
||||
> Babel helper functions for implementing ES6 module transformations
|
||||
|
||||
See our website [@babel/helper-module-transforms](https://babeljs.io/docs/babel-helper-module-transforms) for more information.
|
||||
|
||||
## Install
|
||||
|
||||
Using npm:
|
||||
|
||||
```sh
|
||||
npm install --save @babel/helper-module-transforms
|
||||
```
|
||||
|
||||
or using yarn:
|
||||
|
||||
```sh
|
||||
yarn add @babel/helper-module-transforms
|
||||
```
|
||||
48
unified-ai-platform/node_modules/@babel/helper-module-transforms/lib/dynamic-import.js
generated
vendored
Normal file
48
unified-ai-platform/node_modules/@babel/helper-module-transforms/lib/dynamic-import.js
generated
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.buildDynamicImport = buildDynamicImport;
|
||||
var _core = require("@babel/core");
|
||||
{
|
||||
exports.getDynamicImportSource = function getDynamicImportSource(node) {
|
||||
const [source] = node.arguments;
|
||||
return _core.types.isStringLiteral(source) || _core.types.isTemplateLiteral(source) ? source : _core.template.expression.ast`\`\${${source}}\``;
|
||||
};
|
||||
}
|
||||
function buildDynamicImport(node, deferToThen, wrapWithPromise, builder) {
|
||||
const specifier = _core.types.isCallExpression(node) ? node.arguments[0] : node.source;
|
||||
if (_core.types.isStringLiteral(specifier) || _core.types.isTemplateLiteral(specifier) && specifier.quasis.length === 0) {
|
||||
if (deferToThen) {
|
||||
return _core.template.expression.ast`
|
||||
Promise.resolve().then(() => ${builder(specifier)})
|
||||
`;
|
||||
} else return builder(specifier);
|
||||
}
|
||||
const specifierToString = _core.types.isTemplateLiteral(specifier) ? _core.types.identifier("specifier") : _core.types.templateLiteral([_core.types.templateElement({
|
||||
raw: ""
|
||||
}), _core.types.templateElement({
|
||||
raw: ""
|
||||
})], [_core.types.identifier("specifier")]);
|
||||
if (deferToThen) {
|
||||
return _core.template.expression.ast`
|
||||
(specifier =>
|
||||
new Promise(r => r(${specifierToString}))
|
||||
.then(s => ${builder(_core.types.identifier("s"))})
|
||||
)(${specifier})
|
||||
`;
|
||||
} else if (wrapWithPromise) {
|
||||
return _core.template.expression.ast`
|
||||
(specifier =>
|
||||
new Promise(r => r(${builder(specifierToString)}))
|
||||
)(${specifier})
|
||||
`;
|
||||
} else {
|
||||
return _core.template.expression.ast`
|
||||
(specifier => ${builder(specifierToString)})(${specifier})
|
||||
`;
|
||||
}
|
||||
}
|
||||
|
||||
//# sourceMappingURL=dynamic-import.js.map
|
||||
0
unified-ai-platform/node_modules/@babel/helper-module-transforms/lib/dynamic-import.js.map
generated
vendored
Normal file
0
unified-ai-platform/node_modules/@babel/helper-module-transforms/lib/dynamic-import.js.map
generated
vendored
Normal file
Reference in New Issue
Block a user