@tachybase/module-pdf 1.1.27 → 1.1.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/externalVersion.js +7 -7
- package/dist/node_modules/@babel/core/lib/config/files/configuration.js +5 -2
- package/dist/node_modules/@babel/core/lib/config/files/module-types.js +74 -63
- package/dist/node_modules/@babel/core/lib/config/files/plugins.js +1 -0
- package/dist/node_modules/@babel/core/lib/config/partial.js +1 -1
- package/dist/node_modules/@babel/core/lib/index.js +20 -101
- package/dist/node_modules/@babel/core/lib/transformation/file/babel-7-helpers.cjs +3 -1
- package/dist/node_modules/@babel/core/lib/transformation/file/file.js +10 -5
- package/dist/node_modules/@babel/core/lib/transformation/util/clone-deep.js +27 -7
- package/dist/node_modules/@babel/core/package.json +1 -1
- package/dist/node_modules/@babel/core/src/config/files/index-browser.ts +2 -0
- package/dist/node_modules/@babel/core/src/config/resolve-targets-browser.ts +2 -0
- package/dist/node_modules/@babel/core/src/config/resolve-targets.ts +1 -1
- package/dist/node_modules/@babel/core/src/transform-file-browser.ts +2 -0
- package/dist/node_modules/@babel/preset-env/LICENSE +22 -0
- package/dist/node_modules/@babel/preset-env/data/built-in-modules.js +3 -0
- package/dist/node_modules/@babel/preset-env/data/built-in-modules.json.js +3 -0
- package/dist/node_modules/@babel/preset-env/data/built-ins.js +4 -0
- package/dist/node_modules/@babel/preset-env/data/built-ins.json.js +4 -0
- package/dist/node_modules/@babel/preset-env/data/core-js-compat.js +3 -0
- package/dist/node_modules/@babel/preset-env/data/corejs2-built-ins.js +3 -0
- package/dist/node_modules/@babel/preset-env/data/corejs2-built-ins.json.js +3 -0
- package/dist/node_modules/@babel/preset-env/data/package.json +1 -0
- package/dist/node_modules/@babel/preset-env/data/plugins.js +3 -0
- package/dist/node_modules/@babel/preset-env/data/plugins.json.js +3 -0
- package/dist/node_modules/@babel/preset-env/data/shipped-proposals.js +4 -0
- package/dist/node_modules/@babel/preset-env/data/unreleased-labels.js +3 -0
- package/dist/node_modules/@babel/preset-env/lib/available-plugins.js +172 -0
- package/dist/node_modules/@babel/preset-env/lib/debug.js +37 -0
- package/dist/node_modules/@babel/preset-env/lib/filter-items.js +32 -0
- package/dist/node_modules/@babel/preset-env/lib/index.js +347 -0
- package/dist/node_modules/@babel/preset-env/lib/module-transformations.js +15 -0
- package/dist/node_modules/@babel/preset-env/lib/normalize-options.js +151 -0
- package/dist/node_modules/@babel/preset-env/lib/options.js +43 -0
- package/dist/node_modules/@babel/preset-env/lib/plugins-compat-data.js +28 -0
- package/dist/node_modules/@babel/preset-env/lib/polyfills/babel-7-plugins.cjs +21 -0
- package/dist/node_modules/@babel/preset-env/lib/polyfills/babel-polyfill.cjs +69 -0
- package/dist/node_modules/@babel/preset-env/lib/polyfills/regenerator.cjs +44 -0
- package/dist/node_modules/@babel/preset-env/lib/polyfills/utils.cjs +22 -0
- package/dist/node_modules/@babel/preset-env/lib/shipped-proposals.js +29 -0
- package/dist/node_modules/@babel/preset-env/lib/targets-parser.js +20 -0
- package/dist/node_modules/@babel/preset-env/node_modules/.bin/semver +21 -0
- package/dist/node_modules/@babel/preset-env/package.json +1 -0
- package/dist/node_modules/@babel/preset-react/LICENSE +22 -0
- package/dist/node_modules/@babel/preset-react/lib/index.js +231 -0
- package/dist/node_modules/@babel/preset-react/package.json +1 -0
- package/dist/node_modules/@babel/preset-typescript/LICENSE +22 -0
- package/dist/node_modules/@babel/preset-typescript/lib/index.js +227 -0
- package/dist/node_modules/@babel/preset-typescript/package.json +1 -0
- package/dist/node_modules/@react-pdf/renderer/package.json +1 -1
- package/dist/node_modules/fs-extra/package.json +1 -1
- package/dist/server/PdfInstruction.js +3 -3
- package/package.json +14 -13
- package/dist/node_modules/@babel/core/cjs-proxy.cjs +0 -68
|
@@ -39,9 +39,7 @@ function _semver() {
|
|
|
39
39
|
};
|
|
40
40
|
return data;
|
|
41
41
|
}
|
|
42
|
-
var
|
|
43
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
44
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
42
|
+
var _babel7Helpers = require("./babel-7-helpers.cjs");
|
|
45
43
|
const {
|
|
46
44
|
cloneNode,
|
|
47
45
|
interpreterDirective
|
|
@@ -118,6 +116,7 @@ class File {
|
|
|
118
116
|
return this._map.has(key);
|
|
119
117
|
}
|
|
120
118
|
availableHelper(name, versionRange) {
|
|
119
|
+
if (helpers().isInternal(name)) return false;
|
|
121
120
|
let minVersion;
|
|
122
121
|
try {
|
|
123
122
|
minVersion = helpers().minVersion(name);
|
|
@@ -132,6 +131,12 @@ class File {
|
|
|
132
131
|
}
|
|
133
132
|
}
|
|
134
133
|
addHelper(name) {
|
|
134
|
+
if (helpers().isInternal(name)) {
|
|
135
|
+
throw new Error("Cannot use internal helper " + name);
|
|
136
|
+
}
|
|
137
|
+
return this._addHelper(name);
|
|
138
|
+
}
|
|
139
|
+
_addHelper(name) {
|
|
135
140
|
const declar = this.declarations[name];
|
|
136
141
|
if (declar) return cloneNode(declar);
|
|
137
142
|
const generator = this.get("helperGenerator");
|
|
@@ -143,7 +148,7 @@ class File {
|
|
|
143
148
|
const uid = this.declarations[name] = this.scope.generateUidIdentifier(name);
|
|
144
149
|
const dependencies = {};
|
|
145
150
|
for (const dep of helpers().getDependencies(name)) {
|
|
146
|
-
dependencies[dep] = this.
|
|
151
|
+
dependencies[dep] = this._addHelper(dep);
|
|
147
152
|
}
|
|
148
153
|
const {
|
|
149
154
|
nodes,
|
|
@@ -205,7 +210,7 @@ exports.default = File;
|
|
|
205
210
|
};
|
|
206
211
|
{
|
|
207
212
|
File.prototype.getModuleName = function getModuleName() {
|
|
208
|
-
return
|
|
213
|
+
return _babel7Helpers.getModuleName()(this.opts, this.opts);
|
|
209
214
|
};
|
|
210
215
|
}
|
|
211
216
|
}
|
|
@@ -4,32 +4,52 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = _default;
|
|
7
|
-
|
|
7
|
+
const circleSet = new Set();
|
|
8
|
+
let depth = 0;
|
|
9
|
+
function deepClone(value, cache, allowCircle) {
|
|
8
10
|
if (value !== null) {
|
|
9
|
-
if (
|
|
11
|
+
if (allowCircle) {
|
|
12
|
+
if (cache.has(value)) return cache.get(value);
|
|
13
|
+
} else if (++depth > 250) {
|
|
14
|
+
if (circleSet.has(value)) {
|
|
15
|
+
depth = 0;
|
|
16
|
+
circleSet.clear();
|
|
17
|
+
throw new Error("Babel-deepClone: Cycles are not allowed in AST");
|
|
18
|
+
}
|
|
19
|
+
circleSet.add(value);
|
|
20
|
+
}
|
|
10
21
|
let cloned;
|
|
11
22
|
if (Array.isArray(value)) {
|
|
12
23
|
cloned = new Array(value.length);
|
|
13
|
-
cache.set(value, cloned);
|
|
24
|
+
if (allowCircle) cache.set(value, cloned);
|
|
14
25
|
for (let i = 0; i < value.length; i++) {
|
|
15
|
-
cloned[i] = typeof value[i] !== "object" ? value[i] : deepClone(value[i], cache);
|
|
26
|
+
cloned[i] = typeof value[i] !== "object" ? value[i] : deepClone(value[i], cache, allowCircle);
|
|
16
27
|
}
|
|
17
28
|
} else {
|
|
18
29
|
cloned = {};
|
|
19
|
-
cache.set(value, cloned);
|
|
30
|
+
if (allowCircle) cache.set(value, cloned);
|
|
20
31
|
const keys = Object.keys(value);
|
|
21
32
|
for (let i = 0; i < keys.length; i++) {
|
|
22
33
|
const key = keys[i];
|
|
23
|
-
cloned[key] = typeof value[key] !== "object" ? value[key] : deepClone(value[key], cache);
|
|
34
|
+
cloned[key] = typeof value[key] !== "object" ? value[key] : deepClone(value[key], cache, allowCircle || key === "leadingComments" || key === "innerComments" || key === "trailingComments" || key === "extra");
|
|
24
35
|
}
|
|
25
36
|
}
|
|
37
|
+
if (!allowCircle) {
|
|
38
|
+
if (depth-- > 250) circleSet.delete(value);
|
|
39
|
+
}
|
|
26
40
|
return cloned;
|
|
27
41
|
}
|
|
28
42
|
return value;
|
|
29
43
|
}
|
|
30
44
|
function _default(value) {
|
|
31
45
|
if (typeof value !== "object") return value;
|
|
32
|
-
|
|
46
|
+
{
|
|
47
|
+
try {
|
|
48
|
+
return deepClone(value, new Map(), true);
|
|
49
|
+
} catch (_) {
|
|
50
|
+
return structuredClone(value);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
33
53
|
}
|
|
34
54
|
0 && 0;
|
|
35
55
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@babel/core","version":"7.
|
|
1
|
+
{"name":"@babel/core","version":"7.27.4","description":"Babel compiler core.","main":"./lib/index.js","author":"The Babel Team (https://babel.dev/team)","license":"MIT","publishConfig":{"access":"public"},"repository":{"type":"git","url":"https://github.com/babel/babel.git","directory":"packages/babel-core"},"homepage":"https://babel.dev/docs/en/next/babel-core","bugs":"https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20core%22+is%3Aopen","keywords":["6to5","babel","classes","const","es6","harmony","let","modules","transpile","transpiler","var","babel-core","compiler"],"engines":{"node":">=6.9.0"},"funding":{"type":"opencollective","url":"https://opencollective.com/babel"},"browser":{"./lib/config/files/index.js":"./lib/config/files/index-browser.js","./lib/config/resolve-targets.js":"./lib/config/resolve-targets-browser.js","./lib/transform-file.js":"./lib/transform-file-browser.js","./src/config/files/index.ts":"./src/config/files/index-browser.ts","./src/config/resolve-targets.ts":"./src/config/resolve-targets-browser.ts","./src/transform-file.ts":"./src/transform-file-browser.ts"},"dependencies":{"@ampproject/remapping":"^2.2.0","@babel/code-frame":"^7.27.1","@babel/generator":"^7.27.3","@babel/helper-compilation-targets":"^7.27.2","@babel/helper-module-transforms":"^7.27.3","@babel/helpers":"^7.27.4","@babel/parser":"^7.27.4","@babel/template":"^7.27.2","@babel/traverse":"^7.27.4","@babel/types":"^7.27.3","convert-source-map":"^2.0.0","debug":"^4.1.0","gensync":"^1.0.0-beta.2","json5":"^2.2.3","semver":"^6.3.1"},"devDependencies":{"@babel/helper-transform-fixture-test-runner":"^7.27.1","@babel/plugin-syntax-flow":"^7.27.1","@babel/plugin-transform-flow-strip-types":"^7.27.1","@babel/plugin-transform-modules-commonjs":"^7.27.1","@babel/preset-env":"^7.27.2","@babel/preset-typescript":"^7.27.1","@jridgewell/trace-mapping":"^0.3.25","@types/convert-source-map":"^2.0.0","@types/debug":"^4.1.0","@types/resolve":"^1.3.2","@types/semver":"^5.4.0","rimraf":"^3.0.0","ts-node":"^11.0.0-beta.1"},"type":"commonjs","_lastModified":"2025-06-17T13:38:23.848Z"}
|
|
@@ -6,7 +6,7 @@ type nodeType = typeof import("./resolve-targets");
|
|
|
6
6
|
({}) as any as browserType as nodeType;
|
|
7
7
|
|
|
8
8
|
import type { ValidatedOptions } from "./validation/options.ts";
|
|
9
|
-
import path from "path";
|
|
9
|
+
import path from "node:path";
|
|
10
10
|
import getTargets, {
|
|
11
11
|
type InputTargets,
|
|
12
12
|
} from "@babel/helper-compilation-targets";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2014-present Sebastian McKenzie and other contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
+
a copy of this software and associated documentation files (the
|
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
+
the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be
|
|
14
|
+
included in all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "type": "commonjs" }
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.minVersions = exports.legacyBabel7SyntaxPlugins = exports.default = void 0;
|
|
7
|
+
var _pluginSyntaxImportAssertions = require("@babel/plugin-syntax-import-assertions");
|
|
8
|
+
var _pluginSyntaxImportAttributes = require("@babel/plugin-syntax-import-attributes");
|
|
9
|
+
var _pluginTransformAsyncGeneratorFunctions = require("@babel/plugin-transform-async-generator-functions");
|
|
10
|
+
var _pluginTransformAsyncToGenerator = require("@babel/plugin-transform-async-to-generator");
|
|
11
|
+
var _pluginTransformArrowFunctions = require("@babel/plugin-transform-arrow-functions");
|
|
12
|
+
var _pluginTransformBlockScopedFunctions = require("@babel/plugin-transform-block-scoped-functions");
|
|
13
|
+
var _pluginTransformBlockScoping = require("@babel/plugin-transform-block-scoping");
|
|
14
|
+
var _pluginTransformClasses = require("@babel/plugin-transform-classes");
|
|
15
|
+
var _pluginTransformClassProperties = require("@babel/plugin-transform-class-properties");
|
|
16
|
+
var _pluginTransformClassStaticBlock = require("@babel/plugin-transform-class-static-block");
|
|
17
|
+
var _pluginTransformComputedProperties = require("@babel/plugin-transform-computed-properties");
|
|
18
|
+
var _pluginTransformDestructuring = require("@babel/plugin-transform-destructuring");
|
|
19
|
+
var _pluginTransformDotallRegex = require("@babel/plugin-transform-dotall-regex");
|
|
20
|
+
var _pluginTransformDuplicateKeys = require("@babel/plugin-transform-duplicate-keys");
|
|
21
|
+
var _pluginTransformDuplicateNamedCapturingGroupsRegex = require("@babel/plugin-transform-duplicate-named-capturing-groups-regex");
|
|
22
|
+
var _pluginTransformDynamicImport = require("@babel/plugin-transform-dynamic-import");
|
|
23
|
+
var _pluginTransformExponentiationOperator = require("@babel/plugin-transform-exponentiation-operator");
|
|
24
|
+
var _pluginTransformExportNamespaceFrom = require("@babel/plugin-transform-export-namespace-from");
|
|
25
|
+
var _pluginTransformForOf = require("@babel/plugin-transform-for-of");
|
|
26
|
+
var _pluginTransformFunctionName = require("@babel/plugin-transform-function-name");
|
|
27
|
+
var _pluginTransformJsonStrings = require("@babel/plugin-transform-json-strings");
|
|
28
|
+
var _pluginTransformLiterals = require("@babel/plugin-transform-literals");
|
|
29
|
+
var _pluginTransformLogicalAssignmentOperators = require("@babel/plugin-transform-logical-assignment-operators");
|
|
30
|
+
var _pluginTransformMemberExpressionLiterals = require("@babel/plugin-transform-member-expression-literals");
|
|
31
|
+
var _pluginTransformModulesAmd = require("@babel/plugin-transform-modules-amd");
|
|
32
|
+
var _pluginTransformModulesCommonjs = require("@babel/plugin-transform-modules-commonjs");
|
|
33
|
+
var _pluginTransformModulesSystemjs = require("@babel/plugin-transform-modules-systemjs");
|
|
34
|
+
var _pluginTransformModulesUmd = require("@babel/plugin-transform-modules-umd");
|
|
35
|
+
var _pluginTransformNamedCapturingGroupsRegex = require("@babel/plugin-transform-named-capturing-groups-regex");
|
|
36
|
+
var _pluginTransformNewTarget = require("@babel/plugin-transform-new-target");
|
|
37
|
+
var _pluginTransformNullishCoalescingOperator = require("@babel/plugin-transform-nullish-coalescing-operator");
|
|
38
|
+
var _pluginTransformNumericSeparator = require("@babel/plugin-transform-numeric-separator");
|
|
39
|
+
var _pluginTransformObjectRestSpread = require("@babel/plugin-transform-object-rest-spread");
|
|
40
|
+
var _pluginTransformObjectSuper = require("@babel/plugin-transform-object-super");
|
|
41
|
+
var _pluginTransformOptionalCatchBinding = require("@babel/plugin-transform-optional-catch-binding");
|
|
42
|
+
var _pluginTransformOptionalChaining = require("@babel/plugin-transform-optional-chaining");
|
|
43
|
+
var _pluginTransformParameters = require("@babel/plugin-transform-parameters");
|
|
44
|
+
var _pluginTransformPrivateMethods = require("@babel/plugin-transform-private-methods");
|
|
45
|
+
var _pluginTransformPrivatePropertyInObject = require("@babel/plugin-transform-private-property-in-object");
|
|
46
|
+
var _pluginTransformPropertyLiterals = require("@babel/plugin-transform-property-literals");
|
|
47
|
+
var _pluginTransformRegenerator = require("@babel/plugin-transform-regenerator");
|
|
48
|
+
var _pluginTransformRegexpModifiers = require("@babel/plugin-transform-regexp-modifiers");
|
|
49
|
+
var _pluginTransformReservedWords = require("@babel/plugin-transform-reserved-words");
|
|
50
|
+
var _pluginTransformShorthandProperties = require("@babel/plugin-transform-shorthand-properties");
|
|
51
|
+
var _pluginTransformSpread = require("@babel/plugin-transform-spread");
|
|
52
|
+
var _pluginTransformStickyRegex = require("@babel/plugin-transform-sticky-regex");
|
|
53
|
+
var _pluginTransformTemplateLiterals = require("@babel/plugin-transform-template-literals");
|
|
54
|
+
var _pluginTransformTypeofSymbol = require("@babel/plugin-transform-typeof-symbol");
|
|
55
|
+
var _pluginTransformUnicodeEscapes = require("@babel/plugin-transform-unicode-escapes");
|
|
56
|
+
var _pluginTransformUnicodePropertyRegex = require("@babel/plugin-transform-unicode-property-regex");
|
|
57
|
+
var _pluginTransformUnicodeRegex = require("@babel/plugin-transform-unicode-regex");
|
|
58
|
+
var _pluginTransformUnicodeSetsRegex = require("@babel/plugin-transform-unicode-sets-regex");
|
|
59
|
+
var _index = require("@babel/preset-modules/lib/plugins/transform-async-arrows-in-class/index.js");
|
|
60
|
+
var _index2 = require("@babel/preset-modules/lib/plugins/transform-edge-default-parameters/index.js");
|
|
61
|
+
var _index3 = require("@babel/preset-modules/lib/plugins/transform-edge-function-name/index.js");
|
|
62
|
+
var _pluginBugfixFirefoxClassInComputedClassKey = require("@babel/plugin-bugfix-firefox-class-in-computed-class-key");
|
|
63
|
+
var _index4 = require("@babel/preset-modules/lib/plugins/transform-tagged-template-caching/index.js");
|
|
64
|
+
var _index5 = require("@babel/preset-modules/lib/plugins/transform-safari-block-shadowing/index.js");
|
|
65
|
+
var _index6 = require("@babel/preset-modules/lib/plugins/transform-safari-for-shadowing/index.js");
|
|
66
|
+
var _pluginBugfixSafariIdDestructuringCollisionInFunctionExpression = require("@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression");
|
|
67
|
+
var _pluginBugfixSafariClassFieldInitializerScope = require("@babel/plugin-bugfix-safari-class-field-initializer-scope");
|
|
68
|
+
var _pluginBugfixV8SpreadParametersInOptionalChaining = require("@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining");
|
|
69
|
+
var _pluginBugfixV8StaticClassFieldsRedefineReadonly = require("@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly");
|
|
70
|
+
const availablePlugins = exports.default = {
|
|
71
|
+
"bugfix/transform-async-arrows-in-class": () => _index,
|
|
72
|
+
"bugfix/transform-edge-default-parameters": () => _index2,
|
|
73
|
+
"bugfix/transform-edge-function-name": () => _index3,
|
|
74
|
+
"bugfix/transform-firefox-class-in-computed-class-key": () => _pluginBugfixFirefoxClassInComputedClassKey.default,
|
|
75
|
+
"bugfix/transform-safari-block-shadowing": () => _index5,
|
|
76
|
+
"bugfix/transform-safari-class-field-initializer-scope": () => _pluginBugfixSafariClassFieldInitializerScope.default,
|
|
77
|
+
"bugfix/transform-safari-for-shadowing": () => _index6,
|
|
78
|
+
"bugfix/transform-safari-id-destructuring-collision-in-function-expression": () => _pluginBugfixSafariIdDestructuringCollisionInFunctionExpression.default,
|
|
79
|
+
"bugfix/transform-tagged-template-caching": () => _index4,
|
|
80
|
+
"bugfix/transform-v8-spread-parameters-in-optional-chaining": () => _pluginBugfixV8SpreadParametersInOptionalChaining.default,
|
|
81
|
+
"bugfix/transform-v8-static-class-fields-redefine-readonly": () => _pluginBugfixV8StaticClassFieldsRedefineReadonly.default,
|
|
82
|
+
"transform-arrow-functions": () => _pluginTransformArrowFunctions.default,
|
|
83
|
+
"transform-async-generator-functions": () => _pluginTransformAsyncGeneratorFunctions.default,
|
|
84
|
+
"transform-async-to-generator": () => _pluginTransformAsyncToGenerator.default,
|
|
85
|
+
"transform-block-scoped-functions": () => _pluginTransformBlockScopedFunctions.default,
|
|
86
|
+
"transform-block-scoping": () => _pluginTransformBlockScoping.default,
|
|
87
|
+
"transform-class-properties": () => _pluginTransformClassProperties.default,
|
|
88
|
+
"transform-class-static-block": () => _pluginTransformClassStaticBlock.default,
|
|
89
|
+
"transform-classes": () => _pluginTransformClasses.default,
|
|
90
|
+
"transform-computed-properties": () => _pluginTransformComputedProperties.default,
|
|
91
|
+
"transform-destructuring": () => _pluginTransformDestructuring.default,
|
|
92
|
+
"transform-dotall-regex": () => _pluginTransformDotallRegex.default,
|
|
93
|
+
"transform-duplicate-keys": () => _pluginTransformDuplicateKeys.default,
|
|
94
|
+
"transform-duplicate-named-capturing-groups-regex": () => _pluginTransformDuplicateNamedCapturingGroupsRegex.default,
|
|
95
|
+
"transform-dynamic-import": () => _pluginTransformDynamicImport.default,
|
|
96
|
+
"transform-exponentiation-operator": () => _pluginTransformExponentiationOperator.default,
|
|
97
|
+
"transform-export-namespace-from": () => _pluginTransformExportNamespaceFrom.default,
|
|
98
|
+
"transform-for-of": () => _pluginTransformForOf.default,
|
|
99
|
+
"transform-function-name": () => _pluginTransformFunctionName.default,
|
|
100
|
+
"transform-json-strings": () => _pluginTransformJsonStrings.default,
|
|
101
|
+
"transform-literals": () => _pluginTransformLiterals.default,
|
|
102
|
+
"transform-logical-assignment-operators": () => _pluginTransformLogicalAssignmentOperators.default,
|
|
103
|
+
"transform-member-expression-literals": () => _pluginTransformMemberExpressionLiterals.default,
|
|
104
|
+
"transform-modules-amd": () => _pluginTransformModulesAmd.default,
|
|
105
|
+
"transform-modules-commonjs": () => _pluginTransformModulesCommonjs.default,
|
|
106
|
+
"transform-modules-systemjs": () => _pluginTransformModulesSystemjs.default,
|
|
107
|
+
"transform-modules-umd": () => _pluginTransformModulesUmd.default,
|
|
108
|
+
"transform-named-capturing-groups-regex": () => _pluginTransformNamedCapturingGroupsRegex.default,
|
|
109
|
+
"transform-new-target": () => _pluginTransformNewTarget.default,
|
|
110
|
+
"transform-nullish-coalescing-operator": () => _pluginTransformNullishCoalescingOperator.default,
|
|
111
|
+
"transform-numeric-separator": () => _pluginTransformNumericSeparator.default,
|
|
112
|
+
"transform-object-rest-spread": () => _pluginTransformObjectRestSpread.default,
|
|
113
|
+
"transform-object-super": () => _pluginTransformObjectSuper.default,
|
|
114
|
+
"transform-optional-catch-binding": () => _pluginTransformOptionalCatchBinding.default,
|
|
115
|
+
"transform-optional-chaining": () => _pluginTransformOptionalChaining.default,
|
|
116
|
+
"transform-parameters": () => _pluginTransformParameters.default,
|
|
117
|
+
"transform-private-methods": () => _pluginTransformPrivateMethods.default,
|
|
118
|
+
"transform-private-property-in-object": () => _pluginTransformPrivatePropertyInObject.default,
|
|
119
|
+
"transform-property-literals": () => _pluginTransformPropertyLiterals.default,
|
|
120
|
+
"transform-regenerator": () => _pluginTransformRegenerator.default,
|
|
121
|
+
"transform-regexp-modifiers": () => _pluginTransformRegexpModifiers.default,
|
|
122
|
+
"transform-reserved-words": () => _pluginTransformReservedWords.default,
|
|
123
|
+
"transform-shorthand-properties": () => _pluginTransformShorthandProperties.default,
|
|
124
|
+
"transform-spread": () => _pluginTransformSpread.default,
|
|
125
|
+
"transform-sticky-regex": () => _pluginTransformStickyRegex.default,
|
|
126
|
+
"transform-template-literals": () => _pluginTransformTemplateLiterals.default,
|
|
127
|
+
"transform-typeof-symbol": () => _pluginTransformTypeofSymbol.default,
|
|
128
|
+
"transform-unicode-escapes": () => _pluginTransformUnicodeEscapes.default,
|
|
129
|
+
"transform-unicode-property-regex": () => _pluginTransformUnicodePropertyRegex.default,
|
|
130
|
+
"transform-unicode-regex": () => _pluginTransformUnicodeRegex.default,
|
|
131
|
+
"transform-unicode-sets-regex": () => _pluginTransformUnicodeSetsRegex.default
|
|
132
|
+
};
|
|
133
|
+
const minVersions = exports.minVersions = {};
|
|
134
|
+
let legacyBabel7SyntaxPlugins = exports.legacyBabel7SyntaxPlugins = void 0;
|
|
135
|
+
{
|
|
136
|
+
Object.assign(minVersions, {
|
|
137
|
+
"bugfix/transform-safari-id-destructuring-collision-in-function-expression": "7.16.0",
|
|
138
|
+
"bugfix/transform-v8-static-class-fields-redefine-readonly": "7.12.0",
|
|
139
|
+
"syntax-import-attributes": "7.22.0",
|
|
140
|
+
"transform-class-static-block": "7.12.0",
|
|
141
|
+
"transform-duplicate-named-capturing-groups-regex": "7.19.0",
|
|
142
|
+
"transform-private-property-in-object": "7.10.0",
|
|
143
|
+
"transform-regexp-modifiers": "7.19.0"
|
|
144
|
+
});
|
|
145
|
+
const syntax = name => () => () => ({
|
|
146
|
+
manipulateOptions: (_, p) => p.plugins.push(name)
|
|
147
|
+
});
|
|
148
|
+
const legacyBabel7SyntaxPluginsLoaders = {
|
|
149
|
+
"syntax-async-generators": syntax("asyncGenerators"),
|
|
150
|
+
"syntax-class-properties": syntax("classProperties"),
|
|
151
|
+
"syntax-class-static-block": syntax("classStaticBlock"),
|
|
152
|
+
"syntax-dynamic-import": syntax("dynamicImport"),
|
|
153
|
+
"syntax-export-namespace-from": syntax("exportNamespaceFrom"),
|
|
154
|
+
"syntax-import-meta": syntax("importMeta"),
|
|
155
|
+
"syntax-json-strings": syntax("jsonStrings"),
|
|
156
|
+
"syntax-logical-assignment-operators": syntax("logicalAssignment"),
|
|
157
|
+
"syntax-nullish-coalescing-operator": syntax("nullishCoalescingOperator"),
|
|
158
|
+
"syntax-numeric-separator": syntax("numericSeparator"),
|
|
159
|
+
"syntax-object-rest-spread": syntax("objectRestSpread"),
|
|
160
|
+
"syntax-optional-catch-binding": syntax("optionalCatchBinding"),
|
|
161
|
+
"syntax-optional-chaining": syntax("optionalChaining"),
|
|
162
|
+
"syntax-private-property-in-object": syntax("privateIn"),
|
|
163
|
+
"syntax-top-level-await": syntax("topLevelAwait"),
|
|
164
|
+
"syntax-import-assertions": () => _pluginSyntaxImportAssertions.default,
|
|
165
|
+
"syntax-import-attributes": () => _pluginSyntaxImportAttributes.default,
|
|
166
|
+
"syntax-unicode-sets-regex": () => require("@babel/plugin-syntax-unicode-sets-regex")
|
|
167
|
+
};
|
|
168
|
+
Object.assign(availablePlugins, legacyBabel7SyntaxPluginsLoaders);
|
|
169
|
+
exports.legacyBabel7SyntaxPlugins = legacyBabel7SyntaxPlugins = new Set(Object.keys(legacyBabel7SyntaxPluginsLoaders));
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
//# sourceMappingURL=available-plugins.js.map
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.logPlugin = void 0;
|
|
7
|
+
var _helperCompilationTargets = require("@babel/helper-compilation-targets");
|
|
8
|
+
const compatData = require("@babel/compat-data/plugins");
|
|
9
|
+
const logPlugin = (item, targetVersions, list) => {
|
|
10
|
+
const filteredList = (0, _helperCompilationTargets.getInclusionReasons)(item, targetVersions, list);
|
|
11
|
+
const support = list[item];
|
|
12
|
+
{
|
|
13
|
+
if (item.startsWith("transform-")) {
|
|
14
|
+
const proposalName = `proposal-${item.slice(10)}`;
|
|
15
|
+
if (proposalName === "proposal-dynamic-import" || hasOwnProperty.call(compatData, proposalName)) {
|
|
16
|
+
item = proposalName;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
if (!support) {
|
|
21
|
+
console.log(` ${item}`);
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
let formattedTargets = `{`;
|
|
25
|
+
let first = true;
|
|
26
|
+
for (const target of Object.keys(filteredList)) {
|
|
27
|
+
if (!first) formattedTargets += `,`;
|
|
28
|
+
first = false;
|
|
29
|
+
formattedTargets += ` ${target}`;
|
|
30
|
+
if (support[target]) formattedTargets += ` < ${support[target]}`;
|
|
31
|
+
}
|
|
32
|
+
formattedTargets += ` }`;
|
|
33
|
+
console.log(` ${item} ${formattedTargets}`);
|
|
34
|
+
};
|
|
35
|
+
exports.logPlugin = logPlugin;
|
|
36
|
+
|
|
37
|
+
//# sourceMappingURL=debug.js.map
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.addProposalSyntaxPlugins = addProposalSyntaxPlugins;
|
|
7
|
+
exports.removeUnnecessaryItems = removeUnnecessaryItems;
|
|
8
|
+
exports.removeUnsupportedItems = removeUnsupportedItems;
|
|
9
|
+
var _semver = require("semver");
|
|
10
|
+
var _availablePlugins = require("./available-plugins.js");
|
|
11
|
+
function addProposalSyntaxPlugins(items, proposalSyntaxPlugins) {
|
|
12
|
+
proposalSyntaxPlugins.forEach(plugin => {
|
|
13
|
+
items.add(plugin);
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
function removeUnnecessaryItems(items, overlapping) {
|
|
17
|
+
items.forEach(item => {
|
|
18
|
+
var _overlapping$item;
|
|
19
|
+
(_overlapping$item = overlapping[item]) == null || _overlapping$item.forEach(name => items.delete(name));
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
function removeUnsupportedItems(items, babelVersion) {
|
|
23
|
+
items.forEach(item => {
|
|
24
|
+
if (hasOwnProperty.call(_availablePlugins.minVersions, item) && _semver.lt(babelVersion, _availablePlugins.minVersions[item])) {
|
|
25
|
+
items.delete(item);
|
|
26
|
+
} else if (babelVersion[0] === "8" && _availablePlugins.legacyBabel7SyntaxPlugins.has(item)) {
|
|
27
|
+
items.delete(item);
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
//# sourceMappingURL=filter-items.js.map
|