@modern-js/dependence-generator 1.2.1 → 1.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/js/node/main.js +3357 -269
- package/package.json +3 -4
package/dist/js/node/main.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/******/ (() => { // webpackBootstrap
|
|
2
2
|
/******/ var __webpack_modules__ = ({
|
|
3
3
|
|
|
4
|
-
/***/
|
|
4
|
+
/***/ 49547:
|
|
5
5
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
6
6
|
|
|
7
7
|
"use strict";
|
|
@@ -16,7 +16,7 @@ var _easyFormCli = __webpack_require__(62408);
|
|
|
16
16
|
|
|
17
17
|
var _inquirerTypes = __webpack_require__(78659);
|
|
18
18
|
|
|
19
|
-
var _constant = __webpack_require__(
|
|
19
|
+
var _constant = __webpack_require__(82409);
|
|
20
20
|
|
|
21
21
|
const registerListPrompt = inquirer => {
|
|
22
22
|
try {
|
|
@@ -100,7 +100,7 @@ exports.listNode = listNode;
|
|
|
100
100
|
|
|
101
101
|
/***/ }),
|
|
102
102
|
|
|
103
|
-
/***/
|
|
103
|
+
/***/ 82409:
|
|
104
104
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
105
105
|
|
|
106
106
|
"use strict";
|
|
@@ -125,7 +125,7 @@ exports.CLI_TYPE = CLI_TYPE;
|
|
|
125
125
|
|
|
126
126
|
/***/ }),
|
|
127
127
|
|
|
128
|
-
/***/
|
|
128
|
+
/***/ 96354:
|
|
129
129
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
130
130
|
|
|
131
131
|
"use strict";
|
|
@@ -135,7 +135,7 @@ Object.defineProperty(exports, "__esModule", ({
|
|
|
135
135
|
value: true
|
|
136
136
|
}));
|
|
137
137
|
|
|
138
|
-
var _ListNode = __webpack_require__(
|
|
138
|
+
var _ListNode = __webpack_require__(49547);
|
|
139
139
|
|
|
140
140
|
Object.keys(_ListNode).forEach(function (key) {
|
|
141
141
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -150,7 +150,7 @@ Object.keys(_ListNode).forEach(function (key) {
|
|
|
150
150
|
|
|
151
151
|
/***/ }),
|
|
152
152
|
|
|
153
|
-
/***/
|
|
153
|
+
/***/ 80355:
|
|
154
154
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
155
155
|
|
|
156
156
|
"use strict";
|
|
@@ -175,7 +175,7 @@ Object.defineProperty(exports, "transformSchema", ({
|
|
|
175
175
|
|
|
176
176
|
var _merge2 = _interopRequireDefault(__webpack_require__(13904));
|
|
177
177
|
|
|
178
|
-
var _fsExtra = _interopRequireDefault(__webpack_require__(
|
|
178
|
+
var _fsExtra = _interopRequireDefault(__webpack_require__(83950));
|
|
179
179
|
|
|
180
180
|
var _semver = _interopRequireDefault(__webpack_require__(20962));
|
|
181
181
|
|
|
@@ -191,11 +191,11 @@ var _codesmithApiHandlebars = __webpack_require__(12291);
|
|
|
191
191
|
|
|
192
192
|
var _easyFormCli = __webpack_require__(62408);
|
|
193
193
|
|
|
194
|
-
var _transformSchema = __webpack_require__(
|
|
194
|
+
var _transformSchema = __webpack_require__(90115);
|
|
195
195
|
|
|
196
|
-
var handlers = _interopRequireWildcard(__webpack_require__(
|
|
196
|
+
var handlers = _interopRequireWildcard(__webpack_require__(96354));
|
|
197
197
|
|
|
198
|
-
var _locale = __webpack_require__(
|
|
198
|
+
var _locale = __webpack_require__(88506);
|
|
199
199
|
|
|
200
200
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
201
201
|
|
|
@@ -232,9 +232,9 @@ class AppAPI {
|
|
|
232
232
|
return false;
|
|
233
233
|
}
|
|
234
234
|
|
|
235
|
-
if (!(await (0, _codesmithApiNpm.canUseYarn)()) && !(await (0, _codesmithApiNpm.canUsePnpm)())) {
|
|
236
|
-
this.generatorCore.logger.debug("can't use yarn or pnpm");
|
|
237
|
-
this.generatorCore.logger.warn(_locale.i18n.t(_locale.localeKeys.environment.
|
|
235
|
+
if (!(await (0, _codesmithApiNpm.canUseYarn)()) && !(await (0, _codesmithApiNpm.canUsePnpm)()) && !(await (0, _codesmithApiNpm.canUseNpm)())) {
|
|
236
|
+
this.generatorCore.logger.debug("can't use yarn or pnpm or npm");
|
|
237
|
+
this.generatorCore.logger.warn(_locale.i18n.t(_locale.localeKeys.environment.yarn_pnpm_npm));
|
|
238
238
|
return false;
|
|
239
239
|
}
|
|
240
240
|
|
|
@@ -410,7 +410,7 @@ exports.AppAPI = AppAPI;
|
|
|
410
410
|
|
|
411
411
|
/***/ }),
|
|
412
412
|
|
|
413
|
-
/***/
|
|
413
|
+
/***/ 5664:
|
|
414
414
|
/***/ ((__unused_webpack_module, exports) => {
|
|
415
415
|
|
|
416
416
|
"use strict";
|
|
@@ -424,7 +424,7 @@ const EN_LOCALE = {
|
|
|
424
424
|
environment: {
|
|
425
425
|
node_version: 'please upgrade node to lts version',
|
|
426
426
|
nvm_install: 'please install nvm first',
|
|
427
|
-
|
|
427
|
+
yarn_pnpm_npm: 'please install yarn or pnpm or npm first'
|
|
428
428
|
},
|
|
429
429
|
install: {
|
|
430
430
|
failed: 'dependencies install failed, please execute `{command}` to install the dependencies ',
|
|
@@ -449,7 +449,7 @@ exports.EN_LOCALE = EN_LOCALE;
|
|
|
449
449
|
|
|
450
450
|
/***/ }),
|
|
451
451
|
|
|
452
|
-
/***/
|
|
452
|
+
/***/ 88506:
|
|
453
453
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
454
454
|
|
|
455
455
|
"use strict";
|
|
@@ -466,11 +466,11 @@ Object.defineProperty(exports, "I18n", ({
|
|
|
466
466
|
}));
|
|
467
467
|
exports.localeKeys = exports.i18n = void 0;
|
|
468
468
|
|
|
469
|
-
var _pluginI18n = __webpack_require__(
|
|
469
|
+
var _pluginI18n = __webpack_require__(54207);
|
|
470
470
|
|
|
471
|
-
var _zh = __webpack_require__(
|
|
471
|
+
var _zh = __webpack_require__(12214);
|
|
472
472
|
|
|
473
|
-
var _en = __webpack_require__(
|
|
473
|
+
var _en = __webpack_require__(5664);
|
|
474
474
|
|
|
475
475
|
const i18n = new _pluginI18n.I18n();
|
|
476
476
|
exports.i18n = i18n;
|
|
@@ -482,7 +482,7 @@ exports.localeKeys = localeKeys;
|
|
|
482
482
|
|
|
483
483
|
/***/ }),
|
|
484
484
|
|
|
485
|
-
/***/
|
|
485
|
+
/***/ 12214:
|
|
486
486
|
/***/ ((__unused_webpack_module, exports) => {
|
|
487
487
|
|
|
488
488
|
"use strict";
|
|
@@ -496,7 +496,7 @@ const ZH_LOCALE = {
|
|
|
496
496
|
environment: {
|
|
497
497
|
node_version: '请升级 Node 版本至 LIS',
|
|
498
498
|
nvm_install: '检测到环境中未安装 nvm,请先安装 nvm',
|
|
499
|
-
|
|
499
|
+
yarn_pnpm_npm: '检测到环境中未安装包管理工具,请先安装 yarn 或 pnpm 或 npm'
|
|
500
500
|
},
|
|
501
501
|
install: {
|
|
502
502
|
failed: '依赖自动安装失败,请手动执行 `{command}` 命令进行安装',
|
|
@@ -521,7 +521,7 @@ exports.ZH_LOCALE = ZH_LOCALE;
|
|
|
521
521
|
|
|
522
522
|
/***/ }),
|
|
523
523
|
|
|
524
|
-
/***/
|
|
524
|
+
/***/ 90115:
|
|
525
525
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
526
526
|
|
|
527
527
|
"use strict";
|
|
@@ -1352,7 +1352,7 @@ var _ora = _interopRequireDefault(__webpack_require__(60483));
|
|
|
1352
1352
|
|
|
1353
1353
|
var _chalk = _interopRequireDefault(__webpack_require__(9834));
|
|
1354
1354
|
|
|
1355
|
-
var _fsExtra = _interopRequireDefault(__webpack_require__(
|
|
1355
|
+
var _fsExtra = _interopRequireDefault(__webpack_require__(83950));
|
|
1356
1356
|
|
|
1357
1357
|
var _FsMaterial = __webpack_require__(77410);
|
|
1358
1358
|
|
|
@@ -1871,7 +1871,7 @@ exports.FsResource = exports.FS_RESOURCE = void 0;
|
|
|
1871
1871
|
|
|
1872
1872
|
var _path = _interopRequireDefault(__webpack_require__(71017));
|
|
1873
1873
|
|
|
1874
|
-
var _fsExtra = _interopRequireDefault(__webpack_require__(
|
|
1874
|
+
var _fsExtra = _interopRequireDefault(__webpack_require__(83950));
|
|
1875
1875
|
|
|
1876
1876
|
var _constants = __webpack_require__(97578);
|
|
1877
1877
|
|
|
@@ -1999,7 +1999,7 @@ exports.downloadPackage = downloadPackage;
|
|
|
1999
1999
|
|
|
2000
2000
|
var _os = _interopRequireDefault(__webpack_require__(22037));
|
|
2001
2001
|
|
|
2002
|
-
var _fsExtra = _interopRequireDefault(__webpack_require__(
|
|
2002
|
+
var _fsExtra = _interopRequireDefault(__webpack_require__(83950));
|
|
2003
2003
|
|
|
2004
2004
|
var _axios = _interopRequireDefault(__webpack_require__(45114));
|
|
2005
2005
|
|
|
@@ -2144,7 +2144,7 @@ Object.defineProperty(exports, "__esModule", ({
|
|
|
2144
2144
|
}));
|
|
2145
2145
|
exports.fsExists = fsExists;
|
|
2146
2146
|
|
|
2147
|
-
var _fsExtra = _interopRequireDefault(__webpack_require__(
|
|
2147
|
+
var _fsExtra = _interopRequireDefault(__webpack_require__(83950));
|
|
2148
2148
|
|
|
2149
2149
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2150
2150
|
|
|
@@ -2177,7 +2177,7 @@ exports.getGeneratorDir = getGeneratorDir;
|
|
|
2177
2177
|
|
|
2178
2178
|
var _path = _interopRequireDefault(__webpack_require__(71017));
|
|
2179
2179
|
|
|
2180
|
-
var _fsExtra = _interopRequireDefault(__webpack_require__(
|
|
2180
|
+
var _fsExtra = _interopRequireDefault(__webpack_require__(83950));
|
|
2181
2181
|
|
|
2182
2182
|
var _fsExists = __webpack_require__(88129);
|
|
2183
2183
|
|
|
@@ -2489,7 +2489,7 @@ var _path = _interopRequireDefault(__webpack_require__(71017));
|
|
|
2489
2489
|
|
|
2490
2490
|
var _execa = _interopRequireDefault(__webpack_require__(16228));
|
|
2491
2491
|
|
|
2492
|
-
var _fsExtra = _interopRequireDefault(__webpack_require__(
|
|
2492
|
+
var _fsExtra = _interopRequireDefault(__webpack_require__(83950));
|
|
2493
2493
|
|
|
2494
2494
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2495
2495
|
|
|
@@ -5689,7 +5689,7 @@ exports.pointer = pointer;
|
|
|
5689
5689
|
|
|
5690
5690
|
/***/ }),
|
|
5691
5691
|
|
|
5692
|
-
/***/
|
|
5692
|
+
/***/ 54207:
|
|
5693
5693
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
5694
5694
|
|
|
5695
5695
|
"use strict";
|
|
@@ -5702,7 +5702,7 @@ exports.I18n = void 0;
|
|
|
5702
5702
|
|
|
5703
5703
|
var _get2 = _interopRequireDefault(__webpack_require__(71189));
|
|
5704
5704
|
|
|
5705
|
-
var _utils = __webpack_require__(
|
|
5705
|
+
var _utils = __webpack_require__(41083);
|
|
5706
5706
|
|
|
5707
5707
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
5708
5708
|
|
|
@@ -5771,7 +5771,7 @@ exports.I18n = I18n;
|
|
|
5771
5771
|
|
|
5772
5772
|
/***/ }),
|
|
5773
5773
|
|
|
5774
|
-
/***/
|
|
5774
|
+
/***/ 41083:
|
|
5775
5775
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
5776
5776
|
|
|
5777
5777
|
"use strict";
|
|
@@ -12955,7 +12955,7 @@ var map = {
|
|
|
12955
12955
|
"./ogv.js": 40801,
|
|
12956
12956
|
"./ol-reversed.js": 26175,
|
|
12957
12957
|
"./once-event-listener.js": 57717,
|
|
12958
|
-
"./online-status.js":
|
|
12958
|
+
"./online-status.js": 10169,
|
|
12959
12959
|
"./opus.js": 98244,
|
|
12960
12960
|
"./orientation-sensor.js": 95649,
|
|
12961
12961
|
"./outline.js": 15413,
|
|
@@ -13264,7 +13264,7 @@ var map = {
|
|
|
13264
13264
|
"./LA.js": 90217,
|
|
13265
13265
|
"./LB.js": 55982,
|
|
13266
13266
|
"./LC.js": 91545,
|
|
13267
|
-
"./LI.js":
|
|
13267
|
+
"./LI.js": 29442,
|
|
13268
13268
|
"./LK.js": 87914,
|
|
13269
13269
|
"./LR.js": 55121,
|
|
13270
13270
|
"./LS.js": 67215,
|
|
@@ -13295,7 +13295,7 @@ var map = {
|
|
|
13295
13295
|
"./MY.js": 53874,
|
|
13296
13296
|
"./MZ.js": 11334,
|
|
13297
13297
|
"./NA.js": 4490,
|
|
13298
|
-
"./NC.js":
|
|
13298
|
+
"./NC.js": 22077,
|
|
13299
13299
|
"./NE.js": 96699,
|
|
13300
13300
|
"./NF.js": 62507,
|
|
13301
13301
|
"./NG.js": 92734,
|
|
@@ -17321,7 +17321,7 @@ module.exports={A:{A:{"2":"J D E F A B oB"},B:{"1":"M N O P Q R U V W X Y Z a b
|
|
|
17321
17321
|
|
|
17322
17322
|
/***/ }),
|
|
17323
17323
|
|
|
17324
|
-
/***/
|
|
17324
|
+
/***/ 10169:
|
|
17325
17325
|
/***/ ((module) => {
|
|
17326
17326
|
|
|
17327
17327
|
module.exports={A:{A:{"1":"F A B","2":"J D oB","260":"E"},B:{"1":"C K L G M N O P Q R U V W X Y Z a b c d e f S H"},C:{"1":"3 4 5 6 7 8 9 AB BB CB DB EB FB GB HB IB JB KB fB LB gB MB NB T OB PB QB RB SB TB UB VB WB XB YB ZB aB bB P Q R hB U V W X Y Z a b c d e f S H iB qB rB","2":"pB eB","516":"0 1 2 I g J D E F A B C K L G M N O h i j k l m n o p q r s t u v w x y z"},D:{"1":"0 1 2 3 4 5 6 7 8 9 L G M N O h i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB fB LB gB MB NB T OB PB QB RB SB TB UB VB WB XB YB ZB aB bB P Q R U V W X Y Z a b c d e f S H iB sB tB","2":"I g J D E F A B C K"},E:{"1":"g J D E F A B C K L G vB wB xB yB kB cB dB zB 0B 1B lB 2B","2":"I uB jB"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G M N O h i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB T OB PB QB RB SB TB UB VB WB XB YB ZB aB bB P Q R hB","2":"F B C 3B 4B 5B 6B cB mB 7B","4":"dB"},G:{"1":"E nB 9B AC BC CC DC EC FC GC HC IC JC KC LC MC NC OC PC QC RC lB","16":"jB 8B"},H:{"2":"SC"},I:{"1":"eB I H VC WC nB XC YC","16":"TC UC"},J:{"1":"A","132":"D"},K:{"1":"T","2":"A B C cB mB dB"},L:{"1":"H"},M:{"1":"S"},N:{"1":"A B"},O:{"1":"ZC"},P:{"1":"I aC bC cC dC eC kB fC gC hC iC jC"},Q:{"1":"kC"},R:{"1":"lC"},S:{"1":"mC"}},B:1,C:"Online/offline status"};
|
|
@@ -19569,7 +19569,7 @@ module.exports={C:{"56":0.03291,"68":0.00411,"78":0.00411,"87":0.10285,"94":0.27
|
|
|
19569
19569
|
|
|
19570
19570
|
/***/ }),
|
|
19571
19571
|
|
|
19572
|
-
/***/
|
|
19572
|
+
/***/ 29442:
|
|
19573
19573
|
/***/ ((module) => {
|
|
19574
19574
|
|
|
19575
19575
|
module.exports={C:{"54":0.3229,"77":0.31644,"78":0.0775,"84":0.01937,"88":0.03875,"89":0.03229,"90":0.01937,"91":0.10979,"92":0.07104,"93":1.31743,"94":6.43863,"95":0.03875,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 79 80 81 82 83 85 86 87 96 3.5 3.6"},D:{"49":0.69101,"73":0.02583,"75":0.01292,"79":0.14853,"81":0.03875,"83":0.03229,"84":0.04521,"85":0.02583,"86":0.00646,"87":0.04521,"88":0.00646,"89":0.04521,"90":0.2454,"91":0.03875,"92":0.23249,"93":1.77595,"94":1.56929,"95":17.89512,"96":10.42321,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 74 76 77 78 80 97 98 99"},F:{"77":0.06458,"79":0.01292,"80":2.77048,"81":0.62643,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 78 9.5-9.6 10.5 10.6 11.1 11.5 11.6 12.1","10.0-10.1":0},B:{"18":0.03229,"83":0.0775,"88":0.02583,"91":0.01937,"92":0.41331,"93":0.06458,"94":0.4456,"95":6.50966,"96":2.77048,_:"12 13 14 15 16 17 79 80 81 84 85 86 87 89 90"},E:{"4":0,"13":0.19374,"14":0.4004,"15":0.93641,_:"0 5 6 7 8 9 10 11 12 3.1 3.2 5.1 6.1 7.1 10.1","9.1":0.00646,"11.1":0.27124,"12.1":0.03875,"13.1":0.74913,"14.1":2.2603,"15.1":2.64132},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0,"5.0-5.1":0,"6.0-6.1":0,"7.0-7.1":0,"8.1-8.4":0.00183,"9.0-9.2":0,"9.3":0.02569,"10.0-10.2":0.00183,"10.3":0.01835,"11.0-11.2":0.01284,"11.3-11.4":0.07706,"12.0-12.1":0.04587,"12.2-12.5":0.73757,"13.0-13.1":0.16513,"13.2":0.09357,"13.3":0.03303,"13.4-13.7":0.0899,"14.0-14.4":1.00361,"14.5-14.8":6.53357,"15.0-15.1":9.50771},P:{"4":0.07389,"5.0-5.4":0.01013,"6.2-6.4":0.0709,"7.2-7.4":0.6482,"8.2":0.02026,"9.2":0.09115,"10.1":0.01056,"11.1-11.2":0.03167,"12.0":0.09115,"13.0":0.14778,"14.0":0.02111,"15.0":2.14275},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{_:"0 10 11 12 11.1 11.5 12.1"},A:{"8":0.01292,"11":0.30998,_:"6 7 9 10 5.5"},J:{"7":0,"10":0},N:{"10":0.02658,"11":0.22582},L:{"0":14.21942},S:{"2.5":0},R:{_:"0"},M:{"0":0.34357},Q:{"10.4":0},O:{"0":0},H:{"0":0.01677}};
|
|
@@ -19817,7 +19817,7 @@ module.exports={C:{"34":0.02428,"52":0.01041,"54":0.00347,"56":0.12488,"69":0.00
|
|
|
19817
19817
|
|
|
19818
19818
|
/***/ }),
|
|
19819
19819
|
|
|
19820
|
-
/***/
|
|
19820
|
+
/***/ 22077:
|
|
19821
19821
|
/***/ ((module) => {
|
|
19822
19822
|
|
|
19823
19823
|
module.exports={C:{"45":0.01744,"51":0.00872,"52":0.13077,"60":0.17872,"68":0.0741,"78":0.27026,"80":0.01744,"84":0.00872,"87":0.01308,"88":0.04359,"89":0.00436,"90":0.00872,"91":0.17872,"92":0.01744,"93":0.05667,"94":2.32335,"95":3.84028,"96":0.00872,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 46 47 48 49 50 53 54 55 56 57 58 59 61 62 63 64 65 66 67 69 70 71 72 73 74 75 76 77 79 81 82 83 85 86 97 3.5 3.6"},D:{"34":0.00872,"49":0.08718,"55":0.00872,"60":0.00872,"63":0.01744,"65":0.00872,"67":0.03487,"71":0.00872,"72":0.00436,"73":0.00872,"74":0.00872,"75":0.00436,"77":0.01744,"78":0.01744,"79":0.00872,"80":0.02615,"81":0.01308,"85":0.03487,"86":0.03923,"87":0.24846,"88":0.0218,"89":0.04359,"90":0.10898,"91":0.0218,"92":0.42282,"93":0.29205,"94":0.26154,"95":0.55795,"96":20.71397,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 39 40 41 42 43 44 45 46 47 48 50 51 52 53 54 56 57 58 59 61 62 64 66 68 69 70 76 83 84 97 98 99"},F:{"78":0.00436,"81":0.25282,"82":0.22231,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 9.5-9.6 10.5 10.6 11.1 11.5 11.6 12.1","10.0-10.1":0},E:{"4":0,"12":0.27026,"13":0.06103,"14":0.32693,"15":0.29641,_:"0 5 6 7 8 9 10 11 3.1 3.2 5.1 6.1 7.1 9.1","10.1":0.03051,"11.1":0.04795,"12.1":0.23539,"13.1":0.49257,"14.1":2.30155,"15.1":1.57796,"15.2":0.26154},B:{"15":0.00436,"16":0.00872,"17":0.00436,"18":0.03051,"86":0.01744,"87":0.01744,"89":0.00436,"91":0.0218,"92":0.00872,"93":0.00872,"94":0.01308,"95":0.08282,"96":3.83592,_:"12 13 14 79 80 81 83 84 85 88 90"},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00441,"5.0-5.1":0,"6.0-6.1":0.00588,"7.0-7.1":0,"8.1-8.4":0.00588,"9.0-9.2":0.00441,"9.3":0.09265,"10.0-10.2":0.01029,"10.3":0.18677,"11.0-11.2":0.03088,"11.3-11.4":0.17059,"12.0-12.1":0.01912,"12.2-12.5":1.41325,"13.0-13.1":0.02353,"13.2":0.01029,"13.3":0.27059,"13.4-13.7":0.46618,"14.0-14.4":0.71619,"14.5-14.8":3.6427,"15.0-15.1":7.10892,"15.2":0.52354},P:{"4":0.02115,"5.0-5.4":0.01033,"6.2-6.4":0.07067,"7.2-7.4":1.21634,"8.2":0.15525,"9.2":0.07404,"10.1":0.02115,"11.1-11.2":0.64519,"12.0":0.12692,"13.0":0.34904,"14.0":0.32788,"15.0":1.07884},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00156,"4.4":0,"4.4.3-4.4.4":0.03229},K:{_:"0 10 11 12 11.1 11.5 12.1"},A:{"11":0.25718,_:"6 7 8 9 10 5.5"},N:{"11":0.04513,_:"10"},J:{"7":0,"10":0},O:{"0":0.02256},H:{"0":0.08545},L:{"0":34.77012},S:{"2.5":0},R:{_:"0"},M:{"0":0.55846},Q:{"10.4":0}};
|
|
@@ -40084,6 +40084,1980 @@ module.exports = {
|
|
|
40084
40084
|
}
|
|
40085
40085
|
|
|
40086
40086
|
|
|
40087
|
+
/***/ }),
|
|
40088
|
+
|
|
40089
|
+
/***/ 16345:
|
|
40090
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
40091
|
+
|
|
40092
|
+
"use strict";
|
|
40093
|
+
|
|
40094
|
+
|
|
40095
|
+
const fs = __webpack_require__(62204)
|
|
40096
|
+
const path = __webpack_require__(71017)
|
|
40097
|
+
const mkdirsSync = (__webpack_require__(59915).mkdirsSync)
|
|
40098
|
+
const utimesMillisSync = (__webpack_require__(88962).utimesMillisSync)
|
|
40099
|
+
const stat = __webpack_require__(12021)
|
|
40100
|
+
|
|
40101
|
+
function copySync (src, dest, opts) {
|
|
40102
|
+
if (typeof opts === 'function') {
|
|
40103
|
+
opts = { filter: opts }
|
|
40104
|
+
}
|
|
40105
|
+
|
|
40106
|
+
opts = opts || {}
|
|
40107
|
+
opts.clobber = 'clobber' in opts ? !!opts.clobber : true // default to true for now
|
|
40108
|
+
opts.overwrite = 'overwrite' in opts ? !!opts.overwrite : opts.clobber // overwrite falls back to clobber
|
|
40109
|
+
|
|
40110
|
+
// Warn about using preserveTimestamps on 32-bit node
|
|
40111
|
+
if (opts.preserveTimestamps && process.arch === 'ia32') {
|
|
40112
|
+
console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n
|
|
40113
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`)
|
|
40114
|
+
}
|
|
40115
|
+
|
|
40116
|
+
const { srcStat, destStat } = stat.checkPathsSync(src, dest, 'copy', opts)
|
|
40117
|
+
stat.checkParentPathsSync(src, srcStat, dest, 'copy')
|
|
40118
|
+
return handleFilterAndCopy(destStat, src, dest, opts)
|
|
40119
|
+
}
|
|
40120
|
+
|
|
40121
|
+
function handleFilterAndCopy (destStat, src, dest, opts) {
|
|
40122
|
+
if (opts.filter && !opts.filter(src, dest)) return
|
|
40123
|
+
const destParent = path.dirname(dest)
|
|
40124
|
+
if (!fs.existsSync(destParent)) mkdirsSync(destParent)
|
|
40125
|
+
return getStats(destStat, src, dest, opts)
|
|
40126
|
+
}
|
|
40127
|
+
|
|
40128
|
+
function startCopy (destStat, src, dest, opts) {
|
|
40129
|
+
if (opts.filter && !opts.filter(src, dest)) return
|
|
40130
|
+
return getStats(destStat, src, dest, opts)
|
|
40131
|
+
}
|
|
40132
|
+
|
|
40133
|
+
function getStats (destStat, src, dest, opts) {
|
|
40134
|
+
const statSync = opts.dereference ? fs.statSync : fs.lstatSync
|
|
40135
|
+
const srcStat = statSync(src)
|
|
40136
|
+
|
|
40137
|
+
if (srcStat.isDirectory()) return onDir(srcStat, destStat, src, dest, opts)
|
|
40138
|
+
else if (srcStat.isFile() ||
|
|
40139
|
+
srcStat.isCharacterDevice() ||
|
|
40140
|
+
srcStat.isBlockDevice()) return onFile(srcStat, destStat, src, dest, opts)
|
|
40141
|
+
else if (srcStat.isSymbolicLink()) return onLink(destStat, src, dest, opts)
|
|
40142
|
+
else if (srcStat.isSocket()) throw new Error(`Cannot copy a socket file: ${src}`)
|
|
40143
|
+
else if (srcStat.isFIFO()) throw new Error(`Cannot copy a FIFO pipe: ${src}`)
|
|
40144
|
+
throw new Error(`Unknown file: ${src}`)
|
|
40145
|
+
}
|
|
40146
|
+
|
|
40147
|
+
function onFile (srcStat, destStat, src, dest, opts) {
|
|
40148
|
+
if (!destStat) return copyFile(srcStat, src, dest, opts)
|
|
40149
|
+
return mayCopyFile(srcStat, src, dest, opts)
|
|
40150
|
+
}
|
|
40151
|
+
|
|
40152
|
+
function mayCopyFile (srcStat, src, dest, opts) {
|
|
40153
|
+
if (opts.overwrite) {
|
|
40154
|
+
fs.unlinkSync(dest)
|
|
40155
|
+
return copyFile(srcStat, src, dest, opts)
|
|
40156
|
+
} else if (opts.errorOnExist) {
|
|
40157
|
+
throw new Error(`'${dest}' already exists`)
|
|
40158
|
+
}
|
|
40159
|
+
}
|
|
40160
|
+
|
|
40161
|
+
function copyFile (srcStat, src, dest, opts) {
|
|
40162
|
+
fs.copyFileSync(src, dest)
|
|
40163
|
+
if (opts.preserveTimestamps) handleTimestamps(srcStat.mode, src, dest)
|
|
40164
|
+
return setDestMode(dest, srcStat.mode)
|
|
40165
|
+
}
|
|
40166
|
+
|
|
40167
|
+
function handleTimestamps (srcMode, src, dest) {
|
|
40168
|
+
// Make sure the file is writable before setting the timestamp
|
|
40169
|
+
// otherwise open fails with EPERM when invoked with 'r+'
|
|
40170
|
+
// (through utimes call)
|
|
40171
|
+
if (fileIsNotWritable(srcMode)) makeFileWritable(dest, srcMode)
|
|
40172
|
+
return setDestTimestamps(src, dest)
|
|
40173
|
+
}
|
|
40174
|
+
|
|
40175
|
+
function fileIsNotWritable (srcMode) {
|
|
40176
|
+
return (srcMode & 0o200) === 0
|
|
40177
|
+
}
|
|
40178
|
+
|
|
40179
|
+
function makeFileWritable (dest, srcMode) {
|
|
40180
|
+
return setDestMode(dest, srcMode | 0o200)
|
|
40181
|
+
}
|
|
40182
|
+
|
|
40183
|
+
function setDestMode (dest, srcMode) {
|
|
40184
|
+
return fs.chmodSync(dest, srcMode)
|
|
40185
|
+
}
|
|
40186
|
+
|
|
40187
|
+
function setDestTimestamps (src, dest) {
|
|
40188
|
+
// The initial srcStat.atime cannot be trusted
|
|
40189
|
+
// because it is modified by the read(2) system call
|
|
40190
|
+
// (See https://nodejs.org/api/fs.html#fs_stat_time_values)
|
|
40191
|
+
const updatedSrcStat = fs.statSync(src)
|
|
40192
|
+
return utimesMillisSync(dest, updatedSrcStat.atime, updatedSrcStat.mtime)
|
|
40193
|
+
}
|
|
40194
|
+
|
|
40195
|
+
function onDir (srcStat, destStat, src, dest, opts) {
|
|
40196
|
+
if (!destStat) return mkDirAndCopy(srcStat.mode, src, dest, opts)
|
|
40197
|
+
return copyDir(src, dest, opts)
|
|
40198
|
+
}
|
|
40199
|
+
|
|
40200
|
+
function mkDirAndCopy (srcMode, src, dest, opts) {
|
|
40201
|
+
fs.mkdirSync(dest)
|
|
40202
|
+
copyDir(src, dest, opts)
|
|
40203
|
+
return setDestMode(dest, srcMode)
|
|
40204
|
+
}
|
|
40205
|
+
|
|
40206
|
+
function copyDir (src, dest, opts) {
|
|
40207
|
+
fs.readdirSync(src).forEach(item => copyDirItem(item, src, dest, opts))
|
|
40208
|
+
}
|
|
40209
|
+
|
|
40210
|
+
function copyDirItem (item, src, dest, opts) {
|
|
40211
|
+
const srcItem = path.join(src, item)
|
|
40212
|
+
const destItem = path.join(dest, item)
|
|
40213
|
+
const { destStat } = stat.checkPathsSync(srcItem, destItem, 'copy', opts)
|
|
40214
|
+
return startCopy(destStat, srcItem, destItem, opts)
|
|
40215
|
+
}
|
|
40216
|
+
|
|
40217
|
+
function onLink (destStat, src, dest, opts) {
|
|
40218
|
+
let resolvedSrc = fs.readlinkSync(src)
|
|
40219
|
+
if (opts.dereference) {
|
|
40220
|
+
resolvedSrc = path.resolve(process.cwd(), resolvedSrc)
|
|
40221
|
+
}
|
|
40222
|
+
|
|
40223
|
+
if (!destStat) {
|
|
40224
|
+
return fs.symlinkSync(resolvedSrc, dest)
|
|
40225
|
+
} else {
|
|
40226
|
+
let resolvedDest
|
|
40227
|
+
try {
|
|
40228
|
+
resolvedDest = fs.readlinkSync(dest)
|
|
40229
|
+
} catch (err) {
|
|
40230
|
+
// dest exists and is a regular file or directory,
|
|
40231
|
+
// Windows may throw UNKNOWN error. If dest already exists,
|
|
40232
|
+
// fs throws error anyway, so no need to guard against it here.
|
|
40233
|
+
if (err.code === 'EINVAL' || err.code === 'UNKNOWN') return fs.symlinkSync(resolvedSrc, dest)
|
|
40234
|
+
throw err
|
|
40235
|
+
}
|
|
40236
|
+
if (opts.dereference) {
|
|
40237
|
+
resolvedDest = path.resolve(process.cwd(), resolvedDest)
|
|
40238
|
+
}
|
|
40239
|
+
if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
40240
|
+
throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`)
|
|
40241
|
+
}
|
|
40242
|
+
|
|
40243
|
+
// prevent copy if src is a subdir of dest since unlinking
|
|
40244
|
+
// dest in this case would result in removing src contents
|
|
40245
|
+
// and therefore a broken symlink would be created.
|
|
40246
|
+
if (fs.statSync(dest).isDirectory() && stat.isSrcSubdir(resolvedDest, resolvedSrc)) {
|
|
40247
|
+
throw new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`)
|
|
40248
|
+
}
|
|
40249
|
+
return copyLink(resolvedSrc, dest)
|
|
40250
|
+
}
|
|
40251
|
+
}
|
|
40252
|
+
|
|
40253
|
+
function copyLink (resolvedSrc, dest) {
|
|
40254
|
+
fs.unlinkSync(dest)
|
|
40255
|
+
return fs.symlinkSync(resolvedSrc, dest)
|
|
40256
|
+
}
|
|
40257
|
+
|
|
40258
|
+
module.exports = copySync
|
|
40259
|
+
|
|
40260
|
+
|
|
40261
|
+
/***/ }),
|
|
40262
|
+
|
|
40263
|
+
/***/ 4266:
|
|
40264
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
40265
|
+
|
|
40266
|
+
"use strict";
|
|
40267
|
+
|
|
40268
|
+
|
|
40269
|
+
const fs = __webpack_require__(62204)
|
|
40270
|
+
const path = __webpack_require__(71017)
|
|
40271
|
+
const mkdirs = (__webpack_require__(59915).mkdirs)
|
|
40272
|
+
const pathExists = (__webpack_require__(9672).pathExists)
|
|
40273
|
+
const utimesMillis = (__webpack_require__(88962).utimesMillis)
|
|
40274
|
+
const stat = __webpack_require__(12021)
|
|
40275
|
+
|
|
40276
|
+
function copy (src, dest, opts, cb) {
|
|
40277
|
+
if (typeof opts === 'function' && !cb) {
|
|
40278
|
+
cb = opts
|
|
40279
|
+
opts = {}
|
|
40280
|
+
} else if (typeof opts === 'function') {
|
|
40281
|
+
opts = { filter: opts }
|
|
40282
|
+
}
|
|
40283
|
+
|
|
40284
|
+
cb = cb || function () {}
|
|
40285
|
+
opts = opts || {}
|
|
40286
|
+
|
|
40287
|
+
opts.clobber = 'clobber' in opts ? !!opts.clobber : true // default to true for now
|
|
40288
|
+
opts.overwrite = 'overwrite' in opts ? !!opts.overwrite : opts.clobber // overwrite falls back to clobber
|
|
40289
|
+
|
|
40290
|
+
// Warn about using preserveTimestamps on 32-bit node
|
|
40291
|
+
if (opts.preserveTimestamps && process.arch === 'ia32') {
|
|
40292
|
+
console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n
|
|
40293
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`)
|
|
40294
|
+
}
|
|
40295
|
+
|
|
40296
|
+
stat.checkPaths(src, dest, 'copy', opts, (err, stats) => {
|
|
40297
|
+
if (err) return cb(err)
|
|
40298
|
+
const { srcStat, destStat } = stats
|
|
40299
|
+
stat.checkParentPaths(src, srcStat, dest, 'copy', err => {
|
|
40300
|
+
if (err) return cb(err)
|
|
40301
|
+
if (opts.filter) return handleFilter(checkParentDir, destStat, src, dest, opts, cb)
|
|
40302
|
+
return checkParentDir(destStat, src, dest, opts, cb)
|
|
40303
|
+
})
|
|
40304
|
+
})
|
|
40305
|
+
}
|
|
40306
|
+
|
|
40307
|
+
function checkParentDir (destStat, src, dest, opts, cb) {
|
|
40308
|
+
const destParent = path.dirname(dest)
|
|
40309
|
+
pathExists(destParent, (err, dirExists) => {
|
|
40310
|
+
if (err) return cb(err)
|
|
40311
|
+
if (dirExists) return getStats(destStat, src, dest, opts, cb)
|
|
40312
|
+
mkdirs(destParent, err => {
|
|
40313
|
+
if (err) return cb(err)
|
|
40314
|
+
return getStats(destStat, src, dest, opts, cb)
|
|
40315
|
+
})
|
|
40316
|
+
})
|
|
40317
|
+
}
|
|
40318
|
+
|
|
40319
|
+
function handleFilter (onInclude, destStat, src, dest, opts, cb) {
|
|
40320
|
+
Promise.resolve(opts.filter(src, dest)).then(include => {
|
|
40321
|
+
if (include) return onInclude(destStat, src, dest, opts, cb)
|
|
40322
|
+
return cb()
|
|
40323
|
+
}, error => cb(error))
|
|
40324
|
+
}
|
|
40325
|
+
|
|
40326
|
+
function startCopy (destStat, src, dest, opts, cb) {
|
|
40327
|
+
if (opts.filter) return handleFilter(getStats, destStat, src, dest, opts, cb)
|
|
40328
|
+
return getStats(destStat, src, dest, opts, cb)
|
|
40329
|
+
}
|
|
40330
|
+
|
|
40331
|
+
function getStats (destStat, src, dest, opts, cb) {
|
|
40332
|
+
const stat = opts.dereference ? fs.stat : fs.lstat
|
|
40333
|
+
stat(src, (err, srcStat) => {
|
|
40334
|
+
if (err) return cb(err)
|
|
40335
|
+
|
|
40336
|
+
if (srcStat.isDirectory()) return onDir(srcStat, destStat, src, dest, opts, cb)
|
|
40337
|
+
else if (srcStat.isFile() ||
|
|
40338
|
+
srcStat.isCharacterDevice() ||
|
|
40339
|
+
srcStat.isBlockDevice()) return onFile(srcStat, destStat, src, dest, opts, cb)
|
|
40340
|
+
else if (srcStat.isSymbolicLink()) return onLink(destStat, src, dest, opts, cb)
|
|
40341
|
+
else if (srcStat.isSocket()) return cb(new Error(`Cannot copy a socket file: ${src}`))
|
|
40342
|
+
else if (srcStat.isFIFO()) return cb(new Error(`Cannot copy a FIFO pipe: ${src}`))
|
|
40343
|
+
return cb(new Error(`Unknown file: ${src}`))
|
|
40344
|
+
})
|
|
40345
|
+
}
|
|
40346
|
+
|
|
40347
|
+
function onFile (srcStat, destStat, src, dest, opts, cb) {
|
|
40348
|
+
if (!destStat) return copyFile(srcStat, src, dest, opts, cb)
|
|
40349
|
+
return mayCopyFile(srcStat, src, dest, opts, cb)
|
|
40350
|
+
}
|
|
40351
|
+
|
|
40352
|
+
function mayCopyFile (srcStat, src, dest, opts, cb) {
|
|
40353
|
+
if (opts.overwrite) {
|
|
40354
|
+
fs.unlink(dest, err => {
|
|
40355
|
+
if (err) return cb(err)
|
|
40356
|
+
return copyFile(srcStat, src, dest, opts, cb)
|
|
40357
|
+
})
|
|
40358
|
+
} else if (opts.errorOnExist) {
|
|
40359
|
+
return cb(new Error(`'${dest}' already exists`))
|
|
40360
|
+
} else return cb()
|
|
40361
|
+
}
|
|
40362
|
+
|
|
40363
|
+
function copyFile (srcStat, src, dest, opts, cb) {
|
|
40364
|
+
fs.copyFile(src, dest, err => {
|
|
40365
|
+
if (err) return cb(err)
|
|
40366
|
+
if (opts.preserveTimestamps) return handleTimestampsAndMode(srcStat.mode, src, dest, cb)
|
|
40367
|
+
return setDestMode(dest, srcStat.mode, cb)
|
|
40368
|
+
})
|
|
40369
|
+
}
|
|
40370
|
+
|
|
40371
|
+
function handleTimestampsAndMode (srcMode, src, dest, cb) {
|
|
40372
|
+
// Make sure the file is writable before setting the timestamp
|
|
40373
|
+
// otherwise open fails with EPERM when invoked with 'r+'
|
|
40374
|
+
// (through utimes call)
|
|
40375
|
+
if (fileIsNotWritable(srcMode)) {
|
|
40376
|
+
return makeFileWritable(dest, srcMode, err => {
|
|
40377
|
+
if (err) return cb(err)
|
|
40378
|
+
return setDestTimestampsAndMode(srcMode, src, dest, cb)
|
|
40379
|
+
})
|
|
40380
|
+
}
|
|
40381
|
+
return setDestTimestampsAndMode(srcMode, src, dest, cb)
|
|
40382
|
+
}
|
|
40383
|
+
|
|
40384
|
+
function fileIsNotWritable (srcMode) {
|
|
40385
|
+
return (srcMode & 0o200) === 0
|
|
40386
|
+
}
|
|
40387
|
+
|
|
40388
|
+
function makeFileWritable (dest, srcMode, cb) {
|
|
40389
|
+
return setDestMode(dest, srcMode | 0o200, cb)
|
|
40390
|
+
}
|
|
40391
|
+
|
|
40392
|
+
function setDestTimestampsAndMode (srcMode, src, dest, cb) {
|
|
40393
|
+
setDestTimestamps(src, dest, err => {
|
|
40394
|
+
if (err) return cb(err)
|
|
40395
|
+
return setDestMode(dest, srcMode, cb)
|
|
40396
|
+
})
|
|
40397
|
+
}
|
|
40398
|
+
|
|
40399
|
+
function setDestMode (dest, srcMode, cb) {
|
|
40400
|
+
return fs.chmod(dest, srcMode, cb)
|
|
40401
|
+
}
|
|
40402
|
+
|
|
40403
|
+
function setDestTimestamps (src, dest, cb) {
|
|
40404
|
+
// The initial srcStat.atime cannot be trusted
|
|
40405
|
+
// because it is modified by the read(2) system call
|
|
40406
|
+
// (See https://nodejs.org/api/fs.html#fs_stat_time_values)
|
|
40407
|
+
fs.stat(src, (err, updatedSrcStat) => {
|
|
40408
|
+
if (err) return cb(err)
|
|
40409
|
+
return utimesMillis(dest, updatedSrcStat.atime, updatedSrcStat.mtime, cb)
|
|
40410
|
+
})
|
|
40411
|
+
}
|
|
40412
|
+
|
|
40413
|
+
function onDir (srcStat, destStat, src, dest, opts, cb) {
|
|
40414
|
+
if (!destStat) return mkDirAndCopy(srcStat.mode, src, dest, opts, cb)
|
|
40415
|
+
return copyDir(src, dest, opts, cb)
|
|
40416
|
+
}
|
|
40417
|
+
|
|
40418
|
+
function mkDirAndCopy (srcMode, src, dest, opts, cb) {
|
|
40419
|
+
fs.mkdir(dest, err => {
|
|
40420
|
+
if (err) return cb(err)
|
|
40421
|
+
copyDir(src, dest, opts, err => {
|
|
40422
|
+
if (err) return cb(err)
|
|
40423
|
+
return setDestMode(dest, srcMode, cb)
|
|
40424
|
+
})
|
|
40425
|
+
})
|
|
40426
|
+
}
|
|
40427
|
+
|
|
40428
|
+
function copyDir (src, dest, opts, cb) {
|
|
40429
|
+
fs.readdir(src, (err, items) => {
|
|
40430
|
+
if (err) return cb(err)
|
|
40431
|
+
return copyDirItems(items, src, dest, opts, cb)
|
|
40432
|
+
})
|
|
40433
|
+
}
|
|
40434
|
+
|
|
40435
|
+
function copyDirItems (items, src, dest, opts, cb) {
|
|
40436
|
+
const item = items.pop()
|
|
40437
|
+
if (!item) return cb()
|
|
40438
|
+
return copyDirItem(items, item, src, dest, opts, cb)
|
|
40439
|
+
}
|
|
40440
|
+
|
|
40441
|
+
function copyDirItem (items, item, src, dest, opts, cb) {
|
|
40442
|
+
const srcItem = path.join(src, item)
|
|
40443
|
+
const destItem = path.join(dest, item)
|
|
40444
|
+
stat.checkPaths(srcItem, destItem, 'copy', opts, (err, stats) => {
|
|
40445
|
+
if (err) return cb(err)
|
|
40446
|
+
const { destStat } = stats
|
|
40447
|
+
startCopy(destStat, srcItem, destItem, opts, err => {
|
|
40448
|
+
if (err) return cb(err)
|
|
40449
|
+
return copyDirItems(items, src, dest, opts, cb)
|
|
40450
|
+
})
|
|
40451
|
+
})
|
|
40452
|
+
}
|
|
40453
|
+
|
|
40454
|
+
function onLink (destStat, src, dest, opts, cb) {
|
|
40455
|
+
fs.readlink(src, (err, resolvedSrc) => {
|
|
40456
|
+
if (err) return cb(err)
|
|
40457
|
+
if (opts.dereference) {
|
|
40458
|
+
resolvedSrc = path.resolve(process.cwd(), resolvedSrc)
|
|
40459
|
+
}
|
|
40460
|
+
|
|
40461
|
+
if (!destStat) {
|
|
40462
|
+
return fs.symlink(resolvedSrc, dest, cb)
|
|
40463
|
+
} else {
|
|
40464
|
+
fs.readlink(dest, (err, resolvedDest) => {
|
|
40465
|
+
if (err) {
|
|
40466
|
+
// dest exists and is a regular file or directory,
|
|
40467
|
+
// Windows may throw UNKNOWN error. If dest already exists,
|
|
40468
|
+
// fs throws error anyway, so no need to guard against it here.
|
|
40469
|
+
if (err.code === 'EINVAL' || err.code === 'UNKNOWN') return fs.symlink(resolvedSrc, dest, cb)
|
|
40470
|
+
return cb(err)
|
|
40471
|
+
}
|
|
40472
|
+
if (opts.dereference) {
|
|
40473
|
+
resolvedDest = path.resolve(process.cwd(), resolvedDest)
|
|
40474
|
+
}
|
|
40475
|
+
if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
40476
|
+
return cb(new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`))
|
|
40477
|
+
}
|
|
40478
|
+
|
|
40479
|
+
// do not copy if src is a subdir of dest since unlinking
|
|
40480
|
+
// dest in this case would result in removing src contents
|
|
40481
|
+
// and therefore a broken symlink would be created.
|
|
40482
|
+
if (destStat.isDirectory() && stat.isSrcSubdir(resolvedDest, resolvedSrc)) {
|
|
40483
|
+
return cb(new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`))
|
|
40484
|
+
}
|
|
40485
|
+
return copyLink(resolvedSrc, dest, cb)
|
|
40486
|
+
})
|
|
40487
|
+
}
|
|
40488
|
+
})
|
|
40489
|
+
}
|
|
40490
|
+
|
|
40491
|
+
function copyLink (resolvedSrc, dest, cb) {
|
|
40492
|
+
fs.unlink(dest, err => {
|
|
40493
|
+
if (err) return cb(err)
|
|
40494
|
+
return fs.symlink(resolvedSrc, dest, cb)
|
|
40495
|
+
})
|
|
40496
|
+
}
|
|
40497
|
+
|
|
40498
|
+
module.exports = copy
|
|
40499
|
+
|
|
40500
|
+
|
|
40501
|
+
/***/ }),
|
|
40502
|
+
|
|
40503
|
+
/***/ 1105:
|
|
40504
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
40505
|
+
|
|
40506
|
+
"use strict";
|
|
40507
|
+
|
|
40508
|
+
|
|
40509
|
+
const u = (__webpack_require__(84357).fromCallback)
|
|
40510
|
+
module.exports = {
|
|
40511
|
+
copy: u(__webpack_require__(4266)),
|
|
40512
|
+
copySync: __webpack_require__(16345)
|
|
40513
|
+
}
|
|
40514
|
+
|
|
40515
|
+
|
|
40516
|
+
/***/ }),
|
|
40517
|
+
|
|
40518
|
+
/***/ 19102:
|
|
40519
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
40520
|
+
|
|
40521
|
+
"use strict";
|
|
40522
|
+
|
|
40523
|
+
|
|
40524
|
+
const u = (__webpack_require__(84357).fromPromise)
|
|
40525
|
+
const fs = __webpack_require__(73664)
|
|
40526
|
+
const path = __webpack_require__(71017)
|
|
40527
|
+
const mkdir = __webpack_require__(59915)
|
|
40528
|
+
const remove = __webpack_require__(21133)
|
|
40529
|
+
|
|
40530
|
+
const emptyDir = u(async function emptyDir (dir) {
|
|
40531
|
+
let items
|
|
40532
|
+
try {
|
|
40533
|
+
items = await fs.readdir(dir)
|
|
40534
|
+
} catch {
|
|
40535
|
+
return mkdir.mkdirs(dir)
|
|
40536
|
+
}
|
|
40537
|
+
|
|
40538
|
+
return Promise.all(items.map(item => remove.remove(path.join(dir, item))))
|
|
40539
|
+
})
|
|
40540
|
+
|
|
40541
|
+
function emptyDirSync (dir) {
|
|
40542
|
+
let items
|
|
40543
|
+
try {
|
|
40544
|
+
items = fs.readdirSync(dir)
|
|
40545
|
+
} catch {
|
|
40546
|
+
return mkdir.mkdirsSync(dir)
|
|
40547
|
+
}
|
|
40548
|
+
|
|
40549
|
+
items.forEach(item => {
|
|
40550
|
+
item = path.join(dir, item)
|
|
40551
|
+
remove.removeSync(item)
|
|
40552
|
+
})
|
|
40553
|
+
}
|
|
40554
|
+
|
|
40555
|
+
module.exports = {
|
|
40556
|
+
emptyDirSync,
|
|
40557
|
+
emptydirSync: emptyDirSync,
|
|
40558
|
+
emptyDir,
|
|
40559
|
+
emptydir: emptyDir
|
|
40560
|
+
}
|
|
40561
|
+
|
|
40562
|
+
|
|
40563
|
+
/***/ }),
|
|
40564
|
+
|
|
40565
|
+
/***/ 19570:
|
|
40566
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
40567
|
+
|
|
40568
|
+
"use strict";
|
|
40569
|
+
|
|
40570
|
+
|
|
40571
|
+
const u = (__webpack_require__(84357).fromCallback)
|
|
40572
|
+
const path = __webpack_require__(71017)
|
|
40573
|
+
const fs = __webpack_require__(62204)
|
|
40574
|
+
const mkdir = __webpack_require__(59915)
|
|
40575
|
+
|
|
40576
|
+
function createFile (file, callback) {
|
|
40577
|
+
function makeFile () {
|
|
40578
|
+
fs.writeFile(file, '', err => {
|
|
40579
|
+
if (err) return callback(err)
|
|
40580
|
+
callback()
|
|
40581
|
+
})
|
|
40582
|
+
}
|
|
40583
|
+
|
|
40584
|
+
fs.stat(file, (err, stats) => { // eslint-disable-line handle-callback-err
|
|
40585
|
+
if (!err && stats.isFile()) return callback()
|
|
40586
|
+
const dir = path.dirname(file)
|
|
40587
|
+
fs.stat(dir, (err, stats) => {
|
|
40588
|
+
if (err) {
|
|
40589
|
+
// if the directory doesn't exist, make it
|
|
40590
|
+
if (err.code === 'ENOENT') {
|
|
40591
|
+
return mkdir.mkdirs(dir, err => {
|
|
40592
|
+
if (err) return callback(err)
|
|
40593
|
+
makeFile()
|
|
40594
|
+
})
|
|
40595
|
+
}
|
|
40596
|
+
return callback(err)
|
|
40597
|
+
}
|
|
40598
|
+
|
|
40599
|
+
if (stats.isDirectory()) makeFile()
|
|
40600
|
+
else {
|
|
40601
|
+
// parent is not a directory
|
|
40602
|
+
// This is just to cause an internal ENOTDIR error to be thrown
|
|
40603
|
+
fs.readdir(dir, err => {
|
|
40604
|
+
if (err) return callback(err)
|
|
40605
|
+
})
|
|
40606
|
+
}
|
|
40607
|
+
})
|
|
40608
|
+
})
|
|
40609
|
+
}
|
|
40610
|
+
|
|
40611
|
+
function createFileSync (file) {
|
|
40612
|
+
let stats
|
|
40613
|
+
try {
|
|
40614
|
+
stats = fs.statSync(file)
|
|
40615
|
+
} catch {}
|
|
40616
|
+
if (stats && stats.isFile()) return
|
|
40617
|
+
|
|
40618
|
+
const dir = path.dirname(file)
|
|
40619
|
+
try {
|
|
40620
|
+
if (!fs.statSync(dir).isDirectory()) {
|
|
40621
|
+
// parent is not a directory
|
|
40622
|
+
// This is just to cause an internal ENOTDIR error to be thrown
|
|
40623
|
+
fs.readdirSync(dir)
|
|
40624
|
+
}
|
|
40625
|
+
} catch (err) {
|
|
40626
|
+
// If the stat call above failed because the directory doesn't exist, create it
|
|
40627
|
+
if (err && err.code === 'ENOENT') mkdir.mkdirsSync(dir)
|
|
40628
|
+
else throw err
|
|
40629
|
+
}
|
|
40630
|
+
|
|
40631
|
+
fs.writeFileSync(file, '')
|
|
40632
|
+
}
|
|
40633
|
+
|
|
40634
|
+
module.exports = {
|
|
40635
|
+
createFile: u(createFile),
|
|
40636
|
+
createFileSync
|
|
40637
|
+
}
|
|
40638
|
+
|
|
40639
|
+
|
|
40640
|
+
/***/ }),
|
|
40641
|
+
|
|
40642
|
+
/***/ 99793:
|
|
40643
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
40644
|
+
|
|
40645
|
+
"use strict";
|
|
40646
|
+
|
|
40647
|
+
|
|
40648
|
+
const { createFile, createFileSync } = __webpack_require__(19570)
|
|
40649
|
+
const { createLink, createLinkSync } = __webpack_require__(19986)
|
|
40650
|
+
const { createSymlink, createSymlinkSync } = __webpack_require__(63762)
|
|
40651
|
+
|
|
40652
|
+
module.exports = {
|
|
40653
|
+
// file
|
|
40654
|
+
createFile,
|
|
40655
|
+
createFileSync,
|
|
40656
|
+
ensureFile: createFile,
|
|
40657
|
+
ensureFileSync: createFileSync,
|
|
40658
|
+
// link
|
|
40659
|
+
createLink,
|
|
40660
|
+
createLinkSync,
|
|
40661
|
+
ensureLink: createLink,
|
|
40662
|
+
ensureLinkSync: createLinkSync,
|
|
40663
|
+
// symlink
|
|
40664
|
+
createSymlink,
|
|
40665
|
+
createSymlinkSync,
|
|
40666
|
+
ensureSymlink: createSymlink,
|
|
40667
|
+
ensureSymlinkSync: createSymlinkSync
|
|
40668
|
+
}
|
|
40669
|
+
|
|
40670
|
+
|
|
40671
|
+
/***/ }),
|
|
40672
|
+
|
|
40673
|
+
/***/ 19986:
|
|
40674
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
40675
|
+
|
|
40676
|
+
"use strict";
|
|
40677
|
+
|
|
40678
|
+
|
|
40679
|
+
const u = (__webpack_require__(84357).fromCallback)
|
|
40680
|
+
const path = __webpack_require__(71017)
|
|
40681
|
+
const fs = __webpack_require__(62204)
|
|
40682
|
+
const mkdir = __webpack_require__(59915)
|
|
40683
|
+
const pathExists = (__webpack_require__(9672).pathExists)
|
|
40684
|
+
const { areIdentical } = __webpack_require__(12021)
|
|
40685
|
+
|
|
40686
|
+
function createLink (srcpath, dstpath, callback) {
|
|
40687
|
+
function makeLink (srcpath, dstpath) {
|
|
40688
|
+
fs.link(srcpath, dstpath, err => {
|
|
40689
|
+
if (err) return callback(err)
|
|
40690
|
+
callback(null)
|
|
40691
|
+
})
|
|
40692
|
+
}
|
|
40693
|
+
|
|
40694
|
+
fs.lstat(dstpath, (_, dstStat) => {
|
|
40695
|
+
fs.lstat(srcpath, (err, srcStat) => {
|
|
40696
|
+
if (err) {
|
|
40697
|
+
err.message = err.message.replace('lstat', 'ensureLink')
|
|
40698
|
+
return callback(err)
|
|
40699
|
+
}
|
|
40700
|
+
if (dstStat && areIdentical(srcStat, dstStat)) return callback(null)
|
|
40701
|
+
|
|
40702
|
+
const dir = path.dirname(dstpath)
|
|
40703
|
+
pathExists(dir, (err, dirExists) => {
|
|
40704
|
+
if (err) return callback(err)
|
|
40705
|
+
if (dirExists) return makeLink(srcpath, dstpath)
|
|
40706
|
+
mkdir.mkdirs(dir, err => {
|
|
40707
|
+
if (err) return callback(err)
|
|
40708
|
+
makeLink(srcpath, dstpath)
|
|
40709
|
+
})
|
|
40710
|
+
})
|
|
40711
|
+
})
|
|
40712
|
+
})
|
|
40713
|
+
}
|
|
40714
|
+
|
|
40715
|
+
function createLinkSync (srcpath, dstpath) {
|
|
40716
|
+
let dstStat
|
|
40717
|
+
try {
|
|
40718
|
+
dstStat = fs.lstatSync(dstpath)
|
|
40719
|
+
} catch {}
|
|
40720
|
+
|
|
40721
|
+
try {
|
|
40722
|
+
const srcStat = fs.lstatSync(srcpath)
|
|
40723
|
+
if (dstStat && areIdentical(srcStat, dstStat)) return
|
|
40724
|
+
} catch (err) {
|
|
40725
|
+
err.message = err.message.replace('lstat', 'ensureLink')
|
|
40726
|
+
throw err
|
|
40727
|
+
}
|
|
40728
|
+
|
|
40729
|
+
const dir = path.dirname(dstpath)
|
|
40730
|
+
const dirExists = fs.existsSync(dir)
|
|
40731
|
+
if (dirExists) return fs.linkSync(srcpath, dstpath)
|
|
40732
|
+
mkdir.mkdirsSync(dir)
|
|
40733
|
+
|
|
40734
|
+
return fs.linkSync(srcpath, dstpath)
|
|
40735
|
+
}
|
|
40736
|
+
|
|
40737
|
+
module.exports = {
|
|
40738
|
+
createLink: u(createLink),
|
|
40739
|
+
createLinkSync
|
|
40740
|
+
}
|
|
40741
|
+
|
|
40742
|
+
|
|
40743
|
+
/***/ }),
|
|
40744
|
+
|
|
40745
|
+
/***/ 5461:
|
|
40746
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
40747
|
+
|
|
40748
|
+
"use strict";
|
|
40749
|
+
|
|
40750
|
+
|
|
40751
|
+
const path = __webpack_require__(71017)
|
|
40752
|
+
const fs = __webpack_require__(62204)
|
|
40753
|
+
const pathExists = (__webpack_require__(9672).pathExists)
|
|
40754
|
+
|
|
40755
|
+
/**
|
|
40756
|
+
* Function that returns two types of paths, one relative to symlink, and one
|
|
40757
|
+
* relative to the current working directory. Checks if path is absolute or
|
|
40758
|
+
* relative. If the path is relative, this function checks if the path is
|
|
40759
|
+
* relative to symlink or relative to current working directory. This is an
|
|
40760
|
+
* initiative to find a smarter `srcpath` to supply when building symlinks.
|
|
40761
|
+
* This allows you to determine which path to use out of one of three possible
|
|
40762
|
+
* types of source paths. The first is an absolute path. This is detected by
|
|
40763
|
+
* `path.isAbsolute()`. When an absolute path is provided, it is checked to
|
|
40764
|
+
* see if it exists. If it does it's used, if not an error is returned
|
|
40765
|
+
* (callback)/ thrown (sync). The other two options for `srcpath` are a
|
|
40766
|
+
* relative url. By default Node's `fs.symlink` works by creating a symlink
|
|
40767
|
+
* using `dstpath` and expects the `srcpath` to be relative to the newly
|
|
40768
|
+
* created symlink. If you provide a `srcpath` that does not exist on the file
|
|
40769
|
+
* system it results in a broken symlink. To minimize this, the function
|
|
40770
|
+
* checks to see if the 'relative to symlink' source file exists, and if it
|
|
40771
|
+
* does it will use it. If it does not, it checks if there's a file that
|
|
40772
|
+
* exists that is relative to the current working directory, if does its used.
|
|
40773
|
+
* This preserves the expectations of the original fs.symlink spec and adds
|
|
40774
|
+
* the ability to pass in `relative to current working direcotry` paths.
|
|
40775
|
+
*/
|
|
40776
|
+
|
|
40777
|
+
function symlinkPaths (srcpath, dstpath, callback) {
|
|
40778
|
+
if (path.isAbsolute(srcpath)) {
|
|
40779
|
+
return fs.lstat(srcpath, (err) => {
|
|
40780
|
+
if (err) {
|
|
40781
|
+
err.message = err.message.replace('lstat', 'ensureSymlink')
|
|
40782
|
+
return callback(err)
|
|
40783
|
+
}
|
|
40784
|
+
return callback(null, {
|
|
40785
|
+
toCwd: srcpath,
|
|
40786
|
+
toDst: srcpath
|
|
40787
|
+
})
|
|
40788
|
+
})
|
|
40789
|
+
} else {
|
|
40790
|
+
const dstdir = path.dirname(dstpath)
|
|
40791
|
+
const relativeToDst = path.join(dstdir, srcpath)
|
|
40792
|
+
return pathExists(relativeToDst, (err, exists) => {
|
|
40793
|
+
if (err) return callback(err)
|
|
40794
|
+
if (exists) {
|
|
40795
|
+
return callback(null, {
|
|
40796
|
+
toCwd: relativeToDst,
|
|
40797
|
+
toDst: srcpath
|
|
40798
|
+
})
|
|
40799
|
+
} else {
|
|
40800
|
+
return fs.lstat(srcpath, (err) => {
|
|
40801
|
+
if (err) {
|
|
40802
|
+
err.message = err.message.replace('lstat', 'ensureSymlink')
|
|
40803
|
+
return callback(err)
|
|
40804
|
+
}
|
|
40805
|
+
return callback(null, {
|
|
40806
|
+
toCwd: srcpath,
|
|
40807
|
+
toDst: path.relative(dstdir, srcpath)
|
|
40808
|
+
})
|
|
40809
|
+
})
|
|
40810
|
+
}
|
|
40811
|
+
})
|
|
40812
|
+
}
|
|
40813
|
+
}
|
|
40814
|
+
|
|
40815
|
+
function symlinkPathsSync (srcpath, dstpath) {
|
|
40816
|
+
let exists
|
|
40817
|
+
if (path.isAbsolute(srcpath)) {
|
|
40818
|
+
exists = fs.existsSync(srcpath)
|
|
40819
|
+
if (!exists) throw new Error('absolute srcpath does not exist')
|
|
40820
|
+
return {
|
|
40821
|
+
toCwd: srcpath,
|
|
40822
|
+
toDst: srcpath
|
|
40823
|
+
}
|
|
40824
|
+
} else {
|
|
40825
|
+
const dstdir = path.dirname(dstpath)
|
|
40826
|
+
const relativeToDst = path.join(dstdir, srcpath)
|
|
40827
|
+
exists = fs.existsSync(relativeToDst)
|
|
40828
|
+
if (exists) {
|
|
40829
|
+
return {
|
|
40830
|
+
toCwd: relativeToDst,
|
|
40831
|
+
toDst: srcpath
|
|
40832
|
+
}
|
|
40833
|
+
} else {
|
|
40834
|
+
exists = fs.existsSync(srcpath)
|
|
40835
|
+
if (!exists) throw new Error('relative srcpath does not exist')
|
|
40836
|
+
return {
|
|
40837
|
+
toCwd: srcpath,
|
|
40838
|
+
toDst: path.relative(dstdir, srcpath)
|
|
40839
|
+
}
|
|
40840
|
+
}
|
|
40841
|
+
}
|
|
40842
|
+
}
|
|
40843
|
+
|
|
40844
|
+
module.exports = {
|
|
40845
|
+
symlinkPaths,
|
|
40846
|
+
symlinkPathsSync
|
|
40847
|
+
}
|
|
40848
|
+
|
|
40849
|
+
|
|
40850
|
+
/***/ }),
|
|
40851
|
+
|
|
40852
|
+
/***/ 95375:
|
|
40853
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
40854
|
+
|
|
40855
|
+
"use strict";
|
|
40856
|
+
|
|
40857
|
+
|
|
40858
|
+
const fs = __webpack_require__(62204)
|
|
40859
|
+
|
|
40860
|
+
function symlinkType (srcpath, type, callback) {
|
|
40861
|
+
callback = (typeof type === 'function') ? type : callback
|
|
40862
|
+
type = (typeof type === 'function') ? false : type
|
|
40863
|
+
if (type) return callback(null, type)
|
|
40864
|
+
fs.lstat(srcpath, (err, stats) => {
|
|
40865
|
+
if (err) return callback(null, 'file')
|
|
40866
|
+
type = (stats && stats.isDirectory()) ? 'dir' : 'file'
|
|
40867
|
+
callback(null, type)
|
|
40868
|
+
})
|
|
40869
|
+
}
|
|
40870
|
+
|
|
40871
|
+
function symlinkTypeSync (srcpath, type) {
|
|
40872
|
+
let stats
|
|
40873
|
+
|
|
40874
|
+
if (type) return type
|
|
40875
|
+
try {
|
|
40876
|
+
stats = fs.lstatSync(srcpath)
|
|
40877
|
+
} catch {
|
|
40878
|
+
return 'file'
|
|
40879
|
+
}
|
|
40880
|
+
return (stats && stats.isDirectory()) ? 'dir' : 'file'
|
|
40881
|
+
}
|
|
40882
|
+
|
|
40883
|
+
module.exports = {
|
|
40884
|
+
symlinkType,
|
|
40885
|
+
symlinkTypeSync
|
|
40886
|
+
}
|
|
40887
|
+
|
|
40888
|
+
|
|
40889
|
+
/***/ }),
|
|
40890
|
+
|
|
40891
|
+
/***/ 63762:
|
|
40892
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
40893
|
+
|
|
40894
|
+
"use strict";
|
|
40895
|
+
|
|
40896
|
+
|
|
40897
|
+
const u = (__webpack_require__(84357).fromCallback)
|
|
40898
|
+
const path = __webpack_require__(71017)
|
|
40899
|
+
const fs = __webpack_require__(73664)
|
|
40900
|
+
const _mkdirs = __webpack_require__(59915)
|
|
40901
|
+
const mkdirs = _mkdirs.mkdirs
|
|
40902
|
+
const mkdirsSync = _mkdirs.mkdirsSync
|
|
40903
|
+
|
|
40904
|
+
const _symlinkPaths = __webpack_require__(5461)
|
|
40905
|
+
const symlinkPaths = _symlinkPaths.symlinkPaths
|
|
40906
|
+
const symlinkPathsSync = _symlinkPaths.symlinkPathsSync
|
|
40907
|
+
|
|
40908
|
+
const _symlinkType = __webpack_require__(95375)
|
|
40909
|
+
const symlinkType = _symlinkType.symlinkType
|
|
40910
|
+
const symlinkTypeSync = _symlinkType.symlinkTypeSync
|
|
40911
|
+
|
|
40912
|
+
const pathExists = (__webpack_require__(9672).pathExists)
|
|
40913
|
+
|
|
40914
|
+
const { areIdentical } = __webpack_require__(12021)
|
|
40915
|
+
|
|
40916
|
+
function createSymlink (srcpath, dstpath, type, callback) {
|
|
40917
|
+
callback = (typeof type === 'function') ? type : callback
|
|
40918
|
+
type = (typeof type === 'function') ? false : type
|
|
40919
|
+
|
|
40920
|
+
fs.lstat(dstpath, (err, stats) => {
|
|
40921
|
+
if (!err && stats.isSymbolicLink()) {
|
|
40922
|
+
Promise.all([
|
|
40923
|
+
fs.stat(srcpath),
|
|
40924
|
+
fs.stat(dstpath)
|
|
40925
|
+
]).then(([srcStat, dstStat]) => {
|
|
40926
|
+
if (areIdentical(srcStat, dstStat)) return callback(null)
|
|
40927
|
+
_createSymlink(srcpath, dstpath, type, callback)
|
|
40928
|
+
})
|
|
40929
|
+
} else _createSymlink(srcpath, dstpath, type, callback)
|
|
40930
|
+
})
|
|
40931
|
+
}
|
|
40932
|
+
|
|
40933
|
+
function _createSymlink (srcpath, dstpath, type, callback) {
|
|
40934
|
+
symlinkPaths(srcpath, dstpath, (err, relative) => {
|
|
40935
|
+
if (err) return callback(err)
|
|
40936
|
+
srcpath = relative.toDst
|
|
40937
|
+
symlinkType(relative.toCwd, type, (err, type) => {
|
|
40938
|
+
if (err) return callback(err)
|
|
40939
|
+
const dir = path.dirname(dstpath)
|
|
40940
|
+
pathExists(dir, (err, dirExists) => {
|
|
40941
|
+
if (err) return callback(err)
|
|
40942
|
+
if (dirExists) return fs.symlink(srcpath, dstpath, type, callback)
|
|
40943
|
+
mkdirs(dir, err => {
|
|
40944
|
+
if (err) return callback(err)
|
|
40945
|
+
fs.symlink(srcpath, dstpath, type, callback)
|
|
40946
|
+
})
|
|
40947
|
+
})
|
|
40948
|
+
})
|
|
40949
|
+
})
|
|
40950
|
+
}
|
|
40951
|
+
|
|
40952
|
+
function createSymlinkSync (srcpath, dstpath, type) {
|
|
40953
|
+
let stats
|
|
40954
|
+
try {
|
|
40955
|
+
stats = fs.lstatSync(dstpath)
|
|
40956
|
+
} catch {}
|
|
40957
|
+
if (stats && stats.isSymbolicLink()) {
|
|
40958
|
+
const srcStat = fs.statSync(srcpath)
|
|
40959
|
+
const dstStat = fs.statSync(dstpath)
|
|
40960
|
+
if (areIdentical(srcStat, dstStat)) return
|
|
40961
|
+
}
|
|
40962
|
+
|
|
40963
|
+
const relative = symlinkPathsSync(srcpath, dstpath)
|
|
40964
|
+
srcpath = relative.toDst
|
|
40965
|
+
type = symlinkTypeSync(relative.toCwd, type)
|
|
40966
|
+
const dir = path.dirname(dstpath)
|
|
40967
|
+
const exists = fs.existsSync(dir)
|
|
40968
|
+
if (exists) return fs.symlinkSync(srcpath, dstpath, type)
|
|
40969
|
+
mkdirsSync(dir)
|
|
40970
|
+
return fs.symlinkSync(srcpath, dstpath, type)
|
|
40971
|
+
}
|
|
40972
|
+
|
|
40973
|
+
module.exports = {
|
|
40974
|
+
createSymlink: u(createSymlink),
|
|
40975
|
+
createSymlinkSync
|
|
40976
|
+
}
|
|
40977
|
+
|
|
40978
|
+
|
|
40979
|
+
/***/ }),
|
|
40980
|
+
|
|
40981
|
+
/***/ 73664:
|
|
40982
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
40983
|
+
|
|
40984
|
+
"use strict";
|
|
40985
|
+
|
|
40986
|
+
// This is adapted from https://github.com/normalize/mz
|
|
40987
|
+
// Copyright (c) 2014-2016 Jonathan Ong me@jongleberry.com and Contributors
|
|
40988
|
+
const u = (__webpack_require__(84357).fromCallback)
|
|
40989
|
+
const fs = __webpack_require__(62204)
|
|
40990
|
+
|
|
40991
|
+
const api = [
|
|
40992
|
+
'access',
|
|
40993
|
+
'appendFile',
|
|
40994
|
+
'chmod',
|
|
40995
|
+
'chown',
|
|
40996
|
+
'close',
|
|
40997
|
+
'copyFile',
|
|
40998
|
+
'fchmod',
|
|
40999
|
+
'fchown',
|
|
41000
|
+
'fdatasync',
|
|
41001
|
+
'fstat',
|
|
41002
|
+
'fsync',
|
|
41003
|
+
'ftruncate',
|
|
41004
|
+
'futimes',
|
|
41005
|
+
'lchmod',
|
|
41006
|
+
'lchown',
|
|
41007
|
+
'link',
|
|
41008
|
+
'lstat',
|
|
41009
|
+
'mkdir',
|
|
41010
|
+
'mkdtemp',
|
|
41011
|
+
'open',
|
|
41012
|
+
'opendir',
|
|
41013
|
+
'readdir',
|
|
41014
|
+
'readFile',
|
|
41015
|
+
'readlink',
|
|
41016
|
+
'realpath',
|
|
41017
|
+
'rename',
|
|
41018
|
+
'rm',
|
|
41019
|
+
'rmdir',
|
|
41020
|
+
'stat',
|
|
41021
|
+
'symlink',
|
|
41022
|
+
'truncate',
|
|
41023
|
+
'unlink',
|
|
41024
|
+
'utimes',
|
|
41025
|
+
'writeFile'
|
|
41026
|
+
].filter(key => {
|
|
41027
|
+
// Some commands are not available on some systems. Ex:
|
|
41028
|
+
// fs.opendir was added in Node.js v12.12.0
|
|
41029
|
+
// fs.rm was added in Node.js v14.14.0
|
|
41030
|
+
// fs.lchown is not available on at least some Linux
|
|
41031
|
+
return typeof fs[key] === 'function'
|
|
41032
|
+
})
|
|
41033
|
+
|
|
41034
|
+
// Export cloned fs:
|
|
41035
|
+
Object.assign(exports, fs)
|
|
41036
|
+
|
|
41037
|
+
// Universalify async methods:
|
|
41038
|
+
api.forEach(method => {
|
|
41039
|
+
exports[method] = u(fs[method])
|
|
41040
|
+
})
|
|
41041
|
+
exports.realpath.native = u(fs.realpath.native)
|
|
41042
|
+
|
|
41043
|
+
// We differ from mz/fs in that we still ship the old, broken, fs.exists()
|
|
41044
|
+
// since we are a drop-in replacement for the native module
|
|
41045
|
+
exports.exists = function (filename, callback) {
|
|
41046
|
+
if (typeof callback === 'function') {
|
|
41047
|
+
return fs.exists(filename, callback)
|
|
41048
|
+
}
|
|
41049
|
+
return new Promise(resolve => {
|
|
41050
|
+
return fs.exists(filename, resolve)
|
|
41051
|
+
})
|
|
41052
|
+
}
|
|
41053
|
+
|
|
41054
|
+
// fs.read(), fs.write(), & fs.writev() need special treatment due to multiple callback args
|
|
41055
|
+
|
|
41056
|
+
exports.read = function (fd, buffer, offset, length, position, callback) {
|
|
41057
|
+
if (typeof callback === 'function') {
|
|
41058
|
+
return fs.read(fd, buffer, offset, length, position, callback)
|
|
41059
|
+
}
|
|
41060
|
+
return new Promise((resolve, reject) => {
|
|
41061
|
+
fs.read(fd, buffer, offset, length, position, (err, bytesRead, buffer) => {
|
|
41062
|
+
if (err) return reject(err)
|
|
41063
|
+
resolve({ bytesRead, buffer })
|
|
41064
|
+
})
|
|
41065
|
+
})
|
|
41066
|
+
}
|
|
41067
|
+
|
|
41068
|
+
// Function signature can be
|
|
41069
|
+
// fs.write(fd, buffer[, offset[, length[, position]]], callback)
|
|
41070
|
+
// OR
|
|
41071
|
+
// fs.write(fd, string[, position[, encoding]], callback)
|
|
41072
|
+
// We need to handle both cases, so we use ...args
|
|
41073
|
+
exports.write = function (fd, buffer, ...args) {
|
|
41074
|
+
if (typeof args[args.length - 1] === 'function') {
|
|
41075
|
+
return fs.write(fd, buffer, ...args)
|
|
41076
|
+
}
|
|
41077
|
+
|
|
41078
|
+
return new Promise((resolve, reject) => {
|
|
41079
|
+
fs.write(fd, buffer, ...args, (err, bytesWritten, buffer) => {
|
|
41080
|
+
if (err) return reject(err)
|
|
41081
|
+
resolve({ bytesWritten, buffer })
|
|
41082
|
+
})
|
|
41083
|
+
})
|
|
41084
|
+
}
|
|
41085
|
+
|
|
41086
|
+
// fs.writev only available in Node v12.9.0+
|
|
41087
|
+
if (typeof fs.writev === 'function') {
|
|
41088
|
+
// Function signature is
|
|
41089
|
+
// s.writev(fd, buffers[, position], callback)
|
|
41090
|
+
// We need to handle the optional arg, so we use ...args
|
|
41091
|
+
exports.writev = function (fd, buffers, ...args) {
|
|
41092
|
+
if (typeof args[args.length - 1] === 'function') {
|
|
41093
|
+
return fs.writev(fd, buffers, ...args)
|
|
41094
|
+
}
|
|
41095
|
+
|
|
41096
|
+
return new Promise((resolve, reject) => {
|
|
41097
|
+
fs.writev(fd, buffers, ...args, (err, bytesWritten, buffers) => {
|
|
41098
|
+
if (err) return reject(err)
|
|
41099
|
+
resolve({ bytesWritten, buffers })
|
|
41100
|
+
})
|
|
41101
|
+
})
|
|
41102
|
+
}
|
|
41103
|
+
}
|
|
41104
|
+
|
|
41105
|
+
|
|
41106
|
+
/***/ }),
|
|
41107
|
+
|
|
41108
|
+
/***/ 83950:
|
|
41109
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
41110
|
+
|
|
41111
|
+
"use strict";
|
|
41112
|
+
|
|
41113
|
+
|
|
41114
|
+
module.exports = {
|
|
41115
|
+
// Export promiseified graceful-fs:
|
|
41116
|
+
...__webpack_require__(73664),
|
|
41117
|
+
// Export extra methods:
|
|
41118
|
+
...__webpack_require__(1105),
|
|
41119
|
+
...__webpack_require__(19102),
|
|
41120
|
+
...__webpack_require__(99793),
|
|
41121
|
+
...__webpack_require__(37557),
|
|
41122
|
+
...__webpack_require__(59915),
|
|
41123
|
+
...__webpack_require__(14449),
|
|
41124
|
+
...__webpack_require__(65889),
|
|
41125
|
+
...__webpack_require__(9672),
|
|
41126
|
+
...__webpack_require__(21133)
|
|
41127
|
+
}
|
|
41128
|
+
|
|
41129
|
+
|
|
41130
|
+
/***/ }),
|
|
41131
|
+
|
|
41132
|
+
/***/ 37557:
|
|
41133
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
41134
|
+
|
|
41135
|
+
"use strict";
|
|
41136
|
+
|
|
41137
|
+
|
|
41138
|
+
const u = (__webpack_require__(84357).fromPromise)
|
|
41139
|
+
const jsonFile = __webpack_require__(42915)
|
|
41140
|
+
|
|
41141
|
+
jsonFile.outputJson = u(__webpack_require__(87482))
|
|
41142
|
+
jsonFile.outputJsonSync = __webpack_require__(48467)
|
|
41143
|
+
// aliases
|
|
41144
|
+
jsonFile.outputJSON = jsonFile.outputJson
|
|
41145
|
+
jsonFile.outputJSONSync = jsonFile.outputJsonSync
|
|
41146
|
+
jsonFile.writeJSON = jsonFile.writeJson
|
|
41147
|
+
jsonFile.writeJSONSync = jsonFile.writeJsonSync
|
|
41148
|
+
jsonFile.readJSON = jsonFile.readJson
|
|
41149
|
+
jsonFile.readJSONSync = jsonFile.readJsonSync
|
|
41150
|
+
|
|
41151
|
+
module.exports = jsonFile
|
|
41152
|
+
|
|
41153
|
+
|
|
41154
|
+
/***/ }),
|
|
41155
|
+
|
|
41156
|
+
/***/ 42915:
|
|
41157
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
41158
|
+
|
|
41159
|
+
"use strict";
|
|
41160
|
+
|
|
41161
|
+
|
|
41162
|
+
const jsonFile = __webpack_require__(84719)
|
|
41163
|
+
|
|
41164
|
+
module.exports = {
|
|
41165
|
+
// jsonfile exports
|
|
41166
|
+
readJson: jsonFile.readFile,
|
|
41167
|
+
readJsonSync: jsonFile.readFileSync,
|
|
41168
|
+
writeJson: jsonFile.writeFile,
|
|
41169
|
+
writeJsonSync: jsonFile.writeFileSync
|
|
41170
|
+
}
|
|
41171
|
+
|
|
41172
|
+
|
|
41173
|
+
/***/ }),
|
|
41174
|
+
|
|
41175
|
+
/***/ 48467:
|
|
41176
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
41177
|
+
|
|
41178
|
+
"use strict";
|
|
41179
|
+
|
|
41180
|
+
|
|
41181
|
+
const { stringify } = __webpack_require__(27546)
|
|
41182
|
+
const { outputFileSync } = __webpack_require__(65889)
|
|
41183
|
+
|
|
41184
|
+
function outputJsonSync (file, data, options) {
|
|
41185
|
+
const str = stringify(data, options)
|
|
41186
|
+
|
|
41187
|
+
outputFileSync(file, str, options)
|
|
41188
|
+
}
|
|
41189
|
+
|
|
41190
|
+
module.exports = outputJsonSync
|
|
41191
|
+
|
|
41192
|
+
|
|
41193
|
+
/***/ }),
|
|
41194
|
+
|
|
41195
|
+
/***/ 87482:
|
|
41196
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
41197
|
+
|
|
41198
|
+
"use strict";
|
|
41199
|
+
|
|
41200
|
+
|
|
41201
|
+
const { stringify } = __webpack_require__(27546)
|
|
41202
|
+
const { outputFile } = __webpack_require__(65889)
|
|
41203
|
+
|
|
41204
|
+
async function outputJson (file, data, options = {}) {
|
|
41205
|
+
const str = stringify(data, options)
|
|
41206
|
+
|
|
41207
|
+
await outputFile(file, str, options)
|
|
41208
|
+
}
|
|
41209
|
+
|
|
41210
|
+
module.exports = outputJson
|
|
41211
|
+
|
|
41212
|
+
|
|
41213
|
+
/***/ }),
|
|
41214
|
+
|
|
41215
|
+
/***/ 59915:
|
|
41216
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
41217
|
+
|
|
41218
|
+
"use strict";
|
|
41219
|
+
|
|
41220
|
+
const u = (__webpack_require__(84357).fromPromise)
|
|
41221
|
+
const { makeDir: _makeDir, makeDirSync } = __webpack_require__(15602)
|
|
41222
|
+
const makeDir = u(_makeDir)
|
|
41223
|
+
|
|
41224
|
+
module.exports = {
|
|
41225
|
+
mkdirs: makeDir,
|
|
41226
|
+
mkdirsSync: makeDirSync,
|
|
41227
|
+
// alias
|
|
41228
|
+
mkdirp: makeDir,
|
|
41229
|
+
mkdirpSync: makeDirSync,
|
|
41230
|
+
ensureDir: makeDir,
|
|
41231
|
+
ensureDirSync: makeDirSync
|
|
41232
|
+
}
|
|
41233
|
+
|
|
41234
|
+
|
|
41235
|
+
/***/ }),
|
|
41236
|
+
|
|
41237
|
+
/***/ 15602:
|
|
41238
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
41239
|
+
|
|
41240
|
+
"use strict";
|
|
41241
|
+
|
|
41242
|
+
const fs = __webpack_require__(73664)
|
|
41243
|
+
const { checkPath } = __webpack_require__(92751)
|
|
41244
|
+
|
|
41245
|
+
const getMode = options => {
|
|
41246
|
+
const defaults = { mode: 0o777 }
|
|
41247
|
+
if (typeof options === 'number') return options
|
|
41248
|
+
return ({ ...defaults, ...options }).mode
|
|
41249
|
+
}
|
|
41250
|
+
|
|
41251
|
+
module.exports.makeDir = async (dir, options) => {
|
|
41252
|
+
checkPath(dir)
|
|
41253
|
+
|
|
41254
|
+
return fs.mkdir(dir, {
|
|
41255
|
+
mode: getMode(options),
|
|
41256
|
+
recursive: true
|
|
41257
|
+
})
|
|
41258
|
+
}
|
|
41259
|
+
|
|
41260
|
+
module.exports.makeDirSync = (dir, options) => {
|
|
41261
|
+
checkPath(dir)
|
|
41262
|
+
|
|
41263
|
+
return fs.mkdirSync(dir, {
|
|
41264
|
+
mode: getMode(options),
|
|
41265
|
+
recursive: true
|
|
41266
|
+
})
|
|
41267
|
+
}
|
|
41268
|
+
|
|
41269
|
+
|
|
41270
|
+
/***/ }),
|
|
41271
|
+
|
|
41272
|
+
/***/ 92751:
|
|
41273
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
41274
|
+
|
|
41275
|
+
"use strict";
|
|
41276
|
+
// Adapted from https://github.com/sindresorhus/make-dir
|
|
41277
|
+
// Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
|
41278
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
41279
|
+
// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
41280
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
41281
|
+
|
|
41282
|
+
const path = __webpack_require__(71017)
|
|
41283
|
+
|
|
41284
|
+
// https://github.com/nodejs/node/issues/8987
|
|
41285
|
+
// https://github.com/libuv/libuv/pull/1088
|
|
41286
|
+
module.exports.checkPath = function checkPath (pth) {
|
|
41287
|
+
if (process.platform === 'win32') {
|
|
41288
|
+
const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path.parse(pth).root, ''))
|
|
41289
|
+
|
|
41290
|
+
if (pathHasInvalidWinCharacters) {
|
|
41291
|
+
const error = new Error(`Path contains invalid characters: ${pth}`)
|
|
41292
|
+
error.code = 'EINVAL'
|
|
41293
|
+
throw error
|
|
41294
|
+
}
|
|
41295
|
+
}
|
|
41296
|
+
}
|
|
41297
|
+
|
|
41298
|
+
|
|
41299
|
+
/***/ }),
|
|
41300
|
+
|
|
41301
|
+
/***/ 14449:
|
|
41302
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
41303
|
+
|
|
41304
|
+
"use strict";
|
|
41305
|
+
|
|
41306
|
+
|
|
41307
|
+
const u = (__webpack_require__(84357).fromCallback)
|
|
41308
|
+
module.exports = {
|
|
41309
|
+
move: u(__webpack_require__(10000)),
|
|
41310
|
+
moveSync: __webpack_require__(40665)
|
|
41311
|
+
}
|
|
41312
|
+
|
|
41313
|
+
|
|
41314
|
+
/***/ }),
|
|
41315
|
+
|
|
41316
|
+
/***/ 40665:
|
|
41317
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
41318
|
+
|
|
41319
|
+
"use strict";
|
|
41320
|
+
|
|
41321
|
+
|
|
41322
|
+
const fs = __webpack_require__(62204)
|
|
41323
|
+
const path = __webpack_require__(71017)
|
|
41324
|
+
const copySync = (__webpack_require__(1105).copySync)
|
|
41325
|
+
const removeSync = (__webpack_require__(21133).removeSync)
|
|
41326
|
+
const mkdirpSync = (__webpack_require__(59915).mkdirpSync)
|
|
41327
|
+
const stat = __webpack_require__(12021)
|
|
41328
|
+
|
|
41329
|
+
function moveSync (src, dest, opts) {
|
|
41330
|
+
opts = opts || {}
|
|
41331
|
+
const overwrite = opts.overwrite || opts.clobber || false
|
|
41332
|
+
|
|
41333
|
+
const { srcStat, isChangingCase = false } = stat.checkPathsSync(src, dest, 'move', opts)
|
|
41334
|
+
stat.checkParentPathsSync(src, srcStat, dest, 'move')
|
|
41335
|
+
if (!isParentRoot(dest)) mkdirpSync(path.dirname(dest))
|
|
41336
|
+
return doRename(src, dest, overwrite, isChangingCase)
|
|
41337
|
+
}
|
|
41338
|
+
|
|
41339
|
+
function isParentRoot (dest) {
|
|
41340
|
+
const parent = path.dirname(dest)
|
|
41341
|
+
const parsedPath = path.parse(parent)
|
|
41342
|
+
return parsedPath.root === parent
|
|
41343
|
+
}
|
|
41344
|
+
|
|
41345
|
+
function doRename (src, dest, overwrite, isChangingCase) {
|
|
41346
|
+
if (isChangingCase) return rename(src, dest, overwrite)
|
|
41347
|
+
if (overwrite) {
|
|
41348
|
+
removeSync(dest)
|
|
41349
|
+
return rename(src, dest, overwrite)
|
|
41350
|
+
}
|
|
41351
|
+
if (fs.existsSync(dest)) throw new Error('dest already exists.')
|
|
41352
|
+
return rename(src, dest, overwrite)
|
|
41353
|
+
}
|
|
41354
|
+
|
|
41355
|
+
function rename (src, dest, overwrite) {
|
|
41356
|
+
try {
|
|
41357
|
+
fs.renameSync(src, dest)
|
|
41358
|
+
} catch (err) {
|
|
41359
|
+
if (err.code !== 'EXDEV') throw err
|
|
41360
|
+
return moveAcrossDevice(src, dest, overwrite)
|
|
41361
|
+
}
|
|
41362
|
+
}
|
|
41363
|
+
|
|
41364
|
+
function moveAcrossDevice (src, dest, overwrite) {
|
|
41365
|
+
const opts = {
|
|
41366
|
+
overwrite,
|
|
41367
|
+
errorOnExist: true
|
|
41368
|
+
}
|
|
41369
|
+
copySync(src, dest, opts)
|
|
41370
|
+
return removeSync(src)
|
|
41371
|
+
}
|
|
41372
|
+
|
|
41373
|
+
module.exports = moveSync
|
|
41374
|
+
|
|
41375
|
+
|
|
41376
|
+
/***/ }),
|
|
41377
|
+
|
|
41378
|
+
/***/ 10000:
|
|
41379
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
41380
|
+
|
|
41381
|
+
"use strict";
|
|
41382
|
+
|
|
41383
|
+
|
|
41384
|
+
const fs = __webpack_require__(62204)
|
|
41385
|
+
const path = __webpack_require__(71017)
|
|
41386
|
+
const copy = (__webpack_require__(1105).copy)
|
|
41387
|
+
const remove = (__webpack_require__(21133).remove)
|
|
41388
|
+
const mkdirp = (__webpack_require__(59915).mkdirp)
|
|
41389
|
+
const pathExists = (__webpack_require__(9672).pathExists)
|
|
41390
|
+
const stat = __webpack_require__(12021)
|
|
41391
|
+
|
|
41392
|
+
function move (src, dest, opts, cb) {
|
|
41393
|
+
if (typeof opts === 'function') {
|
|
41394
|
+
cb = opts
|
|
41395
|
+
opts = {}
|
|
41396
|
+
}
|
|
41397
|
+
|
|
41398
|
+
const overwrite = opts.overwrite || opts.clobber || false
|
|
41399
|
+
|
|
41400
|
+
stat.checkPaths(src, dest, 'move', opts, (err, stats) => {
|
|
41401
|
+
if (err) return cb(err)
|
|
41402
|
+
const { srcStat, isChangingCase = false } = stats
|
|
41403
|
+
stat.checkParentPaths(src, srcStat, dest, 'move', err => {
|
|
41404
|
+
if (err) return cb(err)
|
|
41405
|
+
if (isParentRoot(dest)) return doRename(src, dest, overwrite, isChangingCase, cb)
|
|
41406
|
+
mkdirp(path.dirname(dest), err => {
|
|
41407
|
+
if (err) return cb(err)
|
|
41408
|
+
return doRename(src, dest, overwrite, isChangingCase, cb)
|
|
41409
|
+
})
|
|
41410
|
+
})
|
|
41411
|
+
})
|
|
41412
|
+
}
|
|
41413
|
+
|
|
41414
|
+
function isParentRoot (dest) {
|
|
41415
|
+
const parent = path.dirname(dest)
|
|
41416
|
+
const parsedPath = path.parse(parent)
|
|
41417
|
+
return parsedPath.root === parent
|
|
41418
|
+
}
|
|
41419
|
+
|
|
41420
|
+
function doRename (src, dest, overwrite, isChangingCase, cb) {
|
|
41421
|
+
if (isChangingCase) return rename(src, dest, overwrite, cb)
|
|
41422
|
+
if (overwrite) {
|
|
41423
|
+
return remove(dest, err => {
|
|
41424
|
+
if (err) return cb(err)
|
|
41425
|
+
return rename(src, dest, overwrite, cb)
|
|
41426
|
+
})
|
|
41427
|
+
}
|
|
41428
|
+
pathExists(dest, (err, destExists) => {
|
|
41429
|
+
if (err) return cb(err)
|
|
41430
|
+
if (destExists) return cb(new Error('dest already exists.'))
|
|
41431
|
+
return rename(src, dest, overwrite, cb)
|
|
41432
|
+
})
|
|
41433
|
+
}
|
|
41434
|
+
|
|
41435
|
+
function rename (src, dest, overwrite, cb) {
|
|
41436
|
+
fs.rename(src, dest, err => {
|
|
41437
|
+
if (!err) return cb()
|
|
41438
|
+
if (err.code !== 'EXDEV') return cb(err)
|
|
41439
|
+
return moveAcrossDevice(src, dest, overwrite, cb)
|
|
41440
|
+
})
|
|
41441
|
+
}
|
|
41442
|
+
|
|
41443
|
+
function moveAcrossDevice (src, dest, overwrite, cb) {
|
|
41444
|
+
const opts = {
|
|
41445
|
+
overwrite,
|
|
41446
|
+
errorOnExist: true
|
|
41447
|
+
}
|
|
41448
|
+
copy(src, dest, opts, err => {
|
|
41449
|
+
if (err) return cb(err)
|
|
41450
|
+
return remove(src, cb)
|
|
41451
|
+
})
|
|
41452
|
+
}
|
|
41453
|
+
|
|
41454
|
+
module.exports = move
|
|
41455
|
+
|
|
41456
|
+
|
|
41457
|
+
/***/ }),
|
|
41458
|
+
|
|
41459
|
+
/***/ 65889:
|
|
41460
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
41461
|
+
|
|
41462
|
+
"use strict";
|
|
41463
|
+
|
|
41464
|
+
|
|
41465
|
+
const u = (__webpack_require__(84357).fromCallback)
|
|
41466
|
+
const fs = __webpack_require__(62204)
|
|
41467
|
+
const path = __webpack_require__(71017)
|
|
41468
|
+
const mkdir = __webpack_require__(59915)
|
|
41469
|
+
const pathExists = (__webpack_require__(9672).pathExists)
|
|
41470
|
+
|
|
41471
|
+
function outputFile (file, data, encoding, callback) {
|
|
41472
|
+
if (typeof encoding === 'function') {
|
|
41473
|
+
callback = encoding
|
|
41474
|
+
encoding = 'utf8'
|
|
41475
|
+
}
|
|
41476
|
+
|
|
41477
|
+
const dir = path.dirname(file)
|
|
41478
|
+
pathExists(dir, (err, itDoes) => {
|
|
41479
|
+
if (err) return callback(err)
|
|
41480
|
+
if (itDoes) return fs.writeFile(file, data, encoding, callback)
|
|
41481
|
+
|
|
41482
|
+
mkdir.mkdirs(dir, err => {
|
|
41483
|
+
if (err) return callback(err)
|
|
41484
|
+
|
|
41485
|
+
fs.writeFile(file, data, encoding, callback)
|
|
41486
|
+
})
|
|
41487
|
+
})
|
|
41488
|
+
}
|
|
41489
|
+
|
|
41490
|
+
function outputFileSync (file, ...args) {
|
|
41491
|
+
const dir = path.dirname(file)
|
|
41492
|
+
if (fs.existsSync(dir)) {
|
|
41493
|
+
return fs.writeFileSync(file, ...args)
|
|
41494
|
+
}
|
|
41495
|
+
mkdir.mkdirsSync(dir)
|
|
41496
|
+
fs.writeFileSync(file, ...args)
|
|
41497
|
+
}
|
|
41498
|
+
|
|
41499
|
+
module.exports = {
|
|
41500
|
+
outputFile: u(outputFile),
|
|
41501
|
+
outputFileSync
|
|
41502
|
+
}
|
|
41503
|
+
|
|
41504
|
+
|
|
41505
|
+
/***/ }),
|
|
41506
|
+
|
|
41507
|
+
/***/ 9672:
|
|
41508
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
41509
|
+
|
|
41510
|
+
"use strict";
|
|
41511
|
+
|
|
41512
|
+
const u = (__webpack_require__(84357).fromPromise)
|
|
41513
|
+
const fs = __webpack_require__(73664)
|
|
41514
|
+
|
|
41515
|
+
function pathExists (path) {
|
|
41516
|
+
return fs.access(path).then(() => true).catch(() => false)
|
|
41517
|
+
}
|
|
41518
|
+
|
|
41519
|
+
module.exports = {
|
|
41520
|
+
pathExists: u(pathExists),
|
|
41521
|
+
pathExistsSync: fs.existsSync
|
|
41522
|
+
}
|
|
41523
|
+
|
|
41524
|
+
|
|
41525
|
+
/***/ }),
|
|
41526
|
+
|
|
41527
|
+
/***/ 21133:
|
|
41528
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
41529
|
+
|
|
41530
|
+
"use strict";
|
|
41531
|
+
|
|
41532
|
+
|
|
41533
|
+
const fs = __webpack_require__(62204)
|
|
41534
|
+
const u = (__webpack_require__(84357).fromCallback)
|
|
41535
|
+
const rimraf = __webpack_require__(58088)
|
|
41536
|
+
|
|
41537
|
+
function remove (path, callback) {
|
|
41538
|
+
// Node 14.14.0+
|
|
41539
|
+
if (fs.rm) return fs.rm(path, { recursive: true, force: true }, callback)
|
|
41540
|
+
rimraf(path, callback)
|
|
41541
|
+
}
|
|
41542
|
+
|
|
41543
|
+
function removeSync (path) {
|
|
41544
|
+
// Node 14.14.0+
|
|
41545
|
+
if (fs.rmSync) return fs.rmSync(path, { recursive: true, force: true })
|
|
41546
|
+
rimraf.sync(path)
|
|
41547
|
+
}
|
|
41548
|
+
|
|
41549
|
+
module.exports = {
|
|
41550
|
+
remove: u(remove),
|
|
41551
|
+
removeSync
|
|
41552
|
+
}
|
|
41553
|
+
|
|
41554
|
+
|
|
41555
|
+
/***/ }),
|
|
41556
|
+
|
|
41557
|
+
/***/ 58088:
|
|
41558
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
41559
|
+
|
|
41560
|
+
"use strict";
|
|
41561
|
+
|
|
41562
|
+
|
|
41563
|
+
const fs = __webpack_require__(62204)
|
|
41564
|
+
const path = __webpack_require__(71017)
|
|
41565
|
+
const assert = __webpack_require__(39491)
|
|
41566
|
+
|
|
41567
|
+
const isWindows = (process.platform === 'win32')
|
|
41568
|
+
|
|
41569
|
+
function defaults (options) {
|
|
41570
|
+
const methods = [
|
|
41571
|
+
'unlink',
|
|
41572
|
+
'chmod',
|
|
41573
|
+
'stat',
|
|
41574
|
+
'lstat',
|
|
41575
|
+
'rmdir',
|
|
41576
|
+
'readdir'
|
|
41577
|
+
]
|
|
41578
|
+
methods.forEach(m => {
|
|
41579
|
+
options[m] = options[m] || fs[m]
|
|
41580
|
+
m = m + 'Sync'
|
|
41581
|
+
options[m] = options[m] || fs[m]
|
|
41582
|
+
})
|
|
41583
|
+
|
|
41584
|
+
options.maxBusyTries = options.maxBusyTries || 3
|
|
41585
|
+
}
|
|
41586
|
+
|
|
41587
|
+
function rimraf (p, options, cb) {
|
|
41588
|
+
let busyTries = 0
|
|
41589
|
+
|
|
41590
|
+
if (typeof options === 'function') {
|
|
41591
|
+
cb = options
|
|
41592
|
+
options = {}
|
|
41593
|
+
}
|
|
41594
|
+
|
|
41595
|
+
assert(p, 'rimraf: missing path')
|
|
41596
|
+
assert.strictEqual(typeof p, 'string', 'rimraf: path should be a string')
|
|
41597
|
+
assert.strictEqual(typeof cb, 'function', 'rimraf: callback function required')
|
|
41598
|
+
assert(options, 'rimraf: invalid options argument provided')
|
|
41599
|
+
assert.strictEqual(typeof options, 'object', 'rimraf: options should be object')
|
|
41600
|
+
|
|
41601
|
+
defaults(options)
|
|
41602
|
+
|
|
41603
|
+
rimraf_(p, options, function CB (er) {
|
|
41604
|
+
if (er) {
|
|
41605
|
+
if ((er.code === 'EBUSY' || er.code === 'ENOTEMPTY' || er.code === 'EPERM') &&
|
|
41606
|
+
busyTries < options.maxBusyTries) {
|
|
41607
|
+
busyTries++
|
|
41608
|
+
const time = busyTries * 100
|
|
41609
|
+
// try again, with the same exact callback as this one.
|
|
41610
|
+
return setTimeout(() => rimraf_(p, options, CB), time)
|
|
41611
|
+
}
|
|
41612
|
+
|
|
41613
|
+
// already gone
|
|
41614
|
+
if (er.code === 'ENOENT') er = null
|
|
41615
|
+
}
|
|
41616
|
+
|
|
41617
|
+
cb(er)
|
|
41618
|
+
})
|
|
41619
|
+
}
|
|
41620
|
+
|
|
41621
|
+
// Two possible strategies.
|
|
41622
|
+
// 1. Assume it's a file. unlink it, then do the dir stuff on EPERM or EISDIR
|
|
41623
|
+
// 2. Assume it's a directory. readdir, then do the file stuff on ENOTDIR
|
|
41624
|
+
//
|
|
41625
|
+
// Both result in an extra syscall when you guess wrong. However, there
|
|
41626
|
+
// are likely far more normal files in the world than directories. This
|
|
41627
|
+
// is based on the assumption that a the average number of files per
|
|
41628
|
+
// directory is >= 1.
|
|
41629
|
+
//
|
|
41630
|
+
// If anyone ever complains about this, then I guess the strategy could
|
|
41631
|
+
// be made configurable somehow. But until then, YAGNI.
|
|
41632
|
+
function rimraf_ (p, options, cb) {
|
|
41633
|
+
assert(p)
|
|
41634
|
+
assert(options)
|
|
41635
|
+
assert(typeof cb === 'function')
|
|
41636
|
+
|
|
41637
|
+
// sunos lets the root user unlink directories, which is... weird.
|
|
41638
|
+
// so we have to lstat here and make sure it's not a dir.
|
|
41639
|
+
options.lstat(p, (er, st) => {
|
|
41640
|
+
if (er && er.code === 'ENOENT') {
|
|
41641
|
+
return cb(null)
|
|
41642
|
+
}
|
|
41643
|
+
|
|
41644
|
+
// Windows can EPERM on stat. Life is suffering.
|
|
41645
|
+
if (er && er.code === 'EPERM' && isWindows) {
|
|
41646
|
+
return fixWinEPERM(p, options, er, cb)
|
|
41647
|
+
}
|
|
41648
|
+
|
|
41649
|
+
if (st && st.isDirectory()) {
|
|
41650
|
+
return rmdir(p, options, er, cb)
|
|
41651
|
+
}
|
|
41652
|
+
|
|
41653
|
+
options.unlink(p, er => {
|
|
41654
|
+
if (er) {
|
|
41655
|
+
if (er.code === 'ENOENT') {
|
|
41656
|
+
return cb(null)
|
|
41657
|
+
}
|
|
41658
|
+
if (er.code === 'EPERM') {
|
|
41659
|
+
return (isWindows)
|
|
41660
|
+
? fixWinEPERM(p, options, er, cb)
|
|
41661
|
+
: rmdir(p, options, er, cb)
|
|
41662
|
+
}
|
|
41663
|
+
if (er.code === 'EISDIR') {
|
|
41664
|
+
return rmdir(p, options, er, cb)
|
|
41665
|
+
}
|
|
41666
|
+
}
|
|
41667
|
+
return cb(er)
|
|
41668
|
+
})
|
|
41669
|
+
})
|
|
41670
|
+
}
|
|
41671
|
+
|
|
41672
|
+
function fixWinEPERM (p, options, er, cb) {
|
|
41673
|
+
assert(p)
|
|
41674
|
+
assert(options)
|
|
41675
|
+
assert(typeof cb === 'function')
|
|
41676
|
+
|
|
41677
|
+
options.chmod(p, 0o666, er2 => {
|
|
41678
|
+
if (er2) {
|
|
41679
|
+
cb(er2.code === 'ENOENT' ? null : er)
|
|
41680
|
+
} else {
|
|
41681
|
+
options.stat(p, (er3, stats) => {
|
|
41682
|
+
if (er3) {
|
|
41683
|
+
cb(er3.code === 'ENOENT' ? null : er)
|
|
41684
|
+
} else if (stats.isDirectory()) {
|
|
41685
|
+
rmdir(p, options, er, cb)
|
|
41686
|
+
} else {
|
|
41687
|
+
options.unlink(p, cb)
|
|
41688
|
+
}
|
|
41689
|
+
})
|
|
41690
|
+
}
|
|
41691
|
+
})
|
|
41692
|
+
}
|
|
41693
|
+
|
|
41694
|
+
function fixWinEPERMSync (p, options, er) {
|
|
41695
|
+
let stats
|
|
41696
|
+
|
|
41697
|
+
assert(p)
|
|
41698
|
+
assert(options)
|
|
41699
|
+
|
|
41700
|
+
try {
|
|
41701
|
+
options.chmodSync(p, 0o666)
|
|
41702
|
+
} catch (er2) {
|
|
41703
|
+
if (er2.code === 'ENOENT') {
|
|
41704
|
+
return
|
|
41705
|
+
} else {
|
|
41706
|
+
throw er
|
|
41707
|
+
}
|
|
41708
|
+
}
|
|
41709
|
+
|
|
41710
|
+
try {
|
|
41711
|
+
stats = options.statSync(p)
|
|
41712
|
+
} catch (er3) {
|
|
41713
|
+
if (er3.code === 'ENOENT') {
|
|
41714
|
+
return
|
|
41715
|
+
} else {
|
|
41716
|
+
throw er
|
|
41717
|
+
}
|
|
41718
|
+
}
|
|
41719
|
+
|
|
41720
|
+
if (stats.isDirectory()) {
|
|
41721
|
+
rmdirSync(p, options, er)
|
|
41722
|
+
} else {
|
|
41723
|
+
options.unlinkSync(p)
|
|
41724
|
+
}
|
|
41725
|
+
}
|
|
41726
|
+
|
|
41727
|
+
function rmdir (p, options, originalEr, cb) {
|
|
41728
|
+
assert(p)
|
|
41729
|
+
assert(options)
|
|
41730
|
+
assert(typeof cb === 'function')
|
|
41731
|
+
|
|
41732
|
+
// try to rmdir first, and only readdir on ENOTEMPTY or EEXIST (SunOS)
|
|
41733
|
+
// if we guessed wrong, and it's not a directory, then
|
|
41734
|
+
// raise the original error.
|
|
41735
|
+
options.rmdir(p, er => {
|
|
41736
|
+
if (er && (er.code === 'ENOTEMPTY' || er.code === 'EEXIST' || er.code === 'EPERM')) {
|
|
41737
|
+
rmkids(p, options, cb)
|
|
41738
|
+
} else if (er && er.code === 'ENOTDIR') {
|
|
41739
|
+
cb(originalEr)
|
|
41740
|
+
} else {
|
|
41741
|
+
cb(er)
|
|
41742
|
+
}
|
|
41743
|
+
})
|
|
41744
|
+
}
|
|
41745
|
+
|
|
41746
|
+
function rmkids (p, options, cb) {
|
|
41747
|
+
assert(p)
|
|
41748
|
+
assert(options)
|
|
41749
|
+
assert(typeof cb === 'function')
|
|
41750
|
+
|
|
41751
|
+
options.readdir(p, (er, files) => {
|
|
41752
|
+
if (er) return cb(er)
|
|
41753
|
+
|
|
41754
|
+
let n = files.length
|
|
41755
|
+
let errState
|
|
41756
|
+
|
|
41757
|
+
if (n === 0) return options.rmdir(p, cb)
|
|
41758
|
+
|
|
41759
|
+
files.forEach(f => {
|
|
41760
|
+
rimraf(path.join(p, f), options, er => {
|
|
41761
|
+
if (errState) {
|
|
41762
|
+
return
|
|
41763
|
+
}
|
|
41764
|
+
if (er) return cb(errState = er)
|
|
41765
|
+
if (--n === 0) {
|
|
41766
|
+
options.rmdir(p, cb)
|
|
41767
|
+
}
|
|
41768
|
+
})
|
|
41769
|
+
})
|
|
41770
|
+
})
|
|
41771
|
+
}
|
|
41772
|
+
|
|
41773
|
+
// this looks simpler, and is strictly *faster*, but will
|
|
41774
|
+
// tie up the JavaScript thread and fail on excessively
|
|
41775
|
+
// deep directory trees.
|
|
41776
|
+
function rimrafSync (p, options) {
|
|
41777
|
+
let st
|
|
41778
|
+
|
|
41779
|
+
options = options || {}
|
|
41780
|
+
defaults(options)
|
|
41781
|
+
|
|
41782
|
+
assert(p, 'rimraf: missing path')
|
|
41783
|
+
assert.strictEqual(typeof p, 'string', 'rimraf: path should be a string')
|
|
41784
|
+
assert(options, 'rimraf: missing options')
|
|
41785
|
+
assert.strictEqual(typeof options, 'object', 'rimraf: options should be object')
|
|
41786
|
+
|
|
41787
|
+
try {
|
|
41788
|
+
st = options.lstatSync(p)
|
|
41789
|
+
} catch (er) {
|
|
41790
|
+
if (er.code === 'ENOENT') {
|
|
41791
|
+
return
|
|
41792
|
+
}
|
|
41793
|
+
|
|
41794
|
+
// Windows can EPERM on stat. Life is suffering.
|
|
41795
|
+
if (er.code === 'EPERM' && isWindows) {
|
|
41796
|
+
fixWinEPERMSync(p, options, er)
|
|
41797
|
+
}
|
|
41798
|
+
}
|
|
41799
|
+
|
|
41800
|
+
try {
|
|
41801
|
+
// sunos lets the root user unlink directories, which is... weird.
|
|
41802
|
+
if (st && st.isDirectory()) {
|
|
41803
|
+
rmdirSync(p, options, null)
|
|
41804
|
+
} else {
|
|
41805
|
+
options.unlinkSync(p)
|
|
41806
|
+
}
|
|
41807
|
+
} catch (er) {
|
|
41808
|
+
if (er.code === 'ENOENT') {
|
|
41809
|
+
return
|
|
41810
|
+
} else if (er.code === 'EPERM') {
|
|
41811
|
+
return isWindows ? fixWinEPERMSync(p, options, er) : rmdirSync(p, options, er)
|
|
41812
|
+
} else if (er.code !== 'EISDIR') {
|
|
41813
|
+
throw er
|
|
41814
|
+
}
|
|
41815
|
+
rmdirSync(p, options, er)
|
|
41816
|
+
}
|
|
41817
|
+
}
|
|
41818
|
+
|
|
41819
|
+
function rmdirSync (p, options, originalEr) {
|
|
41820
|
+
assert(p)
|
|
41821
|
+
assert(options)
|
|
41822
|
+
|
|
41823
|
+
try {
|
|
41824
|
+
options.rmdirSync(p)
|
|
41825
|
+
} catch (er) {
|
|
41826
|
+
if (er.code === 'ENOTDIR') {
|
|
41827
|
+
throw originalEr
|
|
41828
|
+
} else if (er.code === 'ENOTEMPTY' || er.code === 'EEXIST' || er.code === 'EPERM') {
|
|
41829
|
+
rmkidsSync(p, options)
|
|
41830
|
+
} else if (er.code !== 'ENOENT') {
|
|
41831
|
+
throw er
|
|
41832
|
+
}
|
|
41833
|
+
}
|
|
41834
|
+
}
|
|
41835
|
+
|
|
41836
|
+
function rmkidsSync (p, options) {
|
|
41837
|
+
assert(p)
|
|
41838
|
+
assert(options)
|
|
41839
|
+
options.readdirSync(p).forEach(f => rimrafSync(path.join(p, f), options))
|
|
41840
|
+
|
|
41841
|
+
if (isWindows) {
|
|
41842
|
+
// We only end up here once we got ENOTEMPTY at least once, and
|
|
41843
|
+
// at this point, we are guaranteed to have removed all the kids.
|
|
41844
|
+
// So, we know that it won't be ENOENT or ENOTDIR or anything else.
|
|
41845
|
+
// try really hard to delete stuff on windows, because it has a
|
|
41846
|
+
// PROFOUNDLY annoying habit of not closing handles promptly when
|
|
41847
|
+
// files are deleted, resulting in spurious ENOTEMPTY errors.
|
|
41848
|
+
const startTime = Date.now()
|
|
41849
|
+
do {
|
|
41850
|
+
try {
|
|
41851
|
+
const ret = options.rmdirSync(p, options)
|
|
41852
|
+
return ret
|
|
41853
|
+
} catch {}
|
|
41854
|
+
} while (Date.now() - startTime < 500) // give up after 500ms
|
|
41855
|
+
} else {
|
|
41856
|
+
const ret = options.rmdirSync(p, options)
|
|
41857
|
+
return ret
|
|
41858
|
+
}
|
|
41859
|
+
}
|
|
41860
|
+
|
|
41861
|
+
module.exports = rimraf
|
|
41862
|
+
rimraf.sync = rimrafSync
|
|
41863
|
+
|
|
41864
|
+
|
|
41865
|
+
/***/ }),
|
|
41866
|
+
|
|
41867
|
+
/***/ 12021:
|
|
41868
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
41869
|
+
|
|
41870
|
+
"use strict";
|
|
41871
|
+
|
|
41872
|
+
|
|
41873
|
+
const fs = __webpack_require__(73664)
|
|
41874
|
+
const path = __webpack_require__(71017)
|
|
41875
|
+
const util = __webpack_require__(73837)
|
|
41876
|
+
|
|
41877
|
+
function getStats (src, dest, opts) {
|
|
41878
|
+
const statFunc = opts.dereference
|
|
41879
|
+
? (file) => fs.stat(file, { bigint: true })
|
|
41880
|
+
: (file) => fs.lstat(file, { bigint: true })
|
|
41881
|
+
return Promise.all([
|
|
41882
|
+
statFunc(src),
|
|
41883
|
+
statFunc(dest).catch(err => {
|
|
41884
|
+
if (err.code === 'ENOENT') return null
|
|
41885
|
+
throw err
|
|
41886
|
+
})
|
|
41887
|
+
]).then(([srcStat, destStat]) => ({ srcStat, destStat }))
|
|
41888
|
+
}
|
|
41889
|
+
|
|
41890
|
+
function getStatsSync (src, dest, opts) {
|
|
41891
|
+
let destStat
|
|
41892
|
+
const statFunc = opts.dereference
|
|
41893
|
+
? (file) => fs.statSync(file, { bigint: true })
|
|
41894
|
+
: (file) => fs.lstatSync(file, { bigint: true })
|
|
41895
|
+
const srcStat = statFunc(src)
|
|
41896
|
+
try {
|
|
41897
|
+
destStat = statFunc(dest)
|
|
41898
|
+
} catch (err) {
|
|
41899
|
+
if (err.code === 'ENOENT') return { srcStat, destStat: null }
|
|
41900
|
+
throw err
|
|
41901
|
+
}
|
|
41902
|
+
return { srcStat, destStat }
|
|
41903
|
+
}
|
|
41904
|
+
|
|
41905
|
+
function checkPaths (src, dest, funcName, opts, cb) {
|
|
41906
|
+
util.callbackify(getStats)(src, dest, opts, (err, stats) => {
|
|
41907
|
+
if (err) return cb(err)
|
|
41908
|
+
const { srcStat, destStat } = stats
|
|
41909
|
+
|
|
41910
|
+
if (destStat) {
|
|
41911
|
+
if (areIdentical(srcStat, destStat)) {
|
|
41912
|
+
const srcBaseName = path.basename(src)
|
|
41913
|
+
const destBaseName = path.basename(dest)
|
|
41914
|
+
if (funcName === 'move' &&
|
|
41915
|
+
srcBaseName !== destBaseName &&
|
|
41916
|
+
srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
|
|
41917
|
+
return cb(null, { srcStat, destStat, isChangingCase: true })
|
|
41918
|
+
}
|
|
41919
|
+
return cb(new Error('Source and destination must not be the same.'))
|
|
41920
|
+
}
|
|
41921
|
+
if (srcStat.isDirectory() && !destStat.isDirectory()) {
|
|
41922
|
+
return cb(new Error(`Cannot overwrite non-directory '${dest}' with directory '${src}'.`))
|
|
41923
|
+
}
|
|
41924
|
+
if (!srcStat.isDirectory() && destStat.isDirectory()) {
|
|
41925
|
+
return cb(new Error(`Cannot overwrite directory '${dest}' with non-directory '${src}'.`))
|
|
41926
|
+
}
|
|
41927
|
+
}
|
|
41928
|
+
|
|
41929
|
+
if (srcStat.isDirectory() && isSrcSubdir(src, dest)) {
|
|
41930
|
+
return cb(new Error(errMsg(src, dest, funcName)))
|
|
41931
|
+
}
|
|
41932
|
+
return cb(null, { srcStat, destStat })
|
|
41933
|
+
})
|
|
41934
|
+
}
|
|
41935
|
+
|
|
41936
|
+
function checkPathsSync (src, dest, funcName, opts) {
|
|
41937
|
+
const { srcStat, destStat } = getStatsSync(src, dest, opts)
|
|
41938
|
+
|
|
41939
|
+
if (destStat) {
|
|
41940
|
+
if (areIdentical(srcStat, destStat)) {
|
|
41941
|
+
const srcBaseName = path.basename(src)
|
|
41942
|
+
const destBaseName = path.basename(dest)
|
|
41943
|
+
if (funcName === 'move' &&
|
|
41944
|
+
srcBaseName !== destBaseName &&
|
|
41945
|
+
srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
|
|
41946
|
+
return { srcStat, destStat, isChangingCase: true }
|
|
41947
|
+
}
|
|
41948
|
+
throw new Error('Source and destination must not be the same.')
|
|
41949
|
+
}
|
|
41950
|
+
if (srcStat.isDirectory() && !destStat.isDirectory()) {
|
|
41951
|
+
throw new Error(`Cannot overwrite non-directory '${dest}' with directory '${src}'.`)
|
|
41952
|
+
}
|
|
41953
|
+
if (!srcStat.isDirectory() && destStat.isDirectory()) {
|
|
41954
|
+
throw new Error(`Cannot overwrite directory '${dest}' with non-directory '${src}'.`)
|
|
41955
|
+
}
|
|
41956
|
+
}
|
|
41957
|
+
|
|
41958
|
+
if (srcStat.isDirectory() && isSrcSubdir(src, dest)) {
|
|
41959
|
+
throw new Error(errMsg(src, dest, funcName))
|
|
41960
|
+
}
|
|
41961
|
+
return { srcStat, destStat }
|
|
41962
|
+
}
|
|
41963
|
+
|
|
41964
|
+
// recursively check if dest parent is a subdirectory of src.
|
|
41965
|
+
// It works for all file types including symlinks since it
|
|
41966
|
+
// checks the src and dest inodes. It starts from the deepest
|
|
41967
|
+
// parent and stops once it reaches the src parent or the root path.
|
|
41968
|
+
function checkParentPaths (src, srcStat, dest, funcName, cb) {
|
|
41969
|
+
const srcParent = path.resolve(path.dirname(src))
|
|
41970
|
+
const destParent = path.resolve(path.dirname(dest))
|
|
41971
|
+
if (destParent === srcParent || destParent === path.parse(destParent).root) return cb()
|
|
41972
|
+
fs.stat(destParent, { bigint: true }, (err, destStat) => {
|
|
41973
|
+
if (err) {
|
|
41974
|
+
if (err.code === 'ENOENT') return cb()
|
|
41975
|
+
return cb(err)
|
|
41976
|
+
}
|
|
41977
|
+
if (areIdentical(srcStat, destStat)) {
|
|
41978
|
+
return cb(new Error(errMsg(src, dest, funcName)))
|
|
41979
|
+
}
|
|
41980
|
+
return checkParentPaths(src, srcStat, destParent, funcName, cb)
|
|
41981
|
+
})
|
|
41982
|
+
}
|
|
41983
|
+
|
|
41984
|
+
function checkParentPathsSync (src, srcStat, dest, funcName) {
|
|
41985
|
+
const srcParent = path.resolve(path.dirname(src))
|
|
41986
|
+
const destParent = path.resolve(path.dirname(dest))
|
|
41987
|
+
if (destParent === srcParent || destParent === path.parse(destParent).root) return
|
|
41988
|
+
let destStat
|
|
41989
|
+
try {
|
|
41990
|
+
destStat = fs.statSync(destParent, { bigint: true })
|
|
41991
|
+
} catch (err) {
|
|
41992
|
+
if (err.code === 'ENOENT') return
|
|
41993
|
+
throw err
|
|
41994
|
+
}
|
|
41995
|
+
if (areIdentical(srcStat, destStat)) {
|
|
41996
|
+
throw new Error(errMsg(src, dest, funcName))
|
|
41997
|
+
}
|
|
41998
|
+
return checkParentPathsSync(src, srcStat, destParent, funcName)
|
|
41999
|
+
}
|
|
42000
|
+
|
|
42001
|
+
function areIdentical (srcStat, destStat) {
|
|
42002
|
+
return destStat.ino && destStat.dev && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev
|
|
42003
|
+
}
|
|
42004
|
+
|
|
42005
|
+
// return true if dest is a subdir of src, otherwise false.
|
|
42006
|
+
// It only checks the path strings.
|
|
42007
|
+
function isSrcSubdir (src, dest) {
|
|
42008
|
+
const srcArr = path.resolve(src).split(path.sep).filter(i => i)
|
|
42009
|
+
const destArr = path.resolve(dest).split(path.sep).filter(i => i)
|
|
42010
|
+
return srcArr.reduce((acc, cur, i) => acc && destArr[i] === cur, true)
|
|
42011
|
+
}
|
|
42012
|
+
|
|
42013
|
+
function errMsg (src, dest, funcName) {
|
|
42014
|
+
return `Cannot ${funcName} '${src}' to a subdirectory of itself, '${dest}'.`
|
|
42015
|
+
}
|
|
42016
|
+
|
|
42017
|
+
module.exports = {
|
|
42018
|
+
checkPaths,
|
|
42019
|
+
checkPathsSync,
|
|
42020
|
+
checkParentPaths,
|
|
42021
|
+
checkParentPathsSync,
|
|
42022
|
+
isSrcSubdir,
|
|
42023
|
+
areIdentical
|
|
42024
|
+
}
|
|
42025
|
+
|
|
42026
|
+
|
|
42027
|
+
/***/ }),
|
|
42028
|
+
|
|
42029
|
+
/***/ 88962:
|
|
42030
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
42031
|
+
|
|
42032
|
+
"use strict";
|
|
42033
|
+
|
|
42034
|
+
|
|
42035
|
+
const fs = __webpack_require__(62204)
|
|
42036
|
+
|
|
42037
|
+
function utimesMillis (path, atime, mtime, callback) {
|
|
42038
|
+
// if (!HAS_MILLIS_RES) return fs.utimes(path, atime, mtime, callback)
|
|
42039
|
+
fs.open(path, 'r+', (err, fd) => {
|
|
42040
|
+
if (err) return callback(err)
|
|
42041
|
+
fs.futimes(fd, atime, mtime, futimesErr => {
|
|
42042
|
+
fs.close(fd, closeErr => {
|
|
42043
|
+
if (callback) callback(futimesErr || closeErr)
|
|
42044
|
+
})
|
|
42045
|
+
})
|
|
42046
|
+
})
|
|
42047
|
+
}
|
|
42048
|
+
|
|
42049
|
+
function utimesMillisSync (path, atime, mtime) {
|
|
42050
|
+
const fd = fs.openSync(path, 'r+')
|
|
42051
|
+
fs.futimesSync(fd, atime, mtime)
|
|
42052
|
+
return fs.closeSync(fd)
|
|
42053
|
+
}
|
|
42054
|
+
|
|
42055
|
+
module.exports = {
|
|
42056
|
+
utimesMillis,
|
|
42057
|
+
utimesMillisSync
|
|
42058
|
+
}
|
|
42059
|
+
|
|
42060
|
+
|
|
40087
42061
|
/***/ }),
|
|
40088
42062
|
|
|
40089
42063
|
/***/ 58021:
|
|
@@ -46452,6 +48426,953 @@ function patch (fs) {
|
|
|
46452
48426
|
}
|
|
46453
48427
|
|
|
46454
48428
|
|
|
48429
|
+
/***/ }),
|
|
48430
|
+
|
|
48431
|
+
/***/ 83584:
|
|
48432
|
+
/***/ ((module) => {
|
|
48433
|
+
|
|
48434
|
+
"use strict";
|
|
48435
|
+
|
|
48436
|
+
|
|
48437
|
+
module.exports = clone
|
|
48438
|
+
|
|
48439
|
+
var getPrototypeOf = Object.getPrototypeOf || function (obj) {
|
|
48440
|
+
return obj.__proto__
|
|
48441
|
+
}
|
|
48442
|
+
|
|
48443
|
+
function clone (obj) {
|
|
48444
|
+
if (obj === null || typeof obj !== 'object')
|
|
48445
|
+
return obj
|
|
48446
|
+
|
|
48447
|
+
if (obj instanceof Object)
|
|
48448
|
+
var copy = { __proto__: getPrototypeOf(obj) }
|
|
48449
|
+
else
|
|
48450
|
+
var copy = Object.create(null)
|
|
48451
|
+
|
|
48452
|
+
Object.getOwnPropertyNames(obj).forEach(function (key) {
|
|
48453
|
+
Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key))
|
|
48454
|
+
})
|
|
48455
|
+
|
|
48456
|
+
return copy
|
|
48457
|
+
}
|
|
48458
|
+
|
|
48459
|
+
|
|
48460
|
+
/***/ }),
|
|
48461
|
+
|
|
48462
|
+
/***/ 19677:
|
|
48463
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
48464
|
+
|
|
48465
|
+
var fs = __webpack_require__(57147)
|
|
48466
|
+
var polyfills = __webpack_require__(18187)
|
|
48467
|
+
var legacy = __webpack_require__(15601)
|
|
48468
|
+
var clone = __webpack_require__(83584)
|
|
48469
|
+
|
|
48470
|
+
var util = __webpack_require__(73837)
|
|
48471
|
+
|
|
48472
|
+
/* istanbul ignore next - node 0.x polyfill */
|
|
48473
|
+
var gracefulQueue
|
|
48474
|
+
var previousSymbol
|
|
48475
|
+
|
|
48476
|
+
/* istanbul ignore else - node 0.x polyfill */
|
|
48477
|
+
if (typeof Symbol === 'function' && typeof Symbol.for === 'function') {
|
|
48478
|
+
gracefulQueue = Symbol.for('graceful-fs.queue')
|
|
48479
|
+
// This is used in testing by future versions
|
|
48480
|
+
previousSymbol = Symbol.for('graceful-fs.previous')
|
|
48481
|
+
} else {
|
|
48482
|
+
gracefulQueue = '___graceful-fs.queue'
|
|
48483
|
+
previousSymbol = '___graceful-fs.previous'
|
|
48484
|
+
}
|
|
48485
|
+
|
|
48486
|
+
function noop () {}
|
|
48487
|
+
|
|
48488
|
+
function publishQueue(context, queue) {
|
|
48489
|
+
Object.defineProperty(context, gracefulQueue, {
|
|
48490
|
+
get: function() {
|
|
48491
|
+
return queue
|
|
48492
|
+
}
|
|
48493
|
+
})
|
|
48494
|
+
}
|
|
48495
|
+
|
|
48496
|
+
var debug = noop
|
|
48497
|
+
if (util.debuglog)
|
|
48498
|
+
debug = util.debuglog('gfs4')
|
|
48499
|
+
else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || ''))
|
|
48500
|
+
debug = function() {
|
|
48501
|
+
var m = util.format.apply(util, arguments)
|
|
48502
|
+
m = 'GFS4: ' + m.split(/\n/).join('\nGFS4: ')
|
|
48503
|
+
console.error(m)
|
|
48504
|
+
}
|
|
48505
|
+
|
|
48506
|
+
// Once time initialization
|
|
48507
|
+
if (!fs[gracefulQueue]) {
|
|
48508
|
+
// This queue can be shared by multiple loaded instances
|
|
48509
|
+
var queue = global[gracefulQueue] || []
|
|
48510
|
+
publishQueue(fs, queue)
|
|
48511
|
+
|
|
48512
|
+
// Patch fs.close/closeSync to shared queue version, because we need
|
|
48513
|
+
// to retry() whenever a close happens *anywhere* in the program.
|
|
48514
|
+
// This is essential when multiple graceful-fs instances are
|
|
48515
|
+
// in play at the same time.
|
|
48516
|
+
fs.close = (function (fs$close) {
|
|
48517
|
+
function close (fd, cb) {
|
|
48518
|
+
return fs$close.call(fs, fd, function (err) {
|
|
48519
|
+
// This function uses the graceful-fs shared queue
|
|
48520
|
+
if (!err) {
|
|
48521
|
+
resetQueue()
|
|
48522
|
+
}
|
|
48523
|
+
|
|
48524
|
+
if (typeof cb === 'function')
|
|
48525
|
+
cb.apply(this, arguments)
|
|
48526
|
+
})
|
|
48527
|
+
}
|
|
48528
|
+
|
|
48529
|
+
Object.defineProperty(close, previousSymbol, {
|
|
48530
|
+
value: fs$close
|
|
48531
|
+
})
|
|
48532
|
+
return close
|
|
48533
|
+
})(fs.close)
|
|
48534
|
+
|
|
48535
|
+
fs.closeSync = (function (fs$closeSync) {
|
|
48536
|
+
function closeSync (fd) {
|
|
48537
|
+
// This function uses the graceful-fs shared queue
|
|
48538
|
+
fs$closeSync.apply(fs, arguments)
|
|
48539
|
+
resetQueue()
|
|
48540
|
+
}
|
|
48541
|
+
|
|
48542
|
+
Object.defineProperty(closeSync, previousSymbol, {
|
|
48543
|
+
value: fs$closeSync
|
|
48544
|
+
})
|
|
48545
|
+
return closeSync
|
|
48546
|
+
})(fs.closeSync)
|
|
48547
|
+
|
|
48548
|
+
if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || '')) {
|
|
48549
|
+
process.on('exit', function() {
|
|
48550
|
+
debug(fs[gracefulQueue])
|
|
48551
|
+
__webpack_require__(39491).equal(fs[gracefulQueue].length, 0)
|
|
48552
|
+
})
|
|
48553
|
+
}
|
|
48554
|
+
}
|
|
48555
|
+
|
|
48556
|
+
if (!global[gracefulQueue]) {
|
|
48557
|
+
publishQueue(global, fs[gracefulQueue]);
|
|
48558
|
+
}
|
|
48559
|
+
|
|
48560
|
+
module.exports = patch(clone(fs))
|
|
48561
|
+
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs.__patched) {
|
|
48562
|
+
module.exports = patch(fs)
|
|
48563
|
+
fs.__patched = true;
|
|
48564
|
+
}
|
|
48565
|
+
|
|
48566
|
+
function patch (fs) {
|
|
48567
|
+
// Everything that references the open() function needs to be in here
|
|
48568
|
+
polyfills(fs)
|
|
48569
|
+
fs.gracefulify = patch
|
|
48570
|
+
|
|
48571
|
+
fs.createReadStream = createReadStream
|
|
48572
|
+
fs.createWriteStream = createWriteStream
|
|
48573
|
+
var fs$readFile = fs.readFile
|
|
48574
|
+
fs.readFile = readFile
|
|
48575
|
+
function readFile (path, options, cb) {
|
|
48576
|
+
if (typeof options === 'function')
|
|
48577
|
+
cb = options, options = null
|
|
48578
|
+
|
|
48579
|
+
return go$readFile(path, options, cb)
|
|
48580
|
+
|
|
48581
|
+
function go$readFile (path, options, cb, startTime) {
|
|
48582
|
+
return fs$readFile(path, options, function (err) {
|
|
48583
|
+
if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))
|
|
48584
|
+
enqueue([go$readFile, [path, options, cb], err, startTime || Date.now(), Date.now()])
|
|
48585
|
+
else {
|
|
48586
|
+
if (typeof cb === 'function')
|
|
48587
|
+
cb.apply(this, arguments)
|
|
48588
|
+
}
|
|
48589
|
+
})
|
|
48590
|
+
}
|
|
48591
|
+
}
|
|
48592
|
+
|
|
48593
|
+
var fs$writeFile = fs.writeFile
|
|
48594
|
+
fs.writeFile = writeFile
|
|
48595
|
+
function writeFile (path, data, options, cb) {
|
|
48596
|
+
if (typeof options === 'function')
|
|
48597
|
+
cb = options, options = null
|
|
48598
|
+
|
|
48599
|
+
return go$writeFile(path, data, options, cb)
|
|
48600
|
+
|
|
48601
|
+
function go$writeFile (path, data, options, cb, startTime) {
|
|
48602
|
+
return fs$writeFile(path, data, options, function (err) {
|
|
48603
|
+
if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))
|
|
48604
|
+
enqueue([go$writeFile, [path, data, options, cb], err, startTime || Date.now(), Date.now()])
|
|
48605
|
+
else {
|
|
48606
|
+
if (typeof cb === 'function')
|
|
48607
|
+
cb.apply(this, arguments)
|
|
48608
|
+
}
|
|
48609
|
+
})
|
|
48610
|
+
}
|
|
48611
|
+
}
|
|
48612
|
+
|
|
48613
|
+
var fs$appendFile = fs.appendFile
|
|
48614
|
+
if (fs$appendFile)
|
|
48615
|
+
fs.appendFile = appendFile
|
|
48616
|
+
function appendFile (path, data, options, cb) {
|
|
48617
|
+
if (typeof options === 'function')
|
|
48618
|
+
cb = options, options = null
|
|
48619
|
+
|
|
48620
|
+
return go$appendFile(path, data, options, cb)
|
|
48621
|
+
|
|
48622
|
+
function go$appendFile (path, data, options, cb, startTime) {
|
|
48623
|
+
return fs$appendFile(path, data, options, function (err) {
|
|
48624
|
+
if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))
|
|
48625
|
+
enqueue([go$appendFile, [path, data, options, cb], err, startTime || Date.now(), Date.now()])
|
|
48626
|
+
else {
|
|
48627
|
+
if (typeof cb === 'function')
|
|
48628
|
+
cb.apply(this, arguments)
|
|
48629
|
+
}
|
|
48630
|
+
})
|
|
48631
|
+
}
|
|
48632
|
+
}
|
|
48633
|
+
|
|
48634
|
+
var fs$copyFile = fs.copyFile
|
|
48635
|
+
if (fs$copyFile)
|
|
48636
|
+
fs.copyFile = copyFile
|
|
48637
|
+
function copyFile (src, dest, flags, cb) {
|
|
48638
|
+
if (typeof flags === 'function') {
|
|
48639
|
+
cb = flags
|
|
48640
|
+
flags = 0
|
|
48641
|
+
}
|
|
48642
|
+
return go$copyFile(src, dest, flags, cb)
|
|
48643
|
+
|
|
48644
|
+
function go$copyFile (src, dest, flags, cb, startTime) {
|
|
48645
|
+
return fs$copyFile(src, dest, flags, function (err) {
|
|
48646
|
+
if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))
|
|
48647
|
+
enqueue([go$copyFile, [src, dest, flags, cb], err, startTime || Date.now(), Date.now()])
|
|
48648
|
+
else {
|
|
48649
|
+
if (typeof cb === 'function')
|
|
48650
|
+
cb.apply(this, arguments)
|
|
48651
|
+
}
|
|
48652
|
+
})
|
|
48653
|
+
}
|
|
48654
|
+
}
|
|
48655
|
+
|
|
48656
|
+
var fs$readdir = fs.readdir
|
|
48657
|
+
fs.readdir = readdir
|
|
48658
|
+
function readdir (path, options, cb) {
|
|
48659
|
+
if (typeof options === 'function')
|
|
48660
|
+
cb = options, options = null
|
|
48661
|
+
|
|
48662
|
+
return go$readdir(path, options, cb)
|
|
48663
|
+
|
|
48664
|
+
function go$readdir (path, options, cb, startTime) {
|
|
48665
|
+
return fs$readdir(path, options, function (err, files) {
|
|
48666
|
+
if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))
|
|
48667
|
+
enqueue([go$readdir, [path, options, cb], err, startTime || Date.now(), Date.now()])
|
|
48668
|
+
else {
|
|
48669
|
+
if (files && files.sort)
|
|
48670
|
+
files.sort()
|
|
48671
|
+
|
|
48672
|
+
if (typeof cb === 'function')
|
|
48673
|
+
cb.call(this, err, files)
|
|
48674
|
+
}
|
|
48675
|
+
})
|
|
48676
|
+
}
|
|
48677
|
+
}
|
|
48678
|
+
|
|
48679
|
+
if (process.version.substr(0, 4) === 'v0.8') {
|
|
48680
|
+
var legStreams = legacy(fs)
|
|
48681
|
+
ReadStream = legStreams.ReadStream
|
|
48682
|
+
WriteStream = legStreams.WriteStream
|
|
48683
|
+
}
|
|
48684
|
+
|
|
48685
|
+
var fs$ReadStream = fs.ReadStream
|
|
48686
|
+
if (fs$ReadStream) {
|
|
48687
|
+
ReadStream.prototype = Object.create(fs$ReadStream.prototype)
|
|
48688
|
+
ReadStream.prototype.open = ReadStream$open
|
|
48689
|
+
}
|
|
48690
|
+
|
|
48691
|
+
var fs$WriteStream = fs.WriteStream
|
|
48692
|
+
if (fs$WriteStream) {
|
|
48693
|
+
WriteStream.prototype = Object.create(fs$WriteStream.prototype)
|
|
48694
|
+
WriteStream.prototype.open = WriteStream$open
|
|
48695
|
+
}
|
|
48696
|
+
|
|
48697
|
+
Object.defineProperty(fs, 'ReadStream', {
|
|
48698
|
+
get: function () {
|
|
48699
|
+
return ReadStream
|
|
48700
|
+
},
|
|
48701
|
+
set: function (val) {
|
|
48702
|
+
ReadStream = val
|
|
48703
|
+
},
|
|
48704
|
+
enumerable: true,
|
|
48705
|
+
configurable: true
|
|
48706
|
+
})
|
|
48707
|
+
Object.defineProperty(fs, 'WriteStream', {
|
|
48708
|
+
get: function () {
|
|
48709
|
+
return WriteStream
|
|
48710
|
+
},
|
|
48711
|
+
set: function (val) {
|
|
48712
|
+
WriteStream = val
|
|
48713
|
+
},
|
|
48714
|
+
enumerable: true,
|
|
48715
|
+
configurable: true
|
|
48716
|
+
})
|
|
48717
|
+
|
|
48718
|
+
// legacy names
|
|
48719
|
+
var FileReadStream = ReadStream
|
|
48720
|
+
Object.defineProperty(fs, 'FileReadStream', {
|
|
48721
|
+
get: function () {
|
|
48722
|
+
return FileReadStream
|
|
48723
|
+
},
|
|
48724
|
+
set: function (val) {
|
|
48725
|
+
FileReadStream = val
|
|
48726
|
+
},
|
|
48727
|
+
enumerable: true,
|
|
48728
|
+
configurable: true
|
|
48729
|
+
})
|
|
48730
|
+
var FileWriteStream = WriteStream
|
|
48731
|
+
Object.defineProperty(fs, 'FileWriteStream', {
|
|
48732
|
+
get: function () {
|
|
48733
|
+
return FileWriteStream
|
|
48734
|
+
},
|
|
48735
|
+
set: function (val) {
|
|
48736
|
+
FileWriteStream = val
|
|
48737
|
+
},
|
|
48738
|
+
enumerable: true,
|
|
48739
|
+
configurable: true
|
|
48740
|
+
})
|
|
48741
|
+
|
|
48742
|
+
function ReadStream (path, options) {
|
|
48743
|
+
if (this instanceof ReadStream)
|
|
48744
|
+
return fs$ReadStream.apply(this, arguments), this
|
|
48745
|
+
else
|
|
48746
|
+
return ReadStream.apply(Object.create(ReadStream.prototype), arguments)
|
|
48747
|
+
}
|
|
48748
|
+
|
|
48749
|
+
function ReadStream$open () {
|
|
48750
|
+
var that = this
|
|
48751
|
+
open(that.path, that.flags, that.mode, function (err, fd) {
|
|
48752
|
+
if (err) {
|
|
48753
|
+
if (that.autoClose)
|
|
48754
|
+
that.destroy()
|
|
48755
|
+
|
|
48756
|
+
that.emit('error', err)
|
|
48757
|
+
} else {
|
|
48758
|
+
that.fd = fd
|
|
48759
|
+
that.emit('open', fd)
|
|
48760
|
+
that.read()
|
|
48761
|
+
}
|
|
48762
|
+
})
|
|
48763
|
+
}
|
|
48764
|
+
|
|
48765
|
+
function WriteStream (path, options) {
|
|
48766
|
+
if (this instanceof WriteStream)
|
|
48767
|
+
return fs$WriteStream.apply(this, arguments), this
|
|
48768
|
+
else
|
|
48769
|
+
return WriteStream.apply(Object.create(WriteStream.prototype), arguments)
|
|
48770
|
+
}
|
|
48771
|
+
|
|
48772
|
+
function WriteStream$open () {
|
|
48773
|
+
var that = this
|
|
48774
|
+
open(that.path, that.flags, that.mode, function (err, fd) {
|
|
48775
|
+
if (err) {
|
|
48776
|
+
that.destroy()
|
|
48777
|
+
that.emit('error', err)
|
|
48778
|
+
} else {
|
|
48779
|
+
that.fd = fd
|
|
48780
|
+
that.emit('open', fd)
|
|
48781
|
+
}
|
|
48782
|
+
})
|
|
48783
|
+
}
|
|
48784
|
+
|
|
48785
|
+
function createReadStream (path, options) {
|
|
48786
|
+
return new fs.ReadStream(path, options)
|
|
48787
|
+
}
|
|
48788
|
+
|
|
48789
|
+
function createWriteStream (path, options) {
|
|
48790
|
+
return new fs.WriteStream(path, options)
|
|
48791
|
+
}
|
|
48792
|
+
|
|
48793
|
+
var fs$open = fs.open
|
|
48794
|
+
fs.open = open
|
|
48795
|
+
function open (path, flags, mode, cb) {
|
|
48796
|
+
if (typeof mode === 'function')
|
|
48797
|
+
cb = mode, mode = null
|
|
48798
|
+
|
|
48799
|
+
return go$open(path, flags, mode, cb)
|
|
48800
|
+
|
|
48801
|
+
function go$open (path, flags, mode, cb, startTime) {
|
|
48802
|
+
return fs$open(path, flags, mode, function (err, fd) {
|
|
48803
|
+
if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))
|
|
48804
|
+
enqueue([go$open, [path, flags, mode, cb], err, startTime || Date.now(), Date.now()])
|
|
48805
|
+
else {
|
|
48806
|
+
if (typeof cb === 'function')
|
|
48807
|
+
cb.apply(this, arguments)
|
|
48808
|
+
}
|
|
48809
|
+
})
|
|
48810
|
+
}
|
|
48811
|
+
}
|
|
48812
|
+
|
|
48813
|
+
return fs
|
|
48814
|
+
}
|
|
48815
|
+
|
|
48816
|
+
function enqueue (elem) {
|
|
48817
|
+
debug('ENQUEUE', elem[0].name, elem[1])
|
|
48818
|
+
fs[gracefulQueue].push(elem)
|
|
48819
|
+
retry()
|
|
48820
|
+
}
|
|
48821
|
+
|
|
48822
|
+
// keep track of the timeout between retry() calls
|
|
48823
|
+
var retryTimer
|
|
48824
|
+
|
|
48825
|
+
// reset the startTime and lastTime to now
|
|
48826
|
+
// this resets the start of the 60 second overall timeout as well as the
|
|
48827
|
+
// delay between attempts so that we'll retry these jobs sooner
|
|
48828
|
+
function resetQueue () {
|
|
48829
|
+
var now = Date.now()
|
|
48830
|
+
for (var i = 0; i < fs[gracefulQueue].length; ++i) {
|
|
48831
|
+
// entries that are only a length of 2 are from an older version, don't
|
|
48832
|
+
// bother modifying those since they'll be retried anyway.
|
|
48833
|
+
if (fs[gracefulQueue][i].length > 2) {
|
|
48834
|
+
fs[gracefulQueue][i][3] = now // startTime
|
|
48835
|
+
fs[gracefulQueue][i][4] = now // lastTime
|
|
48836
|
+
}
|
|
48837
|
+
}
|
|
48838
|
+
// call retry to make sure we're actively processing the queue
|
|
48839
|
+
retry()
|
|
48840
|
+
}
|
|
48841
|
+
|
|
48842
|
+
function retry () {
|
|
48843
|
+
// clear the timer and remove it to help prevent unintended concurrency
|
|
48844
|
+
clearTimeout(retryTimer)
|
|
48845
|
+
retryTimer = undefined
|
|
48846
|
+
|
|
48847
|
+
if (fs[gracefulQueue].length === 0)
|
|
48848
|
+
return
|
|
48849
|
+
|
|
48850
|
+
var elem = fs[gracefulQueue].shift()
|
|
48851
|
+
var fn = elem[0]
|
|
48852
|
+
var args = elem[1]
|
|
48853
|
+
// these items may be unset if they were added by an older graceful-fs
|
|
48854
|
+
var err = elem[2]
|
|
48855
|
+
var startTime = elem[3]
|
|
48856
|
+
var lastTime = elem[4]
|
|
48857
|
+
|
|
48858
|
+
// if we don't have a startTime we have no way of knowing if we've waited
|
|
48859
|
+
// long enough, so go ahead and retry this item now
|
|
48860
|
+
if (startTime === undefined) {
|
|
48861
|
+
debug('RETRY', fn.name, args)
|
|
48862
|
+
fn.apply(null, args)
|
|
48863
|
+
} else if (Date.now() - startTime >= 60000) {
|
|
48864
|
+
// it's been more than 60 seconds total, bail now
|
|
48865
|
+
debug('TIMEOUT', fn.name, args)
|
|
48866
|
+
var cb = args.pop()
|
|
48867
|
+
if (typeof cb === 'function')
|
|
48868
|
+
cb.call(null, err)
|
|
48869
|
+
} else {
|
|
48870
|
+
// the amount of time between the last attempt and right now
|
|
48871
|
+
var sinceAttempt = Date.now() - lastTime
|
|
48872
|
+
// the amount of time between when we first tried, and when we last tried
|
|
48873
|
+
// rounded up to at least 1
|
|
48874
|
+
var sinceStart = Math.max(lastTime - startTime, 1)
|
|
48875
|
+
// backoff. wait longer than the total time we've been retrying, but only
|
|
48876
|
+
// up to a maximum of 100ms
|
|
48877
|
+
var desiredDelay = Math.min(sinceStart * 1.2, 100)
|
|
48878
|
+
// it's been long enough since the last retry, do it again
|
|
48879
|
+
if (sinceAttempt >= desiredDelay) {
|
|
48880
|
+
debug('RETRY', fn.name, args)
|
|
48881
|
+
fn.apply(null, args.concat([startTime]))
|
|
48882
|
+
} else {
|
|
48883
|
+
// if we can't do this job yet, push it to the end of the queue
|
|
48884
|
+
// and let the next iteration check again
|
|
48885
|
+
fs[gracefulQueue].push(elem)
|
|
48886
|
+
}
|
|
48887
|
+
}
|
|
48888
|
+
|
|
48889
|
+
// schedule our next run if one isn't already scheduled
|
|
48890
|
+
if (retryTimer === undefined) {
|
|
48891
|
+
retryTimer = setTimeout(retry, 0)
|
|
48892
|
+
}
|
|
48893
|
+
}
|
|
48894
|
+
|
|
48895
|
+
|
|
48896
|
+
/***/ }),
|
|
48897
|
+
|
|
48898
|
+
/***/ 15601:
|
|
48899
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
48900
|
+
|
|
48901
|
+
var Stream = (__webpack_require__(12781).Stream)
|
|
48902
|
+
|
|
48903
|
+
module.exports = legacy
|
|
48904
|
+
|
|
48905
|
+
function legacy (fs) {
|
|
48906
|
+
return {
|
|
48907
|
+
ReadStream: ReadStream,
|
|
48908
|
+
WriteStream: WriteStream
|
|
48909
|
+
}
|
|
48910
|
+
|
|
48911
|
+
function ReadStream (path, options) {
|
|
48912
|
+
if (!(this instanceof ReadStream)) return new ReadStream(path, options);
|
|
48913
|
+
|
|
48914
|
+
Stream.call(this);
|
|
48915
|
+
|
|
48916
|
+
var self = this;
|
|
48917
|
+
|
|
48918
|
+
this.path = path;
|
|
48919
|
+
this.fd = null;
|
|
48920
|
+
this.readable = true;
|
|
48921
|
+
this.paused = false;
|
|
48922
|
+
|
|
48923
|
+
this.flags = 'r';
|
|
48924
|
+
this.mode = 438; /*=0666*/
|
|
48925
|
+
this.bufferSize = 64 * 1024;
|
|
48926
|
+
|
|
48927
|
+
options = options || {};
|
|
48928
|
+
|
|
48929
|
+
// Mixin options into this
|
|
48930
|
+
var keys = Object.keys(options);
|
|
48931
|
+
for (var index = 0, length = keys.length; index < length; index++) {
|
|
48932
|
+
var key = keys[index];
|
|
48933
|
+
this[key] = options[key];
|
|
48934
|
+
}
|
|
48935
|
+
|
|
48936
|
+
if (this.encoding) this.setEncoding(this.encoding);
|
|
48937
|
+
|
|
48938
|
+
if (this.start !== undefined) {
|
|
48939
|
+
if ('number' !== typeof this.start) {
|
|
48940
|
+
throw TypeError('start must be a Number');
|
|
48941
|
+
}
|
|
48942
|
+
if (this.end === undefined) {
|
|
48943
|
+
this.end = Infinity;
|
|
48944
|
+
} else if ('number' !== typeof this.end) {
|
|
48945
|
+
throw TypeError('end must be a Number');
|
|
48946
|
+
}
|
|
48947
|
+
|
|
48948
|
+
if (this.start > this.end) {
|
|
48949
|
+
throw new Error('start must be <= end');
|
|
48950
|
+
}
|
|
48951
|
+
|
|
48952
|
+
this.pos = this.start;
|
|
48953
|
+
}
|
|
48954
|
+
|
|
48955
|
+
if (this.fd !== null) {
|
|
48956
|
+
process.nextTick(function() {
|
|
48957
|
+
self._read();
|
|
48958
|
+
});
|
|
48959
|
+
return;
|
|
48960
|
+
}
|
|
48961
|
+
|
|
48962
|
+
fs.open(this.path, this.flags, this.mode, function (err, fd) {
|
|
48963
|
+
if (err) {
|
|
48964
|
+
self.emit('error', err);
|
|
48965
|
+
self.readable = false;
|
|
48966
|
+
return;
|
|
48967
|
+
}
|
|
48968
|
+
|
|
48969
|
+
self.fd = fd;
|
|
48970
|
+
self.emit('open', fd);
|
|
48971
|
+
self._read();
|
|
48972
|
+
})
|
|
48973
|
+
}
|
|
48974
|
+
|
|
48975
|
+
function WriteStream (path, options) {
|
|
48976
|
+
if (!(this instanceof WriteStream)) return new WriteStream(path, options);
|
|
48977
|
+
|
|
48978
|
+
Stream.call(this);
|
|
48979
|
+
|
|
48980
|
+
this.path = path;
|
|
48981
|
+
this.fd = null;
|
|
48982
|
+
this.writable = true;
|
|
48983
|
+
|
|
48984
|
+
this.flags = 'w';
|
|
48985
|
+
this.encoding = 'binary';
|
|
48986
|
+
this.mode = 438; /*=0666*/
|
|
48987
|
+
this.bytesWritten = 0;
|
|
48988
|
+
|
|
48989
|
+
options = options || {};
|
|
48990
|
+
|
|
48991
|
+
// Mixin options into this
|
|
48992
|
+
var keys = Object.keys(options);
|
|
48993
|
+
for (var index = 0, length = keys.length; index < length; index++) {
|
|
48994
|
+
var key = keys[index];
|
|
48995
|
+
this[key] = options[key];
|
|
48996
|
+
}
|
|
48997
|
+
|
|
48998
|
+
if (this.start !== undefined) {
|
|
48999
|
+
if ('number' !== typeof this.start) {
|
|
49000
|
+
throw TypeError('start must be a Number');
|
|
49001
|
+
}
|
|
49002
|
+
if (this.start < 0) {
|
|
49003
|
+
throw new Error('start must be >= zero');
|
|
49004
|
+
}
|
|
49005
|
+
|
|
49006
|
+
this.pos = this.start;
|
|
49007
|
+
}
|
|
49008
|
+
|
|
49009
|
+
this.busy = false;
|
|
49010
|
+
this._queue = [];
|
|
49011
|
+
|
|
49012
|
+
if (this.fd === null) {
|
|
49013
|
+
this._open = fs.open;
|
|
49014
|
+
this._queue.push([this._open, this.path, this.flags, this.mode, undefined]);
|
|
49015
|
+
this.flush();
|
|
49016
|
+
}
|
|
49017
|
+
}
|
|
49018
|
+
}
|
|
49019
|
+
|
|
49020
|
+
|
|
49021
|
+
/***/ }),
|
|
49022
|
+
|
|
49023
|
+
/***/ 18187:
|
|
49024
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
49025
|
+
|
|
49026
|
+
var constants = __webpack_require__(22057)
|
|
49027
|
+
|
|
49028
|
+
var origCwd = process.cwd
|
|
49029
|
+
var cwd = null
|
|
49030
|
+
|
|
49031
|
+
var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform
|
|
49032
|
+
|
|
49033
|
+
process.cwd = function() {
|
|
49034
|
+
if (!cwd)
|
|
49035
|
+
cwd = origCwd.call(process)
|
|
49036
|
+
return cwd
|
|
49037
|
+
}
|
|
49038
|
+
try {
|
|
49039
|
+
process.cwd()
|
|
49040
|
+
} catch (er) {}
|
|
49041
|
+
|
|
49042
|
+
// This check is needed until node.js 12 is required
|
|
49043
|
+
if (typeof process.chdir === 'function') {
|
|
49044
|
+
var chdir = process.chdir
|
|
49045
|
+
process.chdir = function (d) {
|
|
49046
|
+
cwd = null
|
|
49047
|
+
chdir.call(process, d)
|
|
49048
|
+
}
|
|
49049
|
+
if (Object.setPrototypeOf) Object.setPrototypeOf(process.chdir, chdir)
|
|
49050
|
+
}
|
|
49051
|
+
|
|
49052
|
+
module.exports = patch
|
|
49053
|
+
|
|
49054
|
+
function patch (fs) {
|
|
49055
|
+
// (re-)implement some things that are known busted or missing.
|
|
49056
|
+
|
|
49057
|
+
// lchmod, broken prior to 0.6.2
|
|
49058
|
+
// back-port the fix here.
|
|
49059
|
+
if (constants.hasOwnProperty('O_SYMLINK') &&
|
|
49060
|
+
process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
|
|
49061
|
+
patchLchmod(fs)
|
|
49062
|
+
}
|
|
49063
|
+
|
|
49064
|
+
// lutimes implementation, or no-op
|
|
49065
|
+
if (!fs.lutimes) {
|
|
49066
|
+
patchLutimes(fs)
|
|
49067
|
+
}
|
|
49068
|
+
|
|
49069
|
+
// https://github.com/isaacs/node-graceful-fs/issues/4
|
|
49070
|
+
// Chown should not fail on einval or eperm if non-root.
|
|
49071
|
+
// It should not fail on enosys ever, as this just indicates
|
|
49072
|
+
// that a fs doesn't support the intended operation.
|
|
49073
|
+
|
|
49074
|
+
fs.chown = chownFix(fs.chown)
|
|
49075
|
+
fs.fchown = chownFix(fs.fchown)
|
|
49076
|
+
fs.lchown = chownFix(fs.lchown)
|
|
49077
|
+
|
|
49078
|
+
fs.chmod = chmodFix(fs.chmod)
|
|
49079
|
+
fs.fchmod = chmodFix(fs.fchmod)
|
|
49080
|
+
fs.lchmod = chmodFix(fs.lchmod)
|
|
49081
|
+
|
|
49082
|
+
fs.chownSync = chownFixSync(fs.chownSync)
|
|
49083
|
+
fs.fchownSync = chownFixSync(fs.fchownSync)
|
|
49084
|
+
fs.lchownSync = chownFixSync(fs.lchownSync)
|
|
49085
|
+
|
|
49086
|
+
fs.chmodSync = chmodFixSync(fs.chmodSync)
|
|
49087
|
+
fs.fchmodSync = chmodFixSync(fs.fchmodSync)
|
|
49088
|
+
fs.lchmodSync = chmodFixSync(fs.lchmodSync)
|
|
49089
|
+
|
|
49090
|
+
fs.stat = statFix(fs.stat)
|
|
49091
|
+
fs.fstat = statFix(fs.fstat)
|
|
49092
|
+
fs.lstat = statFix(fs.lstat)
|
|
49093
|
+
|
|
49094
|
+
fs.statSync = statFixSync(fs.statSync)
|
|
49095
|
+
fs.fstatSync = statFixSync(fs.fstatSync)
|
|
49096
|
+
fs.lstatSync = statFixSync(fs.lstatSync)
|
|
49097
|
+
|
|
49098
|
+
// if lchmod/lchown do not exist, then make them no-ops
|
|
49099
|
+
if (!fs.lchmod) {
|
|
49100
|
+
fs.lchmod = function (path, mode, cb) {
|
|
49101
|
+
if (cb) process.nextTick(cb)
|
|
49102
|
+
}
|
|
49103
|
+
fs.lchmodSync = function () {}
|
|
49104
|
+
}
|
|
49105
|
+
if (!fs.lchown) {
|
|
49106
|
+
fs.lchown = function (path, uid, gid, cb) {
|
|
49107
|
+
if (cb) process.nextTick(cb)
|
|
49108
|
+
}
|
|
49109
|
+
fs.lchownSync = function () {}
|
|
49110
|
+
}
|
|
49111
|
+
|
|
49112
|
+
// on Windows, A/V software can lock the directory, causing this
|
|
49113
|
+
// to fail with an EACCES or EPERM if the directory contains newly
|
|
49114
|
+
// created files. Try again on failure, for up to 60 seconds.
|
|
49115
|
+
|
|
49116
|
+
// Set the timeout this long because some Windows Anti-Virus, such as Parity
|
|
49117
|
+
// bit9, may lock files for up to a minute, causing npm package install
|
|
49118
|
+
// failures. Also, take care to yield the scheduler. Windows scheduling gives
|
|
49119
|
+
// CPU to a busy looping process, which can cause the program causing the lock
|
|
49120
|
+
// contention to be starved of CPU by node, so the contention doesn't resolve.
|
|
49121
|
+
if (platform === "win32") {
|
|
49122
|
+
fs.rename = (function (fs$rename) { return function (from, to, cb) {
|
|
49123
|
+
var start = Date.now()
|
|
49124
|
+
var backoff = 0;
|
|
49125
|
+
fs$rename(from, to, function CB (er) {
|
|
49126
|
+
if (er
|
|
49127
|
+
&& (er.code === "EACCES" || er.code === "EPERM")
|
|
49128
|
+
&& Date.now() - start < 60000) {
|
|
49129
|
+
setTimeout(function() {
|
|
49130
|
+
fs.stat(to, function (stater, st) {
|
|
49131
|
+
if (stater && stater.code === "ENOENT")
|
|
49132
|
+
fs$rename(from, to, CB);
|
|
49133
|
+
else
|
|
49134
|
+
cb(er)
|
|
49135
|
+
})
|
|
49136
|
+
}, backoff)
|
|
49137
|
+
if (backoff < 100)
|
|
49138
|
+
backoff += 10;
|
|
49139
|
+
return;
|
|
49140
|
+
}
|
|
49141
|
+
if (cb) cb(er)
|
|
49142
|
+
})
|
|
49143
|
+
}})(fs.rename)
|
|
49144
|
+
}
|
|
49145
|
+
|
|
49146
|
+
// if read() returns EAGAIN, then just try it again.
|
|
49147
|
+
fs.read = (function (fs$read) {
|
|
49148
|
+
function read (fd, buffer, offset, length, position, callback_) {
|
|
49149
|
+
var callback
|
|
49150
|
+
if (callback_ && typeof callback_ === 'function') {
|
|
49151
|
+
var eagCounter = 0
|
|
49152
|
+
callback = function (er, _, __) {
|
|
49153
|
+
if (er && er.code === 'EAGAIN' && eagCounter < 10) {
|
|
49154
|
+
eagCounter ++
|
|
49155
|
+
return fs$read.call(fs, fd, buffer, offset, length, position, callback)
|
|
49156
|
+
}
|
|
49157
|
+
callback_.apply(this, arguments)
|
|
49158
|
+
}
|
|
49159
|
+
}
|
|
49160
|
+
return fs$read.call(fs, fd, buffer, offset, length, position, callback)
|
|
49161
|
+
}
|
|
49162
|
+
|
|
49163
|
+
// This ensures `util.promisify` works as it does for native `fs.read`.
|
|
49164
|
+
if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read)
|
|
49165
|
+
return read
|
|
49166
|
+
})(fs.read)
|
|
49167
|
+
|
|
49168
|
+
fs.readSync = (function (fs$readSync) { return function (fd, buffer, offset, length, position) {
|
|
49169
|
+
var eagCounter = 0
|
|
49170
|
+
while (true) {
|
|
49171
|
+
try {
|
|
49172
|
+
return fs$readSync.call(fs, fd, buffer, offset, length, position)
|
|
49173
|
+
} catch (er) {
|
|
49174
|
+
if (er.code === 'EAGAIN' && eagCounter < 10) {
|
|
49175
|
+
eagCounter ++
|
|
49176
|
+
continue
|
|
49177
|
+
}
|
|
49178
|
+
throw er
|
|
49179
|
+
}
|
|
49180
|
+
}
|
|
49181
|
+
}})(fs.readSync)
|
|
49182
|
+
|
|
49183
|
+
function patchLchmod (fs) {
|
|
49184
|
+
fs.lchmod = function (path, mode, callback) {
|
|
49185
|
+
fs.open( path
|
|
49186
|
+
, constants.O_WRONLY | constants.O_SYMLINK
|
|
49187
|
+
, mode
|
|
49188
|
+
, function (err, fd) {
|
|
49189
|
+
if (err) {
|
|
49190
|
+
if (callback) callback(err)
|
|
49191
|
+
return
|
|
49192
|
+
}
|
|
49193
|
+
// prefer to return the chmod error, if one occurs,
|
|
49194
|
+
// but still try to close, and report closing errors if they occur.
|
|
49195
|
+
fs.fchmod(fd, mode, function (err) {
|
|
49196
|
+
fs.close(fd, function(err2) {
|
|
49197
|
+
if (callback) callback(err || err2)
|
|
49198
|
+
})
|
|
49199
|
+
})
|
|
49200
|
+
})
|
|
49201
|
+
}
|
|
49202
|
+
|
|
49203
|
+
fs.lchmodSync = function (path, mode) {
|
|
49204
|
+
var fd = fs.openSync(path, constants.O_WRONLY | constants.O_SYMLINK, mode)
|
|
49205
|
+
|
|
49206
|
+
// prefer to return the chmod error, if one occurs,
|
|
49207
|
+
// but still try to close, and report closing errors if they occur.
|
|
49208
|
+
var threw = true
|
|
49209
|
+
var ret
|
|
49210
|
+
try {
|
|
49211
|
+
ret = fs.fchmodSync(fd, mode)
|
|
49212
|
+
threw = false
|
|
49213
|
+
} finally {
|
|
49214
|
+
if (threw) {
|
|
49215
|
+
try {
|
|
49216
|
+
fs.closeSync(fd)
|
|
49217
|
+
} catch (er) {}
|
|
49218
|
+
} else {
|
|
49219
|
+
fs.closeSync(fd)
|
|
49220
|
+
}
|
|
49221
|
+
}
|
|
49222
|
+
return ret
|
|
49223
|
+
}
|
|
49224
|
+
}
|
|
49225
|
+
|
|
49226
|
+
function patchLutimes (fs) {
|
|
49227
|
+
if (constants.hasOwnProperty("O_SYMLINK")) {
|
|
49228
|
+
fs.lutimes = function (path, at, mt, cb) {
|
|
49229
|
+
fs.open(path, constants.O_SYMLINK, function (er, fd) {
|
|
49230
|
+
if (er) {
|
|
49231
|
+
if (cb) cb(er)
|
|
49232
|
+
return
|
|
49233
|
+
}
|
|
49234
|
+
fs.futimes(fd, at, mt, function (er) {
|
|
49235
|
+
fs.close(fd, function (er2) {
|
|
49236
|
+
if (cb) cb(er || er2)
|
|
49237
|
+
})
|
|
49238
|
+
})
|
|
49239
|
+
})
|
|
49240
|
+
}
|
|
49241
|
+
|
|
49242
|
+
fs.lutimesSync = function (path, at, mt) {
|
|
49243
|
+
var fd = fs.openSync(path, constants.O_SYMLINK)
|
|
49244
|
+
var ret
|
|
49245
|
+
var threw = true
|
|
49246
|
+
try {
|
|
49247
|
+
ret = fs.futimesSync(fd, at, mt)
|
|
49248
|
+
threw = false
|
|
49249
|
+
} finally {
|
|
49250
|
+
if (threw) {
|
|
49251
|
+
try {
|
|
49252
|
+
fs.closeSync(fd)
|
|
49253
|
+
} catch (er) {}
|
|
49254
|
+
} else {
|
|
49255
|
+
fs.closeSync(fd)
|
|
49256
|
+
}
|
|
49257
|
+
}
|
|
49258
|
+
return ret
|
|
49259
|
+
}
|
|
49260
|
+
|
|
49261
|
+
} else {
|
|
49262
|
+
fs.lutimes = function (_a, _b, _c, cb) { if (cb) process.nextTick(cb) }
|
|
49263
|
+
fs.lutimesSync = function () {}
|
|
49264
|
+
}
|
|
49265
|
+
}
|
|
49266
|
+
|
|
49267
|
+
function chmodFix (orig) {
|
|
49268
|
+
if (!orig) return orig
|
|
49269
|
+
return function (target, mode, cb) {
|
|
49270
|
+
return orig.call(fs, target, mode, function (er) {
|
|
49271
|
+
if (chownErOk(er)) er = null
|
|
49272
|
+
if (cb) cb.apply(this, arguments)
|
|
49273
|
+
})
|
|
49274
|
+
}
|
|
49275
|
+
}
|
|
49276
|
+
|
|
49277
|
+
function chmodFixSync (orig) {
|
|
49278
|
+
if (!orig) return orig
|
|
49279
|
+
return function (target, mode) {
|
|
49280
|
+
try {
|
|
49281
|
+
return orig.call(fs, target, mode)
|
|
49282
|
+
} catch (er) {
|
|
49283
|
+
if (!chownErOk(er)) throw er
|
|
49284
|
+
}
|
|
49285
|
+
}
|
|
49286
|
+
}
|
|
49287
|
+
|
|
49288
|
+
|
|
49289
|
+
function chownFix (orig) {
|
|
49290
|
+
if (!orig) return orig
|
|
49291
|
+
return function (target, uid, gid, cb) {
|
|
49292
|
+
return orig.call(fs, target, uid, gid, function (er) {
|
|
49293
|
+
if (chownErOk(er)) er = null
|
|
49294
|
+
if (cb) cb.apply(this, arguments)
|
|
49295
|
+
})
|
|
49296
|
+
}
|
|
49297
|
+
}
|
|
49298
|
+
|
|
49299
|
+
function chownFixSync (orig) {
|
|
49300
|
+
if (!orig) return orig
|
|
49301
|
+
return function (target, uid, gid) {
|
|
49302
|
+
try {
|
|
49303
|
+
return orig.call(fs, target, uid, gid)
|
|
49304
|
+
} catch (er) {
|
|
49305
|
+
if (!chownErOk(er)) throw er
|
|
49306
|
+
}
|
|
49307
|
+
}
|
|
49308
|
+
}
|
|
49309
|
+
|
|
49310
|
+
function statFix (orig) {
|
|
49311
|
+
if (!orig) return orig
|
|
49312
|
+
// Older versions of Node erroneously returned signed integers for
|
|
49313
|
+
// uid + gid.
|
|
49314
|
+
return function (target, options, cb) {
|
|
49315
|
+
if (typeof options === 'function') {
|
|
49316
|
+
cb = options
|
|
49317
|
+
options = null
|
|
49318
|
+
}
|
|
49319
|
+
function callback (er, stats) {
|
|
49320
|
+
if (stats) {
|
|
49321
|
+
if (stats.uid < 0) stats.uid += 0x100000000
|
|
49322
|
+
if (stats.gid < 0) stats.gid += 0x100000000
|
|
49323
|
+
}
|
|
49324
|
+
if (cb) cb.apply(this, arguments)
|
|
49325
|
+
}
|
|
49326
|
+
return options ? orig.call(fs, target, options, callback)
|
|
49327
|
+
: orig.call(fs, target, callback)
|
|
49328
|
+
}
|
|
49329
|
+
}
|
|
49330
|
+
|
|
49331
|
+
function statFixSync (orig) {
|
|
49332
|
+
if (!orig) return orig
|
|
49333
|
+
// Older versions of Node erroneously returned signed integers for
|
|
49334
|
+
// uid + gid.
|
|
49335
|
+
return function (target, options) {
|
|
49336
|
+
var stats = options ? orig.call(fs, target, options)
|
|
49337
|
+
: orig.call(fs, target)
|
|
49338
|
+
if (stats) {
|
|
49339
|
+
if (stats.uid < 0) stats.uid += 0x100000000
|
|
49340
|
+
if (stats.gid < 0) stats.gid += 0x100000000
|
|
49341
|
+
}
|
|
49342
|
+
return stats;
|
|
49343
|
+
}
|
|
49344
|
+
}
|
|
49345
|
+
|
|
49346
|
+
// ENOSYS means that the fs doesn't support the op. Just ignore
|
|
49347
|
+
// that, because it doesn't matter.
|
|
49348
|
+
//
|
|
49349
|
+
// if there's no getuid, or if getuid() is something other
|
|
49350
|
+
// than 0, and the error is EINVAL or EPERM, then just ignore
|
|
49351
|
+
// it.
|
|
49352
|
+
//
|
|
49353
|
+
// This specific case is a silent failure in cp, install, tar,
|
|
49354
|
+
// and most other unix tools that manage permissions.
|
|
49355
|
+
//
|
|
49356
|
+
// When running as root, or if other types of errors are
|
|
49357
|
+
// encountered, then it's strict.
|
|
49358
|
+
function chownErOk (er) {
|
|
49359
|
+
if (!er)
|
|
49360
|
+
return true
|
|
49361
|
+
|
|
49362
|
+
if (er.code === "ENOSYS")
|
|
49363
|
+
return true
|
|
49364
|
+
|
|
49365
|
+
var nonroot = !process.getuid || process.getuid() !== 0
|
|
49366
|
+
if (nonroot) {
|
|
49367
|
+
if (er.code === "EINVAL" || er.code === "EPERM")
|
|
49368
|
+
return true
|
|
49369
|
+
}
|
|
49370
|
+
|
|
49371
|
+
return false
|
|
49372
|
+
}
|
|
49373
|
+
}
|
|
49374
|
+
|
|
49375
|
+
|
|
46455
49376
|
/***/ }),
|
|
46456
49377
|
|
|
46457
49378
|
/***/ 7485:
|
|
@@ -60736,7 +63657,7 @@ exports.parse = function (s) {
|
|
|
60736
63657
|
|
|
60737
63658
|
let _fs
|
|
60738
63659
|
try {
|
|
60739
|
-
_fs = __webpack_require__(
|
|
63660
|
+
_fs = __webpack_require__(19677)
|
|
60740
63661
|
} catch (_) {
|
|
60741
63662
|
_fs = __webpack_require__(57147)
|
|
60742
63663
|
}
|
|
@@ -83633,7 +86554,7 @@ exports.ConnectableObservable = void 0;
|
|
|
83633
86554
|
var Observable_1 = __webpack_require__(47082);
|
|
83634
86555
|
var Subscription_1 = __webpack_require__(69661);
|
|
83635
86556
|
var refCount_1 = __webpack_require__(75181);
|
|
83636
|
-
var OperatorSubscriber_1 = __webpack_require__(
|
|
86557
|
+
var OperatorSubscriber_1 = __webpack_require__(83028);
|
|
83637
86558
|
var lift_1 = __webpack_require__(12370);
|
|
83638
86559
|
var ConnectableObservable = (function (_super) {
|
|
83639
86560
|
__extends(ConnectableObservable, _super);
|
|
@@ -83851,7 +86772,7 @@ var identity_1 = __webpack_require__(12418);
|
|
|
83851
86772
|
var mapOneOrManyArgs_1 = __webpack_require__(59377);
|
|
83852
86773
|
var args_1 = __webpack_require__(47844);
|
|
83853
86774
|
var createObject_1 = __webpack_require__(22573);
|
|
83854
|
-
var OperatorSubscriber_1 = __webpack_require__(
|
|
86775
|
+
var OperatorSubscriber_1 = __webpack_require__(83028);
|
|
83855
86776
|
var executeSchedule_1 = __webpack_require__(28420);
|
|
83856
86777
|
function combineLatest() {
|
|
83857
86778
|
var args = [];
|
|
@@ -84069,7 +86990,7 @@ var Observable_1 = __webpack_require__(47082);
|
|
|
84069
86990
|
var argsArgArrayOrObject_1 = __webpack_require__(12671);
|
|
84070
86991
|
var innerFrom_1 = __webpack_require__(17438);
|
|
84071
86992
|
var args_1 = __webpack_require__(47844);
|
|
84072
|
-
var OperatorSubscriber_1 = __webpack_require__(
|
|
86993
|
+
var OperatorSubscriber_1 = __webpack_require__(83028);
|
|
84073
86994
|
var mapOneOrManyArgs_1 = __webpack_require__(59377);
|
|
84074
86995
|
var createObject_1 = __webpack_require__(22573);
|
|
84075
86996
|
function forkJoin() {
|
|
@@ -84742,7 +87663,7 @@ exports.raceInit = exports.race = void 0;
|
|
|
84742
87663
|
var Observable_1 = __webpack_require__(47082);
|
|
84743
87664
|
var innerFrom_1 = __webpack_require__(17438);
|
|
84744
87665
|
var argsOrArgArray_1 = __webpack_require__(25796);
|
|
84745
|
-
var OperatorSubscriber_1 = __webpack_require__(
|
|
87666
|
+
var OperatorSubscriber_1 = __webpack_require__(83028);
|
|
84746
87667
|
function race() {
|
|
84747
87668
|
var sources = [];
|
|
84748
87669
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
@@ -84948,7 +87869,7 @@ var Observable_1 = __webpack_require__(47082);
|
|
|
84948
87869
|
var innerFrom_1 = __webpack_require__(17438);
|
|
84949
87870
|
var argsOrArgArray_1 = __webpack_require__(25796);
|
|
84950
87871
|
var empty_1 = __webpack_require__(18939);
|
|
84951
|
-
var OperatorSubscriber_1 = __webpack_require__(
|
|
87872
|
+
var OperatorSubscriber_1 = __webpack_require__(83028);
|
|
84952
87873
|
var args_1 = __webpack_require__(47844);
|
|
84953
87874
|
function zip() {
|
|
84954
87875
|
var args = [];
|
|
@@ -84993,7 +87914,7 @@ exports.zip = zip;
|
|
|
84993
87914
|
|
|
84994
87915
|
/***/ }),
|
|
84995
87916
|
|
|
84996
|
-
/***/
|
|
87917
|
+
/***/ 83028:
|
|
84997
87918
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
84998
87919
|
|
|
84999
87920
|
"use strict";
|
|
@@ -85081,7 +88002,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
85081
88002
|
exports.audit = void 0;
|
|
85082
88003
|
var lift_1 = __webpack_require__(12370);
|
|
85083
88004
|
var innerFrom_1 = __webpack_require__(17438);
|
|
85084
|
-
var OperatorSubscriber_1 = __webpack_require__(
|
|
88005
|
+
var OperatorSubscriber_1 = __webpack_require__(83028);
|
|
85085
88006
|
function audit(durationSelector) {
|
|
85086
88007
|
return lift_1.operate(function (source, subscriber) {
|
|
85087
88008
|
var hasValue = false;
|
|
@@ -85148,7 +88069,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
85148
88069
|
exports.buffer = void 0;
|
|
85149
88070
|
var lift_1 = __webpack_require__(12370);
|
|
85150
88071
|
var noop_1 = __webpack_require__(3064);
|
|
85151
|
-
var OperatorSubscriber_1 = __webpack_require__(
|
|
88072
|
+
var OperatorSubscriber_1 = __webpack_require__(83028);
|
|
85152
88073
|
function buffer(closingNotifier) {
|
|
85153
88074
|
return lift_1.operate(function (source, subscriber) {
|
|
85154
88075
|
var currentBuffer = [];
|
|
@@ -85190,7 +88111,7 @@ var __values = (this && this.__values) || function(o) {
|
|
|
85190
88111
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
85191
88112
|
exports.bufferCount = void 0;
|
|
85192
88113
|
var lift_1 = __webpack_require__(12370);
|
|
85193
|
-
var OperatorSubscriber_1 = __webpack_require__(
|
|
88114
|
+
var OperatorSubscriber_1 = __webpack_require__(83028);
|
|
85194
88115
|
var arrRemove_1 = __webpack_require__(19503);
|
|
85195
88116
|
function bufferCount(bufferSize, startBufferEvery) {
|
|
85196
88117
|
if (startBufferEvery === void 0) { startBufferEvery = null; }
|
|
@@ -85283,7 +88204,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
85283
88204
|
exports.bufferTime = void 0;
|
|
85284
88205
|
var Subscription_1 = __webpack_require__(69661);
|
|
85285
88206
|
var lift_1 = __webpack_require__(12370);
|
|
85286
|
-
var OperatorSubscriber_1 = __webpack_require__(
|
|
88207
|
+
var OperatorSubscriber_1 = __webpack_require__(83028);
|
|
85287
88208
|
var arrRemove_1 = __webpack_require__(19503);
|
|
85288
88209
|
var async_1 = __webpack_require__(11644);
|
|
85289
88210
|
var args_1 = __webpack_require__(47844);
|
|
@@ -85382,7 +88303,7 @@ exports.bufferToggle = void 0;
|
|
|
85382
88303
|
var Subscription_1 = __webpack_require__(69661);
|
|
85383
88304
|
var lift_1 = __webpack_require__(12370);
|
|
85384
88305
|
var innerFrom_1 = __webpack_require__(17438);
|
|
85385
|
-
var OperatorSubscriber_1 = __webpack_require__(
|
|
88306
|
+
var OperatorSubscriber_1 = __webpack_require__(83028);
|
|
85386
88307
|
var noop_1 = __webpack_require__(3064);
|
|
85387
88308
|
var arrRemove_1 = __webpack_require__(19503);
|
|
85388
88309
|
function bufferToggle(openings, closingSelector) {
|
|
@@ -85436,7 +88357,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
85436
88357
|
exports.bufferWhen = void 0;
|
|
85437
88358
|
var lift_1 = __webpack_require__(12370);
|
|
85438
88359
|
var noop_1 = __webpack_require__(3064);
|
|
85439
|
-
var OperatorSubscriber_1 = __webpack_require__(
|
|
88360
|
+
var OperatorSubscriber_1 = __webpack_require__(83028);
|
|
85440
88361
|
var innerFrom_1 = __webpack_require__(17438);
|
|
85441
88362
|
function bufferWhen(closingSelector) {
|
|
85442
88363
|
return lift_1.operate(function (source, subscriber) {
|
|
@@ -85469,7 +88390,7 @@ exports.bufferWhen = bufferWhen;
|
|
|
85469
88390
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
85470
88391
|
exports.catchError = void 0;
|
|
85471
88392
|
var innerFrom_1 = __webpack_require__(17438);
|
|
85472
|
-
var OperatorSubscriber_1 = __webpack_require__(
|
|
88393
|
+
var OperatorSubscriber_1 = __webpack_require__(83028);
|
|
85473
88394
|
var lift_1 = __webpack_require__(12370);
|
|
85474
88395
|
function catchError(selector) {
|
|
85475
88396
|
return lift_1.operate(function (source, subscriber) {
|
|
@@ -85812,7 +88733,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
85812
88733
|
exports.debounce = void 0;
|
|
85813
88734
|
var lift_1 = __webpack_require__(12370);
|
|
85814
88735
|
var noop_1 = __webpack_require__(3064);
|
|
85815
|
-
var OperatorSubscriber_1 = __webpack_require__(
|
|
88736
|
+
var OperatorSubscriber_1 = __webpack_require__(83028);
|
|
85816
88737
|
var innerFrom_1 = __webpack_require__(17438);
|
|
85817
88738
|
function debounce(durationSelector) {
|
|
85818
88739
|
return lift_1.operate(function (source, subscriber) {
|
|
@@ -85857,7 +88778,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
85857
88778
|
exports.debounceTime = void 0;
|
|
85858
88779
|
var async_1 = __webpack_require__(11644);
|
|
85859
88780
|
var lift_1 = __webpack_require__(12370);
|
|
85860
|
-
var OperatorSubscriber_1 = __webpack_require__(
|
|
88781
|
+
var OperatorSubscriber_1 = __webpack_require__(83028);
|
|
85861
88782
|
function debounceTime(dueTime, scheduler) {
|
|
85862
88783
|
if (scheduler === void 0) { scheduler = async_1.asyncScheduler; }
|
|
85863
88784
|
return lift_1.operate(function (source, subscriber) {
|
|
@@ -85911,7 +88832,7 @@ exports.debounceTime = debounceTime;
|
|
|
85911
88832
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
85912
88833
|
exports.defaultIfEmpty = void 0;
|
|
85913
88834
|
var lift_1 = __webpack_require__(12370);
|
|
85914
|
-
var OperatorSubscriber_1 = __webpack_require__(
|
|
88835
|
+
var OperatorSubscriber_1 = __webpack_require__(83028);
|
|
85915
88836
|
function defaultIfEmpty(defaultValue) {
|
|
85916
88837
|
return lift_1.operate(function (source, subscriber) {
|
|
85917
88838
|
var hasValue = false;
|
|
@@ -85985,7 +88906,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
85985
88906
|
exports.dematerialize = void 0;
|
|
85986
88907
|
var Notification_1 = __webpack_require__(89340);
|
|
85987
88908
|
var lift_1 = __webpack_require__(12370);
|
|
85988
|
-
var OperatorSubscriber_1 = __webpack_require__(
|
|
88909
|
+
var OperatorSubscriber_1 = __webpack_require__(83028);
|
|
85989
88910
|
function dematerialize() {
|
|
85990
88911
|
return lift_1.operate(function (source, subscriber) {
|
|
85991
88912
|
source.subscribe(new OperatorSubscriber_1.OperatorSubscriber(subscriber, function (notification) { return Notification_1.observeNotification(notification, subscriber); }));
|
|
@@ -86004,7 +88925,7 @@ exports.dematerialize = dematerialize;
|
|
|
86004
88925
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
86005
88926
|
exports.distinct = void 0;
|
|
86006
88927
|
var lift_1 = __webpack_require__(12370);
|
|
86007
|
-
var OperatorSubscriber_1 = __webpack_require__(
|
|
88928
|
+
var OperatorSubscriber_1 = __webpack_require__(83028);
|
|
86008
88929
|
var noop_1 = __webpack_require__(3064);
|
|
86009
88930
|
function distinct(keySelector, flushes) {
|
|
86010
88931
|
return lift_1.operate(function (source, subscriber) {
|
|
@@ -86033,7 +88954,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
86033
88954
|
exports.distinctUntilChanged = void 0;
|
|
86034
88955
|
var identity_1 = __webpack_require__(12418);
|
|
86035
88956
|
var lift_1 = __webpack_require__(12370);
|
|
86036
|
-
var OperatorSubscriber_1 = __webpack_require__(
|
|
88957
|
+
var OperatorSubscriber_1 = __webpack_require__(83028);
|
|
86037
88958
|
function distinctUntilChanged(comparator, keySelector) {
|
|
86038
88959
|
if (keySelector === void 0) { keySelector = identity_1.identity; }
|
|
86039
88960
|
comparator = comparator !== null && comparator !== void 0 ? comparator : defaultCompare;
|
|
@@ -86150,7 +89071,7 @@ exports.endWith = endWith;
|
|
|
86150
89071
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
86151
89072
|
exports.every = void 0;
|
|
86152
89073
|
var lift_1 = __webpack_require__(12370);
|
|
86153
|
-
var OperatorSubscriber_1 = __webpack_require__(
|
|
89074
|
+
var OperatorSubscriber_1 = __webpack_require__(83028);
|
|
86154
89075
|
function every(predicate, thisArg) {
|
|
86155
89076
|
return lift_1.operate(function (source, subscriber) {
|
|
86156
89077
|
var index = 0;
|
|
@@ -86192,7 +89113,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
86192
89113
|
exports.exhaustAll = void 0;
|
|
86193
89114
|
var lift_1 = __webpack_require__(12370);
|
|
86194
89115
|
var innerFrom_1 = __webpack_require__(17438);
|
|
86195
|
-
var OperatorSubscriber_1 = __webpack_require__(
|
|
89116
|
+
var OperatorSubscriber_1 = __webpack_require__(83028);
|
|
86196
89117
|
function exhaustAll() {
|
|
86197
89118
|
return lift_1.operate(function (source, subscriber) {
|
|
86198
89119
|
var isComplete = false;
|
|
@@ -86225,7 +89146,7 @@ exports.exhaustMap = void 0;
|
|
|
86225
89146
|
var map_1 = __webpack_require__(39446);
|
|
86226
89147
|
var innerFrom_1 = __webpack_require__(17438);
|
|
86227
89148
|
var lift_1 = __webpack_require__(12370);
|
|
86228
|
-
var OperatorSubscriber_1 = __webpack_require__(
|
|
89149
|
+
var OperatorSubscriber_1 = __webpack_require__(83028);
|
|
86229
89150
|
function exhaustMap(project, resultSelector) {
|
|
86230
89151
|
if (resultSelector) {
|
|
86231
89152
|
return function (source) {
|
|
@@ -86284,7 +89205,7 @@ exports.expand = expand;
|
|
|
86284
89205
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
86285
89206
|
exports.filter = void 0;
|
|
86286
89207
|
var lift_1 = __webpack_require__(12370);
|
|
86287
|
-
var OperatorSubscriber_1 = __webpack_require__(
|
|
89208
|
+
var OperatorSubscriber_1 = __webpack_require__(83028);
|
|
86288
89209
|
function filter(predicate, thisArg) {
|
|
86289
89210
|
return lift_1.operate(function (source, subscriber) {
|
|
86290
89211
|
var index = 0;
|
|
@@ -86327,7 +89248,7 @@ exports.finalize = finalize;
|
|
|
86327
89248
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
86328
89249
|
exports.createFind = exports.find = void 0;
|
|
86329
89250
|
var lift_1 = __webpack_require__(12370);
|
|
86330
|
-
var OperatorSubscriber_1 = __webpack_require__(
|
|
89251
|
+
var OperatorSubscriber_1 = __webpack_require__(83028);
|
|
86331
89252
|
function find(predicate, thisArg) {
|
|
86332
89253
|
return lift_1.operate(createFind(predicate, thisArg, 'value'));
|
|
86333
89254
|
}
|
|
@@ -86433,7 +89354,7 @@ var Observable_1 = __webpack_require__(47082);
|
|
|
86433
89354
|
var innerFrom_1 = __webpack_require__(17438);
|
|
86434
89355
|
var Subject_1 = __webpack_require__(15235);
|
|
86435
89356
|
var lift_1 = __webpack_require__(12370);
|
|
86436
|
-
var OperatorSubscriber_1 = __webpack_require__(
|
|
89357
|
+
var OperatorSubscriber_1 = __webpack_require__(83028);
|
|
86437
89358
|
function groupBy(keySelector, elementOrOptions, duration, connector) {
|
|
86438
89359
|
return lift_1.operate(function (source, subscriber) {
|
|
86439
89360
|
var element;
|
|
@@ -86515,7 +89436,7 @@ var GroupBySubscriber = (function (_super) {
|
|
|
86515
89436
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
86516
89437
|
exports.ignoreElements = void 0;
|
|
86517
89438
|
var lift_1 = __webpack_require__(12370);
|
|
86518
|
-
var OperatorSubscriber_1 = __webpack_require__(
|
|
89439
|
+
var OperatorSubscriber_1 = __webpack_require__(83028);
|
|
86519
89440
|
var noop_1 = __webpack_require__(3064);
|
|
86520
89441
|
function ignoreElements() {
|
|
86521
89442
|
return lift_1.operate(function (source, subscriber) {
|
|
@@ -86535,7 +89456,7 @@ exports.ignoreElements = ignoreElements;
|
|
|
86535
89456
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
86536
89457
|
exports.isEmpty = void 0;
|
|
86537
89458
|
var lift_1 = __webpack_require__(12370);
|
|
86538
|
-
var OperatorSubscriber_1 = __webpack_require__(
|
|
89459
|
+
var OperatorSubscriber_1 = __webpack_require__(83028);
|
|
86539
89460
|
function isEmpty() {
|
|
86540
89461
|
return lift_1.operate(function (source, subscriber) {
|
|
86541
89462
|
source.subscribe(new OperatorSubscriber_1.OperatorSubscriber(subscriber, function () {
|
|
@@ -86604,7 +89525,7 @@ exports.last = last;
|
|
|
86604
89525
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
86605
89526
|
exports.map = void 0;
|
|
86606
89527
|
var lift_1 = __webpack_require__(12370);
|
|
86607
|
-
var OperatorSubscriber_1 = __webpack_require__(
|
|
89528
|
+
var OperatorSubscriber_1 = __webpack_require__(83028);
|
|
86608
89529
|
function map(project, thisArg) {
|
|
86609
89530
|
return lift_1.operate(function (source, subscriber) {
|
|
86610
89531
|
var index = 0;
|
|
@@ -86643,7 +89564,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
86643
89564
|
exports.materialize = void 0;
|
|
86644
89565
|
var Notification_1 = __webpack_require__(89340);
|
|
86645
89566
|
var lift_1 = __webpack_require__(12370);
|
|
86646
|
-
var OperatorSubscriber_1 = __webpack_require__(
|
|
89567
|
+
var OperatorSubscriber_1 = __webpack_require__(83028);
|
|
86647
89568
|
function materialize() {
|
|
86648
89569
|
return lift_1.operate(function (source, subscriber) {
|
|
86649
89570
|
source.subscribe(new OperatorSubscriber_1.OperatorSubscriber(subscriber, function (value) {
|
|
@@ -86756,7 +89677,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
86756
89677
|
exports.mergeInternals = void 0;
|
|
86757
89678
|
var innerFrom_1 = __webpack_require__(17438);
|
|
86758
89679
|
var executeSchedule_1 = __webpack_require__(28420);
|
|
86759
|
-
var OperatorSubscriber_1 = __webpack_require__(
|
|
89680
|
+
var OperatorSubscriber_1 = __webpack_require__(83028);
|
|
86760
89681
|
function mergeInternals(source, subscriber, project, concurrent, onBeforeNext, expand, innerSubScheduler, additionalTeardown) {
|
|
86761
89682
|
var buffer = [];
|
|
86762
89683
|
var active = 0;
|
|
@@ -86984,7 +89905,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
86984
89905
|
exports.observeOn = void 0;
|
|
86985
89906
|
var executeSchedule_1 = __webpack_require__(28420);
|
|
86986
89907
|
var lift_1 = __webpack_require__(12370);
|
|
86987
|
-
var OperatorSubscriber_1 = __webpack_require__(
|
|
89908
|
+
var OperatorSubscriber_1 = __webpack_require__(83028);
|
|
86988
89909
|
function observeOn(scheduler, delay) {
|
|
86989
89910
|
if (delay === void 0) { delay = 0; }
|
|
86990
89911
|
return lift_1.operate(function (source, subscriber) {
|
|
@@ -87027,7 +89948,7 @@ exports.onErrorResumeNext = void 0;
|
|
|
87027
89948
|
var lift_1 = __webpack_require__(12370);
|
|
87028
89949
|
var innerFrom_1 = __webpack_require__(17438);
|
|
87029
89950
|
var argsOrArgArray_1 = __webpack_require__(25796);
|
|
87030
|
-
var OperatorSubscriber_1 = __webpack_require__(
|
|
89951
|
+
var OperatorSubscriber_1 = __webpack_require__(83028);
|
|
87031
89952
|
var noop_1 = __webpack_require__(3064);
|
|
87032
89953
|
function onErrorResumeNext() {
|
|
87033
89954
|
var sources = [];
|
|
@@ -87073,7 +89994,7 @@ exports.onErrorResumeNext = onErrorResumeNext;
|
|
|
87073
89994
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
87074
89995
|
exports.pairwise = void 0;
|
|
87075
89996
|
var lift_1 = __webpack_require__(12370);
|
|
87076
|
-
var OperatorSubscriber_1 = __webpack_require__(
|
|
89997
|
+
var OperatorSubscriber_1 = __webpack_require__(83028);
|
|
87077
89998
|
function pairwise() {
|
|
87078
89999
|
return lift_1.operate(function (source, subscriber) {
|
|
87079
90000
|
var prev;
|
|
@@ -87340,7 +90261,7 @@ exports.reduce = reduce;
|
|
|
87340
90261
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
87341
90262
|
exports.refCount = void 0;
|
|
87342
90263
|
var lift_1 = __webpack_require__(12370);
|
|
87343
|
-
var OperatorSubscriber_1 = __webpack_require__(
|
|
90264
|
+
var OperatorSubscriber_1 = __webpack_require__(83028);
|
|
87344
90265
|
function refCount() {
|
|
87345
90266
|
return lift_1.operate(function (source, subscriber) {
|
|
87346
90267
|
var connection = null;
|
|
@@ -87378,7 +90299,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
87378
90299
|
exports.repeat = void 0;
|
|
87379
90300
|
var empty_1 = __webpack_require__(18939);
|
|
87380
90301
|
var lift_1 = __webpack_require__(12370);
|
|
87381
|
-
var OperatorSubscriber_1 = __webpack_require__(
|
|
90302
|
+
var OperatorSubscriber_1 = __webpack_require__(83028);
|
|
87382
90303
|
var innerFrom_1 = __webpack_require__(17438);
|
|
87383
90304
|
var timer_1 = __webpack_require__(64820);
|
|
87384
90305
|
function repeat(countOrConfig) {
|
|
@@ -87449,7 +90370,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
87449
90370
|
exports.repeatWhen = void 0;
|
|
87450
90371
|
var Subject_1 = __webpack_require__(15235);
|
|
87451
90372
|
var lift_1 = __webpack_require__(12370);
|
|
87452
|
-
var OperatorSubscriber_1 = __webpack_require__(
|
|
90373
|
+
var OperatorSubscriber_1 = __webpack_require__(83028);
|
|
87453
90374
|
function repeatWhen(notifier) {
|
|
87454
90375
|
return lift_1.operate(function (source, subscriber) {
|
|
87455
90376
|
var innerSub;
|
|
@@ -87504,7 +90425,7 @@ exports.repeatWhen = repeatWhen;
|
|
|
87504
90425
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
87505
90426
|
exports.retry = void 0;
|
|
87506
90427
|
var lift_1 = __webpack_require__(12370);
|
|
87507
|
-
var OperatorSubscriber_1 = __webpack_require__(
|
|
90428
|
+
var OperatorSubscriber_1 = __webpack_require__(83028);
|
|
87508
90429
|
var identity_1 = __webpack_require__(12418);
|
|
87509
90430
|
var timer_1 = __webpack_require__(64820);
|
|
87510
90431
|
var innerFrom_1 = __webpack_require__(17438);
|
|
@@ -87585,7 +90506,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
87585
90506
|
exports.retryWhen = void 0;
|
|
87586
90507
|
var Subject_1 = __webpack_require__(15235);
|
|
87587
90508
|
var lift_1 = __webpack_require__(12370);
|
|
87588
|
-
var OperatorSubscriber_1 = __webpack_require__(
|
|
90509
|
+
var OperatorSubscriber_1 = __webpack_require__(83028);
|
|
87589
90510
|
function retryWhen(notifier) {
|
|
87590
90511
|
return lift_1.operate(function (source, subscriber) {
|
|
87591
90512
|
var innerSub;
|
|
@@ -87627,7 +90548,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
87627
90548
|
exports.sample = void 0;
|
|
87628
90549
|
var lift_1 = __webpack_require__(12370);
|
|
87629
90550
|
var noop_1 = __webpack_require__(3064);
|
|
87630
|
-
var OperatorSubscriber_1 = __webpack_require__(
|
|
90551
|
+
var OperatorSubscriber_1 = __webpack_require__(83028);
|
|
87631
90552
|
function sample(notifier) {
|
|
87632
90553
|
return lift_1.operate(function (source, subscriber) {
|
|
87633
90554
|
var hasValue = false;
|
|
@@ -87695,7 +90616,7 @@ exports.scan = scan;
|
|
|
87695
90616
|
|
|
87696
90617
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
87697
90618
|
exports.scanInternals = void 0;
|
|
87698
|
-
var OperatorSubscriber_1 = __webpack_require__(
|
|
90619
|
+
var OperatorSubscriber_1 = __webpack_require__(83028);
|
|
87699
90620
|
function scanInternals(accumulator, seed, hasSeed, emitOnNext, emitBeforeComplete) {
|
|
87700
90621
|
return function (source, subscriber) {
|
|
87701
90622
|
var hasState = hasSeed;
|
|
@@ -87729,7 +90650,7 @@ exports.scanInternals = scanInternals;
|
|
|
87729
90650
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
87730
90651
|
exports.sequenceEqual = void 0;
|
|
87731
90652
|
var lift_1 = __webpack_require__(12370);
|
|
87732
|
-
var OperatorSubscriber_1 = __webpack_require__(
|
|
90653
|
+
var OperatorSubscriber_1 = __webpack_require__(83028);
|
|
87733
90654
|
function sequenceEqual(compareTo, comparator) {
|
|
87734
90655
|
if (comparator === void 0) { comparator = function (a, b) { return a === b; }; }
|
|
87735
90656
|
return lift_1.operate(function (source, subscriber) {
|
|
@@ -87927,7 +90848,7 @@ var EmptyError_1 = __webpack_require__(77404);
|
|
|
87927
90848
|
var SequenceError_1 = __webpack_require__(28585);
|
|
87928
90849
|
var NotFoundError_1 = __webpack_require__(51403);
|
|
87929
90850
|
var lift_1 = __webpack_require__(12370);
|
|
87930
|
-
var OperatorSubscriber_1 = __webpack_require__(
|
|
90851
|
+
var OperatorSubscriber_1 = __webpack_require__(83028);
|
|
87931
90852
|
function single(predicate) {
|
|
87932
90853
|
return lift_1.operate(function (source, subscriber) {
|
|
87933
90854
|
var hasValue = false;
|
|
@@ -87982,7 +90903,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
87982
90903
|
exports.skipLast = void 0;
|
|
87983
90904
|
var identity_1 = __webpack_require__(12418);
|
|
87984
90905
|
var lift_1 = __webpack_require__(12370);
|
|
87985
|
-
var OperatorSubscriber_1 = __webpack_require__(
|
|
90906
|
+
var OperatorSubscriber_1 = __webpack_require__(83028);
|
|
87986
90907
|
function skipLast(skipCount) {
|
|
87987
90908
|
return skipCount <= 0
|
|
87988
90909
|
?
|
|
@@ -88020,7 +90941,7 @@ exports.skipLast = skipLast;
|
|
|
88020
90941
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
88021
90942
|
exports.skipUntil = void 0;
|
|
88022
90943
|
var lift_1 = __webpack_require__(12370);
|
|
88023
|
-
var OperatorSubscriber_1 = __webpack_require__(
|
|
90944
|
+
var OperatorSubscriber_1 = __webpack_require__(83028);
|
|
88024
90945
|
var innerFrom_1 = __webpack_require__(17438);
|
|
88025
90946
|
var noop_1 = __webpack_require__(3064);
|
|
88026
90947
|
function skipUntil(notifier) {
|
|
@@ -88047,7 +90968,7 @@ exports.skipUntil = skipUntil;
|
|
|
88047
90968
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
88048
90969
|
exports.skipWhile = void 0;
|
|
88049
90970
|
var lift_1 = __webpack_require__(12370);
|
|
88050
|
-
var OperatorSubscriber_1 = __webpack_require__(
|
|
90971
|
+
var OperatorSubscriber_1 = __webpack_require__(83028);
|
|
88051
90972
|
function skipWhile(predicate) {
|
|
88052
90973
|
return lift_1.operate(function (source, subscriber) {
|
|
88053
90974
|
var taking = false;
|
|
@@ -88130,7 +91051,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
88130
91051
|
exports.switchMap = void 0;
|
|
88131
91052
|
var innerFrom_1 = __webpack_require__(17438);
|
|
88132
91053
|
var lift_1 = __webpack_require__(12370);
|
|
88133
|
-
var OperatorSubscriber_1 = __webpack_require__(
|
|
91054
|
+
var OperatorSubscriber_1 = __webpack_require__(83028);
|
|
88134
91055
|
function switchMap(project, resultSelector) {
|
|
88135
91056
|
return lift_1.operate(function (source, subscriber) {
|
|
88136
91057
|
var innerSubscriber = null;
|
|
@@ -88205,7 +91126,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
88205
91126
|
exports.take = void 0;
|
|
88206
91127
|
var empty_1 = __webpack_require__(18939);
|
|
88207
91128
|
var lift_1 = __webpack_require__(12370);
|
|
88208
|
-
var OperatorSubscriber_1 = __webpack_require__(
|
|
91129
|
+
var OperatorSubscriber_1 = __webpack_require__(83028);
|
|
88209
91130
|
function take(count) {
|
|
88210
91131
|
return count <= 0
|
|
88211
91132
|
?
|
|
@@ -88247,7 +91168,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
88247
91168
|
exports.takeLast = void 0;
|
|
88248
91169
|
var empty_1 = __webpack_require__(18939);
|
|
88249
91170
|
var lift_1 = __webpack_require__(12370);
|
|
88250
|
-
var OperatorSubscriber_1 = __webpack_require__(
|
|
91171
|
+
var OperatorSubscriber_1 = __webpack_require__(83028);
|
|
88251
91172
|
function takeLast(count) {
|
|
88252
91173
|
return count <= 0
|
|
88253
91174
|
? function () { return empty_1.EMPTY; }
|
|
@@ -88290,7 +91211,7 @@ exports.takeLast = takeLast;
|
|
|
88290
91211
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
88291
91212
|
exports.takeUntil = void 0;
|
|
88292
91213
|
var lift_1 = __webpack_require__(12370);
|
|
88293
|
-
var OperatorSubscriber_1 = __webpack_require__(
|
|
91214
|
+
var OperatorSubscriber_1 = __webpack_require__(83028);
|
|
88294
91215
|
var innerFrom_1 = __webpack_require__(17438);
|
|
88295
91216
|
var noop_1 = __webpack_require__(3064);
|
|
88296
91217
|
function takeUntil(notifier) {
|
|
@@ -88312,7 +91233,7 @@ exports.takeUntil = takeUntil;
|
|
|
88312
91233
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
88313
91234
|
exports.takeWhile = void 0;
|
|
88314
91235
|
var lift_1 = __webpack_require__(12370);
|
|
88315
|
-
var OperatorSubscriber_1 = __webpack_require__(
|
|
91236
|
+
var OperatorSubscriber_1 = __webpack_require__(83028);
|
|
88316
91237
|
function takeWhile(predicate, inclusive) {
|
|
88317
91238
|
if (inclusive === void 0) { inclusive = false; }
|
|
88318
91239
|
return lift_1.operate(function (source, subscriber) {
|
|
@@ -88338,7 +91259,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
88338
91259
|
exports.tap = void 0;
|
|
88339
91260
|
var isFunction_1 = __webpack_require__(44366);
|
|
88340
91261
|
var lift_1 = __webpack_require__(12370);
|
|
88341
|
-
var OperatorSubscriber_1 = __webpack_require__(
|
|
91262
|
+
var OperatorSubscriber_1 = __webpack_require__(83028);
|
|
88342
91263
|
var identity_1 = __webpack_require__(12418);
|
|
88343
91264
|
function tap(observerOrNext, error, complete) {
|
|
88344
91265
|
var tapObserver = isFunction_1.isFunction(observerOrNext) || error || complete
|
|
@@ -88388,7 +91309,7 @@ exports.tap = tap;
|
|
|
88388
91309
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
88389
91310
|
exports.throttle = exports.defaultThrottleConfig = void 0;
|
|
88390
91311
|
var lift_1 = __webpack_require__(12370);
|
|
88391
|
-
var OperatorSubscriber_1 = __webpack_require__(
|
|
91312
|
+
var OperatorSubscriber_1 = __webpack_require__(83028);
|
|
88392
91313
|
var innerFrom_1 = __webpack_require__(17438);
|
|
88393
91314
|
exports.defaultThrottleConfig = {
|
|
88394
91315
|
leading: true,
|
|
@@ -88471,7 +91392,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
88471
91392
|
exports.throwIfEmpty = void 0;
|
|
88472
91393
|
var EmptyError_1 = __webpack_require__(77404);
|
|
88473
91394
|
var lift_1 = __webpack_require__(12370);
|
|
88474
|
-
var OperatorSubscriber_1 = __webpack_require__(
|
|
91395
|
+
var OperatorSubscriber_1 = __webpack_require__(83028);
|
|
88475
91396
|
function throwIfEmpty(errorFactory) {
|
|
88476
91397
|
if (errorFactory === void 0) { errorFactory = defaultErrorFactory; }
|
|
88477
91398
|
return lift_1.operate(function (source, subscriber) {
|
|
@@ -88544,7 +91465,7 @@ var isDate_1 = __webpack_require__(19327);
|
|
|
88544
91465
|
var lift_1 = __webpack_require__(12370);
|
|
88545
91466
|
var innerFrom_1 = __webpack_require__(17438);
|
|
88546
91467
|
var createErrorClass_1 = __webpack_require__(92589);
|
|
88547
|
-
var OperatorSubscriber_1 = __webpack_require__(
|
|
91468
|
+
var OperatorSubscriber_1 = __webpack_require__(83028);
|
|
88548
91469
|
var executeSchedule_1 = __webpack_require__(28420);
|
|
88549
91470
|
exports.TimeoutError = createErrorClass_1.createErrorClass(function (_super) {
|
|
88550
91471
|
return function TimeoutErrorImpl(info) {
|
|
@@ -88695,7 +91616,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
88695
91616
|
exports.window = void 0;
|
|
88696
91617
|
var Subject_1 = __webpack_require__(15235);
|
|
88697
91618
|
var lift_1 = __webpack_require__(12370);
|
|
88698
|
-
var OperatorSubscriber_1 = __webpack_require__(
|
|
91619
|
+
var OperatorSubscriber_1 = __webpack_require__(83028);
|
|
88699
91620
|
var noop_1 = __webpack_require__(3064);
|
|
88700
91621
|
function window(windowBoundaries) {
|
|
88701
91622
|
return lift_1.operate(function (source, subscriber) {
|
|
@@ -88744,7 +91665,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
88744
91665
|
exports.windowCount = void 0;
|
|
88745
91666
|
var Subject_1 = __webpack_require__(15235);
|
|
88746
91667
|
var lift_1 = __webpack_require__(12370);
|
|
88747
|
-
var OperatorSubscriber_1 = __webpack_require__(
|
|
91668
|
+
var OperatorSubscriber_1 = __webpack_require__(83028);
|
|
88748
91669
|
function windowCount(windowSize, startWindowEvery) {
|
|
88749
91670
|
if (startWindowEvery === void 0) { startWindowEvery = 0; }
|
|
88750
91671
|
var startEvery = startWindowEvery > 0 ? startWindowEvery : windowSize;
|
|
@@ -88809,7 +91730,7 @@ var Subject_1 = __webpack_require__(15235);
|
|
|
88809
91730
|
var async_1 = __webpack_require__(11644);
|
|
88810
91731
|
var Subscription_1 = __webpack_require__(69661);
|
|
88811
91732
|
var lift_1 = __webpack_require__(12370);
|
|
88812
|
-
var OperatorSubscriber_1 = __webpack_require__(
|
|
91733
|
+
var OperatorSubscriber_1 = __webpack_require__(83028);
|
|
88813
91734
|
var arrRemove_1 = __webpack_require__(19503);
|
|
88814
91735
|
var args_1 = __webpack_require__(47844);
|
|
88815
91736
|
var executeSchedule_1 = __webpack_require__(28420);
|
|
@@ -88901,7 +91822,7 @@ var Subject_1 = __webpack_require__(15235);
|
|
|
88901
91822
|
var Subscription_1 = __webpack_require__(69661);
|
|
88902
91823
|
var lift_1 = __webpack_require__(12370);
|
|
88903
91824
|
var innerFrom_1 = __webpack_require__(17438);
|
|
88904
|
-
var OperatorSubscriber_1 = __webpack_require__(
|
|
91825
|
+
var OperatorSubscriber_1 = __webpack_require__(83028);
|
|
88905
91826
|
var noop_1 = __webpack_require__(3064);
|
|
88906
91827
|
var arrRemove_1 = __webpack_require__(19503);
|
|
88907
91828
|
function windowToggle(openings, closingSelector) {
|
|
@@ -88975,7 +91896,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
88975
91896
|
exports.windowWhen = void 0;
|
|
88976
91897
|
var Subject_1 = __webpack_require__(15235);
|
|
88977
91898
|
var lift_1 = __webpack_require__(12370);
|
|
88978
|
-
var OperatorSubscriber_1 = __webpack_require__(
|
|
91899
|
+
var OperatorSubscriber_1 = __webpack_require__(83028);
|
|
88979
91900
|
var innerFrom_1 = __webpack_require__(17438);
|
|
88980
91901
|
function windowWhen(closingSelector) {
|
|
88981
91902
|
return lift_1.operate(function (source, subscriber) {
|
|
@@ -89044,7 +91965,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
|
|
89044
91965
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
89045
91966
|
exports.withLatestFrom = void 0;
|
|
89046
91967
|
var lift_1 = __webpack_require__(12370);
|
|
89047
|
-
var OperatorSubscriber_1 = __webpack_require__(
|
|
91968
|
+
var OperatorSubscriber_1 = __webpack_require__(83028);
|
|
89048
91969
|
var innerFrom_1 = __webpack_require__(17438);
|
|
89049
91970
|
var identity_1 = __webpack_require__(12418);
|
|
89050
91971
|
var noop_1 = __webpack_require__(3064);
|
|
@@ -269168,11 +272089,13 @@ exports.PackageManager = PackageManager;
|
|
|
269168
272089
|
(function (PackageManager) {
|
|
269169
272090
|
PackageManager["Pnpm"] = "pnpm";
|
|
269170
272091
|
PackageManager["Yarn"] = "yarn";
|
|
272092
|
+
PackageManager["Npm"] = "npm";
|
|
269171
272093
|
})(PackageManager || (exports.PackageManager = PackageManager = {}));
|
|
269172
272094
|
|
|
269173
272095
|
const PackageManagerName = {
|
|
269174
272096
|
[PackageManager.Pnpm]: () => 'pnpm',
|
|
269175
|
-
[PackageManager.Yarn]: () => 'Yarn'
|
|
272097
|
+
[PackageManager.Yarn]: () => 'Yarn',
|
|
272098
|
+
[PackageManager.Npm]: () => 'npm'
|
|
269176
272099
|
};
|
|
269177
272100
|
exports.PackageManagerName = PackageManagerName;
|
|
269178
272101
|
const PackageManagerSchema = {
|
|
@@ -269421,7 +272344,7 @@ const SubSolutionSchema = {
|
|
|
269421
272344
|
}));
|
|
269422
272345
|
|
|
269423
272346
|
if (data.solution && data.solution !== 'custom') {
|
|
269424
|
-
items.
|
|
272347
|
+
items.unshift({
|
|
269425
272348
|
key: data.solution,
|
|
269426
272349
|
label: `${SubSolutionText[data.solution]()}(${_locale.i18n.t(_locale.localeKeys.solution.default)})`
|
|
269427
272350
|
});
|
|
@@ -269705,7 +272628,8 @@ const EN_LOCALE = {
|
|
|
269705
272628
|
mwa_storybook: 'Enable "Visual Testing (Storybook)"',
|
|
269706
272629
|
ssg: 'Enable "SSG"',
|
|
269707
272630
|
polyfill: 'Enable "UA-based Polyfill feature"',
|
|
269708
|
-
deploy: 'Enable "Deploy"'
|
|
272631
|
+
deploy: 'Enable "Deploy"',
|
|
272632
|
+
proxy: 'Enable "Global Proxy"'
|
|
269709
272633
|
},
|
|
269710
272634
|
element: {
|
|
269711
272635
|
self: 'Create project element',
|
|
@@ -269870,8 +272794,9 @@ const ZH_LOCALE = {
|
|
|
269870
272794
|
runtime_api: '启用「Rumtime API」',
|
|
269871
272795
|
mwa_storybook: '启用「Visual Testing (Storybook)」模式',
|
|
269872
272796
|
ssg: '启用「SSG」功能',
|
|
269873
|
-
polyfill: '
|
|
269874
|
-
deploy: '启用「部署」功能'
|
|
272797
|
+
polyfill: '启用「基于 UA 的 Polyfill」功能',
|
|
272798
|
+
deploy: '启用「部署」功能',
|
|
272799
|
+
proxy: '启用「全局代理」'
|
|
269875
272800
|
},
|
|
269876
272801
|
element: {
|
|
269877
272802
|
self: '创建工程元素',
|
|
@@ -270093,7 +273018,17 @@ exports.MonorepoSchemas = exports.MonorepoSchema = exports.MonorepoDefaultConfig
|
|
|
270093
273018
|
|
|
270094
273019
|
var _common = __webpack_require__(25523);
|
|
270095
273020
|
|
|
270096
|
-
|
|
273021
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
273022
|
+
|
|
273023
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
273024
|
+
|
|
273025
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
273026
|
+
|
|
273027
|
+
const MonorepoPackageManagerSchema = _objectSpread(_objectSpread({}, _common.PackageManagerSchema), {}, {
|
|
273028
|
+
items: _common.PackageManagerSchema.items.filter(item => item.key !== _common.PackageManager.Npm)
|
|
273029
|
+
});
|
|
273030
|
+
|
|
273031
|
+
const MonorepoSchemas = [MonorepoPackageManagerSchema];
|
|
270097
273032
|
exports.MonorepoSchemas = MonorepoSchemas;
|
|
270098
273033
|
const MonorepoSchema = {
|
|
270099
273034
|
key: 'monorepo',
|
|
@@ -270289,10 +273224,10 @@ const FrameworkSchema = {
|
|
|
270289
273224
|
};
|
|
270290
273225
|
exports.FrameworkSchema = FrameworkSchema;
|
|
270291
273226
|
const FrameworkAppendTypeContent = {
|
|
270292
|
-
[Framework.Express]: `/// <reference types='@modern-js/plugin-express/types' />`,
|
|
270293
|
-
[Framework.Koa]: `/// <reference types='@modern-js/plugin-koa/types' />`,
|
|
270294
|
-
[Framework.Egg]: `/// <reference types='@modern-js/plugin-egg/types' />`,
|
|
270295
|
-
[Framework.Nest]: `/// <reference types='@modern-js/plugin-nest/types' />`
|
|
273227
|
+
[Framework.Express]: `/// <reference types='@modern-js/plugin-express/types' />\n/// <reference types='@modern-js/plugin-bff/types' />`,
|
|
273228
|
+
[Framework.Koa]: `/// <reference types='@modern-js/plugin-koa/types' />\n/// <reference types='@modern-js/plugin-bff/types' />`,
|
|
273229
|
+
[Framework.Egg]: `/// <reference types='@modern-js/plugin-egg/types' />\n/// <reference types='@modern-js/plugin-bff/types' />`,
|
|
273230
|
+
[Framework.Nest]: `/// <reference types='@modern-js/plugin-nest/types' />\n/// <reference types='@modern-js/plugin-bff/types' />`
|
|
270296
273231
|
};
|
|
270297
273232
|
exports.FrameworkAppendTypeContent = FrameworkAppendTypeContent;
|
|
270298
273233
|
|
|
@@ -270650,6 +273585,7 @@ exports.ActionFunction = ActionFunction;
|
|
|
270650
273585
|
ActionFunction["SSG"] = "ssg";
|
|
270651
273586
|
ActionFunction["Polyfill"] = "polyfill";
|
|
270652
273587
|
ActionFunction["Deploy"] = "deploy";
|
|
273588
|
+
ActionFunction["Proxy"] = "proxy";
|
|
270653
273589
|
})(ActionFunction || (exports.ActionFunction = ActionFunction = {}));
|
|
270654
273590
|
|
|
270655
273591
|
let ActionRefactor;
|
|
@@ -270686,7 +273622,8 @@ const ActionFunctionText = {
|
|
|
270686
273622
|
[ActionFunction.RuntimeApi]: () => _locale.i18n.t(_locale.localeKeys.action.function.runtime_api),
|
|
270687
273623
|
[ActionFunction.SSG]: () => _locale.i18n.t(_locale.localeKeys.action.function.ssg),
|
|
270688
273624
|
[ActionFunction.Polyfill]: () => _locale.i18n.t(_locale.localeKeys.action.function.polyfill),
|
|
270689
|
-
[ActionFunction.Deploy]: () => _locale.i18n.t(_locale.localeKeys.action.function.deploy)
|
|
273625
|
+
[ActionFunction.Deploy]: () => _locale.i18n.t(_locale.localeKeys.action.function.deploy),
|
|
273626
|
+
[ActionFunction.Proxy]: () => _locale.i18n.t(_locale.localeKeys.action.function.proxy)
|
|
270690
273627
|
};
|
|
270691
273628
|
exports.ActionFunctionText = ActionFunctionText;
|
|
270692
273629
|
const ActionRefactorText = {
|
|
@@ -270775,7 +273712,7 @@ Object.keys(_monorepo).forEach(function (key) {
|
|
|
270775
273712
|
Object.defineProperty(exports, "__esModule", ({
|
|
270776
273713
|
value: true
|
|
270777
273714
|
}));
|
|
270778
|
-
exports.ModuleSpecialSchemaMap = exports.ModuleNewActionSchema = exports.ModuleNewActionGenerators = exports.ModuleActionTypesMap = exports.ModuleActionTypes = exports.ModuleActionFunctionsPeerDependencies = exports.ModuleActionFunctionsDevDependencies = exports.ModuleActionFunctionsDependencies = exports.ModuleActionFunctions = void 0;
|
|
273715
|
+
exports.ModuleSpecialSchemaMap = exports.ModuleNewActionSchema = exports.ModuleNewActionGenerators = exports.ModuleActionTypesMap = exports.ModuleActionTypes = exports.ModuleActionFunctionsPeerDependencies = exports.ModuleActionFunctionsDevDependencies = exports.ModuleActionFunctionsDependencies = exports.ModuleActionFunctionsAppendTypeContent = exports.ModuleActionFunctions = void 0;
|
|
270779
273716
|
|
|
270780
273717
|
var _common = __webpack_require__(78353);
|
|
270781
273718
|
|
|
@@ -270833,9 +273770,13 @@ const ModuleActionFunctionsDependencies = {
|
|
|
270833
273770
|
[_common.ActionFunction.Sass]: '@modern-js/plugin-sass'
|
|
270834
273771
|
};
|
|
270835
273772
|
exports.ModuleActionFunctionsDependencies = ModuleActionFunctionsDependencies;
|
|
273773
|
+
const ModuleActionFunctionsAppendTypeContent = {
|
|
273774
|
+
[_common.ActionFunction.TailwindCSS]: `/// <reference types='@modern-js/plugin-tailwindcss/types' />`
|
|
273775
|
+
};
|
|
273776
|
+
exports.ModuleActionFunctionsAppendTypeContent = ModuleActionFunctionsAppendTypeContent;
|
|
270836
273777
|
const ModuleNewActionGenerators = {
|
|
270837
273778
|
[_common.ActionType.Function]: {
|
|
270838
|
-
[_common.ActionFunction.TailwindCSS]: '@modern-js/
|
|
273779
|
+
[_common.ActionFunction.TailwindCSS]: '@modern-js/tailwindcss-generator',
|
|
270839
273780
|
[_common.ActionFunction.Less]: '@modern-js/dependence-generator',
|
|
270840
273781
|
[_common.ActionFunction.Sass]: '@modern-js/dependence-generator',
|
|
270841
273782
|
[_common.ActionFunction.I18n]: '@modern-js/dependence-generator',
|
|
@@ -270911,7 +273852,7 @@ exports.MWAActionTypes = MWAActionTypes;
|
|
|
270911
273852
|
const MWAActionFunctions = [_common.ActionFunction.UnBundle, _common.ActionFunction.TailwindCSS, _common.ActionFunction.Less, _common.ActionFunction.Sass, _common.ActionFunction.BFF, _common.ActionFunction.SSG, _common.ActionFunction.MicroFrontend, _common.ActionFunction.Electron, // ActionFunction.I18n,
|
|
270912
273853
|
_common.ActionFunction.Test, _common.ActionFunction.Storybook, // ActionFunction.E2ETest,
|
|
270913
273854
|
// ActionFunction.Doc,
|
|
270914
|
-
_common.ActionFunction.Polyfill, _common.ActionFunction.Deploy];
|
|
273855
|
+
_common.ActionFunction.Polyfill, _common.ActionFunction.Deploy, _common.ActionFunction.Proxy];
|
|
270915
273856
|
exports.MWAActionFunctions = MWAActionFunctions;
|
|
270916
273857
|
const MWAActionElements = [_common.ActionElement.Entry, _common.ActionElement.Server];
|
|
270917
273858
|
exports.MWAActionElements = MWAActionElements;
|
|
@@ -270958,22 +273899,25 @@ const MWAActionFunctionsDevDependencies = {
|
|
|
270958
273899
|
[_common.ActionFunction.E2ETest]: '@modern-js/plugin-e2e',
|
|
270959
273900
|
[_common.ActionFunction.Doc]: '@modern-js/plugin-docsite',
|
|
270960
273901
|
[_common.ActionFunction.Electron]: '@modern-js/plugin-electron',
|
|
270961
|
-
[_common.ActionFunction.Storybook]: '@modern-js/plugin-storybook'
|
|
273902
|
+
[_common.ActionFunction.Storybook]: '@modern-js/plugin-storybook',
|
|
273903
|
+
[_common.ActionFunction.Proxy]: '@modern-js/plugin-proxy'
|
|
270962
273904
|
};
|
|
270963
273905
|
exports.MWAActionFunctionsDevDependencies = MWAActionFunctionsDevDependencies;
|
|
270964
273906
|
const MWAActionFunctionsDependencies = {
|
|
270965
273907
|
[_common.ActionFunction.Less]: '@modern-js/plugin-less',
|
|
270966
273908
|
[_common.ActionFunction.Sass]: '@modern-js/plugin-sass',
|
|
270967
273909
|
[_common.ActionFunction.BFF]: '@modern-js/plugin-bff',
|
|
270968
|
-
[_common.ActionFunction.MicroFrontend]: '@modern-js/plugin-
|
|
273910
|
+
[_common.ActionFunction.MicroFrontend]: '@modern-js/plugin-garfish',
|
|
270969
273911
|
[_common.ActionFunction.I18n]: '@modern-js/plugin-i18n',
|
|
270970
273912
|
[_common.ActionFunction.SSG]: '@modern-js/plugin-ssg',
|
|
270971
|
-
[_common.ActionFunction.Polyfill]: '@modern-js/plugin-polyfill'
|
|
273913
|
+
[_common.ActionFunction.Polyfill]: '@modern-js/plugin-polyfill',
|
|
273914
|
+
[_common.ActionFunction.TailwindCSS]: 'tailwindcss'
|
|
270972
273915
|
};
|
|
270973
273916
|
exports.MWAActionFunctionsDependencies = MWAActionFunctionsDependencies;
|
|
270974
273917
|
const MWAActionFunctionsAppendTypeContent = {
|
|
270975
273918
|
[_common.ActionFunction.Test]: `/// <reference types='@modern-js/plugin-testing/type' />`,
|
|
270976
|
-
[_common.ActionFunction.MicroFrontend]: `/// <reference types='@modern-js/plugin-
|
|
273919
|
+
[_common.ActionFunction.MicroFrontend]: `/// <reference types='@modern-js/plugin-garfish/type' />`,
|
|
273920
|
+
[_common.ActionFunction.TailwindCSS]: `/// <reference types='@modern-js/plugin-tailwindcss/types' />`
|
|
270977
273921
|
};
|
|
270978
273922
|
exports.MWAActionFunctionsAppendTypeContent = MWAActionFunctionsAppendTypeContent;
|
|
270979
273923
|
const MWANewActionGenerators = {
|
|
@@ -270996,7 +273940,8 @@ const MWANewActionGenerators = {
|
|
|
270996
273940
|
[_common.ActionFunction.Storybook]: '@modern-js/dependence-generator',
|
|
270997
273941
|
[_common.ActionFunction.SSG]: '@modern-js/ssg-generator',
|
|
270998
273942
|
[_common.ActionFunction.Polyfill]: '@modern-js/dependence-generator',
|
|
270999
|
-
[_common.ActionFunction.Deploy]: '@modern-js/cloud-deploy-generator'
|
|
273943
|
+
[_common.ActionFunction.Deploy]: '@modern-js/cloud-deploy-generator',
|
|
273944
|
+
[_common.ActionFunction.Proxy]: '@modern-js/dependence-generator'
|
|
271000
273945
|
},
|
|
271001
273946
|
[_common.ActionType.Refactor]: {
|
|
271002
273947
|
[_common.ActionRefactor.BFFToApp]: '@modern-js/bff-refactor-generator'
|
|
@@ -271371,6 +274316,116 @@ function stripAnsi(string) {
|
|
|
271371
274316
|
|
|
271372
274317
|
/***/ }),
|
|
271373
274318
|
|
|
274319
|
+
/***/ 34701:
|
|
274320
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
274321
|
+
|
|
274322
|
+
"use strict";
|
|
274323
|
+
|
|
274324
|
+
|
|
274325
|
+
Object.defineProperty(exports, "__esModule", ({
|
|
274326
|
+
value: true
|
|
274327
|
+
}));
|
|
274328
|
+
exports.handleTemplateFile = exports["default"] = void 0;
|
|
274329
|
+
|
|
274330
|
+
var _path = _interopRequireDefault(__webpack_require__(71017));
|
|
274331
|
+
|
|
274332
|
+
var _codesmithApiApp = __webpack_require__(80355);
|
|
274333
|
+
|
|
274334
|
+
var _codesmithApiJson = __webpack_require__(54517);
|
|
274335
|
+
|
|
274336
|
+
var _generatorCommon = __webpack_require__(50828);
|
|
274337
|
+
|
|
274338
|
+
var _generatorUtils = __webpack_require__(89489);
|
|
274339
|
+
|
|
274340
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
274341
|
+
|
|
274342
|
+
const handleTemplateFile = async (context, generator) => {
|
|
274343
|
+
const jsonAPI = new _codesmithApiJson.JsonAPI(generator);
|
|
274344
|
+
const {
|
|
274345
|
+
devDependencies,
|
|
274346
|
+
dependencies,
|
|
274347
|
+
peerDependencies,
|
|
274348
|
+
appendTypeContent,
|
|
274349
|
+
sourceTypeFile,
|
|
274350
|
+
projectPath
|
|
274351
|
+
} = context.config;
|
|
274352
|
+
const setJSON = {};
|
|
274353
|
+
Object.keys(devDependencies || {}).forEach(key => {
|
|
274354
|
+
setJSON[`devDependencies.${key}`] = devDependencies[key];
|
|
274355
|
+
});
|
|
274356
|
+
Object.keys(dependencies || {}).forEach(key => {
|
|
274357
|
+
setJSON[`dependencies.${key}`] = dependencies[key];
|
|
274358
|
+
});
|
|
274359
|
+
Object.keys(peerDependencies || {}).forEach(key => {
|
|
274360
|
+
setJSON[`peerDependencies.${key}`] = peerDependencies[key];
|
|
274361
|
+
});
|
|
274362
|
+
|
|
274363
|
+
if (Object.keys(setJSON).length > 0) {
|
|
274364
|
+
await jsonAPI.update(context.materials.default.get(_path.default.join(projectPath || '', 'package.json')), {
|
|
274365
|
+
query: {},
|
|
274366
|
+
update: {
|
|
274367
|
+
$set: setJSON
|
|
274368
|
+
}
|
|
274369
|
+
});
|
|
274370
|
+
}
|
|
274371
|
+
|
|
274372
|
+
if (appendTypeContent) {
|
|
274373
|
+
const appDir = context.materials.default.basePath;
|
|
274374
|
+
|
|
274375
|
+
const typePath = _path.default.join(appDir, projectPath || '', 'src', sourceTypeFile || 'modern-app-env.d.ts');
|
|
274376
|
+
|
|
274377
|
+
if (_generatorUtils.fs.existsSync(typePath)) {
|
|
274378
|
+
const npmrc = _generatorUtils.fs.readFileSync(typePath, 'utf-8');
|
|
274379
|
+
|
|
274380
|
+
if (!npmrc.includes(appendTypeContent)) {
|
|
274381
|
+
_generatorUtils.fs.writeFileSync(typePath, `${appendTypeContent}\n${npmrc}`, 'utf-8');
|
|
274382
|
+
}
|
|
274383
|
+
} else {
|
|
274384
|
+
_generatorUtils.fs.ensureFileSync(typePath);
|
|
274385
|
+
|
|
274386
|
+
_generatorUtils.fs.writeFileSync(typePath, appendTypeContent, 'utf-8');
|
|
274387
|
+
}
|
|
274388
|
+
}
|
|
274389
|
+
};
|
|
274390
|
+
|
|
274391
|
+
exports.handleTemplateFile = handleTemplateFile;
|
|
274392
|
+
|
|
274393
|
+
var _default = async (context, generator) => {
|
|
274394
|
+
const appApi = new _codesmithApiApp.AppAPI(context, generator);
|
|
274395
|
+
const {
|
|
274396
|
+
locale
|
|
274397
|
+
} = context.config;
|
|
274398
|
+
|
|
274399
|
+
_generatorCommon.i18n.changeLanguage({
|
|
274400
|
+
locale
|
|
274401
|
+
});
|
|
274402
|
+
|
|
274403
|
+
appApi.i18n.changeLanguage({
|
|
274404
|
+
locale
|
|
274405
|
+
});
|
|
274406
|
+
|
|
274407
|
+
if (!(await appApi.checkEnvironment())) {
|
|
274408
|
+
// eslint-disable-next-line no-process-exit
|
|
274409
|
+
process.exit(1);
|
|
274410
|
+
}
|
|
274411
|
+
|
|
274412
|
+
generator.logger.debug(`start run @modern-js/dependence-generator`);
|
|
274413
|
+
generator.logger.debug(`context=${JSON.stringify(context)}`);
|
|
274414
|
+
generator.logger.debug(`context.data=${JSON.stringify(context.data)}`);
|
|
274415
|
+
await handleTemplateFile(context, generator);
|
|
274416
|
+
|
|
274417
|
+
if (!context.config.isSubGenerator) {
|
|
274418
|
+
await appApi.runInstall();
|
|
274419
|
+
appApi.showSuccessInfo();
|
|
274420
|
+
}
|
|
274421
|
+
|
|
274422
|
+
generator.logger.debug(`forge @modern-js/dependence-generator succeed `);
|
|
274423
|
+
};
|
|
274424
|
+
|
|
274425
|
+
exports["default"] = _default;
|
|
274426
|
+
|
|
274427
|
+
/***/ }),
|
|
274428
|
+
|
|
271374
274429
|
/***/ 13076:
|
|
271375
274430
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
271376
274431
|
|
|
@@ -271735,7 +274790,7 @@ Object.defineProperty(exports, "__esModule", ({
|
|
|
271735
274790
|
exports.clearConsole = void 0;
|
|
271736
274791
|
|
|
271737
274792
|
const clearConsole = () => {
|
|
271738
|
-
if (process.stdout.isTTY) {
|
|
274793
|
+
if (process.stdout.isTTY && !process.env.DEBUG) {
|
|
271739
274794
|
process.stdout.write('\x1B[H\x1B[2J');
|
|
271740
274795
|
}
|
|
271741
274796
|
};
|
|
@@ -271745,7 +274800,7 @@ exports.clearConsole = clearConsole;
|
|
|
271745
274800
|
/***/ }),
|
|
271746
274801
|
|
|
271747
274802
|
/***/ 4002:
|
|
271748
|
-
/***/ ((
|
|
274803
|
+
/***/ ((module, exports, __webpack_require__) => {
|
|
271749
274804
|
|
|
271750
274805
|
"use strict";
|
|
271751
274806
|
|
|
@@ -271753,7 +274808,7 @@ exports.clearConsole = clearConsole;
|
|
|
271753
274808
|
Object.defineProperty(exports, "__esModule", ({
|
|
271754
274809
|
value: true
|
|
271755
274810
|
}));
|
|
271756
|
-
exports.requireExistModule = exports.compatRequire = void 0;
|
|
274811
|
+
exports.requireExistModule = exports.compatRequire = exports.cleanRequireCache = void 0;
|
|
271757
274812
|
|
|
271758
274813
|
var _findExists = __webpack_require__(3664);
|
|
271759
274814
|
|
|
@@ -271782,6 +274837,14 @@ const requireExistModule = (filename, extensions = ['.ts', '.js']) => {
|
|
|
271782
274837
|
|
|
271783
274838
|
exports.requireExistModule = requireExistModule;
|
|
271784
274839
|
|
|
274840
|
+
const cleanRequireCache = filelist => {
|
|
274841
|
+
filelist.forEach(filepath => {
|
|
274842
|
+
delete __webpack_require__.c[filepath];
|
|
274843
|
+
});
|
|
274844
|
+
};
|
|
274845
|
+
|
|
274846
|
+
exports.cleanRequireCache = cleanRequireCache;
|
|
274847
|
+
|
|
271785
274848
|
/***/ }),
|
|
271786
274849
|
|
|
271787
274850
|
/***/ 36762:
|
|
@@ -271793,23 +274856,11 @@ exports.requireExistModule = requireExistModule;
|
|
|
271793
274856
|
Object.defineProperty(exports, "__esModule", ({
|
|
271794
274857
|
value: true
|
|
271795
274858
|
}));
|
|
271796
|
-
exports.SHARED_DIR = exports.SERVER_RENDER_FUNCTION_NAME = exports.SERVER_DIR = exports.SERVER_BUNDLE_DIRECTORY = exports.ROUTE_SPEC_FILE = exports.PLUGIN_SCHEMAS = exports.MAIN_ENTRY_NAME = exports.LOADABLE_STATS_FILE = exports.LAUNCH_EDITOR_ENDPOINT = exports.
|
|
271797
|
-
|
|
271798
|
-
/**
|
|
271799
|
-
* alias to src directory
|
|
271800
|
-
*/
|
|
271801
|
-
const INTERNAL_SRC_ALIAS = '@_modern_js_src';
|
|
271802
|
-
/**
|
|
271803
|
-
* alias to node_modules/.modern-js
|
|
271804
|
-
*/
|
|
274859
|
+
exports.SHARED_DIR = exports.SERVER_RENDER_FUNCTION_NAME = exports.SERVER_DIR = exports.SERVER_BUNDLE_DIRECTORY = exports.ROUTE_SPEC_FILE = exports.PLUGIN_SCHEMAS = exports.MAIN_ENTRY_NAME = exports.LOADABLE_STATS_FILE = exports.LAUNCH_EDITOR_ENDPOINT = exports.INTERNAL_PLUGINS = exports.HMR_SOCK_PATH = exports.ENTRY_NAME_PATTERN = exports.API_DIR = void 0;
|
|
271805
274860
|
|
|
271806
|
-
exports.INTERNAL_SRC_ALIAS = INTERNAL_SRC_ALIAS;
|
|
271807
|
-
const INTERNAL_DIR_ALAIS = '@_modern_js_internal';
|
|
271808
274861
|
/**
|
|
271809
274862
|
* hmr socket connect path
|
|
271810
274863
|
*/
|
|
271811
|
-
|
|
271812
|
-
exports.INTERNAL_DIR_ALAIS = INTERNAL_DIR_ALAIS;
|
|
271813
274864
|
const HMR_SOCK_PATH = '/_modern_js_hmr_ws';
|
|
271814
274865
|
/**
|
|
271815
274866
|
* route specification file
|
|
@@ -271853,17 +274904,11 @@ const SERVER_RENDER_FUNCTION_NAME = 'serverRender';
|
|
|
271853
274904
|
|
|
271854
274905
|
exports.SERVER_RENDER_FUNCTION_NAME = SERVER_RENDER_FUNCTION_NAME;
|
|
271855
274906
|
const LOADABLE_STATS_FILE = 'loadable-stats.json';
|
|
271856
|
-
/**
|
|
271857
|
-
* real entry generate by modern.js
|
|
271858
|
-
*/
|
|
271859
|
-
|
|
271860
|
-
exports.LOADABLE_STATS_FILE = LOADABLE_STATS_FILE;
|
|
271861
|
-
const HIDE_MODERN_JS_DIR = './node_modules/.modern-js';
|
|
271862
274907
|
/**
|
|
271863
274908
|
* internal specified folder
|
|
271864
274909
|
*/
|
|
271865
274910
|
|
|
271866
|
-
exports.
|
|
274911
|
+
exports.LOADABLE_STATS_FILE = LOADABLE_STATS_FILE;
|
|
271867
274912
|
const API_DIR = 'api';
|
|
271868
274913
|
exports.API_DIR = API_DIR;
|
|
271869
274914
|
const SERVER_DIR = 'server';
|
|
@@ -271944,8 +274989,8 @@ const INTERNAL_PLUGINS = {
|
|
|
271944
274989
|
cli: '@modern-js/plugin-server/cli',
|
|
271945
274990
|
server: '@modern-js/plugin-server/server'
|
|
271946
274991
|
},
|
|
271947
|
-
'@modern-js/plugin-
|
|
271948
|
-
cli: '@modern-js/plugin-
|
|
274992
|
+
'@modern-js/plugin-garfish': {
|
|
274993
|
+
cli: '@modern-js/plugin-garfish/cli'
|
|
271949
274994
|
},
|
|
271950
274995
|
'@modern-js/plugin-jarvis': {
|
|
271951
274996
|
cli: '@modern-js/plugin-jarvis/cli'
|
|
@@ -271977,6 +275022,9 @@ const INTERNAL_PLUGINS = {
|
|
|
271977
275022
|
},
|
|
271978
275023
|
'@modern-js/plugin-nocode': {
|
|
271979
275024
|
cli: '@modern-js/plugin-nocode/cli'
|
|
275025
|
+
},
|
|
275026
|
+
'@modern-js/plugin-design-token': {
|
|
275027
|
+
cli: '@modern-js/plugin-design-token/cli'
|
|
271980
275028
|
}
|
|
271981
275029
|
};
|
|
271982
275030
|
/**
|
|
@@ -272049,11 +275097,6 @@ const PLUGIN_SCHEMAS = {
|
|
|
272049
275097
|
schema: {
|
|
272050
275098
|
typeof: ['object', 'function']
|
|
272051
275099
|
}
|
|
272052
|
-
}, {
|
|
272053
|
-
target: 'source.designSystem',
|
|
272054
|
-
schema: {
|
|
272055
|
-
typeof: ['object']
|
|
272056
|
-
}
|
|
272057
275100
|
}],
|
|
272058
275101
|
'@modern-js/plugin-proxy': [{
|
|
272059
275102
|
target: 'dev.proxy',
|
|
@@ -272071,6 +275114,19 @@ const PLUGIN_SCHEMAS = {
|
|
|
272071
275114
|
schema: {
|
|
272072
275115
|
type: 'boolean'
|
|
272073
275116
|
}
|
|
275117
|
+
}, {
|
|
275118
|
+
target: 'dev.unbundle',
|
|
275119
|
+
schema: {
|
|
275120
|
+
type: 'object',
|
|
275121
|
+
properties: {
|
|
275122
|
+
ignore: {
|
|
275123
|
+
type: ['string', 'array'],
|
|
275124
|
+
items: {
|
|
275125
|
+
type: 'string'
|
|
275126
|
+
}
|
|
275127
|
+
}
|
|
275128
|
+
}
|
|
275129
|
+
}
|
|
272074
275130
|
}],
|
|
272075
275131
|
'@modern-js/plugin-ssg': [{
|
|
272076
275132
|
target: 'output.ssg',
|
|
@@ -272096,6 +275152,18 @@ const PLUGIN_SCHEMAS = {
|
|
|
272096
275152
|
type: ['boolean', 'object']
|
|
272097
275153
|
}
|
|
272098
275154
|
}],
|
|
275155
|
+
'@modern-js/plugin-design-token': [// Legacy Features
|
|
275156
|
+
{
|
|
275157
|
+
target: 'source.designSystem',
|
|
275158
|
+
schema: {
|
|
275159
|
+
typeof: ['object']
|
|
275160
|
+
}
|
|
275161
|
+
}, {
|
|
275162
|
+
target: 'source.designSystem.supportStyledComponents',
|
|
275163
|
+
schema: {
|
|
275164
|
+
type: ['boolean']
|
|
275165
|
+
}
|
|
275166
|
+
}],
|
|
272099
275167
|
'@modern-js/plugin-router': [{
|
|
272100
275168
|
target: 'runtime.router',
|
|
272101
275169
|
schema: {
|
|
@@ -272113,16 +275181,21 @@ const PLUGIN_SCHEMAS = {
|
|
|
272113
275181
|
typeof: ['object', 'function']
|
|
272114
275182
|
}
|
|
272115
275183
|
}],
|
|
272116
|
-
'@modern-js/plugin-
|
|
275184
|
+
'@modern-js/plugin-garfish': [{
|
|
272117
275185
|
target: 'runtime.masterApp',
|
|
272118
275186
|
schema: {
|
|
272119
|
-
type: ['object']
|
|
275187
|
+
type: ['boolean', 'object']
|
|
272120
275188
|
}
|
|
272121
275189
|
}, {
|
|
272122
275190
|
target: 'dev.withMasterApp',
|
|
272123
275191
|
schema: {
|
|
272124
275192
|
type: ['object']
|
|
272125
275193
|
}
|
|
275194
|
+
}, {
|
|
275195
|
+
target: 'deploy.microFrontend',
|
|
275196
|
+
schema: {
|
|
275197
|
+
type: ['boolean', 'object']
|
|
275198
|
+
}
|
|
272126
275199
|
}],
|
|
272127
275200
|
'@modern-js/plugin-nocode': []
|
|
272128
275201
|
};
|
|
@@ -272156,6 +275229,31 @@ exports.createDebugger = createDebugger;
|
|
|
272156
275229
|
|
|
272157
275230
|
/***/ }),
|
|
272158
275231
|
|
|
275232
|
+
/***/ 72321:
|
|
275233
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
275234
|
+
|
|
275235
|
+
"use strict";
|
|
275236
|
+
|
|
275237
|
+
|
|
275238
|
+
Object.defineProperty(exports, "__esModule", ({
|
|
275239
|
+
value: true
|
|
275240
|
+
}));
|
|
275241
|
+
exports.emptyDir = void 0;
|
|
275242
|
+
|
|
275243
|
+
var _fsExtra = _interopRequireDefault(__webpack_require__(96576));
|
|
275244
|
+
|
|
275245
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
275246
|
+
|
|
275247
|
+
const emptyDir = async dir => {
|
|
275248
|
+
if (await _fsExtra.default.pathExists(dir)) {
|
|
275249
|
+
await _fsExtra.default.emptyDir(dir);
|
|
275250
|
+
}
|
|
275251
|
+
};
|
|
275252
|
+
|
|
275253
|
+
exports.emptyDir = emptyDir;
|
|
275254
|
+
|
|
275255
|
+
/***/ }),
|
|
275256
|
+
|
|
272159
275257
|
/***/ 13245:
|
|
272160
275258
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
272161
275259
|
|
|
@@ -272217,7 +275315,7 @@ exports.findExists = findExists;
|
|
|
272217
275315
|
|
|
272218
275316
|
/***/ }),
|
|
272219
275317
|
|
|
272220
|
-
/***/
|
|
275318
|
+
/***/ 3572:
|
|
272221
275319
|
/***/ ((__unused_webpack_module, exports) => {
|
|
272222
275320
|
|
|
272223
275321
|
"use strict";
|
|
@@ -272226,8 +275324,15 @@ exports.findExists = findExists;
|
|
|
272226
275324
|
Object.defineProperty(exports, "__esModule", ({
|
|
272227
275325
|
value: true
|
|
272228
275326
|
}));
|
|
275327
|
+
exports.formatProxyOptions = formatProxyOptions;
|
|
272229
275328
|
exports.formatWebpackMessages = formatWebpackMessages;
|
|
272230
275329
|
|
|
275330
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
275331
|
+
|
|
275332
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
275333
|
+
|
|
275334
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
275335
|
+
|
|
272231
275336
|
/* eslint-disable no-param-reassign */
|
|
272232
275337
|
|
|
272233
275338
|
/* eslint-disable max-statements */
|
|
@@ -272326,9 +275431,35 @@ function formatWebpackMessages(json) {
|
|
|
272326
275431
|
|
|
272327
275432
|
return result;
|
|
272328
275433
|
}
|
|
275434
|
+
|
|
272329
275435
|
/* eslint-enable max-statements */
|
|
272330
275436
|
|
|
272331
275437
|
/* eslint-enable no-param-reassign */
|
|
275438
|
+
function formatProxyOptions(proxyOptions) {
|
|
275439
|
+
const formatedProxy = [];
|
|
275440
|
+
|
|
275441
|
+
if (!Array.isArray(proxyOptions)) {
|
|
275442
|
+
if ('target' in proxyOptions) {
|
|
275443
|
+
formatedProxy.push(proxyOptions);
|
|
275444
|
+
} else {
|
|
275445
|
+
Array.prototype.push.apply(formatedProxy, Object.keys(proxyOptions).reduce((total, source) => {
|
|
275446
|
+
const option = proxyOptions[source];
|
|
275447
|
+
total.push(_objectSpread({
|
|
275448
|
+
context: source,
|
|
275449
|
+
changeOrigin: true,
|
|
275450
|
+
logLevel: 'warn'
|
|
275451
|
+
}, typeof option === 'string' ? {
|
|
275452
|
+
target: option
|
|
275453
|
+
} : option));
|
|
275454
|
+
return total;
|
|
275455
|
+
}, []));
|
|
275456
|
+
}
|
|
275457
|
+
} else {
|
|
275458
|
+
formatedProxy.push(...proxyOptions);
|
|
275459
|
+
}
|
|
275460
|
+
|
|
275461
|
+
return formatedProxy;
|
|
275462
|
+
}
|
|
272332
275463
|
|
|
272333
275464
|
/***/ }),
|
|
272334
275465
|
|
|
@@ -272687,16 +275818,16 @@ Object.keys(_chalk).forEach(function (key) {
|
|
|
272687
275818
|
});
|
|
272688
275819
|
});
|
|
272689
275820
|
|
|
272690
|
-
var
|
|
275821
|
+
var _format = __webpack_require__(3572);
|
|
272691
275822
|
|
|
272692
|
-
Object.keys(
|
|
275823
|
+
Object.keys(_format).forEach(function (key) {
|
|
272693
275824
|
if (key === "default" || key === "__esModule") return;
|
|
272694
275825
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
272695
|
-
if (key in exports && exports[key] ===
|
|
275826
|
+
if (key in exports && exports[key] === _format[key]) return;
|
|
272696
275827
|
Object.defineProperty(exports, key, {
|
|
272697
275828
|
enumerable: true,
|
|
272698
275829
|
get: function () {
|
|
272699
|
-
return
|
|
275830
|
+
return _format[key];
|
|
272700
275831
|
}
|
|
272701
275832
|
});
|
|
272702
275833
|
});
|
|
@@ -273093,6 +276224,34 @@ Object.keys(_nodeEnv).forEach(function (key) {
|
|
|
273093
276224
|
});
|
|
273094
276225
|
});
|
|
273095
276226
|
|
|
276227
|
+
var _wait = __webpack_require__(96649);
|
|
276228
|
+
|
|
276229
|
+
Object.keys(_wait).forEach(function (key) {
|
|
276230
|
+
if (key === "default" || key === "__esModule") return;
|
|
276231
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
276232
|
+
if (key in exports && exports[key] === _wait[key]) return;
|
|
276233
|
+
Object.defineProperty(exports, key, {
|
|
276234
|
+
enumerable: true,
|
|
276235
|
+
get: function () {
|
|
276236
|
+
return _wait[key];
|
|
276237
|
+
}
|
|
276238
|
+
});
|
|
276239
|
+
});
|
|
276240
|
+
|
|
276241
|
+
var _emptyDir = __webpack_require__(72321);
|
|
276242
|
+
|
|
276243
|
+
Object.keys(_emptyDir).forEach(function (key) {
|
|
276244
|
+
if (key === "default" || key === "__esModule") return;
|
|
276245
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
276246
|
+
if (key in exports && exports[key] === _emptyDir[key]) return;
|
|
276247
|
+
Object.defineProperty(exports, key, {
|
|
276248
|
+
enumerable: true,
|
|
276249
|
+
get: function () {
|
|
276250
|
+
return _emptyDir[key];
|
|
276251
|
+
}
|
|
276252
|
+
});
|
|
276253
|
+
});
|
|
276254
|
+
|
|
273096
276255
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
273097
276256
|
|
|
273098
276257
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -273835,13 +276994,15 @@ const prettyInstructions = (appContext, config) => {
|
|
|
273835
276994
|
const {
|
|
273836
276995
|
entrypoints,
|
|
273837
276996
|
serverRoutes,
|
|
273838
|
-
port
|
|
276997
|
+
port,
|
|
276998
|
+
existSrc,
|
|
276999
|
+
checkedEntries
|
|
273839
277000
|
} = appContext;
|
|
273840
277001
|
const urls = getAddressUrls(config.dev.https && (0, _is.isDev)() ? 'https' : 'http', port);
|
|
273841
|
-
const routes = serverRoutes.filter(route => route.entryName);
|
|
277002
|
+
const routes = existSrc ? serverRoutes.filter(route => route.entryName) : serverRoutes;
|
|
273842
277003
|
let message = 'App running at:\n\n';
|
|
273843
277004
|
|
|
273844
|
-
if (isSingleEntry(entrypoints)) {
|
|
277005
|
+
if (isSingleEntry(entrypoints) || !existSrc) {
|
|
273845
277006
|
message += urls.map(({
|
|
273846
277007
|
type,
|
|
273847
277008
|
url
|
|
@@ -273855,11 +277016,19 @@ const prettyInstructions = (appContext, config) => {
|
|
|
273855
277016
|
message += ` ${_chalk.default.bold(`> ${type}`)}\n`;
|
|
273856
277017
|
routes.forEach(({
|
|
273857
277018
|
entryName,
|
|
273858
|
-
urlPath
|
|
277019
|
+
urlPath,
|
|
277020
|
+
isSSR
|
|
273859
277021
|
}) => {
|
|
273860
|
-
|
|
277022
|
+
if (!checkedEntries.includes(entryName)) {
|
|
277023
|
+
return;
|
|
277024
|
+
}
|
|
277025
|
+
|
|
277026
|
+
message += ` ${_chalk.default.yellowBright(isSSR ? 'λ' : '○')} ${_chalk.default.yellowBright(entryName.padEnd(maxNameLength + 8))}${_chalk.default.cyanBright(normalizeUrl(`${url}/${urlPath}`))}\n`;
|
|
273861
277027
|
});
|
|
273862
277028
|
});
|
|
277029
|
+
message += '\n';
|
|
277030
|
+
message += _chalk.default.cyanBright(' λ (Server) server-side renders at runtime\n');
|
|
277031
|
+
message += _chalk.default.cyanBright(' ○ (Static) client-side rendered as static HTML\n');
|
|
273863
277032
|
}
|
|
273864
277033
|
|
|
273865
277034
|
return message;
|
|
@@ -273924,8 +277093,6 @@ function printBuildError(err) {
|
|
|
273924
277093
|
|
|
273925
277094
|
_logger.logger.log();
|
|
273926
277095
|
}
|
|
273927
|
-
|
|
273928
|
-
;
|
|
273929
277096
|
/* eslint-enable */
|
|
273930
277097
|
|
|
273931
277098
|
/***/ }),
|
|
@@ -274065,6 +277232,25 @@ exports.createRuntimeExportsUtils = createRuntimeExportsUtils;
|
|
|
274065
277232
|
|
|
274066
277233
|
/***/ }),
|
|
274067
277234
|
|
|
277235
|
+
/***/ 96649:
|
|
277236
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
277237
|
+
|
|
277238
|
+
"use strict";
|
|
277239
|
+
|
|
277240
|
+
|
|
277241
|
+
Object.defineProperty(exports, "__esModule", ({
|
|
277242
|
+
value: true
|
|
277243
|
+
}));
|
|
277244
|
+
exports.wait = void 0;
|
|
277245
|
+
|
|
277246
|
+
const wait = (time = 0) => new Promise(resolve => {
|
|
277247
|
+
setTimeout(resolve, time);
|
|
277248
|
+
});
|
|
277249
|
+
|
|
277250
|
+
exports.wait = wait;
|
|
277251
|
+
|
|
277252
|
+
/***/ }),
|
|
277253
|
+
|
|
274068
277254
|
/***/ 31116:
|
|
274069
277255
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
274070
277256
|
|
|
@@ -281096,6 +284282,9 @@ module.exports = JSON.parse('{"v0.8":{"start":"2012-06-25","end":"2014-07-31"},"
|
|
|
281096
284282
|
/******/ return module.exports;
|
|
281097
284283
|
/******/ }
|
|
281098
284284
|
/******/
|
|
284285
|
+
/******/ // expose the module cache
|
|
284286
|
+
/******/ __webpack_require__.c = __webpack_module_cache__;
|
|
284287
|
+
/******/
|
|
281099
284288
|
/************************************************************************/
|
|
281100
284289
|
/******/ /* webpack/runtime/define property getters */
|
|
281101
284290
|
/******/ (() => {
|
|
@@ -281135,113 +284324,12 @@ module.exports = JSON.parse('{"v0.8":{"start":"2012-06-25","end":"2014-07-31"},"
|
|
|
281135
284324
|
/******/ })();
|
|
281136
284325
|
/******/
|
|
281137
284326
|
/************************************************************************/
|
|
281138
|
-
|
|
281139
|
-
//
|
|
281140
|
-
|
|
281141
|
-
|
|
281142
|
-
var
|
|
281143
|
-
|
|
281144
|
-
|
|
281145
|
-
Object.defineProperty(exports, "__esModule", ({
|
|
281146
|
-
value: true
|
|
281147
|
-
}));
|
|
281148
|
-
exports["default"] = void 0;
|
|
281149
|
-
|
|
281150
|
-
var _path = _interopRequireDefault(__webpack_require__(71017));
|
|
281151
|
-
|
|
281152
|
-
var _codesmithApiApp = __webpack_require__(83028);
|
|
281153
|
-
|
|
281154
|
-
var _codesmithApiJson = __webpack_require__(54517);
|
|
281155
|
-
|
|
281156
|
-
var _generatorCommon = __webpack_require__(50828);
|
|
281157
|
-
|
|
281158
|
-
var _generatorUtils = __webpack_require__(89489);
|
|
281159
|
-
|
|
281160
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
281161
|
-
|
|
281162
|
-
const handleTemplateFile = async (context, generator) => {
|
|
281163
|
-
const jsonAPI = new _codesmithApiJson.JsonAPI(generator);
|
|
281164
|
-
const {
|
|
281165
|
-
devDependencies,
|
|
281166
|
-
dependencies,
|
|
281167
|
-
peerDependencies,
|
|
281168
|
-
appendTypeContent,
|
|
281169
|
-
sourceTypeFile
|
|
281170
|
-
} = context.config;
|
|
281171
|
-
const setJSON = {};
|
|
281172
|
-
Object.keys(devDependencies || {}).forEach(key => {
|
|
281173
|
-
setJSON[`devDependencies.${key}`] = devDependencies[key];
|
|
281174
|
-
});
|
|
281175
|
-
Object.keys(dependencies || {}).forEach(key => {
|
|
281176
|
-
setJSON[`dependencies.${key}`] = dependencies[key];
|
|
281177
|
-
});
|
|
281178
|
-
Object.keys(peerDependencies || {}).forEach(key => {
|
|
281179
|
-
setJSON[`peerDependencies.${key}`] = peerDependencies[key];
|
|
281180
|
-
});
|
|
281181
|
-
|
|
281182
|
-
if (Object.keys(setJSON).length > 0) {
|
|
281183
|
-
await jsonAPI.update(context.materials.default.get(`package.json`), {
|
|
281184
|
-
query: {},
|
|
281185
|
-
update: {
|
|
281186
|
-
$set: setJSON
|
|
281187
|
-
}
|
|
281188
|
-
});
|
|
281189
|
-
}
|
|
281190
|
-
|
|
281191
|
-
if (appendTypeContent) {
|
|
281192
|
-
const appDir = context.materials.default.basePath;
|
|
281193
|
-
|
|
281194
|
-
const typePath = _path.default.join(appDir, 'src', sourceTypeFile || 'modern-app-env.d.ts');
|
|
281195
|
-
|
|
281196
|
-
if (_generatorUtils.fs.existsSync(typePath)) {
|
|
281197
|
-
const npmrc = _generatorUtils.fs.readFileSync(typePath, 'utf-8');
|
|
281198
|
-
|
|
281199
|
-
if (!npmrc.includes(appendTypeContent)) {
|
|
281200
|
-
_generatorUtils.fs.writeFileSync(typePath, `${npmrc}${appendTypeContent}\n`, 'utf-8');
|
|
281201
|
-
}
|
|
281202
|
-
} else {
|
|
281203
|
-
_generatorUtils.fs.ensureFileSync(typePath);
|
|
281204
|
-
|
|
281205
|
-
_generatorUtils.fs.writeFileSync(typePath, appendTypeContent, 'utf-8');
|
|
281206
|
-
}
|
|
281207
|
-
}
|
|
281208
|
-
};
|
|
281209
|
-
|
|
281210
|
-
var _default = async (context, generator) => {
|
|
281211
|
-
const appApi = new _codesmithApiApp.AppAPI(context, generator);
|
|
281212
|
-
const {
|
|
281213
|
-
locale
|
|
281214
|
-
} = context.config;
|
|
281215
|
-
|
|
281216
|
-
_generatorCommon.i18n.changeLanguage({
|
|
281217
|
-
locale
|
|
281218
|
-
});
|
|
281219
|
-
|
|
281220
|
-
appApi.i18n.changeLanguage({
|
|
281221
|
-
locale
|
|
281222
|
-
});
|
|
281223
|
-
|
|
281224
|
-
if (!(await appApi.checkEnvironment())) {
|
|
281225
|
-
// eslint-disable-next-line no-process-exit
|
|
281226
|
-
process.exit(1);
|
|
281227
|
-
}
|
|
281228
|
-
|
|
281229
|
-
generator.logger.debug(`start run @modern-js/dependence-generator`);
|
|
281230
|
-
generator.logger.debug(`context=${JSON.stringify(context)}`);
|
|
281231
|
-
generator.logger.debug(`context.data=${JSON.stringify(context.data)}`);
|
|
281232
|
-
await handleTemplateFile(context, generator);
|
|
281233
|
-
|
|
281234
|
-
if (!context.config.isSubGenerator) {
|
|
281235
|
-
await appApi.runInstall();
|
|
281236
|
-
appApi.showSuccessInfo();
|
|
281237
|
-
}
|
|
281238
|
-
|
|
281239
|
-
generator.logger.debug(`forge @modern-js/dependence-generator succeed `);
|
|
281240
|
-
};
|
|
281241
|
-
|
|
281242
|
-
exports["default"] = _default;
|
|
281243
|
-
})();
|
|
281244
|
-
|
|
281245
|
-
module.exports = __webpack_exports__;
|
|
284327
|
+
/******/
|
|
284328
|
+
/******/ // module cache are used so entry inlining is disabled
|
|
284329
|
+
/******/ // startup
|
|
284330
|
+
/******/ // Load entry module and return exports
|
|
284331
|
+
/******/ var __webpack_exports__ = __webpack_require__(34701);
|
|
284332
|
+
/******/ module.exports = __webpack_exports__;
|
|
284333
|
+
/******/
|
|
281246
284334
|
/******/ })()
|
|
281247
284335
|
;
|