@umijs/bundler-webpack 4.0.0-beta.9 → 4.0.0-rc.3
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/compiled/autoprefixer/browserslist/index.d.ts +11 -7
- package/compiled/autoprefixer/index.js +3 -3
- package/compiled/autoprefixer/postcss/lib/at-rule.d.ts +1 -1
- package/compiled/autoprefixer/postcss/lib/comment.d.ts +1 -1
- package/compiled/autoprefixer/postcss/lib/container.d.ts +2 -2
- package/compiled/autoprefixer/postcss/lib/css-syntax-error.d.ts +55 -8
- package/compiled/autoprefixer/postcss/lib/declaration.d.ts +1 -1
- package/compiled/autoprefixer/postcss/lib/input.d.ts +26 -6
- package/compiled/autoprefixer/postcss/lib/lazy-result.d.ts +11 -10
- package/compiled/autoprefixer/postcss/lib/no-work-result.d.ts +37 -0
- package/compiled/autoprefixer/postcss/lib/node.d.ts +36 -2
- package/compiled/autoprefixer/postcss/lib/postcss.d.ts +31 -30
- package/compiled/autoprefixer/postcss/lib/processor.d.ts +5 -4
- package/compiled/autoprefixer/postcss/lib/result.d.ts +3 -2
- package/compiled/autoprefixer/postcss/lib/rule.d.ts +1 -1
- package/compiled/autoprefixer/postcss/lib/warning.d.ts +37 -3
- package/compiled/autoprefixer/source-map-js/source-map.d.ts +99 -82
- package/compiled/babel-loader/index.js +2 -2
- package/compiled/copy-webpack-plugin/576.index.js +1171 -0
- package/compiled/copy-webpack-plugin/index.js +16 -10
- package/compiled/copy-webpack-plugin/package.json +1 -1
- package/compiled/css-minimizer-webpack-plugin/index.js +8 -2
- package/compiled/css-minimizer-webpack-plugin/minify.js +25 -11
- package/compiled/css-minimizer-webpack-plugin/package.json +1 -1
- package/compiled/css-minimizer-webpack-plugin/utils.js +225 -28
- package/compiled/cssnano/index.js +12 -11
- package/compiled/express/index.js +57 -74
- package/compiled/fork-ts-checker-webpack-plugin/LICENSE +21 -0
- package/compiled/fork-ts-checker-webpack-plugin/fsevents.node +0 -0
- package/compiled/fork-ts-checker-webpack-plugin/index.js +48 -0
- package/compiled/fork-ts-checker-webpack-plugin/package.json +1 -0
- package/compiled/http-proxy-middleware/dist/types.d.ts +5 -5
- package/compiled/http-proxy-middleware/http-proxy/index.d.ts +1 -1
- package/compiled/http-proxy-middleware/index.js +10 -10
- package/compiled/mini-css-extract-plugin/hmr/hotModuleReplacement.js +60 -8
- package/compiled/mini-css-extract-plugin/hmr/normalize-url.js +13 -1
- package/compiled/mini-css-extract-plugin/index.js +8103 -7617
- package/compiled/mini-css-extract-plugin/loader.js +177 -54
- package/compiled/mini-css-extract-plugin/package.json +1 -1
- package/compiled/mini-css-extract-plugin/utils.js +83 -24
- package/compiled/postcss-loader/index.js +1 -1
- package/compiled/react-refresh/index.js +3 -3
- package/compiled/sass-loader/index.js +1 -1
- package/compiled/schema-utils/ajv/dist/ajv.d.ts +16 -0
- package/compiled/schema-utils/ajv/dist/compile/codegen/code.d.ts +39 -0
- package/compiled/schema-utils/ajv/dist/compile/codegen/index.d.ts +79 -0
- package/compiled/schema-utils/ajv/dist/compile/codegen/scope.d.ts +79 -0
- package/compiled/schema-utils/ajv/dist/compile/errors.d.ts +13 -0
- package/compiled/schema-utils/ajv/dist/compile/index.d.ts +80 -0
- package/compiled/schema-utils/ajv/dist/compile/ref_error.d.ts +5 -0
- package/compiled/schema-utils/ajv/dist/compile/resolve.d.ts +12 -0
- package/compiled/schema-utils/ajv/dist/compile/rules.d.ts +28 -0
- package/compiled/schema-utils/ajv/dist/compile/util.d.ts +40 -0
- package/compiled/schema-utils/ajv/dist/compile/validate/index.d.ts +42 -0
- package/compiled/schema-utils/ajv/dist/compile/validate/subschema.d.ts +47 -0
- package/compiled/schema-utils/ajv/dist/core.d.ts +171 -0
- package/compiled/schema-utils/ajv/dist/runtime/validation_error.d.ts +7 -0
- package/compiled/schema-utils/ajv/dist/types/index.d.ts +177 -0
- package/compiled/schema-utils/ajv/dist/types/json-schema.d.ts +124 -0
- package/compiled/schema-utils/ajv/dist/types/jtd-schema.d.ts +168 -0
- package/compiled/schema-utils/declarations/validate.d.ts +4 -4
- package/compiled/schema-utils/index.js +8 -2
- package/compiled/schema-utils/uri-js/dist/es5/uri.all.d.ts +59 -0
- package/compiled/style-loader/index.js +1 -1
- package/compiled/terser/index.js +1 -1
- package/compiled/terser-webpack-plugin/index.js +393 -517
- package/compiled/terser-webpack-plugin/jest-worker/build/types.d.ts +1 -0
- package/compiled/terser-webpack-plugin/minify.js +10 -3
- package/compiled/terser-webpack-plugin/package.json +1 -1
- package/compiled/terser-webpack-plugin/types/index.d.ts +183 -149
- package/compiled/terser-webpack-plugin/types/minify.d.ts +17 -0
- package/compiled/terser-webpack-plugin/types/utils.d.ts +10 -15
- package/compiled/terser-webpack-plugin/utils.js +118 -25
- package/compiled/webpack/index.js +10464 -5286
- package/compiled/webpack-dev-middleware/index.js +11 -5
- package/compiled/webpack-dev-middleware/package.json +1 -1
- package/compiled/webpack-manifest-plugin/LICENSE +21 -0
- package/compiled/webpack-manifest-plugin/index.js +1 -0
- package/compiled/webpack-manifest-plugin/package.json +1 -0
- package/compiled/webpack-sources/index.js +1 -1
- package/compiled/ws/index.d.ts +1 -2
- package/compiled/ws/index.js +1 -1
- package/dist/build.d.ts +5 -3
- package/dist/build.js +2 -1
- package/dist/cli.js +4 -7
- package/dist/config/assetRules.js +6 -14
- package/dist/config/compressPlugin.js +6 -0
- package/dist/config/config.d.ts +7 -2
- package/dist/config/config.js +49 -7
- package/dist/config/cssRules.js +1 -1
- package/dist/config/detectDeadCode.d.ts +12 -0
- package/dist/config/detectDeadCode.js +120 -0
- package/dist/config/detectDeadCodePlugin.d.ts +9 -0
- package/dist/config/detectDeadCodePlugin.js +71 -0
- package/dist/config/forkTSCheckerPlugin.d.ts +11 -0
- package/dist/config/forkTSCheckerPlugin.js +34 -0
- package/dist/config/harmonyLinkingErrorPlugin.d.ts +6 -0
- package/dist/config/harmonyLinkingErrorPlugin.js +42 -0
- package/dist/config/javaScriptRules.d.ts +1 -0
- package/dist/config/javaScriptRules.js +31 -20
- package/dist/config/manifestPlugin.d.ts +11 -0
- package/dist/config/manifestPlugin.js +25 -0
- package/dist/config/miniCSSExtractPlugin.d.ts +1 -0
- package/dist/config/miniCSSExtractPlugin.js +2 -3
- package/dist/config/svgRules.d.ts +1 -0
- package/dist/config/svgRules.js +17 -3
- package/dist/constants.d.ts +3 -0
- package/dist/constants.js +4 -1
- package/dist/dev.d.ts +4 -2
- package/dist/dev.js +31 -5
- package/dist/loader/svgr.d.ts +4 -0
- package/dist/loader/svgr.js +67 -0
- package/dist/loader/swc.d.ts +4 -0
- package/dist/loader/swc.js +79 -0
- package/dist/plugins/ParcelCSSMinifyPlugin.d.ts +10 -0
- package/dist/plugins/ParcelCSSMinifyPlugin.js +74 -0
- package/dist/plugins/RuntimePublicPathPlugin.d.ts +4 -0
- package/dist/plugins/RuntimePublicPathPlugin.js +20 -0
- package/dist/requireHook.js +1 -1
- package/dist/schema.js +14 -6
- package/dist/server/server.js +20 -1
- package/dist/swcPlugins/autoCSSModules.d.ts +7 -2
- package/dist/swcPlugins/autoCSSModules.js +13 -16
- package/dist/swcPlugins/lockCoreJS.d.ts +6 -0
- package/dist/swcPlugins/lockCoreJS.js +23 -0
- package/dist/types.d.ts +16 -0
- package/dist/types.js +1 -0
- package/dist/utils/depMatch.js +1 -1
- package/package.json +45 -39
- package/compiled/@svgr/webpack/LICENSE +0 -7
- package/compiled/@svgr/webpack/index.js +0 -266
- package/compiled/@svgr/webpack/package.json +0 -1
- package/compiled/swc-loader/LICENSE +0 -25
- package/compiled/swc-loader/index.js +0 -1
- package/compiled/swc-loader/package.json +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/******/ (function() { // webpackBootstrap
|
|
2
2
|
/******/ var __webpack_modules__ = ({
|
|
3
3
|
|
|
4
|
-
/***/
|
|
4
|
+
/***/ 7566:
|
|
5
5
|
/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
|
|
6
6
|
|
|
7
7
|
"use strict";
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var KEYWORDS = __nccwpck_require__(
|
|
10
|
+
var KEYWORDS = __nccwpck_require__(3106);
|
|
11
11
|
|
|
12
12
|
module.exports = defineKeywords;
|
|
13
13
|
|
|
@@ -44,7 +44,7 @@ function get(keyword) {
|
|
|
44
44
|
|
|
45
45
|
/***/ }),
|
|
46
46
|
|
|
47
|
-
/***/
|
|
47
|
+
/***/ 8023:
|
|
48
48
|
/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
|
|
49
49
|
|
|
50
50
|
"use strict";
|
|
@@ -79,7 +79,7 @@ module.exports = function (minMax) {
|
|
|
79
79
|
return function defFunc(ajv) {
|
|
80
80
|
defFunc.definition = {
|
|
81
81
|
type: 'string',
|
|
82
|
-
inline: __nccwpck_require__(
|
|
82
|
+
inline: __nccwpck_require__(4434),
|
|
83
83
|
statements: true,
|
|
84
84
|
errors: 'full',
|
|
85
85
|
dependencies: ['format'],
|
|
@@ -153,7 +153,7 @@ function compareDateTime(dt1, dt2) {
|
|
|
153
153
|
|
|
154
154
|
/***/ }),
|
|
155
155
|
|
|
156
|
-
/***/
|
|
156
|
+
/***/ 7365:
|
|
157
157
|
/***/ (function(module) {
|
|
158
158
|
|
|
159
159
|
"use strict";
|
|
@@ -176,7 +176,7 @@ function metaSchemaRef(ajv) {
|
|
|
176
176
|
|
|
177
177
|
/***/ }),
|
|
178
178
|
|
|
179
|
-
/***/
|
|
179
|
+
/***/ 4059:
|
|
180
180
|
/***/ (function(module) {
|
|
181
181
|
|
|
182
182
|
"use strict";
|
|
@@ -202,7 +202,7 @@ module.exports = function defFunc(ajv) {
|
|
|
202
202
|
|
|
203
203
|
/***/ }),
|
|
204
204
|
|
|
205
|
-
/***/
|
|
205
|
+
/***/ 9558:
|
|
206
206
|
/***/ (function(module) {
|
|
207
207
|
|
|
208
208
|
"use strict";
|
|
@@ -234,13 +234,13 @@ module.exports = function defFunc(ajv) {
|
|
|
234
234
|
|
|
235
235
|
/***/ }),
|
|
236
236
|
|
|
237
|
-
/***/
|
|
237
|
+
/***/ 2996:
|
|
238
238
|
/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
|
|
239
239
|
|
|
240
240
|
"use strict";
|
|
241
241
|
|
|
242
242
|
|
|
243
|
-
var util = __nccwpck_require__(
|
|
243
|
+
var util = __nccwpck_require__(7365);
|
|
244
244
|
|
|
245
245
|
module.exports = function defFunc(ajv) {
|
|
246
246
|
defFunc.definition = {
|
|
@@ -296,7 +296,7 @@ function unescapeJsonPointer(str) {
|
|
|
296
296
|
|
|
297
297
|
/***/ }),
|
|
298
298
|
|
|
299
|
-
/***/
|
|
299
|
+
/***/ 1919:
|
|
300
300
|
/***/ (function(module) {
|
|
301
301
|
|
|
302
302
|
"use strict";
|
|
@@ -361,7 +361,7 @@ function unescapeJsonPointer(str) {
|
|
|
361
361
|
|
|
362
362
|
/***/ }),
|
|
363
363
|
|
|
364
|
-
/***/
|
|
364
|
+
/***/ 4434:
|
|
365
365
|
/***/ (function(module) {
|
|
366
366
|
|
|
367
367
|
"use strict";
|
|
@@ -547,7 +547,7 @@ module.exports = function generate__formatLimit(it, $keyword, $ruleType) {
|
|
|
547
547
|
|
|
548
548
|
/***/ }),
|
|
549
549
|
|
|
550
|
-
/***/
|
|
550
|
+
/***/ 3092:
|
|
551
551
|
/***/ (function(module) {
|
|
552
552
|
|
|
553
553
|
"use strict";
|
|
@@ -613,7 +613,7 @@ module.exports = function generate_patternRequired(it, $keyword, $ruleType) {
|
|
|
613
613
|
|
|
614
614
|
/***/ }),
|
|
615
615
|
|
|
616
|
-
/***/
|
|
616
|
+
/***/ 930:
|
|
617
617
|
/***/ (function(module) {
|
|
618
618
|
|
|
619
619
|
"use strict";
|
|
@@ -750,7 +750,7 @@ module.exports = function generate_switch(it, $keyword, $ruleType) {
|
|
|
750
750
|
|
|
751
751
|
/***/ }),
|
|
752
752
|
|
|
753
|
-
/***/
|
|
753
|
+
/***/ 7565:
|
|
754
754
|
/***/ (function(module) {
|
|
755
755
|
|
|
756
756
|
"use strict";
|
|
@@ -830,59 +830,59 @@ module.exports = function defFunc(ajv) {
|
|
|
830
830
|
|
|
831
831
|
/***/ }),
|
|
832
832
|
|
|
833
|
-
/***/
|
|
833
|
+
/***/ 5661:
|
|
834
834
|
/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
|
|
835
835
|
|
|
836
836
|
"use strict";
|
|
837
837
|
|
|
838
838
|
|
|
839
|
-
module.exports = __nccwpck_require__(
|
|
839
|
+
module.exports = __nccwpck_require__(8023)('Maximum');
|
|
840
840
|
|
|
841
841
|
|
|
842
842
|
/***/ }),
|
|
843
843
|
|
|
844
|
-
/***/
|
|
844
|
+
/***/ 2023:
|
|
845
845
|
/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
|
|
846
846
|
|
|
847
847
|
"use strict";
|
|
848
848
|
|
|
849
849
|
|
|
850
|
-
module.exports = __nccwpck_require__(
|
|
850
|
+
module.exports = __nccwpck_require__(8023)('Minimum');
|
|
851
851
|
|
|
852
852
|
|
|
853
853
|
/***/ }),
|
|
854
854
|
|
|
855
|
-
/***/
|
|
855
|
+
/***/ 3106:
|
|
856
856
|
/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
|
|
857
857
|
|
|
858
858
|
"use strict";
|
|
859
859
|
|
|
860
860
|
|
|
861
861
|
module.exports = {
|
|
862
|
-
'instanceof': __nccwpck_require__(
|
|
863
|
-
range: __nccwpck_require__(
|
|
864
|
-
regexp: __nccwpck_require__(
|
|
865
|
-
'typeof': __nccwpck_require__(
|
|
866
|
-
dynamicDefaults: __nccwpck_require__(
|
|
867
|
-
allRequired: __nccwpck_require__(
|
|
868
|
-
anyRequired: __nccwpck_require__(
|
|
869
|
-
oneRequired: __nccwpck_require__(
|
|
870
|
-
prohibited: __nccwpck_require__(
|
|
871
|
-
uniqueItemProperties: __nccwpck_require__(
|
|
872
|
-
deepProperties: __nccwpck_require__(
|
|
873
|
-
deepRequired: __nccwpck_require__(
|
|
874
|
-
formatMinimum: __nccwpck_require__(
|
|
875
|
-
formatMaximum: __nccwpck_require__(
|
|
876
|
-
patternRequired: __nccwpck_require__(
|
|
877
|
-
'switch': __nccwpck_require__(
|
|
878
|
-
select: __nccwpck_require__(
|
|
879
|
-
transform: __nccwpck_require__(
|
|
862
|
+
'instanceof': __nccwpck_require__(7361),
|
|
863
|
+
range: __nccwpck_require__(3088),
|
|
864
|
+
regexp: __nccwpck_require__(2498),
|
|
865
|
+
'typeof': __nccwpck_require__(5663),
|
|
866
|
+
dynamicDefaults: __nccwpck_require__(7565),
|
|
867
|
+
allRequired: __nccwpck_require__(4059),
|
|
868
|
+
anyRequired: __nccwpck_require__(9558),
|
|
869
|
+
oneRequired: __nccwpck_require__(82),
|
|
870
|
+
prohibited: __nccwpck_require__(4100),
|
|
871
|
+
uniqueItemProperties: __nccwpck_require__(9944),
|
|
872
|
+
deepProperties: __nccwpck_require__(2996),
|
|
873
|
+
deepRequired: __nccwpck_require__(1919),
|
|
874
|
+
formatMinimum: __nccwpck_require__(2023),
|
|
875
|
+
formatMaximum: __nccwpck_require__(5661),
|
|
876
|
+
patternRequired: __nccwpck_require__(1879),
|
|
877
|
+
'switch': __nccwpck_require__(8641),
|
|
878
|
+
select: __nccwpck_require__(2194),
|
|
879
|
+
transform: __nccwpck_require__(7249)
|
|
880
880
|
};
|
|
881
881
|
|
|
882
882
|
|
|
883
883
|
/***/ }),
|
|
884
884
|
|
|
885
|
-
/***/
|
|
885
|
+
/***/ 7361:
|
|
886
886
|
/***/ (function(module) {
|
|
887
887
|
|
|
888
888
|
"use strict";
|
|
@@ -948,7 +948,7 @@ module.exports = function defFunc(ajv) {
|
|
|
948
948
|
|
|
949
949
|
/***/ }),
|
|
950
950
|
|
|
951
|
-
/***/
|
|
951
|
+
/***/ 82:
|
|
952
952
|
/***/ (function(module) {
|
|
953
953
|
|
|
954
954
|
"use strict";
|
|
@@ -980,7 +980,7 @@ module.exports = function defFunc(ajv) {
|
|
|
980
980
|
|
|
981
981
|
/***/ }),
|
|
982
982
|
|
|
983
|
-
/***/
|
|
983
|
+
/***/ 1879:
|
|
984
984
|
/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
|
|
985
985
|
|
|
986
986
|
"use strict";
|
|
@@ -989,7 +989,7 @@ module.exports = function defFunc(ajv) {
|
|
|
989
989
|
module.exports = function defFunc(ajv) {
|
|
990
990
|
defFunc.definition = {
|
|
991
991
|
type: 'object',
|
|
992
|
-
inline: __nccwpck_require__(
|
|
992
|
+
inline: __nccwpck_require__(3092),
|
|
993
993
|
statements: true,
|
|
994
994
|
errors: 'full',
|
|
995
995
|
metaSchema: {
|
|
@@ -1009,7 +1009,7 @@ module.exports = function defFunc(ajv) {
|
|
|
1009
1009
|
|
|
1010
1010
|
/***/ }),
|
|
1011
1011
|
|
|
1012
|
-
/***/
|
|
1012
|
+
/***/ 4100:
|
|
1013
1013
|
/***/ (function(module) {
|
|
1014
1014
|
|
|
1015
1015
|
"use strict";
|
|
@@ -1041,7 +1041,7 @@ module.exports = function defFunc(ajv) {
|
|
|
1041
1041
|
|
|
1042
1042
|
/***/ }),
|
|
1043
1043
|
|
|
1044
|
-
/***/
|
|
1044
|
+
/***/ 3088:
|
|
1045
1045
|
/***/ (function(module) {
|
|
1046
1046
|
|
|
1047
1047
|
"use strict";
|
|
@@ -1085,7 +1085,7 @@ module.exports = function defFunc(ajv) {
|
|
|
1085
1085
|
|
|
1086
1086
|
/***/ }),
|
|
1087
1087
|
|
|
1088
|
-
/***/
|
|
1088
|
+
/***/ 2498:
|
|
1089
1089
|
/***/ (function(module) {
|
|
1090
1090
|
|
|
1091
1091
|
"use strict";
|
|
@@ -1129,13 +1129,13 @@ module.exports = function defFunc(ajv) {
|
|
|
1129
1129
|
|
|
1130
1130
|
/***/ }),
|
|
1131
1131
|
|
|
1132
|
-
/***/
|
|
1132
|
+
/***/ 2194:
|
|
1133
1133
|
/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
|
|
1134
1134
|
|
|
1135
1135
|
"use strict";
|
|
1136
1136
|
|
|
1137
1137
|
|
|
1138
|
-
var util = __nccwpck_require__(
|
|
1138
|
+
var util = __nccwpck_require__(7365);
|
|
1139
1139
|
|
|
1140
1140
|
module.exports = function defFunc(ajv) {
|
|
1141
1141
|
if (!ajv._opts.$data) {
|
|
@@ -1216,13 +1216,13 @@ module.exports = function defFunc(ajv) {
|
|
|
1216
1216
|
|
|
1217
1217
|
/***/ }),
|
|
1218
1218
|
|
|
1219
|
-
/***/
|
|
1219
|
+
/***/ 8641:
|
|
1220
1220
|
/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
|
|
1221
1221
|
|
|
1222
1222
|
"use strict";
|
|
1223
1223
|
|
|
1224
1224
|
|
|
1225
|
-
var util = __nccwpck_require__(
|
|
1225
|
+
var util = __nccwpck_require__(7365);
|
|
1226
1226
|
|
|
1227
1227
|
module.exports = function defFunc(ajv) {
|
|
1228
1228
|
if (ajv.RULES.keywords.switch && ajv.RULES.keywords.if) return;
|
|
@@ -1230,7 +1230,7 @@ module.exports = function defFunc(ajv) {
|
|
|
1230
1230
|
var metaSchemaRef = util.metaSchemaRef(ajv);
|
|
1231
1231
|
|
|
1232
1232
|
defFunc.definition = {
|
|
1233
|
-
inline: __nccwpck_require__(
|
|
1233
|
+
inline: __nccwpck_require__(930),
|
|
1234
1234
|
statements: true,
|
|
1235
1235
|
errors: 'full',
|
|
1236
1236
|
metaSchema: {
|
|
@@ -1262,7 +1262,7 @@ module.exports = function defFunc(ajv) {
|
|
|
1262
1262
|
|
|
1263
1263
|
/***/ }),
|
|
1264
1264
|
|
|
1265
|
-
/***/
|
|
1265
|
+
/***/ 7249:
|
|
1266
1266
|
/***/ (function(module) {
|
|
1267
1267
|
|
|
1268
1268
|
"use strict";
|
|
@@ -1350,7 +1350,7 @@ module.exports = function defFunc (ajv) {
|
|
|
1350
1350
|
|
|
1351
1351
|
/***/ }),
|
|
1352
1352
|
|
|
1353
|
-
/***/
|
|
1353
|
+
/***/ 5663:
|
|
1354
1354
|
/***/ (function(module) {
|
|
1355
1355
|
|
|
1356
1356
|
"use strict";
|
|
@@ -1390,7 +1390,7 @@ module.exports = function defFunc(ajv) {
|
|
|
1390
1390
|
|
|
1391
1391
|
/***/ }),
|
|
1392
1392
|
|
|
1393
|
-
/***/
|
|
1393
|
+
/***/ 9944:
|
|
1394
1394
|
/***/ (function(module) {
|
|
1395
1395
|
|
|
1396
1396
|
"use strict";
|
|
@@ -1457,21 +1457,21 @@ function getScalarKeys(keys, schema) {
|
|
|
1457
1457
|
|
|
1458
1458
|
/***/ }),
|
|
1459
1459
|
|
|
1460
|
-
/***/
|
|
1460
|
+
/***/ 4782:
|
|
1461
1461
|
/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
|
|
1462
1462
|
|
|
1463
1463
|
"use strict";
|
|
1464
1464
|
|
|
1465
1465
|
|
|
1466
|
-
var compileSchema = __nccwpck_require__(
|
|
1467
|
-
, resolve = __nccwpck_require__(
|
|
1468
|
-
, Cache = __nccwpck_require__(
|
|
1469
|
-
, SchemaObject = __nccwpck_require__(
|
|
1470
|
-
, stableStringify = __nccwpck_require__(
|
|
1471
|
-
, formats = __nccwpck_require__(
|
|
1472
|
-
, rules = __nccwpck_require__(
|
|
1473
|
-
, $dataMetaSchema = __nccwpck_require__(
|
|
1474
|
-
, util = __nccwpck_require__(
|
|
1466
|
+
var compileSchema = __nccwpck_require__(9303)
|
|
1467
|
+
, resolve = __nccwpck_require__(9916)
|
|
1468
|
+
, Cache = __nccwpck_require__(6802)
|
|
1469
|
+
, SchemaObject = __nccwpck_require__(726)
|
|
1470
|
+
, stableStringify = __nccwpck_require__(5905)
|
|
1471
|
+
, formats = __nccwpck_require__(1117)
|
|
1472
|
+
, rules = __nccwpck_require__(5001)
|
|
1473
|
+
, $dataMetaSchema = __nccwpck_require__(2168)
|
|
1474
|
+
, util = __nccwpck_require__(1856);
|
|
1475
1475
|
|
|
1476
1476
|
module.exports = Ajv;
|
|
1477
1477
|
|
|
@@ -1488,14 +1488,14 @@ Ajv.prototype.errorsText = errorsText;
|
|
|
1488
1488
|
Ajv.prototype._addSchema = _addSchema;
|
|
1489
1489
|
Ajv.prototype._compile = _compile;
|
|
1490
1490
|
|
|
1491
|
-
Ajv.prototype.compileAsync = __nccwpck_require__(
|
|
1492
|
-
var customKeyword = __nccwpck_require__(
|
|
1491
|
+
Ajv.prototype.compileAsync = __nccwpck_require__(7311);
|
|
1492
|
+
var customKeyword = __nccwpck_require__(1701);
|
|
1493
1493
|
Ajv.prototype.addKeyword = customKeyword.add;
|
|
1494
1494
|
Ajv.prototype.getKeyword = customKeyword.get;
|
|
1495
1495
|
Ajv.prototype.removeKeyword = customKeyword.remove;
|
|
1496
1496
|
Ajv.prototype.validateKeyword = customKeyword.validate;
|
|
1497
1497
|
|
|
1498
|
-
var errorClasses = __nccwpck_require__(
|
|
1498
|
+
var errorClasses = __nccwpck_require__(9160);
|
|
1499
1499
|
Ajv.ValidationError = errorClasses.Validation;
|
|
1500
1500
|
Ajv.MissingRefError = errorClasses.MissingRef;
|
|
1501
1501
|
Ajv.$dataMetaSchema = $dataMetaSchema;
|
|
@@ -1904,11 +1904,11 @@ function addFormat(name, format) {
|
|
|
1904
1904
|
function addDefaultMetaSchema(self) {
|
|
1905
1905
|
var $dataSchema;
|
|
1906
1906
|
if (self._opts.$data) {
|
|
1907
|
-
$dataSchema = __nccwpck_require__(
|
|
1907
|
+
$dataSchema = __nccwpck_require__(7664);
|
|
1908
1908
|
self.addMetaSchema($dataSchema, $dataSchema.$id, true);
|
|
1909
1909
|
}
|
|
1910
1910
|
if (self._opts.meta === false) return;
|
|
1911
|
-
var metaSchema = __nccwpck_require__(
|
|
1911
|
+
var metaSchema = __nccwpck_require__(7136);
|
|
1912
1912
|
if (self._opts.$data) metaSchema = $dataMetaSchema(metaSchema, META_SUPPORT_DATA);
|
|
1913
1913
|
self.addMetaSchema(metaSchema, META_SCHEMA_ID, true);
|
|
1914
1914
|
self._refs['http://json-schema.org/schema'] = META_SCHEMA_ID;
|
|
@@ -1971,7 +1971,7 @@ function noop() {}
|
|
|
1971
1971
|
|
|
1972
1972
|
/***/ }),
|
|
1973
1973
|
|
|
1974
|
-
/***/
|
|
1974
|
+
/***/ 6802:
|
|
1975
1975
|
/***/ (function(module) {
|
|
1976
1976
|
|
|
1977
1977
|
"use strict";
|
|
@@ -2005,13 +2005,13 @@ Cache.prototype.clear = function Cache_clear() {
|
|
|
2005
2005
|
|
|
2006
2006
|
/***/ }),
|
|
2007
2007
|
|
|
2008
|
-
/***/
|
|
2008
|
+
/***/ 7311:
|
|
2009
2009
|
/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
|
|
2010
2010
|
|
|
2011
2011
|
"use strict";
|
|
2012
2012
|
|
|
2013
2013
|
|
|
2014
|
-
var MissingRefError = __nccwpck_require__(
|
|
2014
|
+
var MissingRefError = (__nccwpck_require__(9160).MissingRef);
|
|
2015
2015
|
|
|
2016
2016
|
module.exports = compileAsync;
|
|
2017
2017
|
|
|
@@ -2103,13 +2103,13 @@ function compileAsync(schema, meta, callback) {
|
|
|
2103
2103
|
|
|
2104
2104
|
/***/ }),
|
|
2105
2105
|
|
|
2106
|
-
/***/
|
|
2106
|
+
/***/ 9160:
|
|
2107
2107
|
/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
|
|
2108
2108
|
|
|
2109
2109
|
"use strict";
|
|
2110
2110
|
|
|
2111
2111
|
|
|
2112
|
-
var resolve = __nccwpck_require__(
|
|
2112
|
+
var resolve = __nccwpck_require__(9916);
|
|
2113
2113
|
|
|
2114
2114
|
module.exports = {
|
|
2115
2115
|
Validation: errorSubclass(ValidationError),
|
|
@@ -2145,13 +2145,13 @@ function errorSubclass(Subclass) {
|
|
|
2145
2145
|
|
|
2146
2146
|
/***/ }),
|
|
2147
2147
|
|
|
2148
|
-
/***/
|
|
2148
|
+
/***/ 1117:
|
|
2149
2149
|
/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
|
|
2150
2150
|
|
|
2151
2151
|
"use strict";
|
|
2152
2152
|
|
|
2153
2153
|
|
|
2154
|
-
var util = __nccwpck_require__(
|
|
2154
|
+
var util = __nccwpck_require__(1856);
|
|
2155
2155
|
|
|
2156
2156
|
var DATE = /^(\d\d\d\d)-(\d\d)-(\d\d)$/;
|
|
2157
2157
|
var DAYS = [0,31,28,31,30,31,30,31,31,30,31,30,31];
|
|
@@ -2295,25 +2295,25 @@ function regex(str) {
|
|
|
2295
2295
|
|
|
2296
2296
|
/***/ }),
|
|
2297
2297
|
|
|
2298
|
-
/***/
|
|
2298
|
+
/***/ 9303:
|
|
2299
2299
|
/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
|
|
2300
2300
|
|
|
2301
2301
|
"use strict";
|
|
2302
2302
|
|
|
2303
2303
|
|
|
2304
|
-
var resolve = __nccwpck_require__(
|
|
2305
|
-
, util = __nccwpck_require__(
|
|
2306
|
-
, errorClasses = __nccwpck_require__(
|
|
2307
|
-
, stableStringify = __nccwpck_require__(
|
|
2304
|
+
var resolve = __nccwpck_require__(9916)
|
|
2305
|
+
, util = __nccwpck_require__(1856)
|
|
2306
|
+
, errorClasses = __nccwpck_require__(9160)
|
|
2307
|
+
, stableStringify = __nccwpck_require__(5905);
|
|
2308
2308
|
|
|
2309
|
-
var validateGenerator = __nccwpck_require__(
|
|
2309
|
+
var validateGenerator = __nccwpck_require__(8443);
|
|
2310
2310
|
|
|
2311
2311
|
/**
|
|
2312
2312
|
* Functions below are used inside compiled validations function
|
|
2313
2313
|
*/
|
|
2314
2314
|
|
|
2315
2315
|
var ucs2length = util.ucs2length;
|
|
2316
|
-
var equal = __nccwpck_require__(
|
|
2316
|
+
var equal = __nccwpck_require__(7933);
|
|
2317
2317
|
|
|
2318
2318
|
// this error is thrown by async schemas to return validation errors via exception
|
|
2319
2319
|
var ValidationError = errorClasses.Validation;
|
|
@@ -2690,17 +2690,17 @@ function vars(arr, statement) {
|
|
|
2690
2690
|
|
|
2691
2691
|
/***/ }),
|
|
2692
2692
|
|
|
2693
|
-
/***/
|
|
2693
|
+
/***/ 9916:
|
|
2694
2694
|
/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
|
|
2695
2695
|
|
|
2696
2696
|
"use strict";
|
|
2697
2697
|
|
|
2698
2698
|
|
|
2699
|
-
var URI = __nccwpck_require__(
|
|
2700
|
-
, equal = __nccwpck_require__(
|
|
2701
|
-
, util = __nccwpck_require__(
|
|
2702
|
-
, SchemaObject = __nccwpck_require__(
|
|
2703
|
-
, traverse = __nccwpck_require__(
|
|
2699
|
+
var URI = __nccwpck_require__(2431)
|
|
2700
|
+
, equal = __nccwpck_require__(7933)
|
|
2701
|
+
, util = __nccwpck_require__(1856)
|
|
2702
|
+
, SchemaObject = __nccwpck_require__(726)
|
|
2703
|
+
, traverse = __nccwpck_require__(1342);
|
|
2704
2704
|
|
|
2705
2705
|
module.exports = resolve;
|
|
2706
2706
|
|
|
@@ -2968,14 +2968,14 @@ function resolveIds(schema) {
|
|
|
2968
2968
|
|
|
2969
2969
|
/***/ }),
|
|
2970
2970
|
|
|
2971
|
-
/***/
|
|
2971
|
+
/***/ 5001:
|
|
2972
2972
|
/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
|
|
2973
2973
|
|
|
2974
2974
|
"use strict";
|
|
2975
2975
|
|
|
2976
2976
|
|
|
2977
|
-
var ruleModules = __nccwpck_require__(
|
|
2978
|
-
, toHash = __nccwpck_require__(
|
|
2977
|
+
var ruleModules = __nccwpck_require__(2503)
|
|
2978
|
+
, toHash = (__nccwpck_require__(1856).toHash);
|
|
2979
2979
|
|
|
2980
2980
|
module.exports = function rules() {
|
|
2981
2981
|
var RULES = [
|
|
@@ -3042,13 +3042,13 @@ module.exports = function rules() {
|
|
|
3042
3042
|
|
|
3043
3043
|
/***/ }),
|
|
3044
3044
|
|
|
3045
|
-
/***/
|
|
3045
|
+
/***/ 726:
|
|
3046
3046
|
/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
|
|
3047
3047
|
|
|
3048
3048
|
"use strict";
|
|
3049
3049
|
|
|
3050
3050
|
|
|
3051
|
-
var util = __nccwpck_require__(
|
|
3051
|
+
var util = __nccwpck_require__(1856);
|
|
3052
3052
|
|
|
3053
3053
|
module.exports = SchemaObject;
|
|
3054
3054
|
|
|
@@ -3059,7 +3059,7 @@ function SchemaObject(obj) {
|
|
|
3059
3059
|
|
|
3060
3060
|
/***/ }),
|
|
3061
3061
|
|
|
3062
|
-
/***/
|
|
3062
|
+
/***/ 1507:
|
|
3063
3063
|
/***/ (function(module) {
|
|
3064
3064
|
|
|
3065
3065
|
"use strict";
|
|
@@ -3087,7 +3087,7 @@ module.exports = function ucs2length(str) {
|
|
|
3087
3087
|
|
|
3088
3088
|
/***/ }),
|
|
3089
3089
|
|
|
3090
|
-
/***/
|
|
3090
|
+
/***/ 1856:
|
|
3091
3091
|
/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
|
|
3092
3092
|
|
|
3093
3093
|
"use strict";
|
|
@@ -3102,8 +3102,8 @@ module.exports = {
|
|
|
3102
3102
|
toHash: toHash,
|
|
3103
3103
|
getProperty: getProperty,
|
|
3104
3104
|
escapeQuotes: escapeQuotes,
|
|
3105
|
-
equal: __nccwpck_require__(
|
|
3106
|
-
ucs2length: __nccwpck_require__(
|
|
3105
|
+
equal: __nccwpck_require__(7933),
|
|
3106
|
+
ucs2length: __nccwpck_require__(1507),
|
|
3107
3107
|
varOccurences: varOccurences,
|
|
3108
3108
|
varReplace: varReplace,
|
|
3109
3109
|
schemaHasRules: schemaHasRules,
|
|
@@ -3334,7 +3334,7 @@ function unescapeJsonPointer(str) {
|
|
|
3334
3334
|
|
|
3335
3335
|
/***/ }),
|
|
3336
3336
|
|
|
3337
|
-
/***/
|
|
3337
|
+
/***/ 2168:
|
|
3338
3338
|
/***/ (function(module) {
|
|
3339
3339
|
|
|
3340
3340
|
"use strict";
|
|
@@ -3391,13 +3391,13 @@ module.exports = function (metaSchema, keywordsJsonPointers) {
|
|
|
3391
3391
|
|
|
3392
3392
|
/***/ }),
|
|
3393
3393
|
|
|
3394
|
-
/***/
|
|
3394
|
+
/***/ 8036:
|
|
3395
3395
|
/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
|
|
3396
3396
|
|
|
3397
3397
|
"use strict";
|
|
3398
3398
|
|
|
3399
3399
|
|
|
3400
|
-
var metaSchema = __nccwpck_require__(
|
|
3400
|
+
var metaSchema = __nccwpck_require__(7136);
|
|
3401
3401
|
|
|
3402
3402
|
module.exports = {
|
|
3403
3403
|
$id: 'https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js',
|
|
@@ -3436,7 +3436,7 @@ module.exports = {
|
|
|
3436
3436
|
|
|
3437
3437
|
/***/ }),
|
|
3438
3438
|
|
|
3439
|
-
/***/
|
|
3439
|
+
/***/ 4498:
|
|
3440
3440
|
/***/ (function(module) {
|
|
3441
3441
|
|
|
3442
3442
|
"use strict";
|
|
@@ -3607,7 +3607,7 @@ module.exports = function generate__limit(it, $keyword, $ruleType) {
|
|
|
3607
3607
|
|
|
3608
3608
|
/***/ }),
|
|
3609
3609
|
|
|
3610
|
-
/***/
|
|
3610
|
+
/***/ 9884:
|
|
3611
3611
|
/***/ (function(module) {
|
|
3612
3612
|
|
|
3613
3613
|
"use strict";
|
|
@@ -3695,7 +3695,7 @@ module.exports = function generate__limitItems(it, $keyword, $ruleType) {
|
|
|
3695
3695
|
|
|
3696
3696
|
/***/ }),
|
|
3697
3697
|
|
|
3698
|
-
/***/
|
|
3698
|
+
/***/ 2739:
|
|
3699
3699
|
/***/ (function(module) {
|
|
3700
3700
|
|
|
3701
3701
|
"use strict";
|
|
@@ -3788,7 +3788,7 @@ module.exports = function generate__limitLength(it, $keyword, $ruleType) {
|
|
|
3788
3788
|
|
|
3789
3789
|
/***/ }),
|
|
3790
3790
|
|
|
3791
|
-
/***/
|
|
3791
|
+
/***/ 7210:
|
|
3792
3792
|
/***/ (function(module) {
|
|
3793
3793
|
|
|
3794
3794
|
"use strict";
|
|
@@ -3876,7 +3876,7 @@ module.exports = function generate__limitProperties(it, $keyword, $ruleType) {
|
|
|
3876
3876
|
|
|
3877
3877
|
/***/ }),
|
|
3878
3878
|
|
|
3879
|
-
/***/
|
|
3879
|
+
/***/ 1487:
|
|
3880
3880
|
/***/ (function(module) {
|
|
3881
3881
|
|
|
3882
3882
|
"use strict";
|
|
@@ -3926,7 +3926,7 @@ module.exports = function generate_allOf(it, $keyword, $ruleType) {
|
|
|
3926
3926
|
|
|
3927
3927
|
/***/ }),
|
|
3928
3928
|
|
|
3929
|
-
/***/
|
|
3929
|
+
/***/ 7082:
|
|
3930
3930
|
/***/ (function(module) {
|
|
3931
3931
|
|
|
3932
3932
|
"use strict";
|
|
@@ -4007,7 +4007,7 @@ module.exports = function generate_anyOf(it, $keyword, $ruleType) {
|
|
|
4007
4007
|
|
|
4008
4008
|
/***/ }),
|
|
4009
4009
|
|
|
4010
|
-
/***/
|
|
4010
|
+
/***/ 8350:
|
|
4011
4011
|
/***/ (function(module) {
|
|
4012
4012
|
|
|
4013
4013
|
"use strict";
|
|
@@ -4029,7 +4029,7 @@ module.exports = function generate_comment(it, $keyword, $ruleType) {
|
|
|
4029
4029
|
|
|
4030
4030
|
/***/ }),
|
|
4031
4031
|
|
|
4032
|
-
/***/
|
|
4032
|
+
/***/ 6304:
|
|
4033
4033
|
/***/ (function(module) {
|
|
4034
4034
|
|
|
4035
4035
|
"use strict";
|
|
@@ -4093,7 +4093,7 @@ module.exports = function generate_const(it, $keyword, $ruleType) {
|
|
|
4093
4093
|
|
|
4094
4094
|
/***/ }),
|
|
4095
4095
|
|
|
4096
|
-
/***/
|
|
4096
|
+
/***/ 2215:
|
|
4097
4097
|
/***/ (function(module) {
|
|
4098
4098
|
|
|
4099
4099
|
"use strict";
|
|
@@ -4182,7 +4182,7 @@ module.exports = function generate_contains(it, $keyword, $ruleType) {
|
|
|
4182
4182
|
|
|
4183
4183
|
/***/ }),
|
|
4184
4184
|
|
|
4185
|
-
/***/
|
|
4185
|
+
/***/ 307:
|
|
4186
4186
|
/***/ (function(module) {
|
|
4187
4187
|
|
|
4188
4188
|
"use strict";
|
|
@@ -4418,7 +4418,7 @@ module.exports = function generate_custom(it, $keyword, $ruleType) {
|
|
|
4418
4418
|
|
|
4419
4419
|
/***/ }),
|
|
4420
4420
|
|
|
4421
|
-
/***/
|
|
4421
|
+
/***/ 3721:
|
|
4422
4422
|
/***/ (function(module) {
|
|
4423
4423
|
|
|
4424
4424
|
"use strict";
|
|
@@ -4594,7 +4594,7 @@ module.exports = function generate_dependencies(it, $keyword, $ruleType) {
|
|
|
4594
4594
|
|
|
4595
4595
|
/***/ }),
|
|
4596
4596
|
|
|
4597
|
-
/***/
|
|
4597
|
+
/***/ 1565:
|
|
4598
4598
|
/***/ (function(module) {
|
|
4599
4599
|
|
|
4600
4600
|
"use strict";
|
|
@@ -4668,7 +4668,7 @@ module.exports = function generate_enum(it, $keyword, $ruleType) {
|
|
|
4668
4668
|
|
|
4669
4669
|
/***/ }),
|
|
4670
4670
|
|
|
4671
|
-
/***/
|
|
4671
|
+
/***/ 3277:
|
|
4672
4672
|
/***/ (function(module) {
|
|
4673
4673
|
|
|
4674
4674
|
"use strict";
|
|
@@ -4826,7 +4826,7 @@ module.exports = function generate_format(it, $keyword, $ruleType) {
|
|
|
4826
4826
|
|
|
4827
4827
|
/***/ }),
|
|
4828
4828
|
|
|
4829
|
-
/***/
|
|
4829
|
+
/***/ 4688:
|
|
4830
4830
|
/***/ (function(module) {
|
|
4831
4831
|
|
|
4832
4832
|
"use strict";
|
|
@@ -4937,7 +4937,7 @@ module.exports = function generate_if(it, $keyword, $ruleType) {
|
|
|
4937
4937
|
|
|
4938
4938
|
/***/ }),
|
|
4939
4939
|
|
|
4940
|
-
/***/
|
|
4940
|
+
/***/ 2503:
|
|
4941
4941
|
/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
|
|
4942
4942
|
|
|
4943
4943
|
"use strict";
|
|
@@ -4945,40 +4945,40 @@ module.exports = function generate_if(it, $keyword, $ruleType) {
|
|
|
4945
4945
|
|
|
4946
4946
|
//all requires must be explicit because browserify won't work with dynamic requires
|
|
4947
4947
|
module.exports = {
|
|
4948
|
-
'$ref': __nccwpck_require__(
|
|
4949
|
-
allOf: __nccwpck_require__(
|
|
4950
|
-
anyOf: __nccwpck_require__(
|
|
4951
|
-
'$comment': __nccwpck_require__(
|
|
4952
|
-
const: __nccwpck_require__(
|
|
4953
|
-
contains: __nccwpck_require__(
|
|
4954
|
-
dependencies: __nccwpck_require__(
|
|
4955
|
-
'enum': __nccwpck_require__(
|
|
4956
|
-
format: __nccwpck_require__(
|
|
4957
|
-
'if': __nccwpck_require__(
|
|
4958
|
-
items: __nccwpck_require__(
|
|
4959
|
-
maximum: __nccwpck_require__(
|
|
4960
|
-
minimum: __nccwpck_require__(
|
|
4961
|
-
maxItems: __nccwpck_require__(
|
|
4962
|
-
minItems: __nccwpck_require__(
|
|
4963
|
-
maxLength: __nccwpck_require__(
|
|
4964
|
-
minLength: __nccwpck_require__(
|
|
4965
|
-
maxProperties: __nccwpck_require__(
|
|
4966
|
-
minProperties: __nccwpck_require__(
|
|
4967
|
-
multipleOf: __nccwpck_require__(
|
|
4968
|
-
not: __nccwpck_require__(
|
|
4969
|
-
oneOf: __nccwpck_require__(
|
|
4970
|
-
pattern: __nccwpck_require__(
|
|
4971
|
-
properties: __nccwpck_require__(
|
|
4972
|
-
propertyNames: __nccwpck_require__(
|
|
4973
|
-
required: __nccwpck_require__(
|
|
4974
|
-
uniqueItems: __nccwpck_require__(
|
|
4975
|
-
validate: __nccwpck_require__(
|
|
4948
|
+
'$ref': __nccwpck_require__(8279),
|
|
4949
|
+
allOf: __nccwpck_require__(1487),
|
|
4950
|
+
anyOf: __nccwpck_require__(7082),
|
|
4951
|
+
'$comment': __nccwpck_require__(8350),
|
|
4952
|
+
const: __nccwpck_require__(6304),
|
|
4953
|
+
contains: __nccwpck_require__(2215),
|
|
4954
|
+
dependencies: __nccwpck_require__(3721),
|
|
4955
|
+
'enum': __nccwpck_require__(1565),
|
|
4956
|
+
format: __nccwpck_require__(3277),
|
|
4957
|
+
'if': __nccwpck_require__(4688),
|
|
4958
|
+
items: __nccwpck_require__(3955),
|
|
4959
|
+
maximum: __nccwpck_require__(4498),
|
|
4960
|
+
minimum: __nccwpck_require__(4498),
|
|
4961
|
+
maxItems: __nccwpck_require__(9884),
|
|
4962
|
+
minItems: __nccwpck_require__(9884),
|
|
4963
|
+
maxLength: __nccwpck_require__(2739),
|
|
4964
|
+
minLength: __nccwpck_require__(2739),
|
|
4965
|
+
maxProperties: __nccwpck_require__(7210),
|
|
4966
|
+
minProperties: __nccwpck_require__(7210),
|
|
4967
|
+
multipleOf: __nccwpck_require__(4709),
|
|
4968
|
+
not: __nccwpck_require__(2649),
|
|
4969
|
+
oneOf: __nccwpck_require__(8099),
|
|
4970
|
+
pattern: __nccwpck_require__(7123),
|
|
4971
|
+
properties: __nccwpck_require__(7858),
|
|
4972
|
+
propertyNames: __nccwpck_require__(5106),
|
|
4973
|
+
required: __nccwpck_require__(9805),
|
|
4974
|
+
uniqueItems: __nccwpck_require__(4715),
|
|
4975
|
+
validate: __nccwpck_require__(8443)
|
|
4976
4976
|
};
|
|
4977
4977
|
|
|
4978
4978
|
|
|
4979
4979
|
/***/ }),
|
|
4980
4980
|
|
|
4981
|
-
/***/
|
|
4981
|
+
/***/ 3955:
|
|
4982
4982
|
/***/ (function(module) {
|
|
4983
4983
|
|
|
4984
4984
|
"use strict";
|
|
@@ -5126,7 +5126,7 @@ module.exports = function generate_items(it, $keyword, $ruleType) {
|
|
|
5126
5126
|
|
|
5127
5127
|
/***/ }),
|
|
5128
5128
|
|
|
5129
|
-
/***/
|
|
5129
|
+
/***/ 4709:
|
|
5130
5130
|
/***/ (function(module) {
|
|
5131
5131
|
|
|
5132
5132
|
"use strict";
|
|
@@ -5214,7 +5214,7 @@ module.exports = function generate_multipleOf(it, $keyword, $ruleType) {
|
|
|
5214
5214
|
|
|
5215
5215
|
/***/ }),
|
|
5216
5216
|
|
|
5217
|
-
/***/
|
|
5217
|
+
/***/ 2649:
|
|
5218
5218
|
/***/ (function(module) {
|
|
5219
5219
|
|
|
5220
5220
|
"use strict";
|
|
@@ -5306,7 +5306,7 @@ module.exports = function generate_not(it, $keyword, $ruleType) {
|
|
|
5306
5306
|
|
|
5307
5307
|
/***/ }),
|
|
5308
5308
|
|
|
5309
|
-
/***/
|
|
5309
|
+
/***/ 8099:
|
|
5310
5310
|
/***/ (function(module) {
|
|
5311
5311
|
|
|
5312
5312
|
"use strict";
|
|
@@ -5387,7 +5387,7 @@ module.exports = function generate_oneOf(it, $keyword, $ruleType) {
|
|
|
5387
5387
|
|
|
5388
5388
|
/***/ }),
|
|
5389
5389
|
|
|
5390
|
-
/***/
|
|
5390
|
+
/***/ 7123:
|
|
5391
5391
|
/***/ (function(module) {
|
|
5392
5392
|
|
|
5393
5393
|
"use strict";
|
|
@@ -5470,7 +5470,7 @@ module.exports = function generate_pattern(it, $keyword, $ruleType) {
|
|
|
5470
5470
|
|
|
5471
5471
|
/***/ }),
|
|
5472
5472
|
|
|
5473
|
-
/***/
|
|
5473
|
+
/***/ 7858:
|
|
5474
5474
|
/***/ (function(module) {
|
|
5475
5475
|
|
|
5476
5476
|
"use strict";
|
|
@@ -5813,7 +5813,7 @@ module.exports = function generate_properties(it, $keyword, $ruleType) {
|
|
|
5813
5813
|
|
|
5814
5814
|
/***/ }),
|
|
5815
5815
|
|
|
5816
|
-
/***/
|
|
5816
|
+
/***/ 5106:
|
|
5817
5817
|
/***/ (function(module) {
|
|
5818
5818
|
|
|
5819
5819
|
"use strict";
|
|
@@ -5902,7 +5902,7 @@ module.exports = function generate_propertyNames(it, $keyword, $ruleType) {
|
|
|
5902
5902
|
|
|
5903
5903
|
/***/ }),
|
|
5904
5904
|
|
|
5905
|
-
/***/
|
|
5905
|
+
/***/ 8279:
|
|
5906
5906
|
/***/ (function(module) {
|
|
5907
5907
|
|
|
5908
5908
|
"use strict";
|
|
@@ -6034,7 +6034,7 @@ module.exports = function generate_ref(it, $keyword, $ruleType) {
|
|
|
6034
6034
|
|
|
6035
6035
|
/***/ }),
|
|
6036
6036
|
|
|
6037
|
-
/***/
|
|
6037
|
+
/***/ 9805:
|
|
6038
6038
|
/***/ (function(module) {
|
|
6039
6039
|
|
|
6040
6040
|
"use strict";
|
|
@@ -6312,7 +6312,7 @@ module.exports = function generate_required(it, $keyword, $ruleType) {
|
|
|
6312
6312
|
|
|
6313
6313
|
/***/ }),
|
|
6314
6314
|
|
|
6315
|
-
/***/
|
|
6315
|
+
/***/ 4715:
|
|
6316
6316
|
/***/ (function(module) {
|
|
6317
6317
|
|
|
6318
6318
|
"use strict";
|
|
@@ -6406,7 +6406,7 @@ module.exports = function generate_uniqueItems(it, $keyword, $ruleType) {
|
|
|
6406
6406
|
|
|
6407
6407
|
/***/ }),
|
|
6408
6408
|
|
|
6409
|
-
/***/
|
|
6409
|
+
/***/ 8443:
|
|
6410
6410
|
/***/ (function(module) {
|
|
6411
6411
|
|
|
6412
6412
|
"use strict";
|
|
@@ -6896,15 +6896,15 @@ module.exports = function generate_validate(it, $keyword, $ruleType) {
|
|
|
6896
6896
|
|
|
6897
6897
|
/***/ }),
|
|
6898
6898
|
|
|
6899
|
-
/***/
|
|
6899
|
+
/***/ 1701:
|
|
6900
6900
|
/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
|
|
6901
6901
|
|
|
6902
6902
|
"use strict";
|
|
6903
6903
|
|
|
6904
6904
|
|
|
6905
6905
|
var IDENTIFIER = /^[a-z_$][a-z0-9_$-]*$/i;
|
|
6906
|
-
var customRuleCode = __nccwpck_require__(
|
|
6907
|
-
var definitionSchema = __nccwpck_require__(
|
|
6906
|
+
var customRuleCode = __nccwpck_require__(307);
|
|
6907
|
+
var definitionSchema = __nccwpck_require__(8036);
|
|
6908
6908
|
|
|
6909
6909
|
module.exports = {
|
|
6910
6910
|
add: addKeyword,
|
|
@@ -7050,7 +7050,7 @@ function validateKeyword(definition, throwError) {
|
|
|
7050
7050
|
|
|
7051
7051
|
/***/ }),
|
|
7052
7052
|
|
|
7053
|
-
/***/
|
|
7053
|
+
/***/ 7933:
|
|
7054
7054
|
/***/ (function(module) {
|
|
7055
7055
|
|
|
7056
7056
|
"use strict";
|
|
@@ -7104,7 +7104,7 @@ module.exports = function equal(a, b) {
|
|
|
7104
7104
|
|
|
7105
7105
|
/***/ }),
|
|
7106
7106
|
|
|
7107
|
-
/***/
|
|
7107
|
+
/***/ 5905:
|
|
7108
7108
|
/***/ (function(module) {
|
|
7109
7109
|
|
|
7110
7110
|
"use strict";
|
|
@@ -7171,7 +7171,7 @@ module.exports = function (data, opts) {
|
|
|
7171
7171
|
|
|
7172
7172
|
/***/ }),
|
|
7173
7173
|
|
|
7174
|
-
/***/
|
|
7174
|
+
/***/ 1342:
|
|
7175
7175
|
/***/ (function(module) {
|
|
7176
7176
|
|
|
7177
7177
|
"use strict";
|
|
@@ -7268,94 +7268,15 @@ function escapeJsonPtr(str) {
|
|
|
7268
7268
|
|
|
7269
7269
|
/***/ }),
|
|
7270
7270
|
|
|
7271
|
-
/***/
|
|
7272
|
-
/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
|
|
7273
|
-
|
|
7274
|
-
"use strict";
|
|
7275
|
-
|
|
7276
|
-
const Queue = __nccwpck_require__(4718);
|
|
7277
|
-
|
|
7278
|
-
const pLimit = concurrency => {
|
|
7279
|
-
if (!((Number.isInteger(concurrency) || concurrency === Infinity) && concurrency > 0)) {
|
|
7280
|
-
throw new TypeError('Expected `concurrency` to be a number from 1 and up');
|
|
7281
|
-
}
|
|
7282
|
-
|
|
7283
|
-
const queue = new Queue();
|
|
7284
|
-
let activeCount = 0;
|
|
7285
|
-
|
|
7286
|
-
const next = () => {
|
|
7287
|
-
activeCount--;
|
|
7288
|
-
|
|
7289
|
-
if (queue.size > 0) {
|
|
7290
|
-
queue.dequeue()();
|
|
7291
|
-
}
|
|
7292
|
-
};
|
|
7293
|
-
|
|
7294
|
-
const run = async (fn, resolve, ...args) => {
|
|
7295
|
-
activeCount++;
|
|
7296
|
-
|
|
7297
|
-
const result = (async () => fn(...args))();
|
|
7298
|
-
|
|
7299
|
-
resolve(result);
|
|
7300
|
-
|
|
7301
|
-
try {
|
|
7302
|
-
await result;
|
|
7303
|
-
} catch {}
|
|
7304
|
-
|
|
7305
|
-
next();
|
|
7306
|
-
};
|
|
7307
|
-
|
|
7308
|
-
const enqueue = (fn, resolve, ...args) => {
|
|
7309
|
-
queue.enqueue(run.bind(null, fn, resolve, ...args));
|
|
7310
|
-
|
|
7311
|
-
(async () => {
|
|
7312
|
-
// This function needs to wait until the next microtask before comparing
|
|
7313
|
-
// `activeCount` to `concurrency`, because `activeCount` is updated asynchronously
|
|
7314
|
-
// when the run function is dequeued and called. The comparison in the if-statement
|
|
7315
|
-
// needs to happen asynchronously as well to get an up-to-date value for `activeCount`.
|
|
7316
|
-
await Promise.resolve();
|
|
7317
|
-
|
|
7318
|
-
if (activeCount < concurrency && queue.size > 0) {
|
|
7319
|
-
queue.dequeue()();
|
|
7320
|
-
}
|
|
7321
|
-
})();
|
|
7322
|
-
};
|
|
7323
|
-
|
|
7324
|
-
const generator = (fn, ...args) => new Promise(resolve => {
|
|
7325
|
-
enqueue(fn, resolve, ...args);
|
|
7326
|
-
});
|
|
7327
|
-
|
|
7328
|
-
Object.defineProperties(generator, {
|
|
7329
|
-
activeCount: {
|
|
7330
|
-
get: () => activeCount
|
|
7331
|
-
},
|
|
7332
|
-
pendingCount: {
|
|
7333
|
-
get: () => queue.size
|
|
7334
|
-
},
|
|
7335
|
-
clearQueue: {
|
|
7336
|
-
value: () => {
|
|
7337
|
-
queue.clear();
|
|
7338
|
-
}
|
|
7339
|
-
}
|
|
7340
|
-
});
|
|
7341
|
-
|
|
7342
|
-
return generator;
|
|
7343
|
-
};
|
|
7344
|
-
|
|
7345
|
-
module.exports = pLimit;
|
|
7346
|
-
|
|
7347
|
-
|
|
7348
|
-
/***/ }),
|
|
7349
|
-
|
|
7350
|
-
/***/ 98:
|
|
7271
|
+
/***/ 7001:
|
|
7351
7272
|
/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
|
|
7352
7273
|
|
|
7353
|
-
module.exports = __nccwpck_require__(
|
|
7274
|
+
module.exports = __nccwpck_require__(6113).randomBytes
|
|
7354
7275
|
|
|
7355
7276
|
|
|
7356
7277
|
/***/ }),
|
|
7357
7278
|
|
|
7358
|
-
/***/
|
|
7279
|
+
/***/ 6751:
|
|
7359
7280
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
|
7360
7281
|
|
|
7361
7282
|
"use strict";
|
|
@@ -7364,12 +7285,12 @@ module.exports = __nccwpck_require__(6417).randomBytes
|
|
|
7364
7285
|
Object.defineProperty(exports, "__esModule", ({
|
|
7365
7286
|
value: true
|
|
7366
7287
|
}));
|
|
7367
|
-
exports
|
|
7288
|
+
exports["default"] = void 0;
|
|
7368
7289
|
|
|
7369
7290
|
const {
|
|
7370
7291
|
stringHints,
|
|
7371
7292
|
numberHints
|
|
7372
|
-
} = __nccwpck_require__(
|
|
7293
|
+
} = __nccwpck_require__(357);
|
|
7373
7294
|
/** @typedef {import("json-schema").JSONSchema6} JSONSchema6 */
|
|
7374
7295
|
|
|
7375
7296
|
/** @typedef {import("json-schema").JSONSchema7} JSONSchema7 */
|
|
@@ -8629,11 +8550,11 @@ class ValidationError extends Error {
|
|
|
8629
8550
|
}
|
|
8630
8551
|
|
|
8631
8552
|
var _default = ValidationError;
|
|
8632
|
-
exports
|
|
8553
|
+
exports["default"] = _default;
|
|
8633
8554
|
|
|
8634
8555
|
/***/ }),
|
|
8635
8556
|
|
|
8636
|
-
/***/
|
|
8557
|
+
/***/ 8546:
|
|
8637
8558
|
/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
|
|
8638
8559
|
|
|
8639
8560
|
"use strict";
|
|
@@ -8642,7 +8563,7 @@ exports.default = _default;
|
|
|
8642
8563
|
const {
|
|
8643
8564
|
validate,
|
|
8644
8565
|
ValidationError
|
|
8645
|
-
} = __nccwpck_require__(
|
|
8566
|
+
} = __nccwpck_require__(5066);
|
|
8646
8567
|
|
|
8647
8568
|
module.exports = {
|
|
8648
8569
|
validate,
|
|
@@ -8651,7 +8572,7 @@ module.exports = {
|
|
|
8651
8572
|
|
|
8652
8573
|
/***/ }),
|
|
8653
8574
|
|
|
8654
|
-
/***/
|
|
8575
|
+
/***/ 9:
|
|
8655
8576
|
/***/ (function(__unused_webpack_module, exports) {
|
|
8656
8577
|
|
|
8657
8578
|
"use strict";
|
|
@@ -8660,7 +8581,7 @@ module.exports = {
|
|
|
8660
8581
|
Object.defineProperty(exports, "__esModule", ({
|
|
8661
8582
|
value: true
|
|
8662
8583
|
}));
|
|
8663
|
-
exports
|
|
8584
|
+
exports["default"] = void 0;
|
|
8664
8585
|
|
|
8665
8586
|
/** @typedef {import("ajv").Ajv} Ajv */
|
|
8666
8587
|
|
|
@@ -8747,11 +8668,11 @@ function addAbsolutePathKeyword(ajv) {
|
|
|
8747
8668
|
}
|
|
8748
8669
|
|
|
8749
8670
|
var _default = addAbsolutePathKeyword;
|
|
8750
|
-
exports
|
|
8671
|
+
exports["default"] = _default;
|
|
8751
8672
|
|
|
8752
8673
|
/***/ }),
|
|
8753
8674
|
|
|
8754
|
-
/***/
|
|
8675
|
+
/***/ 8554:
|
|
8755
8676
|
/***/ (function(module) {
|
|
8756
8677
|
|
|
8757
8678
|
"use strict";
|
|
@@ -8921,13 +8842,13 @@ module.exports = Range;
|
|
|
8921
8842
|
|
|
8922
8843
|
/***/ }),
|
|
8923
8844
|
|
|
8924
|
-
/***/
|
|
8845
|
+
/***/ 357:
|
|
8925
8846
|
/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
|
|
8926
8847
|
|
|
8927
8848
|
"use strict";
|
|
8928
8849
|
|
|
8929
8850
|
|
|
8930
|
-
const Range = __nccwpck_require__(
|
|
8851
|
+
const Range = __nccwpck_require__(8554);
|
|
8931
8852
|
/** @typedef {import("../validate").Schema} Schema */
|
|
8932
8853
|
|
|
8933
8854
|
/**
|
|
@@ -9033,7 +8954,7 @@ module.exports.numberHints = function numberHints(schema, logic) {
|
|
|
9033
8954
|
|
|
9034
8955
|
/***/ }),
|
|
9035
8956
|
|
|
9036
|
-
/***/
|
|
8957
|
+
/***/ 5066:
|
|
9037
8958
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
|
9038
8959
|
|
|
9039
8960
|
"use strict";
|
|
@@ -9050,16 +8971,16 @@ Object.defineProperty(exports, "ValidationError", ({
|
|
|
9050
8971
|
}
|
|
9051
8972
|
}));
|
|
9052
8973
|
|
|
9053
|
-
var _absolutePath = _interopRequireDefault(__nccwpck_require__(
|
|
8974
|
+
var _absolutePath = _interopRequireDefault(__nccwpck_require__(9));
|
|
9054
8975
|
|
|
9055
|
-
var _ValidationError = _interopRequireDefault(__nccwpck_require__(
|
|
8976
|
+
var _ValidationError = _interopRequireDefault(__nccwpck_require__(6751));
|
|
9056
8977
|
|
|
9057
8978
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9058
8979
|
|
|
9059
8980
|
// Use CommonJS require for ajv libs so TypeScript consumers aren't locked into esModuleInterop (see #110).
|
|
9060
|
-
const Ajv = __nccwpck_require__(
|
|
8981
|
+
const Ajv = __nccwpck_require__(4782);
|
|
9061
8982
|
|
|
9062
|
-
const ajvKeywords = __nccwpck_require__(
|
|
8983
|
+
const ajvKeywords = __nccwpck_require__(7566);
|
|
9063
8984
|
/** @typedef {import("json-schema").JSONSchema4} JSONSchema4 */
|
|
9064
8985
|
|
|
9065
8986
|
/** @typedef {import("json-schema").JSONSchema6} JSONSchema6 */
|
|
@@ -9203,7 +9124,7 @@ function filterErrors(errors) {
|
|
|
9203
9124
|
|
|
9204
9125
|
/***/ }),
|
|
9205
9126
|
|
|
9206
|
-
/***/
|
|
9127
|
+
/***/ 6882:
|
|
9207
9128
|
/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
|
|
9208
9129
|
|
|
9209
9130
|
"use strict";
|
|
@@ -9215,7 +9136,7 @@ See the accompanying LICENSE file for terms.
|
|
|
9215
9136
|
|
|
9216
9137
|
|
|
9217
9138
|
|
|
9218
|
-
var randomBytes = __nccwpck_require__(
|
|
9139
|
+
var randomBytes = __nccwpck_require__(7001);
|
|
9219
9140
|
|
|
9220
9141
|
// Generate an internal UID to make the regexp pattern harder to guess.
|
|
9221
9142
|
var UID_LENGTH = 16;
|
|
@@ -9479,7 +9400,7 @@ module.exports = function serialize(obj, options) {
|
|
|
9479
9400
|
|
|
9480
9401
|
/***/ }),
|
|
9481
9402
|
|
|
9482
|
-
/***/
|
|
9403
|
+
/***/ 2035:
|
|
9483
9404
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
|
9484
9405
|
|
|
9485
9406
|
/* -*- Mode: js; js-indent-level: 2; -*- */
|
|
@@ -9489,7 +9410,7 @@ module.exports = function serialize(obj, options) {
|
|
|
9489
9410
|
* http://opensource.org/licenses/BSD-3-Clause
|
|
9490
9411
|
*/
|
|
9491
9412
|
|
|
9492
|
-
var util = __nccwpck_require__(
|
|
9413
|
+
var util = __nccwpck_require__(1320);
|
|
9493
9414
|
var has = Object.prototype.hasOwnProperty;
|
|
9494
9415
|
var hasNativeMap = typeof Map !== "undefined";
|
|
9495
9416
|
|
|
@@ -9607,7 +9528,7 @@ exports.I = ArraySet;
|
|
|
9607
9528
|
|
|
9608
9529
|
/***/ }),
|
|
9609
9530
|
|
|
9610
|
-
/***/
|
|
9531
|
+
/***/ 380:
|
|
9611
9532
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
|
9612
9533
|
|
|
9613
9534
|
/* -*- Mode: js; js-indent-level: 2; -*- */
|
|
@@ -9647,7 +9568,7 @@ exports.I = ArraySet;
|
|
|
9647
9568
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
9648
9569
|
*/
|
|
9649
9570
|
|
|
9650
|
-
var base64 = __nccwpck_require__(
|
|
9571
|
+
var base64 = __nccwpck_require__(9069);
|
|
9651
9572
|
|
|
9652
9573
|
// A single base 64 digit can contain 6 bits of data. For the base 64 variable
|
|
9653
9574
|
// length quantities we use in the source map spec, the first bit is the sign,
|
|
@@ -9754,7 +9675,7 @@ exports.decode = function base64VLQ_decode(aStr, aIndex, aOutParam) {
|
|
|
9754
9675
|
|
|
9755
9676
|
/***/ }),
|
|
9756
9677
|
|
|
9757
|
-
/***/
|
|
9678
|
+
/***/ 9069:
|
|
9758
9679
|
/***/ (function(__unused_webpack_module, exports) {
|
|
9759
9680
|
|
|
9760
9681
|
/* -*- Mode: js; js-indent-level: 2; -*- */
|
|
@@ -9828,7 +9749,7 @@ exports.decode = function (charCode) {
|
|
|
9828
9749
|
|
|
9829
9750
|
/***/ }),
|
|
9830
9751
|
|
|
9831
|
-
/***/
|
|
9752
|
+
/***/ 3226:
|
|
9832
9753
|
/***/ (function(__unused_webpack_module, exports) {
|
|
9833
9754
|
|
|
9834
9755
|
/* -*- Mode: js; js-indent-level: 2; -*- */
|
|
@@ -9946,7 +9867,7 @@ exports.search = function search(aNeedle, aHaystack, aCompare, aBias) {
|
|
|
9946
9867
|
|
|
9947
9868
|
/***/ }),
|
|
9948
9869
|
|
|
9949
|
-
/***/
|
|
9870
|
+
/***/ 1143:
|
|
9950
9871
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
|
9951
9872
|
|
|
9952
9873
|
/* -*- Mode: js; js-indent-level: 2; -*- */
|
|
@@ -9956,7 +9877,7 @@ exports.search = function search(aNeedle, aHaystack, aCompare, aBias) {
|
|
|
9956
9877
|
* http://opensource.org/licenses/BSD-3-Clause
|
|
9957
9878
|
*/
|
|
9958
9879
|
|
|
9959
|
-
var util = __nccwpck_require__(
|
|
9880
|
+
var util = __nccwpck_require__(1320);
|
|
9960
9881
|
|
|
9961
9882
|
/**
|
|
9962
9883
|
* Determine whether mappingB is after mappingA with respect to generated
|
|
@@ -10032,7 +9953,7 @@ exports.H = MappingList;
|
|
|
10032
9953
|
|
|
10033
9954
|
/***/ }),
|
|
10034
9955
|
|
|
10035
|
-
/***/
|
|
9956
|
+
/***/ 2212:
|
|
10036
9957
|
/***/ (function(__unused_webpack_module, exports) {
|
|
10037
9958
|
|
|
10038
9959
|
/* -*- Mode: js; js-indent-level: 2; -*- */
|
|
@@ -10153,7 +10074,7 @@ exports.U = function (ary, comparator) {
|
|
|
10153
10074
|
|
|
10154
10075
|
/***/ }),
|
|
10155
10076
|
|
|
10156
|
-
/***/
|
|
10077
|
+
/***/ 3847:
|
|
10157
10078
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
|
10158
10079
|
|
|
10159
10080
|
var __webpack_unused_export__;
|
|
@@ -10164,11 +10085,11 @@ var __webpack_unused_export__;
|
|
|
10164
10085
|
* http://opensource.org/licenses/BSD-3-Clause
|
|
10165
10086
|
*/
|
|
10166
10087
|
|
|
10167
|
-
var util = __nccwpck_require__(
|
|
10168
|
-
var binarySearch = __nccwpck_require__(
|
|
10169
|
-
var ArraySet = __nccwpck_require__(
|
|
10170
|
-
var base64VLQ = __nccwpck_require__(
|
|
10171
|
-
var quickSort = __nccwpck_require__(
|
|
10088
|
+
var util = __nccwpck_require__(1320);
|
|
10089
|
+
var binarySearch = __nccwpck_require__(3226);
|
|
10090
|
+
var ArraySet = (__nccwpck_require__(2035)/* .ArraySet */ .I);
|
|
10091
|
+
var base64VLQ = __nccwpck_require__(380);
|
|
10092
|
+
var quickSort = (__nccwpck_require__(2212)/* .quickSort */ .U);
|
|
10172
10093
|
|
|
10173
10094
|
function SourceMapConsumer(aSourceMap, aSourceMapURL) {
|
|
10174
10095
|
var sourceMap = aSourceMap;
|
|
@@ -11306,7 +11227,7 @@ __webpack_unused_export__ = IndexedSourceMapConsumer;
|
|
|
11306
11227
|
|
|
11307
11228
|
/***/ }),
|
|
11308
11229
|
|
|
11309
|
-
/***/
|
|
11230
|
+
/***/ 2271:
|
|
11310
11231
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
|
11311
11232
|
|
|
11312
11233
|
/* -*- Mode: js; js-indent-level: 2; -*- */
|
|
@@ -11316,10 +11237,10 @@ __webpack_unused_export__ = IndexedSourceMapConsumer;
|
|
|
11316
11237
|
* http://opensource.org/licenses/BSD-3-Clause
|
|
11317
11238
|
*/
|
|
11318
11239
|
|
|
11319
|
-
var base64VLQ = __nccwpck_require__(
|
|
11320
|
-
var util = __nccwpck_require__(
|
|
11321
|
-
var ArraySet = __nccwpck_require__(
|
|
11322
|
-
var MappingList = __nccwpck_require__(
|
|
11240
|
+
var base64VLQ = __nccwpck_require__(380);
|
|
11241
|
+
var util = __nccwpck_require__(1320);
|
|
11242
|
+
var ArraySet = (__nccwpck_require__(2035)/* .ArraySet */ .I);
|
|
11243
|
+
var MappingList = (__nccwpck_require__(1143)/* .MappingList */ .H);
|
|
11323
11244
|
|
|
11324
11245
|
/**
|
|
11325
11246
|
* An instance of the SourceMapGenerator represents a source map which is
|
|
@@ -11738,7 +11659,7 @@ exports.SourceMapGenerator = SourceMapGenerator;
|
|
|
11738
11659
|
|
|
11739
11660
|
/***/ }),
|
|
11740
11661
|
|
|
11741
|
-
/***/
|
|
11662
|
+
/***/ 4123:
|
|
11742
11663
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
|
11743
11664
|
|
|
11744
11665
|
/* -*- Mode: js; js-indent-level: 2; -*- */
|
|
@@ -11748,8 +11669,8 @@ exports.SourceMapGenerator = SourceMapGenerator;
|
|
|
11748
11669
|
* http://opensource.org/licenses/BSD-3-Clause
|
|
11749
11670
|
*/
|
|
11750
11671
|
|
|
11751
|
-
var SourceMapGenerator = __nccwpck_require__(
|
|
11752
|
-
var util = __nccwpck_require__(
|
|
11672
|
+
var SourceMapGenerator = (__nccwpck_require__(2271).SourceMapGenerator);
|
|
11673
|
+
var util = __nccwpck_require__(1320);
|
|
11753
11674
|
|
|
11754
11675
|
// Matches a Windows-style `\r\n` newline or a `\n` newline used by all other
|
|
11755
11676
|
// operating systems these days (capturing the result).
|
|
@@ -12158,7 +12079,7 @@ exports.SourceNode = SourceNode;
|
|
|
12158
12079
|
|
|
12159
12080
|
/***/ }),
|
|
12160
12081
|
|
|
12161
|
-
/***/
|
|
12082
|
+
/***/ 1320:
|
|
12162
12083
|
/***/ (function(__unused_webpack_module, exports) {
|
|
12163
12084
|
|
|
12164
12085
|
/* -*- Mode: js; js-indent-level: 2; -*- */
|
|
@@ -12653,7 +12574,7 @@ exports.computeSourceURL = computeSourceURL;
|
|
|
12653
12574
|
|
|
12654
12575
|
/***/ }),
|
|
12655
12576
|
|
|
12656
|
-
/***/
|
|
12577
|
+
/***/ 3292:
|
|
12657
12578
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
|
12658
12579
|
|
|
12659
12580
|
/*
|
|
@@ -12661,62 +12582,50 @@ exports.computeSourceURL = computeSourceURL;
|
|
|
12661
12582
|
* Licensed under the New BSD license. See LICENSE.txt or:
|
|
12662
12583
|
* http://opensource.org/licenses/BSD-3-Clause
|
|
12663
12584
|
*/
|
|
12664
|
-
exports.SourceMapGenerator = __nccwpck_require__(
|
|
12665
|
-
exports.SourceMapConsumer = __nccwpck_require__(
|
|
12666
|
-
exports.SourceNode = __nccwpck_require__(
|
|
12585
|
+
exports.SourceMapGenerator = __nccwpck_require__(2271).SourceMapGenerator;
|
|
12586
|
+
exports.SourceMapConsumer = __nccwpck_require__(3847).SourceMapConsumer;
|
|
12587
|
+
exports.SourceNode = __nccwpck_require__(4123).SourceNode;
|
|
12667
12588
|
|
|
12668
12589
|
|
|
12669
12590
|
/***/ }),
|
|
12670
12591
|
|
|
12671
|
-
/***/
|
|
12592
|
+
/***/ 4633:
|
|
12672
12593
|
/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
|
|
12673
12594
|
|
|
12674
12595
|
"use strict";
|
|
12675
12596
|
|
|
12676
12597
|
|
|
12677
|
-
const
|
|
12678
|
-
|
|
12679
|
-
module.exports = plugin.default;
|
|
12680
|
-
|
|
12681
|
-
/***/ }),
|
|
12682
|
-
|
|
12683
|
-
/***/ 6997:
|
|
12684
|
-
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
|
12685
|
-
|
|
12686
|
-
"use strict";
|
|
12598
|
+
const path = __nccwpck_require__(1017);
|
|
12687
12599
|
|
|
12600
|
+
const os = __nccwpck_require__(2037);
|
|
12688
12601
|
|
|
12689
|
-
|
|
12690
|
-
|
|
12691
|
-
})
|
|
12692
|
-
exports.default = void 0;
|
|
12693
|
-
|
|
12694
|
-
var path = _interopRequireWildcard(__nccwpck_require__(5622));
|
|
12695
|
-
|
|
12696
|
-
var os = _interopRequireWildcard(__nccwpck_require__(2087));
|
|
12697
|
-
|
|
12698
|
-
var _sourceMap = __nccwpck_require__(4033);
|
|
12699
|
-
|
|
12700
|
-
var _schemaUtils = __nccwpck_require__(8399);
|
|
12701
|
-
|
|
12702
|
-
var _serializeJavascript = _interopRequireDefault(__nccwpck_require__(6665));
|
|
12703
|
-
|
|
12704
|
-
var _pLimit = _interopRequireDefault(__nccwpck_require__(5146));
|
|
12705
|
-
|
|
12706
|
-
var _jestWorker = __nccwpck_require__(9733);
|
|
12707
|
-
|
|
12708
|
-
var _utils = require('./utils');
|
|
12602
|
+
const {
|
|
12603
|
+
SourceMapConsumer
|
|
12604
|
+
} = __nccwpck_require__(3292);
|
|
12709
12605
|
|
|
12710
|
-
|
|
12606
|
+
const {
|
|
12607
|
+
validate
|
|
12608
|
+
} = __nccwpck_require__(8546);
|
|
12711
12609
|
|
|
12712
|
-
|
|
12610
|
+
const serialize = __nccwpck_require__(6882);
|
|
12713
12611
|
|
|
12714
|
-
|
|
12612
|
+
const {
|
|
12613
|
+
Worker
|
|
12614
|
+
} = __nccwpck_require__(6063);
|
|
12715
12615
|
|
|
12716
|
-
|
|
12616
|
+
const {
|
|
12617
|
+
throttleAll,
|
|
12618
|
+
terserMinify,
|
|
12619
|
+
uglifyJsMinify,
|
|
12620
|
+
swcMinify,
|
|
12621
|
+
esbuildMinify
|
|
12622
|
+
} = require('./utils');
|
|
12717
12623
|
|
|
12718
|
-
|
|
12624
|
+
const schema = __nccwpck_require__(7747);
|
|
12719
12625
|
|
|
12626
|
+
const {
|
|
12627
|
+
minify
|
|
12628
|
+
} = __nccwpck_require__(6134);
|
|
12720
12629
|
/** @typedef {import("schema-utils/declarations/validate").Schema} Schema */
|
|
12721
12630
|
|
|
12722
12631
|
/** @typedef {import("webpack").Compiler} Compiler */
|
|
@@ -12731,8 +12640,6 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
12731
12640
|
|
|
12732
12641
|
/** @typedef {import("./utils.js").TerserOptions} TerserOptions */
|
|
12733
12642
|
|
|
12734
|
-
/** @typedef {import("./utils.js").CustomOptions} CustomOptions */
|
|
12735
|
-
|
|
12736
12643
|
/** @typedef {import("jest-worker").Worker} JestWorker */
|
|
12737
12644
|
|
|
12738
12645
|
/** @typedef {import("source-map").RawSourceMap} RawSourceMap */
|
|
@@ -12771,10 +12678,6 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
12771
12678
|
* @typedef {ExtractCommentsCondition | ExtractCommentsObject} ExtractCommentsOptions
|
|
12772
12679
|
*/
|
|
12773
12680
|
|
|
12774
|
-
/**
|
|
12775
|
-
* @typedef {{ [file: string]: string }} Input
|
|
12776
|
-
*/
|
|
12777
|
-
|
|
12778
12681
|
/**
|
|
12779
12682
|
* @typedef {Object} MinimizedResult
|
|
12780
12683
|
* @property {string} code
|
|
@@ -12785,31 +12688,27 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
12785
12688
|
*/
|
|
12786
12689
|
|
|
12787
12690
|
/**
|
|
12788
|
-
* @typedef {
|
|
12789
|
-
* @property {boolean} [module]
|
|
12790
|
-
* @property {any} [ecma]
|
|
12691
|
+
* @typedef {{ [file: string]: string }} Input
|
|
12791
12692
|
*/
|
|
12792
12693
|
|
|
12793
12694
|
/**
|
|
12794
|
-
* @
|
|
12795
|
-
* @typedef {Object} MinimizerImplementationAndOptions
|
|
12796
|
-
* @property {MinimizerImplementation<T>} implementation
|
|
12797
|
-
* @property {PredefinedOptions & T} options
|
|
12695
|
+
* @typedef {{ [key: string]: any }} CustomOptions
|
|
12798
12696
|
*/
|
|
12799
12697
|
|
|
12800
12698
|
/**
|
|
12801
12699
|
* @template T
|
|
12802
|
-
* @typedef {
|
|
12803
|
-
|
|
12804
|
-
|
|
12805
|
-
|
|
12806
|
-
* @
|
|
12807
|
-
* @property {
|
|
12700
|
+
* @typedef {T extends infer U ? U : CustomOptions} InferDefaultType
|
|
12701
|
+
*/
|
|
12702
|
+
|
|
12703
|
+
/**
|
|
12704
|
+
* @typedef {Object} PredefinedOptions
|
|
12705
|
+
* @property {boolean} [module]
|
|
12706
|
+
* @property {TerserECMA} [ecma]
|
|
12808
12707
|
*/
|
|
12809
12708
|
|
|
12810
12709
|
/**
|
|
12811
12710
|
* @template T
|
|
12812
|
-
* @typedef {
|
|
12711
|
+
* @typedef {PredefinedOptions & InferDefaultType<T>} MinimizerOptions
|
|
12813
12712
|
*/
|
|
12814
12713
|
|
|
12815
12714
|
/**
|
|
@@ -12817,7 +12716,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
12817
12716
|
* @callback BasicMinimizerImplementation
|
|
12818
12717
|
* @param {Input} input
|
|
12819
12718
|
* @param {RawSourceMap | undefined} sourceMap
|
|
12820
|
-
* @param {T} minifyOptions
|
|
12719
|
+
* @param {MinimizerOptions<T>} minifyOptions
|
|
12821
12720
|
* @param {ExtractCommentsOptions | undefined} extractComments
|
|
12822
12721
|
* @returns {Promise<MinimizedResult>}
|
|
12823
12722
|
*/
|
|
@@ -12829,7 +12728,22 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
12829
12728
|
|
|
12830
12729
|
/**
|
|
12831
12730
|
* @template T
|
|
12832
|
-
* @typedef {BasicMinimizerImplementation<T> & MinimizeFunctionHelpers
|
|
12731
|
+
* @typedef {BasicMinimizerImplementation<T> & MinimizeFunctionHelpers} MinimizerImplementation
|
|
12732
|
+
*/
|
|
12733
|
+
|
|
12734
|
+
/**
|
|
12735
|
+
* @template T
|
|
12736
|
+
* @typedef {Object} InternalOptions
|
|
12737
|
+
* @property {string} name
|
|
12738
|
+
* @property {string} input
|
|
12739
|
+
* @property {RawSourceMap | undefined} inputSourceMap
|
|
12740
|
+
* @property {ExtractCommentsOptions | undefined} extractComments
|
|
12741
|
+
* @property {{ implementation: MinimizerImplementation<T>, options: MinimizerOptions<T> }} minimizer
|
|
12742
|
+
*/
|
|
12743
|
+
|
|
12744
|
+
/**
|
|
12745
|
+
* @template T
|
|
12746
|
+
* @typedef {JestWorker & { transform: (options: string) => MinimizedResult, minify: (options: InternalOptions<T>) => MinimizedResult }} MinimizerWorker
|
|
12833
12747
|
*/
|
|
12834
12748
|
|
|
12835
12749
|
/**
|
|
@@ -12847,36 +12761,49 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
12847
12761
|
|
|
12848
12762
|
/**
|
|
12849
12763
|
* @template T
|
|
12850
|
-
* @typedef {T extends
|
|
12764
|
+
* @typedef {T extends TerserOptions ? { minify?: MinimizerImplementation<T> | undefined, terserOptions?: MinimizerOptions<T> | undefined } : { minify: MinimizerImplementation<T>, terserOptions?: MinimizerOptions<T> | undefined }} DefinedDefaultMinimizerAndOptions
|
|
12851
12765
|
*/
|
|
12852
12766
|
|
|
12853
12767
|
/**
|
|
12854
12768
|
* @template T
|
|
12855
|
-
* @typedef {
|
|
12769
|
+
* @typedef {BasePluginOptions & { minimizer: { implementation: MinimizerImplementation<T>, options: MinimizerOptions<T> } }} InternalPluginOptions
|
|
12856
12770
|
*/
|
|
12857
12771
|
|
|
12858
12772
|
/**
|
|
12859
|
-
* @template T
|
|
12773
|
+
* @template [T=TerserOptions]
|
|
12860
12774
|
*/
|
|
12775
|
+
|
|
12776
|
+
|
|
12861
12777
|
class TerserPlugin {
|
|
12862
12778
|
/**
|
|
12863
12779
|
* @param {BasePluginOptions & DefinedDefaultMinimizerAndOptions<T>} [options]
|
|
12864
12780
|
*/
|
|
12865
12781
|
constructor(options) {
|
|
12866
|
-
|
|
12782
|
+
validate(
|
|
12783
|
+
/** @type {Schema} */
|
|
12784
|
+
schema, options || {}, {
|
|
12867
12785
|
name: "Terser Plugin",
|
|
12868
12786
|
baseDataPath: "options"
|
|
12869
12787
|
}); // TODO make `minimizer` option instead `minify` and `terserOptions` in the next major release, also rename `terserMinify` to `terserMinimize`
|
|
12870
12788
|
|
|
12871
12789
|
const {
|
|
12872
|
-
minify =
|
|
12873
|
-
|
|
12790
|
+
minify =
|
|
12791
|
+
/** @type {MinimizerImplementation<T>} */
|
|
12792
|
+
terserMinify,
|
|
12793
|
+
terserOptions =
|
|
12794
|
+
/** @type {MinimizerOptions<T>} */
|
|
12795
|
+
{},
|
|
12874
12796
|
test = /\.[cm]?js(\?.*)?$/i,
|
|
12875
12797
|
extractComments = true,
|
|
12876
12798
|
parallel = true,
|
|
12877
12799
|
include,
|
|
12878
12800
|
exclude
|
|
12879
12801
|
} = options || {};
|
|
12802
|
+
/**
|
|
12803
|
+
* @private
|
|
12804
|
+
* @type {InternalPluginOptions<T>}
|
|
12805
|
+
*/
|
|
12806
|
+
|
|
12880
12807
|
this.options = {
|
|
12881
12808
|
test,
|
|
12882
12809
|
extractComments,
|
|
@@ -12903,9 +12830,9 @@ class TerserPlugin {
|
|
|
12903
12830
|
}
|
|
12904
12831
|
/**
|
|
12905
12832
|
* @private
|
|
12906
|
-
* @param {
|
|
12833
|
+
* @param {unknown} warning
|
|
12907
12834
|
* @param {string} file
|
|
12908
|
-
* @returns {
|
|
12835
|
+
* @returns {Error}
|
|
12909
12836
|
*/
|
|
12910
12837
|
|
|
12911
12838
|
|
|
@@ -12917,32 +12844,28 @@ class TerserPlugin {
|
|
|
12917
12844
|
const builtWarning = new Error(warning.toString());
|
|
12918
12845
|
builtWarning.name = "Warning";
|
|
12919
12846
|
builtWarning.hideStack = true;
|
|
12920
|
-
builtWarning.file = file;
|
|
12921
|
-
|
|
12847
|
+
builtWarning.file = file;
|
|
12922
12848
|
return builtWarning;
|
|
12923
12849
|
}
|
|
12924
12850
|
/**
|
|
12925
12851
|
* @private
|
|
12926
12852
|
* @param {any} error
|
|
12927
12853
|
* @param {string} file
|
|
12928
|
-
* @param {Compilation["requestShortener"]} [requestShortener]
|
|
12929
12854
|
* @param {SourceMapConsumer} [sourceMap]
|
|
12930
|
-
* @
|
|
12855
|
+
* @param {Compilation["requestShortener"]} [requestShortener]
|
|
12856
|
+
* @returns {Error}
|
|
12931
12857
|
*/
|
|
12932
12858
|
|
|
12933
12859
|
|
|
12934
|
-
static buildError(error, file,
|
|
12860
|
+
static buildError(error, file, sourceMap, requestShortener) {
|
|
12935
12861
|
/**
|
|
12936
|
-
* @type {Error & { file
|
|
12862
|
+
* @type {Error & { file?: string }}
|
|
12937
12863
|
*/
|
|
12938
|
-
// @ts-ignore
|
|
12939
12864
|
let builtError;
|
|
12940
12865
|
|
|
12941
12866
|
if (typeof error === "string") {
|
|
12942
|
-
// @ts-ignore
|
|
12943
12867
|
builtError = new Error(`${file} from Terser plugin\n${error}`);
|
|
12944
|
-
builtError.file = file;
|
|
12945
|
-
|
|
12868
|
+
builtError.file = file;
|
|
12946
12869
|
return builtError;
|
|
12947
12870
|
}
|
|
12948
12871
|
|
|
@@ -12953,32 +12876,24 @@ class TerserPlugin {
|
|
|
12953
12876
|
});
|
|
12954
12877
|
|
|
12955
12878
|
if (original && original.source && requestShortener) {
|
|
12956
|
-
// @ts-ignore
|
|
12957
12879
|
builtError = new Error(`${file} from Terser plugin\n${error.message} [${requestShortener.shorten(original.source)}:${original.line},${original.column}][${file}:${error.line},${error.col}]${error.stack ? `\n${error.stack.split("\n").slice(1).join("\n")}` : ""}`);
|
|
12958
|
-
builtError.file = file;
|
|
12959
|
-
|
|
12880
|
+
builtError.file = file;
|
|
12960
12881
|
return builtError;
|
|
12961
|
-
}
|
|
12962
|
-
|
|
12882
|
+
}
|
|
12963
12883
|
|
|
12964
12884
|
builtError = new Error(`${file} from Terser plugin\n${error.message} [${file}:${error.line},${error.col}]${error.stack ? `\n${error.stack.split("\n").slice(1).join("\n")}` : ""}`);
|
|
12965
|
-
builtError.file = file;
|
|
12966
|
-
|
|
12885
|
+
builtError.file = file;
|
|
12967
12886
|
return builtError;
|
|
12968
12887
|
}
|
|
12969
12888
|
|
|
12970
12889
|
if (error.stack) {
|
|
12971
|
-
// @ts-ignore
|
|
12972
12890
|
builtError = new Error(`${file} from Terser plugin\n${typeof error.message !== "undefined" ? error.message : ""}\n${error.stack}`);
|
|
12973
|
-
builtError.file = file;
|
|
12974
|
-
|
|
12891
|
+
builtError.file = file;
|
|
12975
12892
|
return builtError;
|
|
12976
|
-
}
|
|
12977
|
-
|
|
12893
|
+
}
|
|
12978
12894
|
|
|
12979
12895
|
builtError = new Error(`${file} from Terser plugin\n${error.message}`);
|
|
12980
|
-
builtError.file = file;
|
|
12981
|
-
|
|
12896
|
+
builtError.file = file;
|
|
12982
12897
|
return builtError;
|
|
12983
12898
|
}
|
|
12984
12899
|
/**
|
|
@@ -13009,10 +12924,12 @@ class TerserPlugin {
|
|
|
13009
12924
|
async optimize(compiler, compilation, assets, optimizeOptions) {
|
|
13010
12925
|
const cache = compilation.getCache("TerserWebpackPlugin");
|
|
13011
12926
|
let numberOfAssets = 0;
|
|
13012
|
-
const
|
|
12927
|
+
const assetsForMinify = await Promise.all(Object.keys(assets).filter(name => {
|
|
13013
12928
|
const {
|
|
13014
12929
|
info
|
|
13015
|
-
} =
|
|
12930
|
+
} =
|
|
12931
|
+
/** @type {Asset} */
|
|
12932
|
+
compilation.getAsset(name);
|
|
13016
12933
|
|
|
13017
12934
|
if ( // Skip double minimize assets from child compilation
|
|
13018
12935
|
info.minimized || // Skip minimizing for extracted comments assets
|
|
@@ -13030,7 +12947,9 @@ class TerserPlugin {
|
|
|
13030
12947
|
const {
|
|
13031
12948
|
info,
|
|
13032
12949
|
source
|
|
13033
|
-
} =
|
|
12950
|
+
} =
|
|
12951
|
+
/** @type {Asset} */
|
|
12952
|
+
compilation.getAsset(name);
|
|
13034
12953
|
const eTag = cache.getLazyHashedEtag(source);
|
|
13035
12954
|
const cacheItem = cache.getItemCache(name, eTag);
|
|
13036
12955
|
const output = await cacheItem.getPromise();
|
|
@@ -13047,8 +12966,13 @@ class TerserPlugin {
|
|
|
13047
12966
|
cacheItem
|
|
13048
12967
|
};
|
|
13049
12968
|
}));
|
|
12969
|
+
|
|
12970
|
+
if (assetsForMinify.length === 0) {
|
|
12971
|
+
return;
|
|
12972
|
+
}
|
|
13050
12973
|
/** @type {undefined | (() => MinimizerWorker<T>)} */
|
|
13051
12974
|
|
|
12975
|
+
|
|
13052
12976
|
let getWorker;
|
|
13053
12977
|
/** @type {undefined | MinimizerWorker<T>} */
|
|
13054
12978
|
|
|
@@ -13066,7 +12990,9 @@ class TerserPlugin {
|
|
|
13066
12990
|
return initializedWorker;
|
|
13067
12991
|
}
|
|
13068
12992
|
|
|
13069
|
-
initializedWorker =
|
|
12993
|
+
initializedWorker =
|
|
12994
|
+
/** @type {MinimizerWorker<T>} */
|
|
12995
|
+
new Worker(__nccwpck_require__.ab + "minify.js", {
|
|
13070
12996
|
numWorkers: numberOfWorkers,
|
|
13071
12997
|
enableWorkerThreads: true
|
|
13072
12998
|
}); // https://github.com/facebook/jest/issues/8872#issuecomment-524822081
|
|
@@ -13087,7 +13013,6 @@ class TerserPlugin {
|
|
|
13087
13013
|
};
|
|
13088
13014
|
}
|
|
13089
13015
|
|
|
13090
|
-
const limit = (0, _pLimit.default)(getWorker && numberOfAssets > 0 ? numberOfWorkers : Infinity);
|
|
13091
13016
|
const {
|
|
13092
13017
|
SourceMapSource,
|
|
13093
13018
|
ConcatSource,
|
|
@@ -13100,8 +13025,8 @@ class TerserPlugin {
|
|
|
13100
13025
|
const allExtractedComments = new Map();
|
|
13101
13026
|
const scheduledTasks = [];
|
|
13102
13027
|
|
|
13103
|
-
for (const asset of
|
|
13104
|
-
scheduledTasks.push(
|
|
13028
|
+
for (const asset of assetsForMinify) {
|
|
13029
|
+
scheduledTasks.push(async () => {
|
|
13105
13030
|
const {
|
|
13106
13031
|
name,
|
|
13107
13032
|
inputSource,
|
|
@@ -13124,17 +13049,24 @@ class TerserPlugin {
|
|
|
13124
13049
|
input = sourceFromInputSource;
|
|
13125
13050
|
|
|
13126
13051
|
if (map) {
|
|
13127
|
-
if (TerserPlugin.isSourceMap(map)) {
|
|
13128
|
-
|
|
13052
|
+
if (!TerserPlugin.isSourceMap(map)) {
|
|
13053
|
+
compilation.warnings.push(
|
|
13054
|
+
/** @type {WebpackError} */
|
|
13055
|
+
new Error(`${name} contains invalid source map`));
|
|
13129
13056
|
} else {
|
|
13130
|
-
inputSourceMap =
|
|
13131
|
-
|
|
13057
|
+
inputSourceMap =
|
|
13058
|
+
/** @type {RawSourceMap} */
|
|
13059
|
+
map;
|
|
13132
13060
|
}
|
|
13133
13061
|
}
|
|
13134
13062
|
|
|
13135
13063
|
if (Buffer.isBuffer(input)) {
|
|
13136
13064
|
input = input.toString();
|
|
13137
13065
|
}
|
|
13066
|
+
/**
|
|
13067
|
+
* @type {InternalOptions<T>}
|
|
13068
|
+
*/
|
|
13069
|
+
|
|
13138
13070
|
|
|
13139
13071
|
const options = {
|
|
13140
13072
|
name,
|
|
@@ -13164,17 +13096,23 @@ class TerserPlugin {
|
|
|
13164
13096
|
}
|
|
13165
13097
|
|
|
13166
13098
|
try {
|
|
13167
|
-
output = await (getWorker ? getWorker().transform((
|
|
13099
|
+
output = await (getWorker ? getWorker().transform(serialize(options)) : minify(options));
|
|
13168
13100
|
} catch (error) {
|
|
13169
13101
|
const hasSourceMap = inputSourceMap && TerserPlugin.isSourceMap(inputSourceMap);
|
|
13170
|
-
compilation.errors.push(
|
|
13171
|
-
|
|
13172
|
-
|
|
13102
|
+
compilation.errors.push(
|
|
13103
|
+
/** @type {WebpackError} */
|
|
13104
|
+
TerserPlugin.buildError(error, name, hasSourceMap ? new SourceMapConsumer(
|
|
13105
|
+
/** @type {RawSourceMap} */
|
|
13106
|
+
inputSourceMap) : // eslint-disable-next-line no-undefined
|
|
13107
|
+
undefined, // eslint-disable-next-line no-undefined
|
|
13108
|
+
hasSourceMap ? compilation.requestShortener : undefined));
|
|
13173
13109
|
return;
|
|
13174
13110
|
}
|
|
13175
13111
|
|
|
13176
13112
|
if (typeof output.code === "undefined") {
|
|
13177
|
-
compilation.errors.push(
|
|
13113
|
+
compilation.errors.push(
|
|
13114
|
+
/** @type {WebpackError} */
|
|
13115
|
+
new Error(`${name} from Terser plugin\nMinimizer doesn't return result`));
|
|
13178
13116
|
return;
|
|
13179
13117
|
}
|
|
13180
13118
|
|
|
@@ -13192,9 +13130,11 @@ class TerserPlugin {
|
|
|
13192
13130
|
/**
|
|
13193
13131
|
* @param {Error | string} item
|
|
13194
13132
|
*/
|
|
13195
|
-
item => TerserPlugin.buildError(item, name,
|
|
13196
|
-
|
|
13197
|
-
undefined
|
|
13133
|
+
item => TerserPlugin.buildError(item, name, hasSourceMap ? new SourceMapConsumer(
|
|
13134
|
+
/** @type {RawSourceMap} */
|
|
13135
|
+
inputSourceMap) : // eslint-disable-next-line no-undefined
|
|
13136
|
+
undefined, // eslint-disable-next-line no-undefined
|
|
13137
|
+
hasSourceMap ? compilation.requestShortener : undefined));
|
|
13198
13138
|
}
|
|
13199
13139
|
|
|
13200
13140
|
let shebang;
|
|
@@ -13208,7 +13148,9 @@ class TerserPlugin {
|
|
|
13208
13148
|
}
|
|
13209
13149
|
|
|
13210
13150
|
if (output.map) {
|
|
13211
|
-
output.source = new SourceMapSource(output.code, name, output.map, input,
|
|
13151
|
+
output.source = new SourceMapSource(output.code, name, output.map, input,
|
|
13152
|
+
/** @type {RawSourceMap} */
|
|
13153
|
+
inputSourceMap, true);
|
|
13212
13154
|
} else {
|
|
13213
13155
|
output.source = new RawSource(output.code);
|
|
13214
13156
|
}
|
|
@@ -13266,23 +13208,19 @@ class TerserPlugin {
|
|
|
13266
13208
|
}
|
|
13267
13209
|
|
|
13268
13210
|
if (output.warnings && output.warnings.length > 0) {
|
|
13269
|
-
output.warnings
|
|
13270
|
-
|
|
13271
|
-
|
|
13272
|
-
|
|
13273
|
-
|
|
13274
|
-
compilation.warnings.push(warning);
|
|
13275
|
-
});
|
|
13211
|
+
for (const warning of output.warnings) {
|
|
13212
|
+
compilation.warnings.push(
|
|
13213
|
+
/** @type {WebpackError} */
|
|
13214
|
+
warning);
|
|
13215
|
+
}
|
|
13276
13216
|
}
|
|
13277
13217
|
|
|
13278
13218
|
if (output.errors && output.errors.length > 0) {
|
|
13279
|
-
output.errors
|
|
13280
|
-
|
|
13281
|
-
|
|
13282
|
-
|
|
13283
|
-
|
|
13284
|
-
compilation.errors.push(error);
|
|
13285
|
-
});
|
|
13219
|
+
for (const error of output.errors) {
|
|
13220
|
+
compilation.errors.push(
|
|
13221
|
+
/** @type {WebpackError} */
|
|
13222
|
+
error);
|
|
13223
|
+
}
|
|
13286
13224
|
}
|
|
13287
13225
|
/** @type {Record<string, any>} */
|
|
13288
13226
|
|
|
@@ -13309,10 +13247,13 @@ class TerserPlugin {
|
|
|
13309
13247
|
}
|
|
13310
13248
|
|
|
13311
13249
|
compilation.updateAsset(name, source, newInfo);
|
|
13312
|
-
})
|
|
13250
|
+
});
|
|
13313
13251
|
}
|
|
13314
13252
|
|
|
13315
|
-
|
|
13253
|
+
const limit = getWorker && numberOfAssets > 0 ?
|
|
13254
|
+
/** @type {number} */
|
|
13255
|
+
numberOfWorkers : scheduledTasks.length;
|
|
13256
|
+
await throttleAll(limit, scheduledTasks);
|
|
13316
13257
|
|
|
13317
13258
|
if (initializedWorker) {
|
|
13318
13259
|
await initializedWorker.end();
|
|
@@ -13327,7 +13268,9 @@ class TerserPlugin {
|
|
|
13327
13268
|
* @returns {Promise<ExtractedCommentsInfoWIthFrom>}
|
|
13328
13269
|
*/
|
|
13329
13270
|
async (previousPromise, [from, value]) => {
|
|
13330
|
-
const previous =
|
|
13271
|
+
const previous =
|
|
13272
|
+
/** @type {ExtractedCommentsInfoWIthFrom | undefined} **/
|
|
13273
|
+
await previousPromise;
|
|
13331
13274
|
const {
|
|
13332
13275
|
commentsFilename,
|
|
13333
13276
|
extractedCommentsSource
|
|
@@ -13378,7 +13321,9 @@ class TerserPlugin {
|
|
|
13378
13321
|
commentsFilename,
|
|
13379
13322
|
from
|
|
13380
13323
|
};
|
|
13381
|
-
},
|
|
13324
|
+
},
|
|
13325
|
+
/** @type {Promise<unknown>} */
|
|
13326
|
+
Promise.resolve());
|
|
13382
13327
|
}
|
|
13383
13328
|
/**
|
|
13384
13329
|
* @private
|
|
@@ -13411,7 +13356,7 @@ class TerserPlugin {
|
|
|
13411
13356
|
const availableNumberOfCores = TerserPlugin.getAvailableNumberOfCores(this.options.parallel);
|
|
13412
13357
|
compiler.hooks.compilation.tap(pluginName, compilation => {
|
|
13413
13358
|
const hooks = compiler.webpack.javascript.JavascriptModulesPlugin.getCompilationHooks(compilation);
|
|
13414
|
-
const data = (
|
|
13359
|
+
const data = serialize({
|
|
13415
13360
|
minimizer: typeof this.options.minimizer.implementation.getMinimizerVersion !== "undefined" ? this.options.minimizer.implementation.getMinimizerVersion() || "0.0.0" : "0.0.0",
|
|
13416
13361
|
options: this.options.minimizer.options
|
|
13417
13362
|
});
|
|
@@ -13441,16 +13386,15 @@ class TerserPlugin {
|
|
|
13441
13386
|
|
|
13442
13387
|
}
|
|
13443
13388
|
|
|
13444
|
-
TerserPlugin.terserMinify =
|
|
13445
|
-
TerserPlugin.uglifyJsMinify =
|
|
13446
|
-
TerserPlugin.swcMinify =
|
|
13447
|
-
TerserPlugin.esbuildMinify =
|
|
13448
|
-
|
|
13449
|
-
exports.default = _default;
|
|
13389
|
+
TerserPlugin.terserMinify = terserMinify;
|
|
13390
|
+
TerserPlugin.uglifyJsMinify = uglifyJsMinify;
|
|
13391
|
+
TerserPlugin.swcMinify = swcMinify;
|
|
13392
|
+
TerserPlugin.esbuildMinify = esbuildMinify;
|
|
13393
|
+
module.exports = TerserPlugin;
|
|
13450
13394
|
|
|
13451
13395
|
/***/ }),
|
|
13452
13396
|
|
|
13453
|
-
/***/
|
|
13397
|
+
/***/ 6134:
|
|
13454
13398
|
/***/ (function(module, exports, __nccwpck_require__) {
|
|
13455
13399
|
|
|
13456
13400
|
"use strict";
|
|
@@ -13491,17 +13435,24 @@ async function transform(options) {
|
|
|
13491
13435
|
// 'use strict' => this === undefined (Clean Scope)
|
|
13492
13436
|
// Safer for possible security issues, albeit not critical at all here
|
|
13493
13437
|
// eslint-disable-next-line no-param-reassign
|
|
13494
|
-
const evaluatedOptions =
|
|
13438
|
+
const evaluatedOptions =
|
|
13439
|
+
/**
|
|
13440
|
+
* @template T
|
|
13441
|
+
* @type {import("./index.js").InternalOptions<T>}
|
|
13442
|
+
* */
|
|
13443
|
+
// eslint-disable-next-line no-new-func
|
|
13495
13444
|
new Function("exports", "require", "module", "__filename", "__dirname", `'use strict'\nreturn ${options}`)(exports, require, module, __filename, __dirname);
|
|
13496
13445
|
return minify(evaluatedOptions);
|
|
13497
13446
|
}
|
|
13498
13447
|
|
|
13499
|
-
module.exports
|
|
13500
|
-
|
|
13448
|
+
module.exports = {
|
|
13449
|
+
minify,
|
|
13450
|
+
transform
|
|
13451
|
+
};
|
|
13501
13452
|
|
|
13502
13453
|
/***/ }),
|
|
13503
13454
|
|
|
13504
|
-
/***/
|
|
13455
|
+
/***/ 2431:
|
|
13505
13456
|
/***/ (function(__unused_webpack_module, exports) {
|
|
13506
13457
|
|
|
13507
13458
|
/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
|
|
@@ -14950,134 +14901,59 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
14950
14901
|
|
|
14951
14902
|
/***/ }),
|
|
14952
14903
|
|
|
14953
|
-
/***/
|
|
14954
|
-
/***/ (function(module) {
|
|
14955
|
-
|
|
14956
|
-
class Node {
|
|
14957
|
-
/// value;
|
|
14958
|
-
/// next;
|
|
14959
|
-
|
|
14960
|
-
constructor(value) {
|
|
14961
|
-
this.value = value;
|
|
14962
|
-
|
|
14963
|
-
// TODO: Remove this when targeting Node.js 12.
|
|
14964
|
-
this.next = undefined;
|
|
14965
|
-
}
|
|
14966
|
-
}
|
|
14967
|
-
|
|
14968
|
-
class Queue {
|
|
14969
|
-
// TODO: Use private class fields when targeting Node.js 12.
|
|
14970
|
-
// #_head;
|
|
14971
|
-
// #_tail;
|
|
14972
|
-
// #_size;
|
|
14973
|
-
|
|
14974
|
-
constructor() {
|
|
14975
|
-
this.clear();
|
|
14976
|
-
}
|
|
14977
|
-
|
|
14978
|
-
enqueue(value) {
|
|
14979
|
-
const node = new Node(value);
|
|
14980
|
-
|
|
14981
|
-
if (this._head) {
|
|
14982
|
-
this._tail.next = node;
|
|
14983
|
-
this._tail = node;
|
|
14984
|
-
} else {
|
|
14985
|
-
this._head = node;
|
|
14986
|
-
this._tail = node;
|
|
14987
|
-
}
|
|
14988
|
-
|
|
14989
|
-
this._size++;
|
|
14990
|
-
}
|
|
14991
|
-
|
|
14992
|
-
dequeue() {
|
|
14993
|
-
const current = this._head;
|
|
14994
|
-
if (!current) {
|
|
14995
|
-
return;
|
|
14996
|
-
}
|
|
14997
|
-
|
|
14998
|
-
this._head = this._head.next;
|
|
14999
|
-
this._size--;
|
|
15000
|
-
return current.value;
|
|
15001
|
-
}
|
|
15002
|
-
|
|
15003
|
-
clear() {
|
|
15004
|
-
this._head = undefined;
|
|
15005
|
-
this._tail = undefined;
|
|
15006
|
-
this._size = 0;
|
|
15007
|
-
}
|
|
15008
|
-
|
|
15009
|
-
get size() {
|
|
15010
|
-
return this._size;
|
|
15011
|
-
}
|
|
15012
|
-
|
|
15013
|
-
* [Symbol.iterator]() {
|
|
15014
|
-
let current = this._head;
|
|
15015
|
-
|
|
15016
|
-
while (current) {
|
|
15017
|
-
yield current.value;
|
|
15018
|
-
current = current.next;
|
|
15019
|
-
}
|
|
15020
|
-
}
|
|
15021
|
-
}
|
|
15022
|
-
|
|
15023
|
-
module.exports = Queue;
|
|
15024
|
-
|
|
15025
|
-
|
|
15026
|
-
/***/ }),
|
|
15027
|
-
|
|
15028
|
-
/***/ 1398:
|
|
14904
|
+
/***/ 6113:
|
|
15029
14905
|
/***/ (function(module) {
|
|
15030
14906
|
|
|
15031
14907
|
"use strict";
|
|
15032
|
-
module.exports =
|
|
14908
|
+
module.exports = require("crypto");
|
|
15033
14909
|
|
|
15034
14910
|
/***/ }),
|
|
15035
14911
|
|
|
15036
|
-
/***/
|
|
14912
|
+
/***/ 6063:
|
|
15037
14913
|
/***/ (function(module) {
|
|
15038
14914
|
|
|
15039
14915
|
"use strict";
|
|
15040
|
-
module.exports =
|
|
14916
|
+
module.exports = require("jest-worker");
|
|
15041
14917
|
|
|
15042
14918
|
/***/ }),
|
|
15043
14919
|
|
|
15044
|
-
/***/
|
|
14920
|
+
/***/ 2037:
|
|
15045
14921
|
/***/ (function(module) {
|
|
15046
14922
|
|
|
15047
14923
|
"use strict";
|
|
15048
|
-
module.exports =
|
|
14924
|
+
module.exports = require("os");
|
|
15049
14925
|
|
|
15050
14926
|
/***/ }),
|
|
15051
14927
|
|
|
15052
|
-
/***/
|
|
14928
|
+
/***/ 1017:
|
|
15053
14929
|
/***/ (function(module) {
|
|
15054
14930
|
|
|
15055
14931
|
"use strict";
|
|
15056
|
-
module.exports = require("
|
|
14932
|
+
module.exports = require("path");
|
|
15057
14933
|
|
|
15058
14934
|
/***/ }),
|
|
15059
14935
|
|
|
15060
|
-
/***/
|
|
14936
|
+
/***/ 7664:
|
|
15061
14937
|
/***/ (function(module) {
|
|
15062
14938
|
|
|
15063
14939
|
"use strict";
|
|
15064
|
-
module.exports =
|
|
14940
|
+
module.exports = JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON Schema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}');
|
|
15065
14941
|
|
|
15066
14942
|
/***/ }),
|
|
15067
14943
|
|
|
15068
|
-
/***/
|
|
14944
|
+
/***/ 7136:
|
|
15069
14945
|
/***/ (function(module) {
|
|
15070
14946
|
|
|
15071
14947
|
"use strict";
|
|
15072
|
-
module.exports =
|
|
14948
|
+
module.exports = JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}');
|
|
15073
14949
|
|
|
15074
14950
|
/***/ }),
|
|
15075
14951
|
|
|
15076
|
-
/***/
|
|
14952
|
+
/***/ 7747:
|
|
15077
14953
|
/***/ (function(module) {
|
|
15078
14954
|
|
|
15079
14955
|
"use strict";
|
|
15080
|
-
module.exports =
|
|
14956
|
+
module.exports = JSON.parse('{"definitions":{"Rule":{"description":"Filtering rule as regex or string.","anyOf":[{"instanceof":"RegExp","tsType":"RegExp"},{"type":"string","minLength":1}]},"Rules":{"description":"Filtering rules.","anyOf":[{"type":"array","items":{"description":"A rule condition.","oneOf":[{"$ref":"#/definitions/Rule"}]}},{"$ref":"#/definitions/Rule"}]}},"title":"TerserPluginOptions","type":"object","additionalProperties":false,"properties":{"test":{"description":"Include all modules that pass test assertion.","link":"https://github.com/webpack-contrib/terser-webpack-plugin#test","oneOf":[{"$ref":"#/definitions/Rules"}]},"include":{"description":"Include all modules matching any of these conditions.","link":"https://github.com/webpack-contrib/terser-webpack-plugin#include","oneOf":[{"$ref":"#/definitions/Rules"}]},"exclude":{"description":"Exclude all modules matching any of these conditions.","link":"https://github.com/webpack-contrib/terser-webpack-plugin#exclude","oneOf":[{"$ref":"#/definitions/Rules"}]},"terserOptions":{"description":"Options for `terser` (by default) or custom `minify` function.","link":"https://github.com/webpack-contrib/terser-webpack-plugin#terseroptions","additionalProperties":true,"type":"object"},"extractComments":{"description":"Whether comments shall be extracted to a separate file.","link":"https://github.com/webpack-contrib/terser-webpack-plugin#extractcomments","anyOf":[{"type":"boolean"},{"type":"string","minLength":1},{"instanceof":"RegExp"},{"instanceof":"Function"},{"additionalProperties":false,"properties":{"condition":{"anyOf":[{"type":"boolean"},{"type":"string","minLength":1},{"instanceof":"RegExp"},{"instanceof":"Function"}],"description":"Condition what comments you need extract.","link":"https://github.com/webpack-contrib/terser-webpack-plugin#condition"},"filename":{"anyOf":[{"type":"string","minLength":1},{"instanceof":"Function"}],"description":"The file where the extracted comments will be stored. Default is to append the suffix .LICENSE.txt to the original filename.","link":"https://github.com/webpack-contrib/terser-webpack-plugin#filename"},"banner":{"anyOf":[{"type":"boolean"},{"type":"string","minLength":1},{"instanceof":"Function"}],"description":"The banner text that points to the extracted file and will be added on top of the original file","link":"https://github.com/webpack-contrib/terser-webpack-plugin#banner"}},"type":"object"}]},"parallel":{"description":"Use multi-process parallel running to improve the build speed.","link":"https://github.com/webpack-contrib/terser-webpack-plugin#parallel","anyOf":[{"type":"boolean"},{"type":"integer"}]},"minify":{"description":"Allows you to override default minify function.","link":"https://github.com/webpack-contrib/terser-webpack-plugin#number","instanceof":"Function"}}}');
|
|
15081
14957
|
|
|
15082
14958
|
/***/ })
|
|
15083
14959
|
|
|
@@ -15135,7 +15011,7 @@ module.exports = require("path");
|
|
|
15135
15011
|
/******/ // startup
|
|
15136
15012
|
/******/ // Load entry module and return exports
|
|
15137
15013
|
/******/ // This entry module is referenced by other modules so it can't be inlined
|
|
15138
|
-
/******/ var __webpack_exports__ = __nccwpck_require__(
|
|
15014
|
+
/******/ var __webpack_exports__ = __nccwpck_require__(4633);
|
|
15139
15015
|
/******/ module.exports = __webpack_exports__;
|
|
15140
15016
|
/******/
|
|
15141
15017
|
/******/ })()
|