@rsbuild/core 1.2.0-beta.0 → 1.2.0-beta.1
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/css-loader/index.js +43 -62
- package/compiled/http-proxy-middleware/index.js +20 -22
- package/compiled/postcss/index.js +131 -117
- package/compiled/postcss/package.json +1 -1
- package/compiled/postcss-load-config/index.js +10 -10
- package/compiled/postcss-loader/index.js +8 -28
- package/compiled/rsbuild-dev-middleware/index.js +25 -25
- package/compiled/style-loader/index.js +13 -13
- package/dist/index.cjs +42 -18
- package/dist/index.js +42 -18
- package/dist-types/helpers/fs.d.ts +1 -1
- package/dist-types/index.d.ts +2 -1
- package/dist-types/types/config.d.ts +17 -2
- package/dist-types/types/plugin.d.ts +11 -0
- package/package.json +5 -5
|
@@ -1,27 +1,24 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
var __webpack_modules__ = {
|
|
3
|
-
|
|
3
|
+
5109: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4
4
|
"use strict";
|
|
5
|
-
const loader = __nccwpck_require__(
|
|
5
|
+
const loader = __nccwpck_require__(351);
|
|
6
6
|
module.exports = loader.default;
|
|
7
7
|
module.exports.defaultGetLocalIdent =
|
|
8
|
-
__nccwpck_require__(
|
|
8
|
+
__nccwpck_require__(8488).defaultGetLocalIdent;
|
|
9
9
|
},
|
|
10
|
-
|
|
10
|
+
351: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
11
11
|
"use strict";
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
exports["default"] = loader;
|
|
14
14
|
var _postcss = _interopRequireDefault(__nccwpck_require__(9961));
|
|
15
|
-
var
|
|
16
|
-
var
|
|
17
|
-
var _options = _interopRequireDefault(__nccwpck_require__(5385));
|
|
18
|
-
var _plugins = __nccwpck_require__(2570);
|
|
19
|
-
var _utils = __nccwpck_require__(7884);
|
|
15
|
+
var _plugins = __nccwpck_require__(6459);
|
|
16
|
+
var _utils = __nccwpck_require__(8488);
|
|
20
17
|
function _interopRequireDefault(obj) {
|
|
21
18
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
22
19
|
}
|
|
23
20
|
async function loader(content, map, meta) {
|
|
24
|
-
const rawOptions = this.getOptions(
|
|
21
|
+
const rawOptions = this.getOptions();
|
|
25
22
|
const callback = this.async();
|
|
26
23
|
if (
|
|
27
24
|
this._compiler &&
|
|
@@ -133,11 +130,7 @@
|
|
|
133
130
|
}
|
|
134
131
|
if (meta) {
|
|
135
132
|
const { ast } = meta;
|
|
136
|
-
if (
|
|
137
|
-
ast &&
|
|
138
|
-
ast.type === "postcss" &&
|
|
139
|
-
(0, _semver.satisfies)(ast.version, `^${_package.default.version}`)
|
|
140
|
-
) {
|
|
133
|
+
if (ast && ast.type === "postcss") {
|
|
141
134
|
content = ast.root;
|
|
142
135
|
}
|
|
143
136
|
}
|
|
@@ -243,7 +236,7 @@
|
|
|
243
236
|
callback(null, `${importCode}${moduleCode}${exportCode}`);
|
|
244
237
|
}
|
|
245
238
|
},
|
|
246
|
-
|
|
239
|
+
6459: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
247
240
|
"use strict";
|
|
248
241
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
249
242
|
Object.defineProperty(exports, "icssParser", {
|
|
@@ -265,22 +258,22 @@
|
|
|
265
258
|
},
|
|
266
259
|
});
|
|
267
260
|
var _postcssImportParser = _interopRequireDefault(
|
|
268
|
-
__nccwpck_require__(
|
|
261
|
+
__nccwpck_require__(2117),
|
|
269
262
|
);
|
|
270
263
|
var _postcssIcssParser = _interopRequireDefault(
|
|
271
|
-
__nccwpck_require__(
|
|
264
|
+
__nccwpck_require__(8751),
|
|
272
265
|
);
|
|
273
|
-
var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(
|
|
266
|
+
var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(3740));
|
|
274
267
|
function _interopRequireDefault(obj) {
|
|
275
268
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
276
269
|
}
|
|
277
270
|
},
|
|
278
|
-
|
|
271
|
+
8751: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
279
272
|
"use strict";
|
|
280
273
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
281
274
|
exports["default"] = void 0;
|
|
282
|
-
var _icssUtils = __nccwpck_require__(
|
|
283
|
-
var _utils = __nccwpck_require__(
|
|
275
|
+
var _icssUtils = __nccwpck_require__(3431);
|
|
276
|
+
var _utils = __nccwpck_require__(8488);
|
|
284
277
|
const plugin = (options = {}) => ({
|
|
285
278
|
postcssPlugin: "postcss-icss-parser",
|
|
286
279
|
async OnceExit(root) {
|
|
@@ -379,14 +372,14 @@
|
|
|
379
372
|
plugin.postcss = true;
|
|
380
373
|
var _default = (exports["default"] = plugin);
|
|
381
374
|
},
|
|
382
|
-
|
|
375
|
+
2117: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
383
376
|
"use strict";
|
|
384
377
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
385
378
|
exports["default"] = void 0;
|
|
386
379
|
var _postcssValueParser = _interopRequireDefault(
|
|
387
380
|
__nccwpck_require__(7555),
|
|
388
381
|
);
|
|
389
|
-
var _utils = __nccwpck_require__(
|
|
382
|
+
var _utils = __nccwpck_require__(8488);
|
|
390
383
|
function _interopRequireDefault(obj) {
|
|
391
384
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
392
385
|
}
|
|
@@ -691,14 +684,14 @@
|
|
|
691
684
|
plugin.postcss = true;
|
|
692
685
|
var _default = (exports["default"] = plugin);
|
|
693
686
|
},
|
|
694
|
-
|
|
687
|
+
3740: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
695
688
|
"use strict";
|
|
696
689
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
697
690
|
exports["default"] = void 0;
|
|
698
691
|
var _postcssValueParser = _interopRequireDefault(
|
|
699
692
|
__nccwpck_require__(7555),
|
|
700
693
|
);
|
|
701
|
-
var _utils = __nccwpck_require__(
|
|
694
|
+
var _utils = __nccwpck_require__(8488);
|
|
702
695
|
function _interopRequireDefault(obj) {
|
|
703
696
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
704
697
|
}
|
|
@@ -1041,7 +1034,7 @@
|
|
|
1041
1034
|
plugin.postcss = true;
|
|
1042
1035
|
var _default = (exports["default"] = plugin);
|
|
1043
1036
|
},
|
|
1044
|
-
|
|
1037
|
+
8488: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
1045
1038
|
"use strict";
|
|
1046
1039
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1047
1040
|
exports.WEBPACK_IGNORE_COMMENT_REGEXP = void 0;
|
|
@@ -1074,16 +1067,16 @@
|
|
|
1074
1067
|
var _url = __nccwpck_require__(7310);
|
|
1075
1068
|
var _path = _interopRequireDefault(__nccwpck_require__(1017));
|
|
1076
1069
|
var _postcssModulesValues = _interopRequireDefault(
|
|
1077
|
-
__nccwpck_require__(
|
|
1070
|
+
__nccwpck_require__(4828),
|
|
1078
1071
|
);
|
|
1079
1072
|
var _postcssModulesLocalByDefault = _interopRequireDefault(
|
|
1080
|
-
__nccwpck_require__(
|
|
1073
|
+
__nccwpck_require__(3095),
|
|
1081
1074
|
);
|
|
1082
1075
|
var _postcssModulesExtractImports = _interopRequireDefault(
|
|
1083
|
-
__nccwpck_require__(
|
|
1076
|
+
__nccwpck_require__(1138),
|
|
1084
1077
|
);
|
|
1085
1078
|
var _postcssModulesScope = _interopRequireDefault(
|
|
1086
|
-
__nccwpck_require__(
|
|
1079
|
+
__nccwpck_require__(6717),
|
|
1087
1080
|
);
|
|
1088
1081
|
function _interopRequireDefault(obj) {
|
|
1089
1082
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
@@ -2276,7 +2269,7 @@
|
|
|
2276
2269
|
cssesc.version = "3.0.0";
|
|
2277
2270
|
module.exports = cssesc;
|
|
2278
2271
|
},
|
|
2279
|
-
|
|
2272
|
+
6189: (module) => {
|
|
2280
2273
|
const createImports = (imports, postcss, mode = "rule") =>
|
|
2281
2274
|
Object.keys(imports).map((path) => {
|
|
2282
2275
|
const aliases = imports[path];
|
|
@@ -2328,7 +2321,7 @@
|
|
|
2328
2321
|
];
|
|
2329
2322
|
module.exports = createICSSRules;
|
|
2330
2323
|
},
|
|
2331
|
-
|
|
2324
|
+
1444: (module) => {
|
|
2332
2325
|
const importPattern = /^:import\(("[^"]*"|'[^']*'|[^"']+)\)$/;
|
|
2333
2326
|
const balancedQuotes = /^("[^"]*"|'[^']*'|[^"']+)$/;
|
|
2334
2327
|
const getDeclsObject = (rule) => {
|
|
@@ -2386,11 +2379,11 @@
|
|
|
2386
2379
|
};
|
|
2387
2380
|
module.exports = extractICSS;
|
|
2388
2381
|
},
|
|
2389
|
-
|
|
2390
|
-
const replaceValueSymbols = __nccwpck_require__(
|
|
2391
|
-
const replaceSymbols = __nccwpck_require__(
|
|
2392
|
-
const extractICSS = __nccwpck_require__(
|
|
2393
|
-
const createICSSRules = __nccwpck_require__(
|
|
2382
|
+
3431: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
2383
|
+
const replaceValueSymbols = __nccwpck_require__(2919);
|
|
2384
|
+
const replaceSymbols = __nccwpck_require__(7876);
|
|
2385
|
+
const extractICSS = __nccwpck_require__(1444);
|
|
2386
|
+
const createICSSRules = __nccwpck_require__(6189);
|
|
2394
2387
|
module.exports = {
|
|
2395
2388
|
replaceValueSymbols,
|
|
2396
2389
|
replaceSymbols,
|
|
@@ -2398,8 +2391,8 @@
|
|
|
2398
2391
|
createICSSRules,
|
|
2399
2392
|
};
|
|
2400
2393
|
},
|
|
2401
|
-
|
|
2402
|
-
const replaceValueSymbols = __nccwpck_require__(
|
|
2394
|
+
7876: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
2395
|
+
const replaceValueSymbols = __nccwpck_require__(2919);
|
|
2403
2396
|
const replaceSymbols = (css, replacements) => {
|
|
2404
2397
|
css.walk((node) => {
|
|
2405
2398
|
if (node.type === "decl" && node.value) {
|
|
@@ -2422,7 +2415,7 @@
|
|
|
2422
2415
|
};
|
|
2423
2416
|
module.exports = replaceSymbols;
|
|
2424
2417
|
},
|
|
2425
|
-
|
|
2418
|
+
2919: (module) => {
|
|
2426
2419
|
const matchValueName = /[$]?[\w-]+/g;
|
|
2427
2420
|
const replaceValueSymbols = (value, replacements) => {
|
|
2428
2421
|
let matches;
|
|
@@ -2440,8 +2433,8 @@
|
|
|
2440
2433
|
};
|
|
2441
2434
|
module.exports = replaceValueSymbols;
|
|
2442
2435
|
},
|
|
2443
|
-
|
|
2444
|
-
const topologicalSort = __nccwpck_require__(
|
|
2436
|
+
1138: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
2437
|
+
const topologicalSort = __nccwpck_require__(2152);
|
|
2445
2438
|
const matchImports = /^(.+?)\s+from\s+(?:"([^"]+)"|'([^']+)'|(global))$/;
|
|
2446
2439
|
const icssImport = /^:import\((?:"([^"]+)"|'([^']+)')\)/;
|
|
2447
2440
|
const VISITED_MARKER = 1;
|
|
@@ -2587,7 +2580,7 @@
|
|
|
2587
2580
|
};
|
|
2588
2581
|
module.exports.postcss = true;
|
|
2589
2582
|
},
|
|
2590
|
-
|
|
2583
|
+
2152: (module) => {
|
|
2591
2584
|
const PERMANENT_MARKER = 2;
|
|
2592
2585
|
const TEMPORARY_MARKER = 1;
|
|
2593
2586
|
function createError(node, graph) {
|
|
@@ -2636,11 +2629,11 @@
|
|
|
2636
2629
|
}
|
|
2637
2630
|
module.exports = topologicalSort;
|
|
2638
2631
|
},
|
|
2639
|
-
|
|
2632
|
+
3095: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
2640
2633
|
"use strict";
|
|
2641
2634
|
const selectorParser = __nccwpck_require__(7269);
|
|
2642
2635
|
const valueParser = __nccwpck_require__(7555);
|
|
2643
|
-
const { extractICSS } = __nccwpck_require__(
|
|
2636
|
+
const { extractICSS } = __nccwpck_require__(3431);
|
|
2644
2637
|
const isSpacing = (node) =>
|
|
2645
2638
|
node.type === "combinator" && node.value === " ";
|
|
2646
2639
|
function normalizeNodeArray(nodes) {
|
|
@@ -3151,7 +3144,7 @@
|
|
|
3151
3144
|
};
|
|
3152
3145
|
module.exports.postcss = true;
|
|
3153
3146
|
},
|
|
3154
|
-
|
|
3147
|
+
6717: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
3155
3148
|
"use strict";
|
|
3156
3149
|
const selectorParser = __nccwpck_require__(7269);
|
|
3157
3150
|
const hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
@@ -3458,9 +3451,9 @@
|
|
|
3458
3451
|
};
|
|
3459
3452
|
module.exports = plugin;
|
|
3460
3453
|
},
|
|
3461
|
-
|
|
3454
|
+
4828: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
3462
3455
|
"use strict";
|
|
3463
|
-
const ICSSUtils = __nccwpck_require__(
|
|
3456
|
+
const ICSSUtils = __nccwpck_require__(3431);
|
|
3464
3457
|
const matchImports =
|
|
3465
3458
|
/^(.+?|\([\s\S]+?\))\s+from\s+("[^"]*"|'[^']*'|[\w-]+)$/;
|
|
3466
3459
|
const matchValueDefinition = /(?:\s+|^)([\w-]+):?(.*?)$/;
|
|
@@ -7968,18 +7961,6 @@
|
|
|
7968
7961
|
"use strict";
|
|
7969
7962
|
module.exports = require("util");
|
|
7970
7963
|
},
|
|
7971
|
-
5385: (module) => {
|
|
7972
|
-
"use strict";
|
|
7973
|
-
module.exports = JSON.parse(
|
|
7974
|
-
'{"title":"CSS Loader options","additionalProperties":false,"properties":{"url":{"description":"Allows to enables/disables `url()`/`image-set()` functions handling.","link":"https://github.com/webpack-contrib/css-loader#url","anyOf":[{"type":"boolean"},{"type":"object","properties":{"filter":{"instanceof":"Function"}},"additionalProperties":false}]},"import":{"description":"Allows to enables/disables `@import` at-rules handling.","link":"https://github.com/webpack-contrib/css-loader#import","anyOf":[{"type":"boolean"},{"type":"object","properties":{"filter":{"instanceof":"Function"}},"additionalProperties":false}]},"modules":{"description":"Allows to enable/disable CSS Modules or ICSS and setup configuration.","link":"https://github.com/webpack-contrib/css-loader#modules","anyOf":[{"type":"boolean"},{"enum":["local","global","pure","icss"]},{"type":"object","additionalProperties":false,"properties":{"auto":{"description":"Allows auto enable CSS modules based on filename.","link":"https://github.com/webpack-contrib/css-loader#auto","anyOf":[{"instanceof":"RegExp"},{"instanceof":"Function"},{"type":"boolean"}]},"mode":{"description":"Setup `mode` option.","link":"https://github.com/webpack-contrib/css-loader#mode","anyOf":[{"enum":["local","global","pure","icss"]},{"instanceof":"Function"}]},"localIdentName":{"description":"Allows to configure the generated local ident name.","link":"https://github.com/webpack-contrib/css-loader#localidentname","type":"string","minLength":1},"localIdentContext":{"description":"Allows to redefine basic loader context for local ident name.","link":"https://github.com/webpack-contrib/css-loader#localidentcontext","type":"string","minLength":1},"localIdentHashSalt":{"description":"Allows to add custom hash to generate more unique classes.","link":"https://github.com/webpack-contrib/css-loader#localidenthashsalt","type":"string","minLength":1},"localIdentHashFunction":{"description":"Allows to specify hash function to generate classes.","link":"https://github.com/webpack-contrib/css-loader#localidenthashfunction","type":"string","minLength":1},"localIdentHashDigest":{"description":"Allows to specify hash digest to generate classes.","link":"https://github.com/webpack-contrib/css-loader#localidenthashdigest","type":"string","minLength":1},"localIdentHashDigestLength":{"description":"Allows to specify hash digest length to generate classes.","link":"https://github.com/webpack-contrib/css-loader#localidenthashdigestlength","type":"number"},"hashStrategy":{"description":"Allows to specify should localName be used when computing the hash.","link":"https://github.com/webpack-contrib/css-loader#hashstrategy","enum":["resource-path-and-local-name","minimal-subset"]},"localIdentRegExp":{"description":"Allows to specify custom RegExp for local ident name.","link":"https://github.com/webpack-contrib/css-loader#localidentregexp","anyOf":[{"type":"string","minLength":1},{"instanceof":"RegExp"}]},"getLocalIdent":{"description":"Allows to specify a function to generate the classname.","link":"https://github.com/webpack-contrib/css-loader#getlocalident","instanceof":"Function"},"namedExport":{"description":"Enables/disables ES modules named export for locals.","link":"https://github.com/webpack-contrib/css-loader#namedexport","type":"boolean"},"exportGlobals":{"description":"Allows to export names from global class or id, so you can use that as local name.","link":"https://github.com/webpack-contrib/css-loader#exportglobals","type":"boolean"},"exportLocalsConvention":{"description":"Style of exported classnames.","link":"https://github.com/webpack-contrib/css-loader#localsconvention","anyOf":[{"enum":["asIs","as-is","camelCase","camel-case","camelCaseOnly","camel-case-only","dashes","dashesOnly","dashes-only"]},{"instanceof":"Function"}]},"exportOnlyLocals":{"description":"Export only locals.","link":"https://github.com/webpack-contrib/css-loader#exportonlylocals","type":"boolean"},"getJSON":{"description":"Allows outputting of CSS modules mapping through a callback.","link":"https://github.com/webpack-contrib/css-loader#getJSON","instanceof":"Function"}}}]},"sourceMap":{"description":"Allows to enable/disable source maps.","link":"https://github.com/webpack-contrib/css-loader#sourcemap","type":"boolean"},"importLoaders":{"description":"Allows enables/disables or setups number of loaders applied before CSS loader for `@import`/CSS Modules and ICSS imports.","link":"https://github.com/webpack-contrib/css-loader#importloaders","anyOf":[{"type":"boolean"},{"type":"string"},{"type":"integer"}]},"esModule":{"description":"Use the ES modules syntax.","link":"https://github.com/webpack-contrib/css-loader#esmodule","type":"boolean"},"exportType":{"description":"Allows exporting styles as array with modules, string or constructable stylesheet (i.e. `CSSStyleSheet`).","link":"https://github.com/webpack-contrib/css-loader#exporttype","enum":["array","string","css-style-sheet"]}},"type":"object"}',
|
|
7975
|
-
);
|
|
7976
|
-
},
|
|
7977
|
-
7337: (module) => {
|
|
7978
|
-
"use strict";
|
|
7979
|
-
module.exports = JSON.parse(
|
|
7980
|
-
'{"name":"postcss","version":"8.4.49","description":"Tool for transforming styles with JS plugins","engines":{"node":"^10 || ^12 || >=14"},"exports":{".":{"require":"./lib/postcss.js","import":"./lib/postcss.mjs"},"./lib/at-rule":"./lib/at-rule.js","./lib/comment":"./lib/comment.js","./lib/container":"./lib/container.js","./lib/css-syntax-error":"./lib/css-syntax-error.js","./lib/declaration":"./lib/declaration.js","./lib/fromJSON":"./lib/fromJSON.js","./lib/input":"./lib/input.js","./lib/lazy-result":"./lib/lazy-result.js","./lib/no-work-result":"./lib/no-work-result.js","./lib/list":"./lib/list.js","./lib/map-generator":"./lib/map-generator.js","./lib/node":"./lib/node.js","./lib/parse":"./lib/parse.js","./lib/parser":"./lib/parser.js","./lib/postcss":"./lib/postcss.js","./lib/previous-map":"./lib/previous-map.js","./lib/processor":"./lib/processor.js","./lib/result":"./lib/result.js","./lib/root":"./lib/root.js","./lib/rule":"./lib/rule.js","./lib/stringifier":"./lib/stringifier.js","./lib/stringify":"./lib/stringify.js","./lib/symbols":"./lib/symbols.js","./lib/terminal-highlight":"./lib/terminal-highlight.js","./lib/tokenize":"./lib/tokenize.js","./lib/warn-once":"./lib/warn-once.js","./lib/warning":"./lib/warning.js","./package.json":"./package.json"},"main":"./lib/postcss.js","types":"./lib/postcss.d.ts","keywords":["css","postcss","rework","preprocessor","parser","source map","transform","manipulation","transpiler"],"funding":[{"type":"opencollective","url":"https://opencollective.com/postcss/"},{"type":"tidelift","url":"https://tidelift.com/funding/github/npm/postcss"},{"type":"github","url":"https://github.com/sponsors/ai"}],"author":"Andrey Sitnik <andrey@sitnik.ru>","license":"MIT","homepage":"https://postcss.org/","repository":"postcss/postcss","bugs":{"url":"https://github.com/postcss/postcss/issues"},"dependencies":{"nanoid":"^3.3.7","picocolors":"^1.1.1","source-map-js":"^1.2.1"},"browser":{"./lib/terminal-highlight":false,"source-map-js":false,"path":false,"url":false,"fs":false}}',
|
|
7981
|
-
);
|
|
7982
|
-
},
|
|
7983
7964
|
};
|
|
7984
7965
|
var __webpack_module_cache__ = {};
|
|
7985
7966
|
function __nccwpck_require__(moduleId) {
|
|
@@ -8003,6 +7984,6 @@
|
|
|
8003
7984
|
}
|
|
8004
7985
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
8005
7986
|
__nccwpck_require__.ab = __dirname + "/";
|
|
8006
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
7987
|
+
var __webpack_exports__ = __nccwpck_require__(5109);
|
|
8007
7988
|
module.exports = __webpack_exports__;
|
|
8008
7989
|
})();
|
|
@@ -1958,7 +1958,7 @@
|
|
|
1958
1958
|
"use strict";
|
|
1959
1959
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1960
1960
|
exports.HttpProxyMiddleware = void 0;
|
|
1961
|
-
const httpProxy = __nccwpck_require__(
|
|
1961
|
+
const httpProxy = __nccwpck_require__(4611);
|
|
1962
1962
|
const config_factory_1 = __nccwpck_require__(8234);
|
|
1963
1963
|
const contextMatcher = __nccwpck_require__(6188);
|
|
1964
1964
|
const handlers = __nccwpck_require__(1068);
|
|
@@ -2377,7 +2377,7 @@
|
|
|
2377
2377
|
return v.indexOf("/") > -1;
|
|
2378
2378
|
}
|
|
2379
2379
|
},
|
|
2380
|
-
|
|
2380
|
+
4611: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
2381
2381
|
/*!
|
|
2382
2382
|
* Caron dimonio, con occhi di bragia
|
|
2383
2383
|
* loro accennando, tutte le raccoglie;
|
|
@@ -2389,10 +2389,10 @@
|
|
|
2389
2389
|
*
|
|
2390
2390
|
* Dante - The Divine Comedy (Canto III)
|
|
2391
2391
|
*/
|
|
2392
|
-
module.exports = __nccwpck_require__(
|
|
2392
|
+
module.exports = __nccwpck_require__(3415);
|
|
2393
2393
|
},
|
|
2394
|
-
|
|
2395
|
-
var ProxyServer = __nccwpck_require__(
|
|
2394
|
+
3415: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
2395
|
+
var ProxyServer = __nccwpck_require__(8963).Server;
|
|
2396
2396
|
function createProxyServer(options) {
|
|
2397
2397
|
return new ProxyServer(options);
|
|
2398
2398
|
}
|
|
@@ -2401,10 +2401,9 @@
|
|
|
2401
2401
|
ProxyServer.createProxy = createProxyServer;
|
|
2402
2402
|
module.exports = ProxyServer;
|
|
2403
2403
|
},
|
|
2404
|
-
|
|
2404
|
+
5805: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
2405
2405
|
var common = exports,
|
|
2406
2406
|
url = __nccwpck_require__(7310),
|
|
2407
|
-
extend = __nccwpck_require__(3837)._extend,
|
|
2408
2407
|
required = __nccwpck_require__(6886);
|
|
2409
2408
|
var upgradeHeader = /(^|,)\s*upgrade\s*($|,)/i,
|
|
2410
2409
|
isSSL = /^https|wss/;
|
|
@@ -2428,9 +2427,9 @@
|
|
|
2428
2427
|
outgoing[e] = options[forward || "target"][e];
|
|
2429
2428
|
});
|
|
2430
2429
|
outgoing.method = options.method || req.method;
|
|
2431
|
-
outgoing.headers =
|
|
2430
|
+
outgoing.headers = Object.assign({}, req.headers);
|
|
2432
2431
|
if (options.headers) {
|
|
2433
|
-
|
|
2432
|
+
Object.assign(outgoing.headers, options.headers);
|
|
2434
2433
|
}
|
|
2435
2434
|
if (options.auth) {
|
|
2436
2435
|
outgoing.auth = options.auth;
|
|
@@ -2534,15 +2533,14 @@
|
|
|
2534
2533
|
return !!~host.indexOf(":");
|
|
2535
2534
|
}
|
|
2536
2535
|
},
|
|
2537
|
-
|
|
2536
|
+
8963: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
2538
2537
|
var httpProxy = module.exports,
|
|
2539
|
-
extend = __nccwpck_require__(3837)._extend,
|
|
2540
2538
|
parse_url = __nccwpck_require__(7310).parse,
|
|
2541
2539
|
EE3 = __nccwpck_require__(2171),
|
|
2542
2540
|
http = __nccwpck_require__(3685),
|
|
2543
2541
|
https = __nccwpck_require__(5687),
|
|
2544
|
-
web = __nccwpck_require__(
|
|
2545
|
-
ws = __nccwpck_require__(
|
|
2542
|
+
web = __nccwpck_require__(1856),
|
|
2543
|
+
ws = __nccwpck_require__(7996);
|
|
2546
2544
|
httpProxy.Server = ProxyServer;
|
|
2547
2545
|
function createRightProxy(type) {
|
|
2548
2546
|
return function (options) {
|
|
@@ -2558,8 +2556,8 @@
|
|
|
2558
2556
|
}
|
|
2559
2557
|
var requestOptions = options;
|
|
2560
2558
|
if (!(args[cntr] instanceof Buffer) && args[cntr] !== res) {
|
|
2561
|
-
requestOptions =
|
|
2562
|
-
|
|
2559
|
+
requestOptions = Object.assign({}, options);
|
|
2560
|
+
Object.assign(requestOptions, args[cntr]);
|
|
2563
2561
|
cntr--;
|
|
2564
2562
|
}
|
|
2565
2563
|
if (args[cntr] instanceof Buffer) {
|
|
@@ -2658,11 +2656,11 @@
|
|
|
2658
2656
|
passes.splice(i++, 0, callback);
|
|
2659
2657
|
};
|
|
2660
2658
|
},
|
|
2661
|
-
|
|
2659
|
+
1856: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
2662
2660
|
var httpNative = __nccwpck_require__(3685),
|
|
2663
2661
|
httpsNative = __nccwpck_require__(5687),
|
|
2664
|
-
web_o = __nccwpck_require__(
|
|
2665
|
-
common = __nccwpck_require__(
|
|
2662
|
+
web_o = __nccwpck_require__(5042),
|
|
2663
|
+
common = __nccwpck_require__(5805),
|
|
2666
2664
|
followRedirects = __nccwpck_require__(4587);
|
|
2667
2665
|
web_o = Object.keys(web_o).map(function (pass) {
|
|
2668
2666
|
return web_o[pass];
|
|
@@ -2781,9 +2779,9 @@
|
|
|
2781
2779
|
},
|
|
2782
2780
|
};
|
|
2783
2781
|
},
|
|
2784
|
-
|
|
2782
|
+
5042: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
2785
2783
|
var url = __nccwpck_require__(7310),
|
|
2786
|
-
common = __nccwpck_require__(
|
|
2784
|
+
common = __nccwpck_require__(5805);
|
|
2787
2785
|
var redirectRegex = /^201|30(1|2|7|8)$/;
|
|
2788
2786
|
/*!
|
|
2789
2787
|
* Array of passes.
|
|
@@ -2897,10 +2895,10 @@
|
|
|
2897
2895
|
},
|
|
2898
2896
|
};
|
|
2899
2897
|
},
|
|
2900
|
-
|
|
2898
|
+
7996: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
2901
2899
|
var http = __nccwpck_require__(3685),
|
|
2902
2900
|
https = __nccwpck_require__(5687),
|
|
2903
|
-
common = __nccwpck_require__(
|
|
2901
|
+
common = __nccwpck_require__(5805);
|
|
2904
2902
|
/*!
|
|
2905
2903
|
* Array of passes.
|
|
2906
2904
|
*
|