@kubb/core 2.12.4 → 2.12.6
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/{chunk-KHDN54K7.js → chunk-2F7E62RD.js} +1 -6
- package/dist/{chunk-KHDN54K7.js.map → chunk-2F7E62RD.js.map} +1 -1
- package/dist/{chunk-VEW4PGF3.cjs → chunk-3NPJUYXJ.cjs} +4 -4
- package/dist/{chunk-HCCIKTCT.js → chunk-4ARKZPSY.js} +1 -6
- package/dist/{chunk-HCCIKTCT.js.map → chunk-4ARKZPSY.js.map} +1 -1
- package/dist/{chunk-P5JZAH44.js → chunk-5PLDNXZK.js} +1 -6
- package/dist/{chunk-P5JZAH44.js.map → chunk-5PLDNXZK.js.map} +1 -1
- package/dist/{chunk-TDN4N77Q.cjs → chunk-6XBPOTJN.cjs} +22 -89
- package/dist/chunk-6XBPOTJN.cjs.map +1 -0
- package/dist/{chunk-WBPIU73P.cjs → chunk-FJJL4FXB.cjs} +14 -14
- package/dist/{chunk-WBPIU73P.cjs.map → chunk-FJJL4FXB.cjs.map} +1 -1
- package/dist/{chunk-34EEUDMU.js → chunk-GBVPADCA.js} +2 -7
- package/dist/{chunk-34EEUDMU.js.map → chunk-GBVPADCA.js.map} +1 -1
- package/dist/{chunk-B74BR46M.cjs → chunk-GOCMZM5Z.cjs} +5 -5
- package/dist/chunk-J6F7QWGK.cjs +19 -0
- package/dist/{chunk-WUHRZLUP.js → chunk-JLT7YQF5.js} +4 -11
- package/dist/chunk-JLT7YQF5.js.map +1 -0
- package/dist/{chunk-O7B2DCFM.js → chunk-JYAFGT4E.js} +6 -89
- package/dist/chunk-JYAFGT4E.js.map +1 -0
- package/dist/{chunk-I6E2RETY.cjs → chunk-N32RRGTX.cjs} +5 -5
- package/dist/{chunk-CIEHBU2S.cjs → chunk-N7GFIV72.cjs} +3 -3
- package/dist/{chunk-S7MSMKRT.cjs → chunk-NET6KXFF.cjs} +88 -88
- package/dist/{chunk-4ZVQSQBZ.js → chunk-NLZ2T737.js} +1 -6
- package/dist/{chunk-4ZVQSQBZ.js.map → chunk-NLZ2T737.js.map} +1 -1
- package/dist/{chunk-2Y4CDLGB.js → chunk-PVJACA4A.js} +1 -6
- package/dist/{chunk-2Y4CDLGB.js.map → chunk-PVJACA4A.js.map} +1 -1
- package/dist/{chunk-Y4IJPEUV.cjs → chunk-QAG3ZNOM.cjs} +3 -3
- package/dist/{chunk-Y4IJPEUV.cjs.map → chunk-QAG3ZNOM.cjs.map} +1 -1
- package/dist/{chunk-HKRFUPZL.cjs → chunk-SEIE6FAK.cjs} +7 -7
- package/dist/chunk-Z4BLTVTB.js +30 -0
- package/dist/chunk-Z4BLTVTB.js.map +1 -0
- package/dist/fs.cjs +7 -7
- package/dist/fs.js +4 -9
- package/dist/fs.js.map +1 -1
- package/dist/index.cjs +300 -1002
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +15 -743
- package/dist/index.js.map +1 -1
- package/dist/logger.cjs +5 -5
- package/dist/logger.js +3 -3
- package/dist/mocks.cjs +7 -7
- package/dist/mocks.js +3 -6
- package/dist/mocks.js.map +1 -1
- package/dist/transformers.cjs +5 -10
- package/dist/transformers.d.cts +4 -14
- package/dist/transformers.d.ts +4 -14
- package/dist/transformers.js +4 -9
- package/dist/utils.cjs +26 -26
- package/dist/utils.js +5 -13
- package/dist/utils.js.map +1 -1
- package/package.json +11 -17
- package/src/FileManager.ts +5 -6
- package/src/PackageManager.ts +0 -2
- package/src/PluginManager.ts +0 -3
- package/src/transformers/escape.ts +1 -1
- package/src/transformers/index.ts +2 -8
- package/src/utils/EventEmitter.ts +0 -1
- package/src/utils/TreeNode.ts +0 -1
- package/src/utils/executeStrategies.ts +0 -2
- package/dist/chunk-BOZP7LG7.cjs +0 -19
- package/dist/chunk-FBJJW6ME.js +0 -68
- package/dist/chunk-FBJJW6ME.js.map +0 -1
- package/dist/chunk-O7B2DCFM.js.map +0 -1
- package/dist/chunk-TDN4N77Q.cjs.map +0 -1
- package/dist/chunk-WUHRZLUP.js.map +0 -1
- package/src/transformers/toNumber.ts +0 -12
- /package/dist/{chunk-VEW4PGF3.cjs.map → chunk-3NPJUYXJ.cjs.map} +0 -0
- /package/dist/{chunk-B74BR46M.cjs.map → chunk-GOCMZM5Z.cjs.map} +0 -0
- /package/dist/{chunk-BOZP7LG7.cjs.map → chunk-J6F7QWGK.cjs.map} +0 -0
- /package/dist/{chunk-I6E2RETY.cjs.map → chunk-N32RRGTX.cjs.map} +0 -0
- /package/dist/{chunk-CIEHBU2S.cjs.map → chunk-N7GFIV72.cjs.map} +0 -0
- /package/dist/{chunk-S7MSMKRT.cjs.map → chunk-NET6KXFF.cjs.map} +0 -0
- /package/dist/{chunk-HKRFUPZL.cjs.map → chunk-SEIE6FAK.cjs.map} +0 -0
package/dist/index.cjs
CHANGED
|
@@ -3,34 +3,34 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk6XBPOTJNcjs = require('./chunk-6XBPOTJN.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkSEIE6FAKcjs = require('./chunk-SEIE6FAK.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkN7GFIV72cjs = require('./chunk-N7GFIV72.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkFJJL4FXBcjs = require('./chunk-FJJL4FXB.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkJ6F7QWGKcjs = require('./chunk-J6F7QWGK.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
27
|
-
require('./chunk-
|
|
26
|
+
var _chunkN32RRGTXcjs = require('./chunk-N32RRGTX.cjs');
|
|
27
|
+
require('./chunk-3NPJUYXJ.cjs');
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
33
|
-
require('./chunk-
|
|
32
|
+
var _chunkGOCMZM5Zcjs = require('./chunk-GOCMZM5Z.cjs');
|
|
33
|
+
require('./chunk-NET6KXFF.cjs');
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
|
|
@@ -41,716 +41,13 @@ require('./chunk-S7MSMKRT.cjs');
|
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
var
|
|
45
|
-
|
|
46
|
-
// ../../node_modules/.pnpm/lodash.isequal@4.5.0/node_modules/lodash.isequal/index.js
|
|
47
|
-
var require_lodash = _chunkY4IJPEUVcjs.__commonJS.call(void 0, {
|
|
48
|
-
"../../node_modules/.pnpm/lodash.isequal@4.5.0/node_modules/lodash.isequal/index.js"(exports, module) {
|
|
49
|
-
"use strict";
|
|
50
|
-
_chunkY4IJPEUVcjs.init_cjs_shims.call(void 0, );
|
|
51
|
-
var LARGE_ARRAY_SIZE = 200;
|
|
52
|
-
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
53
|
-
var COMPARE_PARTIAL_FLAG = 1;
|
|
54
|
-
var COMPARE_UNORDERED_FLAG = 2;
|
|
55
|
-
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
56
|
-
var argsTag = "[object Arguments]";
|
|
57
|
-
var arrayTag = "[object Array]";
|
|
58
|
-
var asyncTag = "[object AsyncFunction]";
|
|
59
|
-
var boolTag = "[object Boolean]";
|
|
60
|
-
var dateTag = "[object Date]";
|
|
61
|
-
var errorTag = "[object Error]";
|
|
62
|
-
var funcTag = "[object Function]";
|
|
63
|
-
var genTag = "[object GeneratorFunction]";
|
|
64
|
-
var mapTag = "[object Map]";
|
|
65
|
-
var numberTag = "[object Number]";
|
|
66
|
-
var nullTag = "[object Null]";
|
|
67
|
-
var objectTag = "[object Object]";
|
|
68
|
-
var promiseTag = "[object Promise]";
|
|
69
|
-
var proxyTag = "[object Proxy]";
|
|
70
|
-
var regexpTag = "[object RegExp]";
|
|
71
|
-
var setTag = "[object Set]";
|
|
72
|
-
var stringTag = "[object String]";
|
|
73
|
-
var symbolTag = "[object Symbol]";
|
|
74
|
-
var undefinedTag = "[object Undefined]";
|
|
75
|
-
var weakMapTag = "[object WeakMap]";
|
|
76
|
-
var arrayBufferTag = "[object ArrayBuffer]";
|
|
77
|
-
var dataViewTag = "[object DataView]";
|
|
78
|
-
var float32Tag = "[object Float32Array]";
|
|
79
|
-
var float64Tag = "[object Float64Array]";
|
|
80
|
-
var int8Tag = "[object Int8Array]";
|
|
81
|
-
var int16Tag = "[object Int16Array]";
|
|
82
|
-
var int32Tag = "[object Int32Array]";
|
|
83
|
-
var uint8Tag = "[object Uint8Array]";
|
|
84
|
-
var uint8ClampedTag = "[object Uint8ClampedArray]";
|
|
85
|
-
var uint16Tag = "[object Uint16Array]";
|
|
86
|
-
var uint32Tag = "[object Uint32Array]";
|
|
87
|
-
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
88
|
-
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
89
|
-
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
90
|
-
var typedArrayTags = {};
|
|
91
|
-
typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
|
|
92
|
-
typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false;
|
|
93
|
-
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
94
|
-
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
95
|
-
var root = freeGlobal || freeSelf || Function("return this")();
|
|
96
|
-
var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
97
|
-
var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
|
|
98
|
-
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
99
|
-
var freeProcess = moduleExports && freeGlobal.process;
|
|
100
|
-
var nodeUtil = function() {
|
|
101
|
-
try {
|
|
102
|
-
return freeProcess && freeProcess.binding && freeProcess.binding("util");
|
|
103
|
-
} catch (e) {
|
|
104
|
-
}
|
|
105
|
-
}();
|
|
106
|
-
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
107
|
-
function arrayFilter(array, predicate) {
|
|
108
|
-
var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];
|
|
109
|
-
while (++index < length) {
|
|
110
|
-
var value = array[index];
|
|
111
|
-
if (predicate(value, index, array)) {
|
|
112
|
-
result[resIndex++] = value;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
return result;
|
|
116
|
-
}
|
|
117
|
-
function arrayPush(array, values) {
|
|
118
|
-
var index = -1, length = values.length, offset = array.length;
|
|
119
|
-
while (++index < length) {
|
|
120
|
-
array[offset + index] = values[index];
|
|
121
|
-
}
|
|
122
|
-
return array;
|
|
123
|
-
}
|
|
124
|
-
function arraySome(array, predicate) {
|
|
125
|
-
var index = -1, length = array == null ? 0 : array.length;
|
|
126
|
-
while (++index < length) {
|
|
127
|
-
if (predicate(array[index], index, array)) {
|
|
128
|
-
return true;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
return false;
|
|
132
|
-
}
|
|
133
|
-
function baseTimes(n, iteratee) {
|
|
134
|
-
var index = -1, result = Array(n);
|
|
135
|
-
while (++index < n) {
|
|
136
|
-
result[index] = iteratee(index);
|
|
137
|
-
}
|
|
138
|
-
return result;
|
|
139
|
-
}
|
|
140
|
-
function baseUnary(func) {
|
|
141
|
-
return function(value) {
|
|
142
|
-
return func(value);
|
|
143
|
-
};
|
|
144
|
-
}
|
|
145
|
-
function cacheHas(cache, key) {
|
|
146
|
-
return cache.has(key);
|
|
147
|
-
}
|
|
148
|
-
function getValue(object, key) {
|
|
149
|
-
return object == null ? void 0 : object[key];
|
|
150
|
-
}
|
|
151
|
-
function mapToArray(map) {
|
|
152
|
-
var index = -1, result = Array(map.size);
|
|
153
|
-
map.forEach(function(value, key) {
|
|
154
|
-
result[++index] = [key, value];
|
|
155
|
-
});
|
|
156
|
-
return result;
|
|
157
|
-
}
|
|
158
|
-
function overArg(func, transform) {
|
|
159
|
-
return function(arg) {
|
|
160
|
-
return func(transform(arg));
|
|
161
|
-
};
|
|
162
|
-
}
|
|
163
|
-
function setToArray(set) {
|
|
164
|
-
var index = -1, result = Array(set.size);
|
|
165
|
-
set.forEach(function(value) {
|
|
166
|
-
result[++index] = value;
|
|
167
|
-
});
|
|
168
|
-
return result;
|
|
169
|
-
}
|
|
170
|
-
var arrayProto = Array.prototype;
|
|
171
|
-
var funcProto = Function.prototype;
|
|
172
|
-
var objectProto = Object.prototype;
|
|
173
|
-
var coreJsData = root["__core-js_shared__"];
|
|
174
|
-
var funcToString = funcProto.toString;
|
|
175
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
176
|
-
var maskSrcKey = function() {
|
|
177
|
-
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
|
|
178
|
-
return uid ? "Symbol(src)_1." + uid : "";
|
|
179
|
-
}();
|
|
180
|
-
var nativeObjectToString = objectProto.toString;
|
|
181
|
-
var reIsNative = RegExp(
|
|
182
|
-
"^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
183
|
-
);
|
|
184
|
-
var Buffer = moduleExports ? root.Buffer : void 0;
|
|
185
|
-
var Symbol2 = root.Symbol;
|
|
186
|
-
var Uint8Array = root.Uint8Array;
|
|
187
|
-
var propertyIsEnumerable = objectProto.propertyIsEnumerable;
|
|
188
|
-
var splice = arrayProto.splice;
|
|
189
|
-
var symToStringTag = Symbol2 ? Symbol2.toStringTag : void 0;
|
|
190
|
-
var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
191
|
-
var nativeIsBuffer = Buffer ? Buffer.isBuffer : void 0;
|
|
192
|
-
var nativeKeys = overArg(Object.keys, Object);
|
|
193
|
-
var DataView = getNative(root, "DataView");
|
|
194
|
-
var Map2 = getNative(root, "Map");
|
|
195
|
-
var Promise2 = getNative(root, "Promise");
|
|
196
|
-
var Set2 = getNative(root, "Set");
|
|
197
|
-
var WeakMap2 = getNative(root, "WeakMap");
|
|
198
|
-
var nativeCreate = getNative(Object, "create");
|
|
199
|
-
var dataViewCtorString = toSource(DataView);
|
|
200
|
-
var mapCtorString = toSource(Map2);
|
|
201
|
-
var promiseCtorString = toSource(Promise2);
|
|
202
|
-
var setCtorString = toSource(Set2);
|
|
203
|
-
var weakMapCtorString = toSource(WeakMap2);
|
|
204
|
-
var symbolProto = Symbol2 ? Symbol2.prototype : void 0;
|
|
205
|
-
var symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
|
|
206
|
-
function Hash(entries) {
|
|
207
|
-
var index = -1, length = entries == null ? 0 : entries.length;
|
|
208
|
-
this.clear();
|
|
209
|
-
while (++index < length) {
|
|
210
|
-
var entry = entries[index];
|
|
211
|
-
this.set(entry[0], entry[1]);
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
function hashClear() {
|
|
215
|
-
this.__data__ = nativeCreate ? nativeCreate(null) : {};
|
|
216
|
-
this.size = 0;
|
|
217
|
-
}
|
|
218
|
-
function hashDelete(key) {
|
|
219
|
-
var result = this.has(key) && delete this.__data__[key];
|
|
220
|
-
this.size -= result ? 1 : 0;
|
|
221
|
-
return result;
|
|
222
|
-
}
|
|
223
|
-
function hashGet(key) {
|
|
224
|
-
var data = this.__data__;
|
|
225
|
-
if (nativeCreate) {
|
|
226
|
-
var result = data[key];
|
|
227
|
-
return result === HASH_UNDEFINED ? void 0 : result;
|
|
228
|
-
}
|
|
229
|
-
return hasOwnProperty.call(data, key) ? data[key] : void 0;
|
|
230
|
-
}
|
|
231
|
-
function hashHas(key) {
|
|
232
|
-
var data = this.__data__;
|
|
233
|
-
return nativeCreate ? data[key] !== void 0 : hasOwnProperty.call(data, key);
|
|
234
|
-
}
|
|
235
|
-
function hashSet(key, value) {
|
|
236
|
-
var data = this.__data__;
|
|
237
|
-
this.size += this.has(key) ? 0 : 1;
|
|
238
|
-
data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value;
|
|
239
|
-
return this;
|
|
240
|
-
}
|
|
241
|
-
Hash.prototype.clear = hashClear;
|
|
242
|
-
Hash.prototype["delete"] = hashDelete;
|
|
243
|
-
Hash.prototype.get = hashGet;
|
|
244
|
-
Hash.prototype.has = hashHas;
|
|
245
|
-
Hash.prototype.set = hashSet;
|
|
246
|
-
function ListCache(entries) {
|
|
247
|
-
var index = -1, length = entries == null ? 0 : entries.length;
|
|
248
|
-
this.clear();
|
|
249
|
-
while (++index < length) {
|
|
250
|
-
var entry = entries[index];
|
|
251
|
-
this.set(entry[0], entry[1]);
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
function listCacheClear() {
|
|
255
|
-
this.__data__ = [];
|
|
256
|
-
this.size = 0;
|
|
257
|
-
}
|
|
258
|
-
function listCacheDelete(key) {
|
|
259
|
-
var data = this.__data__, index = assocIndexOf(data, key);
|
|
260
|
-
if (index < 0) {
|
|
261
|
-
return false;
|
|
262
|
-
}
|
|
263
|
-
var lastIndex = data.length - 1;
|
|
264
|
-
if (index == lastIndex) {
|
|
265
|
-
data.pop();
|
|
266
|
-
} else {
|
|
267
|
-
splice.call(data, index, 1);
|
|
268
|
-
}
|
|
269
|
-
--this.size;
|
|
270
|
-
return true;
|
|
271
|
-
}
|
|
272
|
-
function listCacheGet(key) {
|
|
273
|
-
var data = this.__data__, index = assocIndexOf(data, key);
|
|
274
|
-
return index < 0 ? void 0 : data[index][1];
|
|
275
|
-
}
|
|
276
|
-
function listCacheHas(key) {
|
|
277
|
-
return assocIndexOf(this.__data__, key) > -1;
|
|
278
|
-
}
|
|
279
|
-
function listCacheSet(key, value) {
|
|
280
|
-
var data = this.__data__, index = assocIndexOf(data, key);
|
|
281
|
-
if (index < 0) {
|
|
282
|
-
++this.size;
|
|
283
|
-
data.push([key, value]);
|
|
284
|
-
} else {
|
|
285
|
-
data[index][1] = value;
|
|
286
|
-
}
|
|
287
|
-
return this;
|
|
288
|
-
}
|
|
289
|
-
ListCache.prototype.clear = listCacheClear;
|
|
290
|
-
ListCache.prototype["delete"] = listCacheDelete;
|
|
291
|
-
ListCache.prototype.get = listCacheGet;
|
|
292
|
-
ListCache.prototype.has = listCacheHas;
|
|
293
|
-
ListCache.prototype.set = listCacheSet;
|
|
294
|
-
function MapCache(entries) {
|
|
295
|
-
var index = -1, length = entries == null ? 0 : entries.length;
|
|
296
|
-
this.clear();
|
|
297
|
-
while (++index < length) {
|
|
298
|
-
var entry = entries[index];
|
|
299
|
-
this.set(entry[0], entry[1]);
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
function mapCacheClear() {
|
|
303
|
-
this.size = 0;
|
|
304
|
-
this.__data__ = {
|
|
305
|
-
"hash": new Hash(),
|
|
306
|
-
"map": new (Map2 || ListCache)(),
|
|
307
|
-
"string": new Hash()
|
|
308
|
-
};
|
|
309
|
-
}
|
|
310
|
-
function mapCacheDelete(key) {
|
|
311
|
-
var result = getMapData(this, key)["delete"](key);
|
|
312
|
-
this.size -= result ? 1 : 0;
|
|
313
|
-
return result;
|
|
314
|
-
}
|
|
315
|
-
function mapCacheGet(key) {
|
|
316
|
-
return getMapData(this, key).get(key);
|
|
317
|
-
}
|
|
318
|
-
function mapCacheHas(key) {
|
|
319
|
-
return getMapData(this, key).has(key);
|
|
320
|
-
}
|
|
321
|
-
function mapCacheSet(key, value) {
|
|
322
|
-
var data = getMapData(this, key), size = data.size;
|
|
323
|
-
data.set(key, value);
|
|
324
|
-
this.size += data.size == size ? 0 : 1;
|
|
325
|
-
return this;
|
|
326
|
-
}
|
|
327
|
-
MapCache.prototype.clear = mapCacheClear;
|
|
328
|
-
MapCache.prototype["delete"] = mapCacheDelete;
|
|
329
|
-
MapCache.prototype.get = mapCacheGet;
|
|
330
|
-
MapCache.prototype.has = mapCacheHas;
|
|
331
|
-
MapCache.prototype.set = mapCacheSet;
|
|
332
|
-
function SetCache(values) {
|
|
333
|
-
var index = -1, length = values == null ? 0 : values.length;
|
|
334
|
-
this.__data__ = new MapCache();
|
|
335
|
-
while (++index < length) {
|
|
336
|
-
this.add(values[index]);
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
function setCacheAdd(value) {
|
|
340
|
-
this.__data__.set(value, HASH_UNDEFINED);
|
|
341
|
-
return this;
|
|
342
|
-
}
|
|
343
|
-
function setCacheHas(value) {
|
|
344
|
-
return this.__data__.has(value);
|
|
345
|
-
}
|
|
346
|
-
SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
|
|
347
|
-
SetCache.prototype.has = setCacheHas;
|
|
348
|
-
function Stack(entries) {
|
|
349
|
-
var data = this.__data__ = new ListCache(entries);
|
|
350
|
-
this.size = data.size;
|
|
351
|
-
}
|
|
352
|
-
function stackClear() {
|
|
353
|
-
this.__data__ = new ListCache();
|
|
354
|
-
this.size = 0;
|
|
355
|
-
}
|
|
356
|
-
function stackDelete(key) {
|
|
357
|
-
var data = this.__data__, result = data["delete"](key);
|
|
358
|
-
this.size = data.size;
|
|
359
|
-
return result;
|
|
360
|
-
}
|
|
361
|
-
function stackGet(key) {
|
|
362
|
-
return this.__data__.get(key);
|
|
363
|
-
}
|
|
364
|
-
function stackHas(key) {
|
|
365
|
-
return this.__data__.has(key);
|
|
366
|
-
}
|
|
367
|
-
function stackSet(key, value) {
|
|
368
|
-
var data = this.__data__;
|
|
369
|
-
if (data instanceof ListCache) {
|
|
370
|
-
var pairs = data.__data__;
|
|
371
|
-
if (!Map2 || pairs.length < LARGE_ARRAY_SIZE - 1) {
|
|
372
|
-
pairs.push([key, value]);
|
|
373
|
-
this.size = ++data.size;
|
|
374
|
-
return this;
|
|
375
|
-
}
|
|
376
|
-
data = this.__data__ = new MapCache(pairs);
|
|
377
|
-
}
|
|
378
|
-
data.set(key, value);
|
|
379
|
-
this.size = data.size;
|
|
380
|
-
return this;
|
|
381
|
-
}
|
|
382
|
-
Stack.prototype.clear = stackClear;
|
|
383
|
-
Stack.prototype["delete"] = stackDelete;
|
|
384
|
-
Stack.prototype.get = stackGet;
|
|
385
|
-
Stack.prototype.has = stackHas;
|
|
386
|
-
Stack.prototype.set = stackSet;
|
|
387
|
-
function arrayLikeKeys(value, inherited) {
|
|
388
|
-
var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
|
|
389
|
-
for (var key in value) {
|
|
390
|
-
if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
391
|
-
(key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
392
|
-
isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
393
|
-
isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
|
|
394
|
-
isIndex(key, length)))) {
|
|
395
|
-
result.push(key);
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
return result;
|
|
399
|
-
}
|
|
400
|
-
function assocIndexOf(array, key) {
|
|
401
|
-
var length = array.length;
|
|
402
|
-
while (length--) {
|
|
403
|
-
if (eq(array[length][0], key)) {
|
|
404
|
-
return length;
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
return -1;
|
|
408
|
-
}
|
|
409
|
-
function baseGetAllKeys(object, keysFunc, symbolsFunc) {
|
|
410
|
-
var result = keysFunc(object);
|
|
411
|
-
return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
|
|
412
|
-
}
|
|
413
|
-
function baseGetTag(value) {
|
|
414
|
-
if (value == null) {
|
|
415
|
-
return value === void 0 ? undefinedTag : nullTag;
|
|
416
|
-
}
|
|
417
|
-
return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
|
|
418
|
-
}
|
|
419
|
-
function baseIsArguments(value) {
|
|
420
|
-
return isObjectLike(value) && baseGetTag(value) == argsTag;
|
|
421
|
-
}
|
|
422
|
-
function baseIsEqual(value, other, bitmask, customizer, stack) {
|
|
423
|
-
if (value === other) {
|
|
424
|
-
return true;
|
|
425
|
-
}
|
|
426
|
-
if (value == null || other == null || !isObjectLike(value) && !isObjectLike(other)) {
|
|
427
|
-
return value !== value && other !== other;
|
|
428
|
-
}
|
|
429
|
-
return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
|
|
430
|
-
}
|
|
431
|
-
function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
|
|
432
|
-
var objIsArr = isArray(object), othIsArr = isArray(other), objTag = objIsArr ? arrayTag : getTag(object), othTag = othIsArr ? arrayTag : getTag(other);
|
|
433
|
-
objTag = objTag == argsTag ? objectTag : objTag;
|
|
434
|
-
othTag = othTag == argsTag ? objectTag : othTag;
|
|
435
|
-
var objIsObj = objTag == objectTag, othIsObj = othTag == objectTag, isSameTag = objTag == othTag;
|
|
436
|
-
if (isSameTag && isBuffer(object)) {
|
|
437
|
-
if (!isBuffer(other)) {
|
|
438
|
-
return false;
|
|
439
|
-
}
|
|
440
|
-
objIsArr = true;
|
|
441
|
-
objIsObj = false;
|
|
442
|
-
}
|
|
443
|
-
if (isSameTag && !objIsObj) {
|
|
444
|
-
stack || (stack = new Stack());
|
|
445
|
-
return objIsArr || isTypedArray(object) ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
|
|
446
|
-
}
|
|
447
|
-
if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
|
|
448
|
-
var objIsWrapped = objIsObj && hasOwnProperty.call(object, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty.call(other, "__wrapped__");
|
|
449
|
-
if (objIsWrapped || othIsWrapped) {
|
|
450
|
-
var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other;
|
|
451
|
-
stack || (stack = new Stack());
|
|
452
|
-
return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
|
|
453
|
-
}
|
|
454
|
-
}
|
|
455
|
-
if (!isSameTag) {
|
|
456
|
-
return false;
|
|
457
|
-
}
|
|
458
|
-
stack || (stack = new Stack());
|
|
459
|
-
return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
|
|
460
|
-
}
|
|
461
|
-
function baseIsNative(value) {
|
|
462
|
-
if (!isObject(value) || isMasked(value)) {
|
|
463
|
-
return false;
|
|
464
|
-
}
|
|
465
|
-
var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
|
|
466
|
-
return pattern.test(toSource(value));
|
|
467
|
-
}
|
|
468
|
-
function baseIsTypedArray(value) {
|
|
469
|
-
return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
|
|
470
|
-
}
|
|
471
|
-
function baseKeys(object) {
|
|
472
|
-
if (!isPrototype(object)) {
|
|
473
|
-
return nativeKeys(object);
|
|
474
|
-
}
|
|
475
|
-
var result = [];
|
|
476
|
-
for (var key in Object(object)) {
|
|
477
|
-
if (hasOwnProperty.call(object, key) && key != "constructor") {
|
|
478
|
-
result.push(key);
|
|
479
|
-
}
|
|
480
|
-
}
|
|
481
|
-
return result;
|
|
482
|
-
}
|
|
483
|
-
function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
|
|
484
|
-
var isPartial = bitmask & COMPARE_PARTIAL_FLAG, arrLength = array.length, othLength = other.length;
|
|
485
|
-
if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
|
|
486
|
-
return false;
|
|
487
|
-
}
|
|
488
|
-
var stacked = stack.get(array);
|
|
489
|
-
if (stacked && stack.get(other)) {
|
|
490
|
-
return stacked == other;
|
|
491
|
-
}
|
|
492
|
-
var index = -1, result = true, seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache() : void 0;
|
|
493
|
-
stack.set(array, other);
|
|
494
|
-
stack.set(other, array);
|
|
495
|
-
while (++index < arrLength) {
|
|
496
|
-
var arrValue = array[index], othValue = other[index];
|
|
497
|
-
if (customizer) {
|
|
498
|
-
var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack);
|
|
499
|
-
}
|
|
500
|
-
if (compared !== void 0) {
|
|
501
|
-
if (compared) {
|
|
502
|
-
continue;
|
|
503
|
-
}
|
|
504
|
-
result = false;
|
|
505
|
-
break;
|
|
506
|
-
}
|
|
507
|
-
if (seen) {
|
|
508
|
-
if (!arraySome(other, function(othValue2, othIndex) {
|
|
509
|
-
if (!cacheHas(seen, othIndex) && (arrValue === othValue2 || equalFunc(arrValue, othValue2, bitmask, customizer, stack))) {
|
|
510
|
-
return seen.push(othIndex);
|
|
511
|
-
}
|
|
512
|
-
})) {
|
|
513
|
-
result = false;
|
|
514
|
-
break;
|
|
515
|
-
}
|
|
516
|
-
} else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
|
|
517
|
-
result = false;
|
|
518
|
-
break;
|
|
519
|
-
}
|
|
520
|
-
}
|
|
521
|
-
stack["delete"](array);
|
|
522
|
-
stack["delete"](other);
|
|
523
|
-
return result;
|
|
524
|
-
}
|
|
525
|
-
function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
|
|
526
|
-
switch (tag) {
|
|
527
|
-
case dataViewTag:
|
|
528
|
-
if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) {
|
|
529
|
-
return false;
|
|
530
|
-
}
|
|
531
|
-
object = object.buffer;
|
|
532
|
-
other = other.buffer;
|
|
533
|
-
case arrayBufferTag:
|
|
534
|
-
if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
|
|
535
|
-
return false;
|
|
536
|
-
}
|
|
537
|
-
return true;
|
|
538
|
-
case boolTag:
|
|
539
|
-
case dateTag:
|
|
540
|
-
case numberTag:
|
|
541
|
-
return eq(+object, +other);
|
|
542
|
-
case errorTag:
|
|
543
|
-
return object.name == other.name && object.message == other.message;
|
|
544
|
-
case regexpTag:
|
|
545
|
-
case stringTag:
|
|
546
|
-
return object == other + "";
|
|
547
|
-
case mapTag:
|
|
548
|
-
var convert = mapToArray;
|
|
549
|
-
case setTag:
|
|
550
|
-
var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
|
|
551
|
-
convert || (convert = setToArray);
|
|
552
|
-
if (object.size != other.size && !isPartial) {
|
|
553
|
-
return false;
|
|
554
|
-
}
|
|
555
|
-
var stacked = stack.get(object);
|
|
556
|
-
if (stacked) {
|
|
557
|
-
return stacked == other;
|
|
558
|
-
}
|
|
559
|
-
bitmask |= COMPARE_UNORDERED_FLAG;
|
|
560
|
-
stack.set(object, other);
|
|
561
|
-
var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
|
|
562
|
-
stack["delete"](object);
|
|
563
|
-
return result;
|
|
564
|
-
case symbolTag:
|
|
565
|
-
if (symbolValueOf) {
|
|
566
|
-
return symbolValueOf.call(object) == symbolValueOf.call(other);
|
|
567
|
-
}
|
|
568
|
-
}
|
|
569
|
-
return false;
|
|
570
|
-
}
|
|
571
|
-
function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
|
|
572
|
-
var isPartial = bitmask & COMPARE_PARTIAL_FLAG, objProps = getAllKeys(object), objLength = objProps.length, othProps = getAllKeys(other), othLength = othProps.length;
|
|
573
|
-
if (objLength != othLength && !isPartial) {
|
|
574
|
-
return false;
|
|
575
|
-
}
|
|
576
|
-
var index = objLength;
|
|
577
|
-
while (index--) {
|
|
578
|
-
var key = objProps[index];
|
|
579
|
-
if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
|
|
580
|
-
return false;
|
|
581
|
-
}
|
|
582
|
-
}
|
|
583
|
-
var stacked = stack.get(object);
|
|
584
|
-
if (stacked && stack.get(other)) {
|
|
585
|
-
return stacked == other;
|
|
586
|
-
}
|
|
587
|
-
var result = true;
|
|
588
|
-
stack.set(object, other);
|
|
589
|
-
stack.set(other, object);
|
|
590
|
-
var skipCtor = isPartial;
|
|
591
|
-
while (++index < objLength) {
|
|
592
|
-
key = objProps[index];
|
|
593
|
-
var objValue = object[key], othValue = other[key];
|
|
594
|
-
if (customizer) {
|
|
595
|
-
var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack);
|
|
596
|
-
}
|
|
597
|
-
if (!(compared === void 0 ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) {
|
|
598
|
-
result = false;
|
|
599
|
-
break;
|
|
600
|
-
}
|
|
601
|
-
skipCtor || (skipCtor = key == "constructor");
|
|
602
|
-
}
|
|
603
|
-
if (result && !skipCtor) {
|
|
604
|
-
var objCtor = object.constructor, othCtor = other.constructor;
|
|
605
|
-
if (objCtor != othCtor && ("constructor" in object && "constructor" in other) && !(typeof objCtor == "function" && objCtor instanceof objCtor && typeof othCtor == "function" && othCtor instanceof othCtor)) {
|
|
606
|
-
result = false;
|
|
607
|
-
}
|
|
608
|
-
}
|
|
609
|
-
stack["delete"](object);
|
|
610
|
-
stack["delete"](other);
|
|
611
|
-
return result;
|
|
612
|
-
}
|
|
613
|
-
function getAllKeys(object) {
|
|
614
|
-
return baseGetAllKeys(object, keys, getSymbols);
|
|
615
|
-
}
|
|
616
|
-
function getMapData(map, key) {
|
|
617
|
-
var data = map.__data__;
|
|
618
|
-
return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
|
619
|
-
}
|
|
620
|
-
function getNative(object, key) {
|
|
621
|
-
var value = getValue(object, key);
|
|
622
|
-
return baseIsNative(value) ? value : void 0;
|
|
623
|
-
}
|
|
624
|
-
function getRawTag(value) {
|
|
625
|
-
var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag];
|
|
626
|
-
try {
|
|
627
|
-
value[symToStringTag] = void 0;
|
|
628
|
-
var unmasked = true;
|
|
629
|
-
} catch (e) {
|
|
630
|
-
}
|
|
631
|
-
var result = nativeObjectToString.call(value);
|
|
632
|
-
if (unmasked) {
|
|
633
|
-
if (isOwn) {
|
|
634
|
-
value[symToStringTag] = tag;
|
|
635
|
-
} else {
|
|
636
|
-
delete value[symToStringTag];
|
|
637
|
-
}
|
|
638
|
-
}
|
|
639
|
-
return result;
|
|
640
|
-
}
|
|
641
|
-
var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
|
|
642
|
-
if (object == null) {
|
|
643
|
-
return [];
|
|
644
|
-
}
|
|
645
|
-
object = Object(object);
|
|
646
|
-
return arrayFilter(nativeGetSymbols(object), function(symbol) {
|
|
647
|
-
return propertyIsEnumerable.call(object, symbol);
|
|
648
|
-
});
|
|
649
|
-
};
|
|
650
|
-
var getTag = baseGetTag;
|
|
651
|
-
if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set2 && getTag(new Set2()) != setTag || WeakMap2 && getTag(new WeakMap2()) != weakMapTag) {
|
|
652
|
-
getTag = function(value) {
|
|
653
|
-
var result = baseGetTag(value), Ctor = result == objectTag ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : "";
|
|
654
|
-
if (ctorString) {
|
|
655
|
-
switch (ctorString) {
|
|
656
|
-
case dataViewCtorString:
|
|
657
|
-
return dataViewTag;
|
|
658
|
-
case mapCtorString:
|
|
659
|
-
return mapTag;
|
|
660
|
-
case promiseCtorString:
|
|
661
|
-
return promiseTag;
|
|
662
|
-
case setCtorString:
|
|
663
|
-
return setTag;
|
|
664
|
-
case weakMapCtorString:
|
|
665
|
-
return weakMapTag;
|
|
666
|
-
}
|
|
667
|
-
}
|
|
668
|
-
return result;
|
|
669
|
-
};
|
|
670
|
-
}
|
|
671
|
-
function isIndex(value, length) {
|
|
672
|
-
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
673
|
-
return !!length && (typeof value == "number" || reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
|
|
674
|
-
}
|
|
675
|
-
function isKeyable(value) {
|
|
676
|
-
var type = typeof value;
|
|
677
|
-
return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
|
|
678
|
-
}
|
|
679
|
-
function isMasked(func) {
|
|
680
|
-
return !!maskSrcKey && maskSrcKey in func;
|
|
681
|
-
}
|
|
682
|
-
function isPrototype(value) {
|
|
683
|
-
var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto;
|
|
684
|
-
return value === proto;
|
|
685
|
-
}
|
|
686
|
-
function objectToString(value) {
|
|
687
|
-
return nativeObjectToString.call(value);
|
|
688
|
-
}
|
|
689
|
-
function toSource(func) {
|
|
690
|
-
if (func != null) {
|
|
691
|
-
try {
|
|
692
|
-
return funcToString.call(func);
|
|
693
|
-
} catch (e) {
|
|
694
|
-
}
|
|
695
|
-
try {
|
|
696
|
-
return func + "";
|
|
697
|
-
} catch (e) {
|
|
698
|
-
}
|
|
699
|
-
}
|
|
700
|
-
return "";
|
|
701
|
-
}
|
|
702
|
-
function eq(value, other) {
|
|
703
|
-
return value === other || value !== value && other !== other;
|
|
704
|
-
}
|
|
705
|
-
var isArguments = baseIsArguments(/* @__PURE__ */ function() {
|
|
706
|
-
return arguments;
|
|
707
|
-
}()) ? baseIsArguments : function(value) {
|
|
708
|
-
return isObjectLike(value) && hasOwnProperty.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
|
|
709
|
-
};
|
|
710
|
-
var isArray = Array.isArray;
|
|
711
|
-
function isArrayLike(value) {
|
|
712
|
-
return value != null && isLength(value.length) && !isFunction(value);
|
|
713
|
-
}
|
|
714
|
-
var isBuffer = nativeIsBuffer || stubFalse;
|
|
715
|
-
function isEqual2(value, other) {
|
|
716
|
-
return baseIsEqual(value, other);
|
|
717
|
-
}
|
|
718
|
-
function isFunction(value) {
|
|
719
|
-
if (!isObject(value)) {
|
|
720
|
-
return false;
|
|
721
|
-
}
|
|
722
|
-
var tag = baseGetTag(value);
|
|
723
|
-
return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
|
|
724
|
-
}
|
|
725
|
-
function isLength(value) {
|
|
726
|
-
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
727
|
-
}
|
|
728
|
-
function isObject(value) {
|
|
729
|
-
var type = typeof value;
|
|
730
|
-
return value != null && (type == "object" || type == "function");
|
|
731
|
-
}
|
|
732
|
-
function isObjectLike(value) {
|
|
733
|
-
return value != null && typeof value == "object";
|
|
734
|
-
}
|
|
735
|
-
var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
736
|
-
function keys(object) {
|
|
737
|
-
return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
|
|
738
|
-
}
|
|
739
|
-
function stubArray() {
|
|
740
|
-
return [];
|
|
741
|
-
}
|
|
742
|
-
function stubFalse() {
|
|
743
|
-
return false;
|
|
744
|
-
}
|
|
745
|
-
module.exports = isEqual2;
|
|
746
|
-
}
|
|
747
|
-
});
|
|
44
|
+
var _chunkQAG3ZNOMcjs = require('./chunk-QAG3ZNOM.cjs');
|
|
748
45
|
|
|
749
46
|
// ../../node_modules/.pnpm/eventemitter3@5.0.1/node_modules/eventemitter3/index.js
|
|
750
|
-
var require_eventemitter3 =
|
|
47
|
+
var require_eventemitter3 = _chunkQAG3ZNOMcjs.__commonJS.call(void 0, {
|
|
751
48
|
"../../node_modules/.pnpm/eventemitter3@5.0.1/node_modules/eventemitter3/index.js"(exports, module) {
|
|
752
49
|
"use strict";
|
|
753
|
-
|
|
50
|
+
_chunkQAG3ZNOMcjs.init_cjs_shims.call(void 0, );
|
|
754
51
|
var has = Object.prototype.hasOwnProperty;
|
|
755
52
|
var prefix = "~";
|
|
756
53
|
function Events() {
|
|
@@ -930,28 +227,27 @@ var require_eventemitter3 = _chunkY4IJPEUVcjs.__commonJS.call(void 0, {
|
|
|
930
227
|
});
|
|
931
228
|
|
|
932
229
|
// src/index.ts
|
|
933
|
-
|
|
230
|
+
_chunkQAG3ZNOMcjs.init_cjs_shims.call(void 0, );
|
|
934
231
|
|
|
935
232
|
// src/build.ts
|
|
936
|
-
|
|
233
|
+
_chunkQAG3ZNOMcjs.init_cjs_shims.call(void 0, );
|
|
937
234
|
|
|
938
235
|
// src/FileManager.ts
|
|
939
|
-
|
|
940
|
-
var import_lodash = _chunkY4IJPEUVcjs.__toESM.call(void 0, require_lodash(), 1);
|
|
236
|
+
_chunkQAG3ZNOMcjs.init_cjs_shims.call(void 0, );
|
|
941
237
|
var _crypto = require('crypto'); var _crypto2 = _interopRequireDefault(_crypto);
|
|
942
238
|
var _path = require('path'); var _path2 = _interopRequireDefault(_path);
|
|
943
239
|
var _parser = require('@kubb/parser');
|
|
944
240
|
var _factory = require('@kubb/parser/factory'); var factory = _interopRequireWildcard(_factory);
|
|
945
241
|
|
|
946
242
|
// ../../node_modules/.pnpm/p-queue@8.0.1/node_modules/p-queue/dist/index.js
|
|
947
|
-
|
|
243
|
+
_chunkQAG3ZNOMcjs.init_cjs_shims.call(void 0, );
|
|
948
244
|
|
|
949
245
|
// ../../node_modules/.pnpm/eventemitter3@5.0.1/node_modules/eventemitter3/index.mjs
|
|
950
|
-
|
|
951
|
-
var import_index =
|
|
246
|
+
_chunkQAG3ZNOMcjs.init_cjs_shims.call(void 0, );
|
|
247
|
+
var import_index = _chunkQAG3ZNOMcjs.__toESM.call(void 0, require_eventemitter3(), 1);
|
|
952
248
|
|
|
953
249
|
// ../../node_modules/.pnpm/p-timeout@6.1.2/node_modules/p-timeout/index.js
|
|
954
|
-
|
|
250
|
+
_chunkQAG3ZNOMcjs.init_cjs_shims.call(void 0, );
|
|
955
251
|
var TimeoutError = class extends Error {
|
|
956
252
|
constructor(message) {
|
|
957
253
|
super(message);
|
|
@@ -1036,10 +332,10 @@ function pTimeout(promise, options) {
|
|
|
1036
332
|
}
|
|
1037
333
|
|
|
1038
334
|
// ../../node_modules/.pnpm/p-queue@8.0.1/node_modules/p-queue/dist/priority-queue.js
|
|
1039
|
-
|
|
335
|
+
_chunkQAG3ZNOMcjs.init_cjs_shims.call(void 0, );
|
|
1040
336
|
|
|
1041
337
|
// ../../node_modules/.pnpm/p-queue@8.0.1/node_modules/p-queue/dist/lower-bound.js
|
|
1042
|
-
|
|
338
|
+
_chunkQAG3ZNOMcjs.init_cjs_shims.call(void 0, );
|
|
1043
339
|
function lowerBound(array, value, comparator) {
|
|
1044
340
|
let first = 0;
|
|
1045
341
|
let count = array.length;
|
|
@@ -1060,7 +356,7 @@ function lowerBound(array, value, comparator) {
|
|
|
1060
356
|
var _queue;
|
|
1061
357
|
var PriorityQueue = class {
|
|
1062
358
|
constructor() {
|
|
1063
|
-
|
|
359
|
+
_chunkQAG3ZNOMcjs.__privateAdd.call(void 0, this, _queue, []);
|
|
1064
360
|
}
|
|
1065
361
|
enqueue(run, options) {
|
|
1066
362
|
options = {
|
|
@@ -1071,22 +367,22 @@ var PriorityQueue = class {
|
|
|
1071
367
|
priority: options.priority,
|
|
1072
368
|
run
|
|
1073
369
|
};
|
|
1074
|
-
if (this.size &&
|
|
1075
|
-
|
|
370
|
+
if (this.size && _chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _queue)[this.size - 1].priority >= options.priority) {
|
|
371
|
+
_chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _queue).push(element);
|
|
1076
372
|
return;
|
|
1077
373
|
}
|
|
1078
|
-
const index = lowerBound(
|
|
1079
|
-
|
|
374
|
+
const index = lowerBound(_chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _queue), element, (a, b) => b.priority - a.priority);
|
|
375
|
+
_chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _queue).splice(index, 0, element);
|
|
1080
376
|
}
|
|
1081
377
|
dequeue() {
|
|
1082
|
-
const item =
|
|
378
|
+
const item = _chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _queue).shift();
|
|
1083
379
|
return _optionalChain([item, 'optionalAccess', _2 => _2.run]);
|
|
1084
380
|
}
|
|
1085
381
|
filter(options) {
|
|
1086
|
-
return
|
|
382
|
+
return _chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _queue).filter((element) => element.priority === options.priority).map((element) => element.run);
|
|
1087
383
|
}
|
|
1088
384
|
get size() {
|
|
1089
|
-
return
|
|
385
|
+
return _chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _queue).length;
|
|
1090
386
|
}
|
|
1091
387
|
};
|
|
1092
388
|
_queue = new WeakMap();
|
|
@@ -1097,41 +393,41 @@ var PQueue = class extends import_index.default {
|
|
|
1097
393
|
// TODO: The `throwOnTimeout` option should affect the return types of `add()` and `addAll()`
|
|
1098
394
|
constructor(options) {
|
|
1099
395
|
super();
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
396
|
+
_chunkQAG3ZNOMcjs.__privateAdd.call(void 0, this, _doesIntervalAllowAnother);
|
|
397
|
+
_chunkQAG3ZNOMcjs.__privateAdd.call(void 0, this, _doesConcurrentAllowAnother);
|
|
398
|
+
_chunkQAG3ZNOMcjs.__privateAdd.call(void 0, this, _next);
|
|
399
|
+
_chunkQAG3ZNOMcjs.__privateAdd.call(void 0, this, _onResumeInterval);
|
|
400
|
+
_chunkQAG3ZNOMcjs.__privateAdd.call(void 0, this, _isIntervalPaused);
|
|
401
|
+
_chunkQAG3ZNOMcjs.__privateAdd.call(void 0, this, _tryToStartAnother);
|
|
402
|
+
_chunkQAG3ZNOMcjs.__privateAdd.call(void 0, this, _initializeIntervalIfNeeded);
|
|
403
|
+
_chunkQAG3ZNOMcjs.__privateAdd.call(void 0, this, _onInterval);
|
|
1108
404
|
/**
|
|
1109
405
|
Executes all queued functions until it reaches the limit.
|
|
1110
406
|
*/
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
407
|
+
_chunkQAG3ZNOMcjs.__privateAdd.call(void 0, this, _processQueue);
|
|
408
|
+
_chunkQAG3ZNOMcjs.__privateAdd.call(void 0, this, _throwOnAbort);
|
|
409
|
+
_chunkQAG3ZNOMcjs.__privateAdd.call(void 0, this, _onEvent);
|
|
410
|
+
_chunkQAG3ZNOMcjs.__privateAdd.call(void 0, this, _carryoverConcurrencyCount, void 0);
|
|
411
|
+
_chunkQAG3ZNOMcjs.__privateAdd.call(void 0, this, _isIntervalIgnored, void 0);
|
|
412
|
+
_chunkQAG3ZNOMcjs.__privateAdd.call(void 0, this, _intervalCount, 0);
|
|
413
|
+
_chunkQAG3ZNOMcjs.__privateAdd.call(void 0, this, _intervalCap, void 0);
|
|
414
|
+
_chunkQAG3ZNOMcjs.__privateAdd.call(void 0, this, _interval, void 0);
|
|
415
|
+
_chunkQAG3ZNOMcjs.__privateAdd.call(void 0, this, _intervalEnd, 0);
|
|
416
|
+
_chunkQAG3ZNOMcjs.__privateAdd.call(void 0, this, _intervalId, void 0);
|
|
417
|
+
_chunkQAG3ZNOMcjs.__privateAdd.call(void 0, this, _timeoutId, void 0);
|
|
418
|
+
_chunkQAG3ZNOMcjs.__privateAdd.call(void 0, this, _queue2, void 0);
|
|
419
|
+
_chunkQAG3ZNOMcjs.__privateAdd.call(void 0, this, _queueClass, void 0);
|
|
420
|
+
_chunkQAG3ZNOMcjs.__privateAdd.call(void 0, this, _pending, 0);
|
|
1125
421
|
// The `!` is needed because of https://github.com/microsoft/TypeScript/issues/32194
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
422
|
+
_chunkQAG3ZNOMcjs.__privateAdd.call(void 0, this, _concurrency, void 0);
|
|
423
|
+
_chunkQAG3ZNOMcjs.__privateAdd.call(void 0, this, _isPaused, void 0);
|
|
424
|
+
_chunkQAG3ZNOMcjs.__privateAdd.call(void 0, this, _throwOnTimeout, void 0);
|
|
1129
425
|
/**
|
|
1130
426
|
Per-operation timeout in milliseconds. Operations fulfill once `timeout` elapses if they haven't already.
|
|
1131
427
|
|
|
1132
428
|
Applies to each future operation.
|
|
1133
429
|
*/
|
|
1134
|
-
|
|
430
|
+
_chunkQAG3ZNOMcjs.__publicField.call(void 0, this, "timeout");
|
|
1135
431
|
options = {
|
|
1136
432
|
carryoverConcurrencyCount: false,
|
|
1137
433
|
intervalCap: Number.POSITIVE_INFINITY,
|
|
@@ -1147,37 +443,37 @@ var PQueue = class extends import_index.default {
|
|
|
1147
443
|
if (options.interval === void 0 || !(Number.isFinite(options.interval) && options.interval >= 0)) {
|
|
1148
444
|
throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${_nullishCoalesce(_optionalChain([options, 'access', _6 => _6.interval, 'optionalAccess', _7 => _7.toString, 'call', _8 => _8()]), () => ( ""))}\` (${typeof options.interval})`);
|
|
1149
445
|
}
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
446
|
+
_chunkQAG3ZNOMcjs.__privateSet.call(void 0, this, _carryoverConcurrencyCount, options.carryoverConcurrencyCount);
|
|
447
|
+
_chunkQAG3ZNOMcjs.__privateSet.call(void 0, this, _isIntervalIgnored, options.intervalCap === Number.POSITIVE_INFINITY || options.interval === 0);
|
|
448
|
+
_chunkQAG3ZNOMcjs.__privateSet.call(void 0, this, _intervalCap, options.intervalCap);
|
|
449
|
+
_chunkQAG3ZNOMcjs.__privateSet.call(void 0, this, _interval, options.interval);
|
|
450
|
+
_chunkQAG3ZNOMcjs.__privateSet.call(void 0, this, _queue2, new options.queueClass());
|
|
451
|
+
_chunkQAG3ZNOMcjs.__privateSet.call(void 0, this, _queueClass, options.queueClass);
|
|
1156
452
|
this.concurrency = options.concurrency;
|
|
1157
453
|
this.timeout = options.timeout;
|
|
1158
|
-
|
|
1159
|
-
|
|
454
|
+
_chunkQAG3ZNOMcjs.__privateSet.call(void 0, this, _throwOnTimeout, options.throwOnTimeout === true);
|
|
455
|
+
_chunkQAG3ZNOMcjs.__privateSet.call(void 0, this, _isPaused, options.autoStart === false);
|
|
1160
456
|
}
|
|
1161
457
|
get concurrency() {
|
|
1162
|
-
return
|
|
458
|
+
return _chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _concurrency);
|
|
1163
459
|
}
|
|
1164
460
|
set concurrency(newConcurrency) {
|
|
1165
461
|
if (!(typeof newConcurrency === "number" && newConcurrency >= 1)) {
|
|
1166
462
|
throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${newConcurrency}\` (${typeof newConcurrency})`);
|
|
1167
463
|
}
|
|
1168
|
-
|
|
1169
|
-
|
|
464
|
+
_chunkQAG3ZNOMcjs.__privateSet.call(void 0, this, _concurrency, newConcurrency);
|
|
465
|
+
_chunkQAG3ZNOMcjs.__privateMethod.call(void 0, this, _processQueue, processQueue_fn).call(this);
|
|
1170
466
|
}
|
|
1171
467
|
async add(function_, options = {}) {
|
|
1172
468
|
options = {
|
|
1173
469
|
timeout: this.timeout,
|
|
1174
|
-
throwOnTimeout:
|
|
470
|
+
throwOnTimeout: _chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _throwOnTimeout),
|
|
1175
471
|
...options
|
|
1176
472
|
};
|
|
1177
473
|
return new Promise((resolve2, reject) => {
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
474
|
+
_chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _queue2).enqueue(async () => {
|
|
475
|
+
_chunkQAG3ZNOMcjs.__privateWrapper.call(void 0, this, _pending)._++;
|
|
476
|
+
_chunkQAG3ZNOMcjs.__privateWrapper.call(void 0, this, _intervalCount)._++;
|
|
1181
477
|
try {
|
|
1182
478
|
_optionalChain([options, 'access', _9 => _9.signal, 'optionalAccess', _10 => _10.throwIfAborted, 'call', _11 => _11()]);
|
|
1183
479
|
let operation = function_({ signal: options.signal });
|
|
@@ -1185,7 +481,7 @@ var PQueue = class extends import_index.default {
|
|
|
1185
481
|
operation = pTimeout(Promise.resolve(operation), { milliseconds: options.timeout });
|
|
1186
482
|
}
|
|
1187
483
|
if (options.signal) {
|
|
1188
|
-
operation = Promise.race([operation,
|
|
484
|
+
operation = Promise.race([operation, _chunkQAG3ZNOMcjs.__privateMethod.call(void 0, this, _throwOnAbort, throwOnAbort_fn).call(this, options.signal)]);
|
|
1189
485
|
}
|
|
1190
486
|
const result = await operation;
|
|
1191
487
|
resolve2(result);
|
|
@@ -1198,11 +494,11 @@ var PQueue = class extends import_index.default {
|
|
|
1198
494
|
reject(error);
|
|
1199
495
|
this.emit("error", error);
|
|
1200
496
|
} finally {
|
|
1201
|
-
|
|
497
|
+
_chunkQAG3ZNOMcjs.__privateMethod.call(void 0, this, _next, next_fn).call(this);
|
|
1202
498
|
}
|
|
1203
499
|
}, options);
|
|
1204
500
|
this.emit("add");
|
|
1205
|
-
|
|
501
|
+
_chunkQAG3ZNOMcjs.__privateMethod.call(void 0, this, _tryToStartAnother, tryToStartAnother_fn).call(this);
|
|
1206
502
|
});
|
|
1207
503
|
}
|
|
1208
504
|
async addAll(functions, options) {
|
|
@@ -1212,24 +508,24 @@ var PQueue = class extends import_index.default {
|
|
|
1212
508
|
Start (or resume) executing enqueued tasks within concurrency limit. No need to call this if queue is not paused (via `options.autoStart = false` or by `.pause()` method.)
|
|
1213
509
|
*/
|
|
1214
510
|
start() {
|
|
1215
|
-
if (!
|
|
511
|
+
if (!_chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _isPaused)) {
|
|
1216
512
|
return this;
|
|
1217
513
|
}
|
|
1218
|
-
|
|
1219
|
-
|
|
514
|
+
_chunkQAG3ZNOMcjs.__privateSet.call(void 0, this, _isPaused, false);
|
|
515
|
+
_chunkQAG3ZNOMcjs.__privateMethod.call(void 0, this, _processQueue, processQueue_fn).call(this);
|
|
1220
516
|
return this;
|
|
1221
517
|
}
|
|
1222
518
|
/**
|
|
1223
519
|
Put queue execution on hold.
|
|
1224
520
|
*/
|
|
1225
521
|
pause() {
|
|
1226
|
-
|
|
522
|
+
_chunkQAG3ZNOMcjs.__privateSet.call(void 0, this, _isPaused, true);
|
|
1227
523
|
}
|
|
1228
524
|
/**
|
|
1229
525
|
Clear the queue.
|
|
1230
526
|
*/
|
|
1231
527
|
clear() {
|
|
1232
|
-
|
|
528
|
+
_chunkQAG3ZNOMcjs.__privateSet.call(void 0, this, _queue2, new (_chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _queueClass))());
|
|
1233
529
|
}
|
|
1234
530
|
/**
|
|
1235
531
|
Can be called multiple times. Useful if you for example add additional items at a later time.
|
|
@@ -1237,10 +533,10 @@ var PQueue = class extends import_index.default {
|
|
|
1237
533
|
@returns A promise that settles when the queue becomes empty.
|
|
1238
534
|
*/
|
|
1239
535
|
async onEmpty() {
|
|
1240
|
-
if (
|
|
536
|
+
if (_chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _queue2).size === 0) {
|
|
1241
537
|
return;
|
|
1242
538
|
}
|
|
1243
|
-
await
|
|
539
|
+
await _chunkQAG3ZNOMcjs.__privateMethod.call(void 0, this, _onEvent, onEvent_fn).call(this, "empty");
|
|
1244
540
|
}
|
|
1245
541
|
/**
|
|
1246
542
|
@returns A promise that settles when the queue size is less than the given limit: `queue.size < limit`.
|
|
@@ -1250,10 +546,10 @@ var PQueue = class extends import_index.default {
|
|
|
1250
546
|
Note that this only limits the number of items waiting to start. There could still be up to `concurrency` jobs already running that this call does not include in its calculation.
|
|
1251
547
|
*/
|
|
1252
548
|
async onSizeLessThan(limit) {
|
|
1253
|
-
if (
|
|
549
|
+
if (_chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _queue2).size < limit) {
|
|
1254
550
|
return;
|
|
1255
551
|
}
|
|
1256
|
-
await
|
|
552
|
+
await _chunkQAG3ZNOMcjs.__privateMethod.call(void 0, this, _onEvent, onEvent_fn).call(this, "next", () => _chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _queue2).size < limit);
|
|
1257
553
|
}
|
|
1258
554
|
/**
|
|
1259
555
|
The difference with `.onEmpty` is that `.onIdle` guarantees that all work from the queue has finished. `.onEmpty` merely signals that the queue is empty, but it could mean that some promises haven't completed yet.
|
|
@@ -1261,16 +557,16 @@ var PQueue = class extends import_index.default {
|
|
|
1261
557
|
@returns A promise that settles when the queue becomes empty, and all promises have completed; `queue.size === 0 && queue.pending === 0`.
|
|
1262
558
|
*/
|
|
1263
559
|
async onIdle() {
|
|
1264
|
-
if (
|
|
560
|
+
if (_chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _pending) === 0 && _chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _queue2).size === 0) {
|
|
1265
561
|
return;
|
|
1266
562
|
}
|
|
1267
|
-
await
|
|
563
|
+
await _chunkQAG3ZNOMcjs.__privateMethod.call(void 0, this, _onEvent, onEvent_fn).call(this, "idle");
|
|
1268
564
|
}
|
|
1269
565
|
/**
|
|
1270
566
|
Size of the queue, the number of queued items waiting to run.
|
|
1271
567
|
*/
|
|
1272
568
|
get size() {
|
|
1273
|
-
return
|
|
569
|
+
return _chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _queue2).size;
|
|
1274
570
|
}
|
|
1275
571
|
/**
|
|
1276
572
|
Size of the queue, filtered by the given options.
|
|
@@ -1278,19 +574,19 @@ var PQueue = class extends import_index.default {
|
|
|
1278
574
|
For example, this can be used to find the number of items remaining in the queue with a specific priority level.
|
|
1279
575
|
*/
|
|
1280
576
|
sizeBy(options) {
|
|
1281
|
-
return
|
|
577
|
+
return _chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _queue2).filter(options).length;
|
|
1282
578
|
}
|
|
1283
579
|
/**
|
|
1284
580
|
Number of running items (no longer in the queue).
|
|
1285
581
|
*/
|
|
1286
582
|
get pending() {
|
|
1287
|
-
return
|
|
583
|
+
return _chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _pending);
|
|
1288
584
|
}
|
|
1289
585
|
/**
|
|
1290
586
|
Whether the queue is currently paused.
|
|
1291
587
|
*/
|
|
1292
588
|
get isPaused() {
|
|
1293
|
-
return
|
|
589
|
+
return _chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _isPaused);
|
|
1294
590
|
}
|
|
1295
591
|
};
|
|
1296
592
|
_carryoverConcurrencyCount = new WeakMap();
|
|
@@ -1309,35 +605,35 @@ _isPaused = new WeakMap();
|
|
|
1309
605
|
_throwOnTimeout = new WeakMap();
|
|
1310
606
|
_doesIntervalAllowAnother = new WeakSet();
|
|
1311
607
|
doesIntervalAllowAnother_get = function() {
|
|
1312
|
-
return
|
|
608
|
+
return _chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _isIntervalIgnored) || _chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _intervalCount) < _chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _intervalCap);
|
|
1313
609
|
};
|
|
1314
610
|
_doesConcurrentAllowAnother = new WeakSet();
|
|
1315
611
|
doesConcurrentAllowAnother_get = function() {
|
|
1316
|
-
return
|
|
612
|
+
return _chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _pending) < _chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _concurrency);
|
|
1317
613
|
};
|
|
1318
614
|
_next = new WeakSet();
|
|
1319
615
|
next_fn = function() {
|
|
1320
|
-
|
|
1321
|
-
|
|
616
|
+
_chunkQAG3ZNOMcjs.__privateWrapper.call(void 0, this, _pending)._--;
|
|
617
|
+
_chunkQAG3ZNOMcjs.__privateMethod.call(void 0, this, _tryToStartAnother, tryToStartAnother_fn).call(this);
|
|
1322
618
|
this.emit("next");
|
|
1323
619
|
};
|
|
1324
620
|
_onResumeInterval = new WeakSet();
|
|
1325
621
|
onResumeInterval_fn = function() {
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
622
|
+
_chunkQAG3ZNOMcjs.__privateMethod.call(void 0, this, _onInterval, onInterval_fn).call(this);
|
|
623
|
+
_chunkQAG3ZNOMcjs.__privateMethod.call(void 0, this, _initializeIntervalIfNeeded, initializeIntervalIfNeeded_fn).call(this);
|
|
624
|
+
_chunkQAG3ZNOMcjs.__privateSet.call(void 0, this, _timeoutId, void 0);
|
|
1329
625
|
};
|
|
1330
626
|
_isIntervalPaused = new WeakSet();
|
|
1331
627
|
isIntervalPaused_get = function() {
|
|
1332
628
|
const now = Date.now();
|
|
1333
|
-
if (
|
|
1334
|
-
const delay =
|
|
629
|
+
if (_chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _intervalId) === void 0) {
|
|
630
|
+
const delay = _chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _intervalEnd) - now;
|
|
1335
631
|
if (delay < 0) {
|
|
1336
|
-
|
|
632
|
+
_chunkQAG3ZNOMcjs.__privateSet.call(void 0, this, _intervalCount, _chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _carryoverConcurrencyCount) ? _chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _pending) : 0);
|
|
1337
633
|
} else {
|
|
1338
|
-
if (
|
|
1339
|
-
|
|
1340
|
-
|
|
634
|
+
if (_chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _timeoutId) === void 0) {
|
|
635
|
+
_chunkQAG3ZNOMcjs.__privateSet.call(void 0, this, _timeoutId, setTimeout(() => {
|
|
636
|
+
_chunkQAG3ZNOMcjs.__privateMethod.call(void 0, this, _onResumeInterval, onResumeInterval_fn).call(this);
|
|
1341
637
|
}, delay));
|
|
1342
638
|
}
|
|
1343
639
|
return true;
|
|
@@ -1347,28 +643,28 @@ isIntervalPaused_get = function() {
|
|
|
1347
643
|
};
|
|
1348
644
|
_tryToStartAnother = new WeakSet();
|
|
1349
645
|
tryToStartAnother_fn = function() {
|
|
1350
|
-
if (
|
|
1351
|
-
if (
|
|
1352
|
-
clearInterval(
|
|
646
|
+
if (_chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _queue2).size === 0) {
|
|
647
|
+
if (_chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _intervalId)) {
|
|
648
|
+
clearInterval(_chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _intervalId));
|
|
1353
649
|
}
|
|
1354
|
-
|
|
650
|
+
_chunkQAG3ZNOMcjs.__privateSet.call(void 0, this, _intervalId, void 0);
|
|
1355
651
|
this.emit("empty");
|
|
1356
|
-
if (
|
|
652
|
+
if (_chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _pending) === 0) {
|
|
1357
653
|
this.emit("idle");
|
|
1358
654
|
}
|
|
1359
655
|
return false;
|
|
1360
656
|
}
|
|
1361
|
-
if (!
|
|
1362
|
-
const canInitializeInterval = !
|
|
1363
|
-
if (
|
|
1364
|
-
const job =
|
|
657
|
+
if (!_chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _isPaused)) {
|
|
658
|
+
const canInitializeInterval = !_chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _isIntervalPaused, isIntervalPaused_get);
|
|
659
|
+
if (_chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _doesIntervalAllowAnother, doesIntervalAllowAnother_get) && _chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _doesConcurrentAllowAnother, doesConcurrentAllowAnother_get)) {
|
|
660
|
+
const job = _chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _queue2).dequeue();
|
|
1365
661
|
if (!job) {
|
|
1366
662
|
return false;
|
|
1367
663
|
}
|
|
1368
664
|
this.emit("active");
|
|
1369
665
|
job();
|
|
1370
666
|
if (canInitializeInterval) {
|
|
1371
|
-
|
|
667
|
+
_chunkQAG3ZNOMcjs.__privateMethod.call(void 0, this, _initializeIntervalIfNeeded, initializeIntervalIfNeeded_fn).call(this);
|
|
1372
668
|
}
|
|
1373
669
|
return true;
|
|
1374
670
|
}
|
|
@@ -1377,26 +673,26 @@ tryToStartAnother_fn = function() {
|
|
|
1377
673
|
};
|
|
1378
674
|
_initializeIntervalIfNeeded = new WeakSet();
|
|
1379
675
|
initializeIntervalIfNeeded_fn = function() {
|
|
1380
|
-
if (
|
|
676
|
+
if (_chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _isIntervalIgnored) || _chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _intervalId) !== void 0) {
|
|
1381
677
|
return;
|
|
1382
678
|
}
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
},
|
|
1386
|
-
|
|
679
|
+
_chunkQAG3ZNOMcjs.__privateSet.call(void 0, this, _intervalId, setInterval(() => {
|
|
680
|
+
_chunkQAG3ZNOMcjs.__privateMethod.call(void 0, this, _onInterval, onInterval_fn).call(this);
|
|
681
|
+
}, _chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _interval)));
|
|
682
|
+
_chunkQAG3ZNOMcjs.__privateSet.call(void 0, this, _intervalEnd, Date.now() + _chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _interval));
|
|
1387
683
|
};
|
|
1388
684
|
_onInterval = new WeakSet();
|
|
1389
685
|
onInterval_fn = function() {
|
|
1390
|
-
if (
|
|
1391
|
-
clearInterval(
|
|
1392
|
-
|
|
686
|
+
if (_chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _intervalCount) === 0 && _chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _pending) === 0 && _chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _intervalId)) {
|
|
687
|
+
clearInterval(_chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _intervalId));
|
|
688
|
+
_chunkQAG3ZNOMcjs.__privateSet.call(void 0, this, _intervalId, void 0);
|
|
1393
689
|
}
|
|
1394
|
-
|
|
1395
|
-
|
|
690
|
+
_chunkQAG3ZNOMcjs.__privateSet.call(void 0, this, _intervalCount, _chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _carryoverConcurrencyCount) ? _chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _pending) : 0);
|
|
691
|
+
_chunkQAG3ZNOMcjs.__privateMethod.call(void 0, this, _processQueue, processQueue_fn).call(this);
|
|
1396
692
|
};
|
|
1397
693
|
_processQueue = new WeakSet();
|
|
1398
694
|
processQueue_fn = function() {
|
|
1399
|
-
while (
|
|
695
|
+
while (_chunkQAG3ZNOMcjs.__privateMethod.call(void 0, this, _tryToStartAnother, tryToStartAnother_fn).call(this)) {
|
|
1400
696
|
}
|
|
1401
697
|
};
|
|
1402
698
|
_throwOnAbort = new WeakSet();
|
|
@@ -1421,13 +717,16 @@ onEvent_fn = async function(event, filter) {
|
|
|
1421
717
|
});
|
|
1422
718
|
};
|
|
1423
719
|
|
|
720
|
+
// src/FileManager.ts
|
|
721
|
+
var _remeda = require('remeda');
|
|
722
|
+
|
|
1424
723
|
// src/BarrelManager.ts
|
|
1425
|
-
|
|
724
|
+
_chunkQAG3ZNOMcjs.init_cjs_shims.call(void 0, );
|
|
1426
725
|
|
|
1427
726
|
|
|
1428
727
|
|
|
1429
728
|
// src/utils/TreeNode.ts
|
|
1430
|
-
|
|
729
|
+
_chunkQAG3ZNOMcjs.init_cjs_shims.call(void 0, );
|
|
1431
730
|
var _directorytree = require('directory-tree'); var _directorytree2 = _interopRequireDefault(_directorytree);
|
|
1432
731
|
var TreeNode = class _TreeNode {
|
|
1433
732
|
constructor(data, parent) {
|
|
@@ -1530,8 +829,8 @@ var TreeNode = class _TreeNode {
|
|
|
1530
829
|
var _options;
|
|
1531
830
|
var BarrelManager = class {
|
|
1532
831
|
constructor(options = {}) {
|
|
1533
|
-
|
|
1534
|
-
|
|
832
|
+
_chunkQAG3ZNOMcjs.__privateAdd.call(void 0, this, _options, void 0);
|
|
833
|
+
_chunkQAG3ZNOMcjs.__privateSet.call(void 0, this, _options, options);
|
|
1535
834
|
return this;
|
|
1536
835
|
}
|
|
1537
836
|
getNamedExport(root, item) {
|
|
@@ -1571,7 +870,7 @@ var BarrelManager = class {
|
|
|
1571
870
|
})]);
|
|
1572
871
|
}
|
|
1573
872
|
getIndexes(root) {
|
|
1574
|
-
const { treeNode = {}, isTypeOnly, extName } =
|
|
873
|
+
const { treeNode = {}, isTypeOnly, extName } = _chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _options);
|
|
1575
874
|
const tree = TreeNode.build(root, treeNode);
|
|
1576
875
|
if (!tree) {
|
|
1577
876
|
return null;
|
|
@@ -1583,7 +882,7 @@ var BarrelManager = class {
|
|
|
1583
882
|
if (treeNode2.children.length > 1) {
|
|
1584
883
|
const indexPath = _path2.default.resolve(treeNode2.data.path, "index.ts");
|
|
1585
884
|
const exports = treeNode2.children.filter(Boolean).map((file) => {
|
|
1586
|
-
const importPath = file.data.type === "split" ? `./${file.data.name}/index` : `./${
|
|
885
|
+
const importPath = file.data.type === "split" ? `./${file.data.name}/index` : `./${_chunk6XBPOTJNcjs.trimExtName.call(void 0, file.data.name)}`;
|
|
1587
886
|
if (importPath.endsWith("index") && file.data.type === "single") {
|
|
1588
887
|
return void 0;
|
|
1589
888
|
}
|
|
@@ -1602,7 +901,7 @@ var BarrelManager = class {
|
|
|
1602
901
|
} else if (treeNode2.children.length === 1) {
|
|
1603
902
|
const [treeNodeChild] = treeNode2.children;
|
|
1604
903
|
const indexPath = _path2.default.resolve(treeNode2.data.path, "index.ts");
|
|
1605
|
-
const importPath = treeNodeChild.data.type === "split" ? `./${treeNodeChild.data.name}/index` : `./${
|
|
904
|
+
const importPath = treeNodeChild.data.type === "split" ? `./${treeNodeChild.data.name}/index` : `./${_chunk6XBPOTJNcjs.trimExtName.call(void 0, treeNodeChild.data.name)}`;
|
|
1606
905
|
const exports = [
|
|
1607
906
|
{
|
|
1608
907
|
path: extName ? `${importPath}${extName}` : importPath,
|
|
@@ -1634,31 +933,31 @@ var KubbFile;
|
|
|
1634
933
|
var _cache, _task, _queue3, _add, add_fn, _addOrAppend, addOrAppend_fn;
|
|
1635
934
|
var _FileManager = class _FileManager {
|
|
1636
935
|
constructor({ task = async (file) => file, queue = new PQueue() } = {}) {
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
936
|
+
_chunkQAG3ZNOMcjs.__privateAdd.call(void 0, this, _add);
|
|
937
|
+
_chunkQAG3ZNOMcjs.__privateAdd.call(void 0, this, _addOrAppend);
|
|
938
|
+
_chunkQAG3ZNOMcjs.__privateAdd.call(void 0, this, _cache, /* @__PURE__ */ new Map());
|
|
939
|
+
_chunkQAG3ZNOMcjs.__privateAdd.call(void 0, this, _task, void 0);
|
|
940
|
+
_chunkQAG3ZNOMcjs.__privateAdd.call(void 0, this, _queue3, void 0);
|
|
941
|
+
_chunkQAG3ZNOMcjs.__privateSet.call(void 0, this, _task, task);
|
|
942
|
+
_chunkQAG3ZNOMcjs.__privateSet.call(void 0, this, _queue3, queue);
|
|
1644
943
|
return this;
|
|
1645
944
|
}
|
|
1646
945
|
get files() {
|
|
1647
946
|
const files = [];
|
|
1648
|
-
|
|
947
|
+
_chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _cache).forEach((item) => {
|
|
1649
948
|
files.push(...item.flat(1));
|
|
1650
949
|
});
|
|
1651
950
|
return files;
|
|
1652
951
|
}
|
|
1653
952
|
get isExecuting() {
|
|
1654
|
-
return
|
|
953
|
+
return _chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _queue3).size !== 0 && _chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _queue3).pending !== 0;
|
|
1655
954
|
}
|
|
1656
955
|
async add(...files) {
|
|
1657
956
|
const promises = combineFiles(files).map((file) => {
|
|
1658
957
|
if (file.override) {
|
|
1659
|
-
return
|
|
958
|
+
return _chunkQAG3ZNOMcjs.__privateMethod.call(void 0, this, _add, add_fn).call(this, file);
|
|
1660
959
|
}
|
|
1661
|
-
return
|
|
960
|
+
return _chunkQAG3ZNOMcjs.__privateMethod.call(void 0, this, _addOrAppend, addOrAppend_fn).call(this, file);
|
|
1662
961
|
});
|
|
1663
962
|
const resolvedFiles = await Promise.all(promises);
|
|
1664
963
|
if (files.length > 1) {
|
|
@@ -1672,11 +971,11 @@ var _FileManager = class _FileManager {
|
|
|
1672
971
|
return void 0;
|
|
1673
972
|
}
|
|
1674
973
|
const pathToBuildFrom = _path.resolve.call(void 0, root, output.path);
|
|
1675
|
-
if (
|
|
974
|
+
if (_chunk6XBPOTJNcjs.transformers_default.trimExtName(pathToBuildFrom).endsWith("index")) {
|
|
1676
975
|
logger.emit("warning", "Output has the same fileName as the barrelFiles, please disable barrel generation");
|
|
1677
976
|
return;
|
|
1678
977
|
}
|
|
1679
|
-
const exportPath = output.path.startsWith("./") ?
|
|
978
|
+
const exportPath = output.path.startsWith("./") ? _chunk6XBPOTJNcjs.trimExtName.call(void 0, output.path) : `./${_chunk6XBPOTJNcjs.trimExtName.call(void 0, output.path)}`;
|
|
1680
979
|
const mode = _FileManager.getMode(output.path);
|
|
1681
980
|
const barrelManager = new BarrelManager({
|
|
1682
981
|
extName: output.extName,
|
|
@@ -1699,7 +998,7 @@ var _FileManager = class _FileManager {
|
|
|
1699
998
|
}
|
|
1700
999
|
await Promise.all(
|
|
1701
1000
|
files.map((file) => {
|
|
1702
|
-
return
|
|
1001
|
+
return _chunkQAG3ZNOMcjs.__privateMethod.call(void 0, this, _addOrAppend, addOrAppend_fn).call(this, {
|
|
1703
1002
|
...file,
|
|
1704
1003
|
meta: meta ? meta : file.meta
|
|
1705
1004
|
});
|
|
@@ -1726,33 +1025,33 @@ var _FileManager = class _FileManager {
|
|
|
1726
1025
|
if (exportType === "barrelNamed" && !output.exportAs && _optionalChain([rootFile, 'access', _32 => _32.exports, 'optionalAccess', _33 => _33[0]])) {
|
|
1727
1026
|
rootFile.exports = barrelManager.getNamedExport(root, rootFile.exports[0]);
|
|
1728
1027
|
}
|
|
1729
|
-
await
|
|
1028
|
+
await _chunkQAG3ZNOMcjs.__privateMethod.call(void 0, this, _addOrAppend, addOrAppend_fn).call(this, {
|
|
1730
1029
|
...rootFile,
|
|
1731
1030
|
meta: meta ? meta : rootFile.meta
|
|
1732
1031
|
});
|
|
1733
1032
|
}
|
|
1734
1033
|
getCacheByUUID(UUID) {
|
|
1735
1034
|
let cache;
|
|
1736
|
-
|
|
1035
|
+
_chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _cache).forEach((files) => {
|
|
1737
1036
|
cache = files.find((item) => item.id === UUID);
|
|
1738
1037
|
});
|
|
1739
1038
|
return cache;
|
|
1740
1039
|
}
|
|
1741
1040
|
get(path5) {
|
|
1742
|
-
return
|
|
1041
|
+
return _chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _cache).get(path5);
|
|
1743
1042
|
}
|
|
1744
1043
|
remove(path5) {
|
|
1745
1044
|
const cacheItem = this.get(path5);
|
|
1746
1045
|
if (!cacheItem) {
|
|
1747
1046
|
return;
|
|
1748
1047
|
}
|
|
1749
|
-
|
|
1048
|
+
_chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _cache).delete(path5);
|
|
1750
1049
|
}
|
|
1751
1050
|
async write(...params) {
|
|
1752
|
-
return
|
|
1051
|
+
return _chunkN32RRGTXcjs.write.call(void 0, ...params);
|
|
1753
1052
|
}
|
|
1754
1053
|
async read(...params) {
|
|
1755
|
-
return
|
|
1054
|
+
return _chunkGOCMZM5Zcjs.read.call(void 0, ...params);
|
|
1756
1055
|
}
|
|
1757
1056
|
// statics
|
|
1758
1057
|
static getSource(file) {
|
|
@@ -1782,7 +1081,7 @@ add_fn = async function(file) {
|
|
|
1782
1081
|
const controller = new AbortController();
|
|
1783
1082
|
const resolvedFile = {
|
|
1784
1083
|
id: _crypto2.default.randomUUID(),
|
|
1785
|
-
name:
|
|
1084
|
+
name: _chunk6XBPOTJNcjs.trimExtName.call(void 0, file.baseName),
|
|
1786
1085
|
...file
|
|
1787
1086
|
};
|
|
1788
1087
|
if (_optionalChain([resolvedFile, 'access', _34 => _34.exports, 'optionalAccess', _35 => _35.length])) {
|
|
@@ -1795,22 +1094,22 @@ add_fn = async function(file) {
|
|
|
1795
1094
|
return true;
|
|
1796
1095
|
});
|
|
1797
1096
|
}
|
|
1798
|
-
|
|
1799
|
-
return
|
|
1097
|
+
_chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _cache).set(resolvedFile.path, [{ cancel: () => controller.abort(), ...resolvedFile }]);
|
|
1098
|
+
return _chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _queue3).add(
|
|
1800
1099
|
async () => {
|
|
1801
1100
|
var _a;
|
|
1802
|
-
return (_a =
|
|
1101
|
+
return (_a = _chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _task)) == null ? void 0 : _a.call(this, resolvedFile);
|
|
1803
1102
|
},
|
|
1804
1103
|
{ signal: controller.signal }
|
|
1805
1104
|
);
|
|
1806
1105
|
};
|
|
1807
1106
|
_addOrAppend = new WeakSet();
|
|
1808
1107
|
addOrAppend_fn = async function(file) {
|
|
1809
|
-
const previousCaches =
|
|
1108
|
+
const previousCaches = _chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _cache).get(file.path);
|
|
1810
1109
|
const previousCache = previousCaches ? previousCaches.at(previousCaches.length - 1) : void 0;
|
|
1811
1110
|
if (previousCache) {
|
|
1812
|
-
|
|
1813
|
-
return
|
|
1111
|
+
_chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _cache).delete(previousCache.path);
|
|
1112
|
+
return _chunkQAG3ZNOMcjs.__privateMethod.call(void 0, this, _add, add_fn).call(this, {
|
|
1814
1113
|
...file,
|
|
1815
1114
|
source: previousCache.source && file.source ? `${previousCache.source}
|
|
1816
1115
|
${file.source}` : "",
|
|
@@ -1819,7 +1118,7 @@ ${file.source}` : "",
|
|
|
1819
1118
|
env: { ...previousCache.env || {}, ...file.env || {} }
|
|
1820
1119
|
});
|
|
1821
1120
|
}
|
|
1822
|
-
return
|
|
1121
|
+
return _chunkQAG3ZNOMcjs.__privateMethod.call(void 0, this, _add, add_fn).call(this, file);
|
|
1823
1122
|
};
|
|
1824
1123
|
var FileManager = _FileManager;
|
|
1825
1124
|
function combineFiles(files) {
|
|
@@ -1860,11 +1159,11 @@ function getSource(file) {
|
|
|
1860
1159
|
const exports = file.exports ? combineExports(file.exports) : [];
|
|
1861
1160
|
const imports = file.imports && file.source ? combineImports(file.imports, exports, file.source) : [];
|
|
1862
1161
|
const importNodes = imports.filter((item) => {
|
|
1863
|
-
return item.path !==
|
|
1162
|
+
return item.path !== _chunk6XBPOTJNcjs.trimExtName.call(void 0, file.path);
|
|
1864
1163
|
}).map((item) => {
|
|
1865
1164
|
return factory.createImportDeclaration({
|
|
1866
1165
|
name: item.name,
|
|
1867
|
-
path: item.root ?
|
|
1166
|
+
path: item.root ? _chunkGOCMZM5Zcjs.getRelativePath.call(void 0, item.root, item.path) : item.path,
|
|
1868
1167
|
isTypeOnly: item.isTypeOnly
|
|
1869
1168
|
});
|
|
1870
1169
|
});
|
|
@@ -1880,16 +1179,16 @@ function getSource(file) {
|
|
|
1880
1179
|
return _parser.print.call(void 0, [], { source, noEmitHelpers: false });
|
|
1881
1180
|
}
|
|
1882
1181
|
function combineExports(exports) {
|
|
1883
|
-
const combinedExports =
|
|
1182
|
+
const combinedExports = _chunkN7GFIV72cjs.orderBy.call(void 0, exports, [(v) => !v.isTypeOnly], ["asc"]).reduce(
|
|
1884
1183
|
(prev, curr) => {
|
|
1885
1184
|
const name = curr.name;
|
|
1886
1185
|
const prevByPath = prev.findLast((imp) => imp.path === curr.path);
|
|
1887
|
-
const prevByPathAndIsTypeOnly = prev.findLast((imp) => imp.path === curr.path && (0,
|
|
1186
|
+
const prevByPathAndIsTypeOnly = prev.findLast((imp) => imp.path === curr.path && _remeda.isDeepEqual.call(void 0, imp.name, name) && imp.isTypeOnly);
|
|
1888
1187
|
if (prevByPathAndIsTypeOnly) {
|
|
1889
1188
|
return prev;
|
|
1890
1189
|
}
|
|
1891
1190
|
const uniquePrev = prev.findLast(
|
|
1892
|
-
(imp) => imp.path === curr.path && (0,
|
|
1191
|
+
(imp) => imp.path === curr.path && _remeda.isDeepEqual.call(void 0, imp.name, name) && imp.isTypeOnly === curr.isTypeOnly && imp.asAlias === curr.asAlias
|
|
1893
1192
|
);
|
|
1894
1193
|
if (uniquePrev || Array.isArray(name) && !name.length || _optionalChain([prevByPath, 'optionalAccess', _36 => _36.asAlias]) && !curr.asAlias) {
|
|
1895
1194
|
return prev;
|
|
@@ -1911,10 +1210,10 @@ function combineExports(exports) {
|
|
|
1911
1210
|
},
|
|
1912
1211
|
[]
|
|
1913
1212
|
);
|
|
1914
|
-
return
|
|
1213
|
+
return _chunkN7GFIV72cjs.orderBy.call(void 0, combinedExports, [(v) => !v.isTypeOnly, (v) => v.asAlias], ["desc", "desc"]);
|
|
1915
1214
|
}
|
|
1916
1215
|
function combineImports(imports, exports, source) {
|
|
1917
|
-
const combinedImports =
|
|
1216
|
+
const combinedImports = _chunkN7GFIV72cjs.orderBy.call(void 0, imports, [(v) => !v.isTypeOnly], ["asc"]).reduce(
|
|
1918
1217
|
(prev, curr) => {
|
|
1919
1218
|
let name = Array.isArray(curr.name) ? [...new Set(curr.name)] : curr.name;
|
|
1920
1219
|
const hasImportInSource = (importName) => {
|
|
@@ -1928,8 +1227,8 @@ function combineImports(imports, exports, source) {
|
|
|
1928
1227
|
name = name.filter((item) => typeof item === "string" ? hasImportInSource(item) : hasImportInSource(item.propertyName));
|
|
1929
1228
|
}
|
|
1930
1229
|
const prevByPath = prev.findLast((imp) => imp.path === curr.path && imp.isTypeOnly === curr.isTypeOnly);
|
|
1931
|
-
const uniquePrev = prev.findLast((imp) => imp.path === curr.path && (0,
|
|
1932
|
-
const prevByPathNameAndIsTypeOnly = prev.findLast((imp) => imp.path === curr.path && (0,
|
|
1230
|
+
const uniquePrev = prev.findLast((imp) => imp.path === curr.path && _remeda.isDeepEqual.call(void 0, imp.name, name) && imp.isTypeOnly === curr.isTypeOnly);
|
|
1231
|
+
const prevByPathNameAndIsTypeOnly = prev.findLast((imp) => imp.path === curr.path && _remeda.isDeepEqual.call(void 0, imp.name, name) && imp.isTypeOnly);
|
|
1933
1232
|
if (prevByPathNameAndIsTypeOnly) {
|
|
1934
1233
|
return prev;
|
|
1935
1234
|
}
|
|
@@ -1956,7 +1255,7 @@ function combineImports(imports, exports, source) {
|
|
|
1956
1255
|
},
|
|
1957
1256
|
[]
|
|
1958
1257
|
);
|
|
1959
|
-
return
|
|
1258
|
+
return _chunkN7GFIV72cjs.orderBy.call(void 0, combinedImports, [(v) => !v.isTypeOnly], ["desc"]);
|
|
1960
1259
|
}
|
|
1961
1260
|
function getEnvSource(source, env) {
|
|
1962
1261
|
if (!env) {
|
|
@@ -1973,13 +1272,13 @@ function getEnvSource(source, env) {
|
|
|
1973
1272
|
throw new TypeError(`Environment should be in upperCase for ${key}`);
|
|
1974
1273
|
}
|
|
1975
1274
|
if (typeof replaceBy === "string") {
|
|
1976
|
-
prev =
|
|
1275
|
+
prev = _chunk6XBPOTJNcjs.searchAndReplace.call(void 0, {
|
|
1977
1276
|
text: prev.replaceAll(`process.env.${key}`, replaceBy),
|
|
1978
1277
|
replaceBy,
|
|
1979
1278
|
prefix: "process.env",
|
|
1980
1279
|
key
|
|
1981
1280
|
});
|
|
1982
|
-
prev =
|
|
1281
|
+
prev = _chunk6XBPOTJNcjs.searchAndReplace.call(void 0, {
|
|
1983
1282
|
text: prev.replaceAll(/(declare const).*\n/gi, ""),
|
|
1984
1283
|
replaceBy,
|
|
1985
1284
|
key
|
|
@@ -1990,13 +1289,13 @@ function getEnvSource(source, env) {
|
|
|
1990
1289
|
}
|
|
1991
1290
|
|
|
1992
1291
|
// src/PluginManager.ts
|
|
1993
|
-
|
|
1292
|
+
_chunkQAG3ZNOMcjs.init_cjs_shims.call(void 0, );
|
|
1994
1293
|
|
|
1995
1294
|
// src/PromiseManager.ts
|
|
1996
|
-
|
|
1295
|
+
_chunkQAG3ZNOMcjs.init_cjs_shims.call(void 0, );
|
|
1997
1296
|
|
|
1998
1297
|
// src/utils/executeStrategies.ts
|
|
1999
|
-
|
|
1298
|
+
_chunkQAG3ZNOMcjs.init_cjs_shims.call(void 0, );
|
|
2000
1299
|
function hookSeq(promises) {
|
|
2001
1300
|
return promises.filter(Boolean).reduce(
|
|
2002
1301
|
(promise, func) => {
|
|
@@ -2034,8 +1333,8 @@ function hookParallel(promises) {
|
|
|
2034
1333
|
var _options2;
|
|
2035
1334
|
var PromiseManager = class {
|
|
2036
1335
|
constructor(options = {}) {
|
|
2037
|
-
|
|
2038
|
-
|
|
1336
|
+
_chunkQAG3ZNOMcjs.__privateAdd.call(void 0, this, _options2, {});
|
|
1337
|
+
_chunkQAG3ZNOMcjs.__privateSet.call(void 0, this, _options2, options);
|
|
2039
1338
|
return this;
|
|
2040
1339
|
}
|
|
2041
1340
|
run(strategy, promises) {
|
|
@@ -2043,7 +1342,7 @@ var PromiseManager = class {
|
|
|
2043
1342
|
return hookSeq(promises);
|
|
2044
1343
|
}
|
|
2045
1344
|
if (strategy === "first") {
|
|
2046
|
-
return hookFirst(promises,
|
|
1345
|
+
return hookFirst(promises, _chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _options2).nullCheck);
|
|
2047
1346
|
}
|
|
2048
1347
|
if (strategy === "parallel") {
|
|
2049
1348
|
return hookParallel(promises);
|
|
@@ -2060,7 +1359,7 @@ function isPromiseRejectedResult(result) {
|
|
|
2060
1359
|
}
|
|
2061
1360
|
|
|
2062
1361
|
// src/errors.ts
|
|
2063
|
-
|
|
1362
|
+
_chunkQAG3ZNOMcjs.init_cjs_shims.call(void 0, );
|
|
2064
1363
|
var Warning = class extends Error {
|
|
2065
1364
|
constructor(message, options) {
|
|
2066
1365
|
super(message, { cause: _optionalChain([options, 'optionalAccess', _42 => _42.cause]) });
|
|
@@ -2071,11 +1370,11 @@ var ValidationPluginError = class extends Error {
|
|
|
2071
1370
|
};
|
|
2072
1371
|
|
|
2073
1372
|
// src/plugin.ts
|
|
2074
|
-
|
|
1373
|
+
_chunkQAG3ZNOMcjs.init_cjs_shims.call(void 0, );
|
|
2075
1374
|
|
|
2076
1375
|
|
|
2077
1376
|
// src/utils/cache.ts
|
|
2078
|
-
|
|
1377
|
+
_chunkQAG3ZNOMcjs.init_cjs_shims.call(void 0, );
|
|
2079
1378
|
function createPluginCache(Store = /* @__PURE__ */ Object.create(null)) {
|
|
2080
1379
|
return {
|
|
2081
1380
|
set(id, value) {
|
|
@@ -2156,8 +1455,8 @@ var definePlugin = createPlugin((options) => {
|
|
|
2156
1455
|
var _core, _usedPluginNames, _promiseManager, _getSortedPlugins, getSortedPlugins_fn, _addExecutedToCallStack, addExecutedToCallStack_fn, _execute, execute_fn, _executeSync, executeSync_fn, _catcher, catcher_fn, _parse, parse_fn;
|
|
2157
1456
|
var PluginManager = class {
|
|
2158
1457
|
constructor(config, options) {
|
|
2159
|
-
|
|
2160
|
-
|
|
1458
|
+
_chunkQAG3ZNOMcjs.__privateAdd.call(void 0, this, _getSortedPlugins);
|
|
1459
|
+
_chunkQAG3ZNOMcjs.__privateAdd.call(void 0, this, _addExecutedToCallStack);
|
|
2161
1460
|
/**
|
|
2162
1461
|
* Run an async plugin hook and return the result.
|
|
2163
1462
|
* @param hookName Name of the plugin hook. Must be either in `PluginHooks` or `OutputPluginValueHooks`.
|
|
@@ -2165,7 +1464,7 @@ var PluginManager = class {
|
|
|
2165
1464
|
* @param plugin The actual pluginObject to run.
|
|
2166
1465
|
*/
|
|
2167
1466
|
// Implementation signature
|
|
2168
|
-
|
|
1467
|
+
_chunkQAG3ZNOMcjs.__privateAdd.call(void 0, this, _execute);
|
|
2169
1468
|
/**
|
|
2170
1469
|
* Run a sync plugin hook and return the result.
|
|
2171
1470
|
* @param hookName Name of the plugin hook. Must be in `PluginHooks`.
|
|
@@ -2173,14 +1472,14 @@ var PluginManager = class {
|
|
|
2173
1472
|
* @param plugin The acutal plugin
|
|
2174
1473
|
* @param replaceContext When passed, the plugin context can be overridden.
|
|
2175
1474
|
*/
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
this.events = new (0,
|
|
1475
|
+
_chunkQAG3ZNOMcjs.__privateAdd.call(void 0, this, _executeSync);
|
|
1476
|
+
_chunkQAG3ZNOMcjs.__privateAdd.call(void 0, this, _catcher);
|
|
1477
|
+
_chunkQAG3ZNOMcjs.__privateAdd.call(void 0, this, _parse);
|
|
1478
|
+
this.events = new (0, _chunkFJJL4FXBcjs.EventEmitter)();
|
|
2180
1479
|
this.executed = [];
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
1480
|
+
_chunkQAG3ZNOMcjs.__privateAdd.call(void 0, this, _core, void 0);
|
|
1481
|
+
_chunkQAG3ZNOMcjs.__privateAdd.call(void 0, this, _usedPluginNames, {});
|
|
1482
|
+
_chunkQAG3ZNOMcjs.__privateAdd.call(void 0, this, _promiseManager, void 0);
|
|
2184
1483
|
this.resolvePath = (params) => {
|
|
2185
1484
|
if (params.pluginKey) {
|
|
2186
1485
|
const paths = this.hookForPluginSync({
|
|
@@ -2222,13 +1521,13 @@ Falling back on the first item.
|
|
|
2222
1521
|
`
|
|
2223
1522
|
]);
|
|
2224
1523
|
}
|
|
2225
|
-
return
|
|
1524
|
+
return _chunk6XBPOTJNcjs.transformReservedWord.call(void 0, _optionalChain([names, 'optionalAccess', _47 => _47.at, 'call', _48 => _48(0)]) || params.name);
|
|
2226
1525
|
}
|
|
2227
1526
|
const name = this.hookFirstSync({
|
|
2228
1527
|
hookName: "resolveName",
|
|
2229
1528
|
parameters: [params.name, params.type]
|
|
2230
1529
|
}).result;
|
|
2231
|
-
return
|
|
1530
|
+
return _chunk6XBPOTJNcjs.transformReservedWord.call(void 0, name);
|
|
2232
1531
|
};
|
|
2233
1532
|
this.config = config;
|
|
2234
1533
|
this.logger = options.logger;
|
|
@@ -2237,7 +1536,7 @@ Falling back on the first item.
|
|
|
2237
1536
|
task: options.task,
|
|
2238
1537
|
queue: this.queue
|
|
2239
1538
|
});
|
|
2240
|
-
|
|
1539
|
+
_chunkQAG3ZNOMcjs.__privateSet.call(void 0, this, _promiseManager, new PromiseManager({
|
|
2241
1540
|
nullCheck: (state) => !!_optionalChain([state, 'optionalAccess', _49 => _49.result])
|
|
2242
1541
|
}));
|
|
2243
1542
|
const plugins = config.plugins || [];
|
|
@@ -2248,11 +1547,11 @@ Falling back on the first item.
|
|
|
2248
1547
|
fileManager: this.fileManager,
|
|
2249
1548
|
resolvePath: this.resolvePath.bind(this),
|
|
2250
1549
|
resolveName: this.resolveName.bind(this),
|
|
2251
|
-
getPlugins:
|
|
1550
|
+
getPlugins: _chunkQAG3ZNOMcjs.__privateMethod.call(void 0, this, _getSortedPlugins, getSortedPlugins_fn).bind(this)
|
|
2252
1551
|
});
|
|
2253
|
-
|
|
2254
|
-
this.plugins = [
|
|
2255
|
-
return
|
|
1552
|
+
_chunkQAG3ZNOMcjs.__privateSet.call(void 0, this, _core, _chunkQAG3ZNOMcjs.__privateMethod.call(void 0, this, _parse, parse_fn).call(this, core, this, core.api.call(null)));
|
|
1553
|
+
this.plugins = [_chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _core), ...plugins].map((plugin) => {
|
|
1554
|
+
return _chunkQAG3ZNOMcjs.__privateMethod.call(void 0, this, _parse, parse_fn).call(this, plugin, this, _chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _core).api);
|
|
2256
1555
|
});
|
|
2257
1556
|
return this;
|
|
2258
1557
|
}
|
|
@@ -2264,7 +1563,7 @@ Falling back on the first item.
|
|
|
2264
1563
|
throw new Error(`Filepath should be defined for resolvedName "${name}" and pluginKey [${JSON.stringify(pluginKey)}]`);
|
|
2265
1564
|
}
|
|
2266
1565
|
try {
|
|
2267
|
-
source =
|
|
1566
|
+
source = _chunkGOCMZM5Zcjs.readSync.call(void 0, path5);
|
|
2268
1567
|
} catch (_e) {
|
|
2269
1568
|
}
|
|
2270
1569
|
return {
|
|
@@ -2292,7 +1591,7 @@ Falling back on the first item.
|
|
|
2292
1591
|
}) {
|
|
2293
1592
|
const plugins = this.getPluginsByKey(hookName, pluginKey);
|
|
2294
1593
|
const promises = plugins.map((plugin) => {
|
|
2295
|
-
return
|
|
1594
|
+
return _chunkQAG3ZNOMcjs.__privateMethod.call(void 0, this, _execute, execute_fn).call(this, {
|
|
2296
1595
|
strategy: "hookFirst",
|
|
2297
1596
|
hookName,
|
|
2298
1597
|
parameters,
|
|
@@ -2311,7 +1610,7 @@ Falling back on the first item.
|
|
|
2311
1610
|
}) {
|
|
2312
1611
|
const plugins = this.getPluginsByKey(hookName, pluginKey);
|
|
2313
1612
|
return plugins.map((plugin) => {
|
|
2314
|
-
return
|
|
1613
|
+
return _chunkQAG3ZNOMcjs.__privateMethod.call(void 0, this, _executeSync, executeSync_fn).call(this, {
|
|
2315
1614
|
strategy: "hookFirst",
|
|
2316
1615
|
hookName,
|
|
2317
1616
|
parameters,
|
|
@@ -2327,11 +1626,11 @@ Falling back on the first item.
|
|
|
2327
1626
|
parameters,
|
|
2328
1627
|
skipped
|
|
2329
1628
|
}) {
|
|
2330
|
-
const promises =
|
|
1629
|
+
const promises = _chunkQAG3ZNOMcjs.__privateMethod.call(void 0, this, _getSortedPlugins, getSortedPlugins_fn).call(this).filter((plugin) => {
|
|
2331
1630
|
return skipped ? skipped.has(plugin) : true;
|
|
2332
1631
|
}).map((plugin) => {
|
|
2333
1632
|
return async () => {
|
|
2334
|
-
const value = await
|
|
1633
|
+
const value = await _chunkQAG3ZNOMcjs.__privateMethod.call(void 0, this, _execute, execute_fn).call(this, {
|
|
2335
1634
|
strategy: "hookFirst",
|
|
2336
1635
|
hookName,
|
|
2337
1636
|
parameters,
|
|
@@ -2343,7 +1642,7 @@ Falling back on the first item.
|
|
|
2343
1642
|
});
|
|
2344
1643
|
};
|
|
2345
1644
|
});
|
|
2346
|
-
return
|
|
1645
|
+
return _chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _promiseManager).run("first", promises);
|
|
2347
1646
|
}
|
|
2348
1647
|
/**
|
|
2349
1648
|
* First non-null result stops and will return it's value.
|
|
@@ -2354,12 +1653,12 @@ Falling back on the first item.
|
|
|
2354
1653
|
skipped
|
|
2355
1654
|
}) {
|
|
2356
1655
|
let parseResult = null;
|
|
2357
|
-
for (const plugin of
|
|
1656
|
+
for (const plugin of _chunkQAG3ZNOMcjs.__privateMethod.call(void 0, this, _getSortedPlugins, getSortedPlugins_fn).call(this)) {
|
|
2358
1657
|
if (_optionalChain([skipped, 'optionalAccess', _50 => _50.has, 'call', _51 => _51(plugin)])) {
|
|
2359
1658
|
continue;
|
|
2360
1659
|
}
|
|
2361
1660
|
parseResult = {
|
|
2362
|
-
result:
|
|
1661
|
+
result: _chunkQAG3ZNOMcjs.__privateMethod.call(void 0, this, _executeSync, executeSync_fn).call(this, {
|
|
2363
1662
|
strategy: "hookFirst",
|
|
2364
1663
|
hookName,
|
|
2365
1664
|
parameters,
|
|
@@ -2380,19 +1679,19 @@ Falling back on the first item.
|
|
|
2380
1679
|
hookName,
|
|
2381
1680
|
parameters
|
|
2382
1681
|
}) {
|
|
2383
|
-
const promises =
|
|
2384
|
-
return () =>
|
|
1682
|
+
const promises = _chunkQAG3ZNOMcjs.__privateMethod.call(void 0, this, _getSortedPlugins, getSortedPlugins_fn).call(this).map((plugin) => {
|
|
1683
|
+
return () => _chunkQAG3ZNOMcjs.__privateMethod.call(void 0, this, _execute, execute_fn).call(this, {
|
|
2385
1684
|
strategy: "hookParallel",
|
|
2386
1685
|
hookName,
|
|
2387
1686
|
parameters,
|
|
2388
1687
|
plugin
|
|
2389
1688
|
});
|
|
2390
1689
|
});
|
|
2391
|
-
const results = await
|
|
1690
|
+
const results = await _chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _promiseManager).run("parallel", promises);
|
|
2392
1691
|
results.forEach((result, index) => {
|
|
2393
1692
|
if (isPromiseRejectedResult(result)) {
|
|
2394
|
-
const plugin =
|
|
2395
|
-
|
|
1693
|
+
const plugin = _chunkQAG3ZNOMcjs.__privateMethod.call(void 0, this, _getSortedPlugins, getSortedPlugins_fn).call(this)[index];
|
|
1694
|
+
_chunkQAG3ZNOMcjs.__privateMethod.call(void 0, this, _catcher, catcher_fn).call(this, result.reason, plugin, hookName);
|
|
2396
1695
|
}
|
|
2397
1696
|
});
|
|
2398
1697
|
return results.filter((result) => result.status === "fulfilled").map((result) => result.value);
|
|
@@ -2407,16 +1706,16 @@ Falling back on the first item.
|
|
|
2407
1706
|
}) {
|
|
2408
1707
|
const [argument0, ...rest] = parameters;
|
|
2409
1708
|
let promise = Promise.resolve(argument0);
|
|
2410
|
-
for (const plugin of
|
|
1709
|
+
for (const plugin of _chunkQAG3ZNOMcjs.__privateMethod.call(void 0, this, _getSortedPlugins, getSortedPlugins_fn).call(this)) {
|
|
2411
1710
|
promise = promise.then((arg0) => {
|
|
2412
|
-
const value =
|
|
1711
|
+
const value = _chunkQAG3ZNOMcjs.__privateMethod.call(void 0, this, _execute, execute_fn).call(this, {
|
|
2413
1712
|
strategy: "hookReduceArg0",
|
|
2414
1713
|
hookName,
|
|
2415
1714
|
parameters: [arg0, ...rest],
|
|
2416
1715
|
plugin
|
|
2417
1716
|
});
|
|
2418
1717
|
return value;
|
|
2419
|
-
}).then((result) => reduce.call(
|
|
1718
|
+
}).then((result) => reduce.call(_chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _core).api, argument0, result, plugin));
|
|
2420
1719
|
}
|
|
2421
1720
|
return promise;
|
|
2422
1721
|
}
|
|
@@ -2424,15 +1723,15 @@ Falling back on the first item.
|
|
|
2424
1723
|
* Chains plugins
|
|
2425
1724
|
*/
|
|
2426
1725
|
async hookSeq({ hookName, parameters }) {
|
|
2427
|
-
const promises =
|
|
2428
|
-
return () =>
|
|
1726
|
+
const promises = _chunkQAG3ZNOMcjs.__privateMethod.call(void 0, this, _getSortedPlugins, getSortedPlugins_fn).call(this).map((plugin) => {
|
|
1727
|
+
return () => _chunkQAG3ZNOMcjs.__privateMethod.call(void 0, this, _execute, execute_fn).call(this, {
|
|
2429
1728
|
strategy: "hookSeq",
|
|
2430
1729
|
hookName,
|
|
2431
1730
|
parameters,
|
|
2432
1731
|
plugin
|
|
2433
1732
|
});
|
|
2434
1733
|
});
|
|
2435
|
-
return
|
|
1734
|
+
return _chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _promiseManager).run("seq", promises);
|
|
2436
1735
|
}
|
|
2437
1736
|
getPluginsByKey(hookName, pluginKey) {
|
|
2438
1737
|
const plugins = [...this.plugins];
|
|
@@ -2472,7 +1771,6 @@ Falling back on the first item.
|
|
|
2472
1771
|
return plugin;
|
|
2473
1772
|
});
|
|
2474
1773
|
}
|
|
2475
|
-
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
2476
1774
|
static get hooks() {
|
|
2477
1775
|
return ["buildStart", "resolvePath", "resolveName", "load", "transform", "writeFile", "buildEnd"];
|
|
2478
1776
|
}
|
|
@@ -2484,7 +1782,7 @@ _getSortedPlugins = new WeakSet();
|
|
|
2484
1782
|
getSortedPlugins_fn = function(hookName) {
|
|
2485
1783
|
const plugins = [...this.plugins].filter((plugin) => plugin.name !== "core");
|
|
2486
1784
|
if (hookName) {
|
|
2487
|
-
if (this.logger.logLevel ===
|
|
1785
|
+
if (this.logger.logLevel === _chunkFJJL4FXBcjs.LogLevel.info) {
|
|
2488
1786
|
const containsHookName = plugins.some((item) => item[hookName]);
|
|
2489
1787
|
if (!containsHookName) {
|
|
2490
1788
|
this.logger.emit("warning", `No hook ${hookName} found`);
|
|
@@ -2532,7 +1830,7 @@ execute_fn = function({
|
|
|
2532
1830
|
this.events.emit("execute", { strategy, hookName, parameters, plugin });
|
|
2533
1831
|
const task = Promise.resolve().then(() => {
|
|
2534
1832
|
if (typeof hook === "function") {
|
|
2535
|
-
const possiblePromiseResult = hook.apply({ ...
|
|
1833
|
+
const possiblePromiseResult = hook.apply({ ..._chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _core).api, plugin }, parameters);
|
|
2536
1834
|
if (isPromise(possiblePromiseResult)) {
|
|
2537
1835
|
return Promise.resolve(possiblePromiseResult);
|
|
2538
1836
|
}
|
|
@@ -2541,7 +1839,7 @@ execute_fn = function({
|
|
|
2541
1839
|
return hook;
|
|
2542
1840
|
}).then((result) => {
|
|
2543
1841
|
output = result;
|
|
2544
|
-
|
|
1842
|
+
_chunkQAG3ZNOMcjs.__privateMethod.call(void 0, this, _addExecutedToCallStack, addExecutedToCallStack_fn).call(this, {
|
|
2545
1843
|
parameters,
|
|
2546
1844
|
output,
|
|
2547
1845
|
strategy,
|
|
@@ -2550,7 +1848,7 @@ execute_fn = function({
|
|
|
2550
1848
|
});
|
|
2551
1849
|
return result;
|
|
2552
1850
|
}).catch((e) => {
|
|
2553
|
-
|
|
1851
|
+
_chunkQAG3ZNOMcjs.__privateMethod.call(void 0, this, _catcher, catcher_fn).call(this, e, plugin, hookName);
|
|
2554
1852
|
return null;
|
|
2555
1853
|
});
|
|
2556
1854
|
return task;
|
|
@@ -2570,12 +1868,12 @@ executeSync_fn = function({
|
|
|
2570
1868
|
this.events.emit("execute", { strategy, hookName, parameters, plugin });
|
|
2571
1869
|
try {
|
|
2572
1870
|
if (typeof hook === "function") {
|
|
2573
|
-
const fn = hook.apply({ ...
|
|
1871
|
+
const fn = hook.apply({ ..._chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _core).api, plugin }, parameters);
|
|
2574
1872
|
output = fn;
|
|
2575
1873
|
return fn;
|
|
2576
1874
|
}
|
|
2577
1875
|
output = hook;
|
|
2578
|
-
|
|
1876
|
+
_chunkQAG3ZNOMcjs.__privateMethod.call(void 0, this, _addExecutedToCallStack, addExecutedToCallStack_fn).call(this, {
|
|
2579
1877
|
parameters,
|
|
2580
1878
|
output,
|
|
2581
1879
|
strategy,
|
|
@@ -2584,7 +1882,7 @@ executeSync_fn = function({
|
|
|
2584
1882
|
});
|
|
2585
1883
|
return hook;
|
|
2586
1884
|
} catch (e) {
|
|
2587
|
-
|
|
1885
|
+
_chunkQAG3ZNOMcjs.__privateMethod.call(void 0, this, _catcher, catcher_fn).call(this, e, plugin, hookName);
|
|
2588
1886
|
return null;
|
|
2589
1887
|
}
|
|
2590
1888
|
};
|
|
@@ -2596,8 +1894,8 @@ catcher_fn = function(cause, plugin, hookName) {
|
|
|
2596
1894
|
};
|
|
2597
1895
|
_parse = new WeakSet();
|
|
2598
1896
|
parse_fn = function(plugin, pluginManager, context) {
|
|
2599
|
-
const usedPluginNames =
|
|
2600
|
-
|
|
1897
|
+
const usedPluginNames = _chunkQAG3ZNOMcjs.__privateGet.call(void 0, pluginManager, _usedPluginNames);
|
|
1898
|
+
_chunkSEIE6FAKcjs.setUniqueName.call(void 0, plugin.name, usedPluginNames);
|
|
2601
1899
|
const key = [plugin.name, usedPluginNames[plugin.name]].filter(Boolean);
|
|
2602
1900
|
if (!plugin.transform) {
|
|
2603
1901
|
plugin.transform = function transform(code) {
|
|
@@ -2619,7 +1917,7 @@ parse_fn = function(plugin, pluginManager, context) {
|
|
|
2619
1917
|
};
|
|
2620
1918
|
|
|
2621
1919
|
// src/config.ts
|
|
2622
|
-
|
|
1920
|
+
_chunkQAG3ZNOMcjs.init_cjs_shims.call(void 0, );
|
|
2623
1921
|
function defineConfig(options) {
|
|
2624
1922
|
return options;
|
|
2625
1923
|
}
|
|
@@ -2632,16 +1930,16 @@ async function transformReducer(_previousCode, result, _plugin) {
|
|
|
2632
1930
|
return result;
|
|
2633
1931
|
}
|
|
2634
1932
|
async function setup(options) {
|
|
2635
|
-
const { config, logger =
|
|
1933
|
+
const { config, logger = _chunkFJJL4FXBcjs.createLogger.call(void 0, { logLevel: _chunkFJJL4FXBcjs.LogLevel.silent }) } = options;
|
|
2636
1934
|
let count = 0;
|
|
2637
1935
|
try {
|
|
2638
|
-
if (isInputPath(config) && !new (0,
|
|
2639
|
-
await
|
|
1936
|
+
if (isInputPath(config) && !new (0, _chunkSEIE6FAKcjs.URLPath)(config.input.path).isURL) {
|
|
1937
|
+
await _chunkGOCMZM5Zcjs.read.call(void 0, config.input.path);
|
|
2640
1938
|
}
|
|
2641
1939
|
} catch (e) {
|
|
2642
1940
|
if (isInputPath(config)) {
|
|
2643
1941
|
throw new Error(
|
|
2644
|
-
`Cannot read file/URL defined in \`input.path\` or set with \`kubb generate PATH\` in the CLI of your Kubb config ${
|
|
1942
|
+
`Cannot read file/URL defined in \`input.path\` or set with \`kubb generate PATH\` in the CLI of your Kubb config ${_chunkFJJL4FXBcjs.p.dim(config.input.path)}`,
|
|
2645
1943
|
{
|
|
2646
1944
|
cause: e
|
|
2647
1945
|
}
|
|
@@ -2649,7 +1947,7 @@ async function setup(options) {
|
|
|
2649
1947
|
}
|
|
2650
1948
|
}
|
|
2651
1949
|
if (config.output.clean) {
|
|
2652
|
-
await
|
|
1950
|
+
await _chunkJ6F7QWGKcjs.clean.call(void 0, config.output.path);
|
|
2653
1951
|
}
|
|
2654
1952
|
const task = async (file) => {
|
|
2655
1953
|
const { path: path5 } = file;
|
|
@@ -2694,14 +1992,14 @@ async function setup(options) {
|
|
|
2694
1992
|
const { hookName, parameters, plugin } = executer;
|
|
2695
1993
|
if (hookName === "writeFile") {
|
|
2696
1994
|
const [code] = parameters;
|
|
2697
|
-
logger.emit("debug", [`PluginKey ${
|
|
1995
|
+
logger.emit("debug", [`PluginKey ${_chunkFJJL4FXBcjs.p.dim(JSON.stringify(plugin.key))}
|
|
2698
1996
|
with source
|
|
2699
1997
|
|
|
2700
1998
|
${code}`]);
|
|
2701
1999
|
}
|
|
2702
2000
|
});
|
|
2703
2001
|
pluginManager.queue.on("add", () => {
|
|
2704
|
-
if (logger.logLevel !==
|
|
2002
|
+
if (logger.logLevel !== _chunkFJJL4FXBcjs.LogLevel.info) {
|
|
2705
2003
|
return;
|
|
2706
2004
|
}
|
|
2707
2005
|
if (count === 0) {
|
|
@@ -2709,31 +2007,31 @@ ${code}`]);
|
|
|
2709
2007
|
}
|
|
2710
2008
|
});
|
|
2711
2009
|
pluginManager.queue.on("active", () => {
|
|
2712
|
-
if (logger.logLevel !==
|
|
2010
|
+
if (logger.logLevel !== _chunkFJJL4FXBcjs.LogLevel.info) {
|
|
2713
2011
|
return;
|
|
2714
2012
|
}
|
|
2715
2013
|
if (logger.spinner && pluginManager.queue.size > 0) {
|
|
2716
2014
|
const text = `Item: ${count} Size: ${pluginManager.queue.size} Pending: ${pluginManager.queue.pending}`;
|
|
2717
|
-
logger.spinner.suffixText =
|
|
2015
|
+
logger.spinner.suffixText = _chunkFJJL4FXBcjs.p.dim(text);
|
|
2718
2016
|
}
|
|
2719
2017
|
++count;
|
|
2720
2018
|
});
|
|
2721
2019
|
pluginManager.queue.on("completed", () => {
|
|
2722
|
-
if (logger.logLevel !==
|
|
2020
|
+
if (logger.logLevel !== _chunkFJJL4FXBcjs.LogLevel.info) {
|
|
2723
2021
|
return;
|
|
2724
2022
|
}
|
|
2725
2023
|
if (logger.spinner) {
|
|
2726
2024
|
const text = `Item: ${count} Size: ${pluginManager.queue.size} Pending: ${pluginManager.queue.pending}`;
|
|
2727
|
-
logger.spinner.suffixText =
|
|
2025
|
+
logger.spinner.suffixText = _chunkFJJL4FXBcjs.p.dim(text);
|
|
2728
2026
|
}
|
|
2729
2027
|
});
|
|
2730
2028
|
pluginManager.on("executed", (executer) => {
|
|
2731
2029
|
const { hookName, plugin, output, parameters } = executer;
|
|
2732
2030
|
const logs = [
|
|
2733
|
-
`${
|
|
2734
|
-
parameters && `${
|
|
2031
|
+
`${_chunkFJJL4FXBcjs.randomCliColour.call(void 0, plugin.name)} Executing ${hookName}`,
|
|
2032
|
+
parameters && `${_chunkFJJL4FXBcjs.p.bgWhite("Parameters")} ${_chunkFJJL4FXBcjs.randomCliColour.call(void 0, plugin.name)} ${hookName}`,
|
|
2735
2033
|
JSON.stringify(parameters, void 0, 2),
|
|
2736
|
-
output && `${
|
|
2034
|
+
output && `${_chunkFJJL4FXBcjs.p.bgWhite("Output")} ${_chunkFJJL4FXBcjs.randomCliColour.call(void 0, plugin.name)} ${hookName}`,
|
|
2737
2035
|
output
|
|
2738
2036
|
].filter(Boolean);
|
|
2739
2037
|
logger.emit("debug", logs);
|
|
@@ -2748,7 +2046,7 @@ async function build(options) {
|
|
|
2748
2046
|
parameters: [options.config]
|
|
2749
2047
|
});
|
|
2750
2048
|
await pluginManager.hookParallel({ hookName: "buildEnd" });
|
|
2751
|
-
if (logger.logLevel ===
|
|
2049
|
+
if (logger.logLevel === _chunkFJJL4FXBcjs.LogLevel.info) {
|
|
2752
2050
|
logger.emit("end", "\u{1F4BE} Writing completed");
|
|
2753
2051
|
}
|
|
2754
2052
|
return {
|
|
@@ -2768,7 +2066,7 @@ async function safeBuild(options) {
|
|
|
2768
2066
|
parameters: [options.config]
|
|
2769
2067
|
});
|
|
2770
2068
|
await pluginManager.hookParallel({ hookName: "buildEnd" });
|
|
2771
|
-
if (logger.logLevel ===
|
|
2069
|
+
if (logger.logLevel === _chunkFJJL4FXBcjs.LogLevel.info) {
|
|
2772
2070
|
logger.emit("end", "\u{1F4BE} Writing completed");
|
|
2773
2071
|
}
|
|
2774
2072
|
} catch (e) {
|
|
@@ -2791,103 +2089,103 @@ async function safeBuild(options) {
|
|
|
2791
2089
|
}
|
|
2792
2090
|
|
|
2793
2091
|
// src/Generator.ts
|
|
2794
|
-
|
|
2092
|
+
_chunkQAG3ZNOMcjs.init_cjs_shims.call(void 0, );
|
|
2795
2093
|
var _options3, _context;
|
|
2796
2094
|
var Generator = class {
|
|
2797
2095
|
constructor(options, context) {
|
|
2798
|
-
|
|
2799
|
-
|
|
2096
|
+
_chunkQAG3ZNOMcjs.__privateAdd.call(void 0, this, _options3, {});
|
|
2097
|
+
_chunkQAG3ZNOMcjs.__privateAdd.call(void 0, this, _context, {});
|
|
2800
2098
|
if (context) {
|
|
2801
|
-
|
|
2099
|
+
_chunkQAG3ZNOMcjs.__privateSet.call(void 0, this, _context, context);
|
|
2802
2100
|
}
|
|
2803
2101
|
if (options) {
|
|
2804
|
-
|
|
2102
|
+
_chunkQAG3ZNOMcjs.__privateSet.call(void 0, this, _options3, options);
|
|
2805
2103
|
}
|
|
2806
2104
|
return this;
|
|
2807
2105
|
}
|
|
2808
2106
|
get options() {
|
|
2809
|
-
return
|
|
2107
|
+
return _chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _options3);
|
|
2810
2108
|
}
|
|
2811
2109
|
get context() {
|
|
2812
|
-
return
|
|
2110
|
+
return _chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _context);
|
|
2813
2111
|
}
|
|
2814
2112
|
set options(options) {
|
|
2815
|
-
|
|
2113
|
+
_chunkQAG3ZNOMcjs.__privateSet.call(void 0, this, _options3, { ..._chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _options3), ...options });
|
|
2816
2114
|
}
|
|
2817
2115
|
};
|
|
2818
2116
|
_options3 = new WeakMap();
|
|
2819
2117
|
_context = new WeakMap();
|
|
2820
2118
|
|
|
2821
2119
|
// src/PackageManager.ts
|
|
2822
|
-
|
|
2120
|
+
_chunkQAG3ZNOMcjs.init_cjs_shims.call(void 0, );
|
|
2823
2121
|
var _module = require('module'); var _module2 = _interopRequireDefault(_module);
|
|
2824
2122
|
var _os = require('os'); var _os2 = _interopRequireDefault(_os);
|
|
2825
2123
|
var _url = require('url');
|
|
2826
2124
|
|
|
2827
2125
|
// ../../node_modules/.pnpm/find-up@7.0.0/node_modules/find-up/index.js
|
|
2828
|
-
|
|
2126
|
+
_chunkQAG3ZNOMcjs.init_cjs_shims.call(void 0, );
|
|
2829
2127
|
|
|
2830
2128
|
|
|
2831
2129
|
// ../../node_modules/.pnpm/locate-path@7.2.0/node_modules/locate-path/index.js
|
|
2832
|
-
|
|
2130
|
+
_chunkQAG3ZNOMcjs.init_cjs_shims.call(void 0, );
|
|
2833
2131
|
var _process = require('process'); var _process2 = _interopRequireDefault(_process);
|
|
2834
2132
|
|
|
2835
2133
|
var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
|
|
2836
2134
|
|
|
2837
2135
|
|
|
2838
2136
|
// ../../node_modules/.pnpm/p-locate@6.0.0/node_modules/p-locate/index.js
|
|
2839
|
-
|
|
2137
|
+
_chunkQAG3ZNOMcjs.init_cjs_shims.call(void 0, );
|
|
2840
2138
|
|
|
2841
2139
|
// ../../node_modules/.pnpm/p-limit@4.0.0/node_modules/p-limit/index.js
|
|
2842
|
-
|
|
2140
|
+
_chunkQAG3ZNOMcjs.init_cjs_shims.call(void 0, );
|
|
2843
2141
|
|
|
2844
2142
|
// ../../node_modules/.pnpm/yocto-queue@1.0.0/node_modules/yocto-queue/index.js
|
|
2845
|
-
|
|
2143
|
+
_chunkQAG3ZNOMcjs.init_cjs_shims.call(void 0, );
|
|
2846
2144
|
var Node = class {
|
|
2847
2145
|
constructor(value) {
|
|
2848
|
-
|
|
2849
|
-
|
|
2146
|
+
_chunkQAG3ZNOMcjs.__publicField.call(void 0, this, "value");
|
|
2147
|
+
_chunkQAG3ZNOMcjs.__publicField.call(void 0, this, "next");
|
|
2850
2148
|
this.value = value;
|
|
2851
2149
|
}
|
|
2852
2150
|
};
|
|
2853
2151
|
var _head, _tail, _size;
|
|
2854
2152
|
var Queue = class {
|
|
2855
2153
|
constructor() {
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2154
|
+
_chunkQAG3ZNOMcjs.__privateAdd.call(void 0, this, _head, void 0);
|
|
2155
|
+
_chunkQAG3ZNOMcjs.__privateAdd.call(void 0, this, _tail, void 0);
|
|
2156
|
+
_chunkQAG3ZNOMcjs.__privateAdd.call(void 0, this, _size, void 0);
|
|
2859
2157
|
this.clear();
|
|
2860
2158
|
}
|
|
2861
2159
|
enqueue(value) {
|
|
2862
2160
|
const node = new Node(value);
|
|
2863
|
-
if (
|
|
2864
|
-
|
|
2865
|
-
|
|
2161
|
+
if (_chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _head)) {
|
|
2162
|
+
_chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _tail).next = node;
|
|
2163
|
+
_chunkQAG3ZNOMcjs.__privateSet.call(void 0, this, _tail, node);
|
|
2866
2164
|
} else {
|
|
2867
|
-
|
|
2868
|
-
|
|
2165
|
+
_chunkQAG3ZNOMcjs.__privateSet.call(void 0, this, _head, node);
|
|
2166
|
+
_chunkQAG3ZNOMcjs.__privateSet.call(void 0, this, _tail, node);
|
|
2869
2167
|
}
|
|
2870
|
-
|
|
2168
|
+
_chunkQAG3ZNOMcjs.__privateWrapper.call(void 0, this, _size)._++;
|
|
2871
2169
|
}
|
|
2872
2170
|
dequeue() {
|
|
2873
|
-
const current =
|
|
2171
|
+
const current = _chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _head);
|
|
2874
2172
|
if (!current) {
|
|
2875
2173
|
return;
|
|
2876
2174
|
}
|
|
2877
|
-
|
|
2878
|
-
|
|
2175
|
+
_chunkQAG3ZNOMcjs.__privateSet.call(void 0, this, _head, _chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _head).next);
|
|
2176
|
+
_chunkQAG3ZNOMcjs.__privateWrapper.call(void 0, this, _size)._--;
|
|
2879
2177
|
return current.value;
|
|
2880
2178
|
}
|
|
2881
2179
|
clear() {
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2180
|
+
_chunkQAG3ZNOMcjs.__privateSet.call(void 0, this, _head, void 0);
|
|
2181
|
+
_chunkQAG3ZNOMcjs.__privateSet.call(void 0, this, _tail, void 0);
|
|
2182
|
+
_chunkQAG3ZNOMcjs.__privateSet.call(void 0, this, _size, 0);
|
|
2885
2183
|
}
|
|
2886
2184
|
get size() {
|
|
2887
|
-
return
|
|
2185
|
+
return _chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _size);
|
|
2888
2186
|
}
|
|
2889
2187
|
*[Symbol.iterator]() {
|
|
2890
|
-
let current =
|
|
2188
|
+
let current = _chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _head);
|
|
2891
2189
|
while (current) {
|
|
2892
2190
|
yield current.value;
|
|
2893
2191
|
current = current.next;
|
|
@@ -3038,14 +2336,14 @@ function locatePathSync(paths, {
|
|
|
3038
2336
|
}
|
|
3039
2337
|
|
|
3040
2338
|
// ../../node_modules/.pnpm/unicorn-magic@0.1.0/node_modules/unicorn-magic/node.js
|
|
3041
|
-
|
|
2339
|
+
_chunkQAG3ZNOMcjs.init_cjs_shims.call(void 0, );
|
|
3042
2340
|
|
|
3043
2341
|
function toPath2(urlOrPath) {
|
|
3044
2342
|
return urlOrPath instanceof URL ? _url.fileURLToPath.call(void 0, urlOrPath) : urlOrPath;
|
|
3045
2343
|
}
|
|
3046
2344
|
|
|
3047
2345
|
// ../../node_modules/.pnpm/path-exists@5.0.0/node_modules/path-exists/index.js
|
|
3048
|
-
|
|
2346
|
+
_chunkQAG3ZNOMcjs.init_cjs_shims.call(void 0, );
|
|
3049
2347
|
|
|
3050
2348
|
|
|
3051
2349
|
// ../../node_modules/.pnpm/find-up@7.0.0/node_modules/find-up/index.js
|
|
@@ -3128,30 +2426,30 @@ var _semver = require('semver');
|
|
|
3128
2426
|
var _cache2, _cwd, _SLASHES, _match, match_fn;
|
|
3129
2427
|
var _PackageManager = class _PackageManager {
|
|
3130
2428
|
constructor(workspace) {
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
2429
|
+
_chunkQAG3ZNOMcjs.__privateAdd.call(void 0, this, _match);
|
|
2430
|
+
_chunkQAG3ZNOMcjs.__privateAdd.call(void 0, this, _cwd, void 0);
|
|
2431
|
+
_chunkQAG3ZNOMcjs.__privateAdd.call(void 0, this, _SLASHES, /* @__PURE__ */ new Set(["/", "\\"]));
|
|
3134
2432
|
if (workspace) {
|
|
3135
|
-
|
|
2433
|
+
_chunkQAG3ZNOMcjs.__privateSet.call(void 0, this, _cwd, workspace);
|
|
3136
2434
|
}
|
|
3137
2435
|
return this;
|
|
3138
2436
|
}
|
|
3139
2437
|
set workspace(workspace) {
|
|
3140
|
-
|
|
2438
|
+
_chunkQAG3ZNOMcjs.__privateSet.call(void 0, this, _cwd, workspace);
|
|
3141
2439
|
}
|
|
3142
2440
|
get workspace() {
|
|
3143
|
-
return
|
|
2441
|
+
return _chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _cwd);
|
|
3144
2442
|
}
|
|
3145
2443
|
normalizeDirectory(directory) {
|
|
3146
|
-
if (!
|
|
2444
|
+
if (!_chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _SLASHES).has(directory[directory.length - 1])) {
|
|
3147
2445
|
return `${directory}/`;
|
|
3148
2446
|
}
|
|
3149
2447
|
return directory;
|
|
3150
2448
|
}
|
|
3151
2449
|
getLocation(path5) {
|
|
3152
2450
|
let location = path5;
|
|
3153
|
-
if (
|
|
3154
|
-
const require2 = _module2.default.createRequire(this.normalizeDirectory(
|
|
2451
|
+
if (_chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _cwd)) {
|
|
2452
|
+
const require2 = _module2.default.createRequire(this.normalizeDirectory(_chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _cwd)));
|
|
3155
2453
|
location = require2.resolve(path5);
|
|
3156
2454
|
}
|
|
3157
2455
|
return location;
|
|
@@ -3171,46 +2469,46 @@ var _PackageManager = class _PackageManager {
|
|
|
3171
2469
|
}
|
|
3172
2470
|
async getPackageJSON() {
|
|
3173
2471
|
const pkgPath = await findUp(["package.json"], {
|
|
3174
|
-
cwd:
|
|
2472
|
+
cwd: _chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _cwd)
|
|
3175
2473
|
});
|
|
3176
2474
|
if (!pkgPath) {
|
|
3177
2475
|
return void 0;
|
|
3178
2476
|
}
|
|
3179
|
-
const json = await
|
|
2477
|
+
const json = await _chunkGOCMZM5Zcjs.read.call(void 0, pkgPath);
|
|
3180
2478
|
return JSON.parse(json);
|
|
3181
2479
|
}
|
|
3182
2480
|
getPackageJSONSync() {
|
|
3183
2481
|
const pkgPath = findUpSync(["package.json"], {
|
|
3184
|
-
cwd:
|
|
2482
|
+
cwd: _chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _cwd)
|
|
3185
2483
|
});
|
|
3186
2484
|
if (!pkgPath) {
|
|
3187
2485
|
return void 0;
|
|
3188
2486
|
}
|
|
3189
|
-
const json =
|
|
2487
|
+
const json = _chunkGOCMZM5Zcjs.readSync.call(void 0, pkgPath);
|
|
3190
2488
|
return JSON.parse(json);
|
|
3191
2489
|
}
|
|
3192
2490
|
static setVersion(dependency, version) {
|
|
3193
|
-
|
|
2491
|
+
_chunkQAG3ZNOMcjs.__privateGet.call(void 0, _PackageManager, _cache2)[dependency] = version;
|
|
3194
2492
|
}
|
|
3195
2493
|
async getVersion(dependency) {
|
|
3196
|
-
if (typeof dependency === "string" &&
|
|
3197
|
-
return
|
|
2494
|
+
if (typeof dependency === "string" && _chunkQAG3ZNOMcjs.__privateGet.call(void 0, _PackageManager, _cache2)[dependency]) {
|
|
2495
|
+
return _chunkQAG3ZNOMcjs.__privateGet.call(void 0, _PackageManager, _cache2)[dependency];
|
|
3198
2496
|
}
|
|
3199
2497
|
const packageJSON = await this.getPackageJSON();
|
|
3200
2498
|
if (!packageJSON) {
|
|
3201
2499
|
return void 0;
|
|
3202
2500
|
}
|
|
3203
|
-
return
|
|
2501
|
+
return _chunkQAG3ZNOMcjs.__privateMethod.call(void 0, this, _match, match_fn).call(this, packageJSON, dependency);
|
|
3204
2502
|
}
|
|
3205
2503
|
getVersionSync(dependency) {
|
|
3206
|
-
if (typeof dependency === "string" &&
|
|
3207
|
-
return
|
|
2504
|
+
if (typeof dependency === "string" && _chunkQAG3ZNOMcjs.__privateGet.call(void 0, _PackageManager, _cache2)[dependency]) {
|
|
2505
|
+
return _chunkQAG3ZNOMcjs.__privateGet.call(void 0, _PackageManager, _cache2)[dependency];
|
|
3208
2506
|
}
|
|
3209
2507
|
const packageJSON = this.getPackageJSONSync();
|
|
3210
2508
|
if (!packageJSON) {
|
|
3211
2509
|
return void 0;
|
|
3212
2510
|
}
|
|
3213
|
-
return
|
|
2511
|
+
return _chunkQAG3ZNOMcjs.__privateMethod.call(void 0, this, _match, match_fn).call(this, packageJSON, dependency);
|
|
3214
2512
|
}
|
|
3215
2513
|
async isValid(dependency, version) {
|
|
3216
2514
|
const packageVersion = await this.getVersion(dependency);
|
|
@@ -3253,12 +2551,12 @@ match_fn = function(packageJSON, dependency) {
|
|
|
3253
2551
|
const matchedDependency = Object.keys(dependencies).find((dep) => dep.match(dependency));
|
|
3254
2552
|
return matchedDependency ? dependencies[matchedDependency] : void 0;
|
|
3255
2553
|
};
|
|
3256
|
-
|
|
2554
|
+
_chunkQAG3ZNOMcjs.__privateAdd.call(void 0, _PackageManager, _cache2, {});
|
|
3257
2555
|
var PackageManager = _PackageManager;
|
|
3258
2556
|
|
|
3259
2557
|
// src/kubb.ts
|
|
3260
2558
|
var kubb_exports = {};
|
|
3261
|
-
|
|
2559
|
+
_chunkQAG3ZNOMcjs.init_cjs_shims.call(void 0, );
|
|
3262
2560
|
|
|
3263
2561
|
|
|
3264
2562
|
|