@kubb/core 2.12.5 → 2.13.0
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.js
CHANGED
|
@@ -3,768 +3,53 @@ import {
|
|
|
3
3
|
transformReservedWord,
|
|
4
4
|
transformers_default,
|
|
5
5
|
trimExtName
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-JYAFGT4E.js";
|
|
7
7
|
import {
|
|
8
8
|
URLPath,
|
|
9
9
|
setUniqueName
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-GBVPADCA.js";
|
|
11
11
|
import {
|
|
12
12
|
orderBy
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-PVJACA4A.js";
|
|
14
14
|
import {
|
|
15
15
|
EventEmitter,
|
|
16
16
|
LogLevel,
|
|
17
17
|
createLogger,
|
|
18
18
|
p,
|
|
19
19
|
randomCliColour
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-JLT7YQF5.js";
|
|
21
21
|
import {
|
|
22
22
|
clean
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-5PLDNXZK.js";
|
|
24
24
|
import {
|
|
25
25
|
write
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import "./chunk-
|
|
26
|
+
} from "./chunk-2F7E62RD.js";
|
|
27
|
+
import "./chunk-4ARKZPSY.js";
|
|
28
28
|
import {
|
|
29
29
|
getRelativePath,
|
|
30
30
|
read,
|
|
31
31
|
readSync
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-NLZ2T737.js";
|
|
33
33
|
import {
|
|
34
|
-
__commonJS,
|
|
35
34
|
__privateAdd,
|
|
36
35
|
__privateGet,
|
|
37
36
|
__privateMethod,
|
|
38
|
-
__privateSet
|
|
39
|
-
|
|
40
|
-
init_esm_shims
|
|
41
|
-
} from "./chunk-FBJJW6ME.js";
|
|
42
|
-
|
|
43
|
-
// ../../node_modules/.pnpm/lodash.isequal@4.5.0/node_modules/lodash.isequal/index.js
|
|
44
|
-
var require_lodash = __commonJS({
|
|
45
|
-
"../../node_modules/.pnpm/lodash.isequal@4.5.0/node_modules/lodash.isequal/index.js"(exports, module) {
|
|
46
|
-
"use strict";
|
|
47
|
-
init_esm_shims();
|
|
48
|
-
var LARGE_ARRAY_SIZE = 200;
|
|
49
|
-
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
50
|
-
var COMPARE_PARTIAL_FLAG = 1;
|
|
51
|
-
var COMPARE_UNORDERED_FLAG = 2;
|
|
52
|
-
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
53
|
-
var argsTag = "[object Arguments]";
|
|
54
|
-
var arrayTag = "[object Array]";
|
|
55
|
-
var asyncTag = "[object AsyncFunction]";
|
|
56
|
-
var boolTag = "[object Boolean]";
|
|
57
|
-
var dateTag = "[object Date]";
|
|
58
|
-
var errorTag = "[object Error]";
|
|
59
|
-
var funcTag = "[object Function]";
|
|
60
|
-
var genTag = "[object GeneratorFunction]";
|
|
61
|
-
var mapTag = "[object Map]";
|
|
62
|
-
var numberTag = "[object Number]";
|
|
63
|
-
var nullTag = "[object Null]";
|
|
64
|
-
var objectTag = "[object Object]";
|
|
65
|
-
var promiseTag = "[object Promise]";
|
|
66
|
-
var proxyTag = "[object Proxy]";
|
|
67
|
-
var regexpTag = "[object RegExp]";
|
|
68
|
-
var setTag = "[object Set]";
|
|
69
|
-
var stringTag = "[object String]";
|
|
70
|
-
var symbolTag = "[object Symbol]";
|
|
71
|
-
var undefinedTag = "[object Undefined]";
|
|
72
|
-
var weakMapTag = "[object WeakMap]";
|
|
73
|
-
var arrayBufferTag = "[object ArrayBuffer]";
|
|
74
|
-
var dataViewTag = "[object DataView]";
|
|
75
|
-
var float32Tag = "[object Float32Array]";
|
|
76
|
-
var float64Tag = "[object Float64Array]";
|
|
77
|
-
var int8Tag = "[object Int8Array]";
|
|
78
|
-
var int16Tag = "[object Int16Array]";
|
|
79
|
-
var int32Tag = "[object Int32Array]";
|
|
80
|
-
var uint8Tag = "[object Uint8Array]";
|
|
81
|
-
var uint8ClampedTag = "[object Uint8ClampedArray]";
|
|
82
|
-
var uint16Tag = "[object Uint16Array]";
|
|
83
|
-
var uint32Tag = "[object Uint32Array]";
|
|
84
|
-
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
85
|
-
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
86
|
-
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
87
|
-
var typedArrayTags = {};
|
|
88
|
-
typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
|
|
89
|
-
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;
|
|
90
|
-
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
91
|
-
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
92
|
-
var root = freeGlobal || freeSelf || Function("return this")();
|
|
93
|
-
var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
94
|
-
var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
|
|
95
|
-
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
96
|
-
var freeProcess = moduleExports && freeGlobal.process;
|
|
97
|
-
var nodeUtil = function() {
|
|
98
|
-
try {
|
|
99
|
-
return freeProcess && freeProcess.binding && freeProcess.binding("util");
|
|
100
|
-
} catch (e) {
|
|
101
|
-
}
|
|
102
|
-
}();
|
|
103
|
-
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
104
|
-
function arrayFilter(array, predicate) {
|
|
105
|
-
var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];
|
|
106
|
-
while (++index < length) {
|
|
107
|
-
var value = array[index];
|
|
108
|
-
if (predicate(value, index, array)) {
|
|
109
|
-
result[resIndex++] = value;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
return result;
|
|
113
|
-
}
|
|
114
|
-
function arrayPush(array, values) {
|
|
115
|
-
var index = -1, length = values.length, offset = array.length;
|
|
116
|
-
while (++index < length) {
|
|
117
|
-
array[offset + index] = values[index];
|
|
118
|
-
}
|
|
119
|
-
return array;
|
|
120
|
-
}
|
|
121
|
-
function arraySome(array, predicate) {
|
|
122
|
-
var index = -1, length = array == null ? 0 : array.length;
|
|
123
|
-
while (++index < length) {
|
|
124
|
-
if (predicate(array[index], index, array)) {
|
|
125
|
-
return true;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
return false;
|
|
129
|
-
}
|
|
130
|
-
function baseTimes(n, iteratee) {
|
|
131
|
-
var index = -1, result = Array(n);
|
|
132
|
-
while (++index < n) {
|
|
133
|
-
result[index] = iteratee(index);
|
|
134
|
-
}
|
|
135
|
-
return result;
|
|
136
|
-
}
|
|
137
|
-
function baseUnary(func) {
|
|
138
|
-
return function(value) {
|
|
139
|
-
return func(value);
|
|
140
|
-
};
|
|
141
|
-
}
|
|
142
|
-
function cacheHas(cache, key) {
|
|
143
|
-
return cache.has(key);
|
|
144
|
-
}
|
|
145
|
-
function getValue(object, key) {
|
|
146
|
-
return object == null ? void 0 : object[key];
|
|
147
|
-
}
|
|
148
|
-
function mapToArray(map) {
|
|
149
|
-
var index = -1, result = Array(map.size);
|
|
150
|
-
map.forEach(function(value, key) {
|
|
151
|
-
result[++index] = [key, value];
|
|
152
|
-
});
|
|
153
|
-
return result;
|
|
154
|
-
}
|
|
155
|
-
function overArg(func, transform) {
|
|
156
|
-
return function(arg) {
|
|
157
|
-
return func(transform(arg));
|
|
158
|
-
};
|
|
159
|
-
}
|
|
160
|
-
function setToArray(set) {
|
|
161
|
-
var index = -1, result = Array(set.size);
|
|
162
|
-
set.forEach(function(value) {
|
|
163
|
-
result[++index] = value;
|
|
164
|
-
});
|
|
165
|
-
return result;
|
|
166
|
-
}
|
|
167
|
-
var arrayProto = Array.prototype;
|
|
168
|
-
var funcProto = Function.prototype;
|
|
169
|
-
var objectProto = Object.prototype;
|
|
170
|
-
var coreJsData = root["__core-js_shared__"];
|
|
171
|
-
var funcToString = funcProto.toString;
|
|
172
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
173
|
-
var maskSrcKey = function() {
|
|
174
|
-
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
|
|
175
|
-
return uid ? "Symbol(src)_1." + uid : "";
|
|
176
|
-
}();
|
|
177
|
-
var nativeObjectToString = objectProto.toString;
|
|
178
|
-
var reIsNative = RegExp(
|
|
179
|
-
"^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
180
|
-
);
|
|
181
|
-
var Buffer = moduleExports ? root.Buffer : void 0;
|
|
182
|
-
var Symbol = root.Symbol;
|
|
183
|
-
var Uint8Array = root.Uint8Array;
|
|
184
|
-
var propertyIsEnumerable = objectProto.propertyIsEnumerable;
|
|
185
|
-
var splice = arrayProto.splice;
|
|
186
|
-
var symToStringTag = Symbol ? Symbol.toStringTag : void 0;
|
|
187
|
-
var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
188
|
-
var nativeIsBuffer = Buffer ? Buffer.isBuffer : void 0;
|
|
189
|
-
var nativeKeys = overArg(Object.keys, Object);
|
|
190
|
-
var DataView = getNative(root, "DataView");
|
|
191
|
-
var Map2 = getNative(root, "Map");
|
|
192
|
-
var Promise2 = getNative(root, "Promise");
|
|
193
|
-
var Set2 = getNative(root, "Set");
|
|
194
|
-
var WeakMap2 = getNative(root, "WeakMap");
|
|
195
|
-
var nativeCreate = getNative(Object, "create");
|
|
196
|
-
var dataViewCtorString = toSource(DataView);
|
|
197
|
-
var mapCtorString = toSource(Map2);
|
|
198
|
-
var promiseCtorString = toSource(Promise2);
|
|
199
|
-
var setCtorString = toSource(Set2);
|
|
200
|
-
var weakMapCtorString = toSource(WeakMap2);
|
|
201
|
-
var symbolProto = Symbol ? Symbol.prototype : void 0;
|
|
202
|
-
var symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
|
|
203
|
-
function Hash(entries) {
|
|
204
|
-
var index = -1, length = entries == null ? 0 : entries.length;
|
|
205
|
-
this.clear();
|
|
206
|
-
while (++index < length) {
|
|
207
|
-
var entry = entries[index];
|
|
208
|
-
this.set(entry[0], entry[1]);
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
function hashClear() {
|
|
212
|
-
this.__data__ = nativeCreate ? nativeCreate(null) : {};
|
|
213
|
-
this.size = 0;
|
|
214
|
-
}
|
|
215
|
-
function hashDelete(key) {
|
|
216
|
-
var result = this.has(key) && delete this.__data__[key];
|
|
217
|
-
this.size -= result ? 1 : 0;
|
|
218
|
-
return result;
|
|
219
|
-
}
|
|
220
|
-
function hashGet(key) {
|
|
221
|
-
var data = this.__data__;
|
|
222
|
-
if (nativeCreate) {
|
|
223
|
-
var result = data[key];
|
|
224
|
-
return result === HASH_UNDEFINED ? void 0 : result;
|
|
225
|
-
}
|
|
226
|
-
return hasOwnProperty.call(data, key) ? data[key] : void 0;
|
|
227
|
-
}
|
|
228
|
-
function hashHas(key) {
|
|
229
|
-
var data = this.__data__;
|
|
230
|
-
return nativeCreate ? data[key] !== void 0 : hasOwnProperty.call(data, key);
|
|
231
|
-
}
|
|
232
|
-
function hashSet(key, value) {
|
|
233
|
-
var data = this.__data__;
|
|
234
|
-
this.size += this.has(key) ? 0 : 1;
|
|
235
|
-
data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value;
|
|
236
|
-
return this;
|
|
237
|
-
}
|
|
238
|
-
Hash.prototype.clear = hashClear;
|
|
239
|
-
Hash.prototype["delete"] = hashDelete;
|
|
240
|
-
Hash.prototype.get = hashGet;
|
|
241
|
-
Hash.prototype.has = hashHas;
|
|
242
|
-
Hash.prototype.set = hashSet;
|
|
243
|
-
function ListCache(entries) {
|
|
244
|
-
var index = -1, length = entries == null ? 0 : entries.length;
|
|
245
|
-
this.clear();
|
|
246
|
-
while (++index < length) {
|
|
247
|
-
var entry = entries[index];
|
|
248
|
-
this.set(entry[0], entry[1]);
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
function listCacheClear() {
|
|
252
|
-
this.__data__ = [];
|
|
253
|
-
this.size = 0;
|
|
254
|
-
}
|
|
255
|
-
function listCacheDelete(key) {
|
|
256
|
-
var data = this.__data__, index = assocIndexOf(data, key);
|
|
257
|
-
if (index < 0) {
|
|
258
|
-
return false;
|
|
259
|
-
}
|
|
260
|
-
var lastIndex = data.length - 1;
|
|
261
|
-
if (index == lastIndex) {
|
|
262
|
-
data.pop();
|
|
263
|
-
} else {
|
|
264
|
-
splice.call(data, index, 1);
|
|
265
|
-
}
|
|
266
|
-
--this.size;
|
|
267
|
-
return true;
|
|
268
|
-
}
|
|
269
|
-
function listCacheGet(key) {
|
|
270
|
-
var data = this.__data__, index = assocIndexOf(data, key);
|
|
271
|
-
return index < 0 ? void 0 : data[index][1];
|
|
272
|
-
}
|
|
273
|
-
function listCacheHas(key) {
|
|
274
|
-
return assocIndexOf(this.__data__, key) > -1;
|
|
275
|
-
}
|
|
276
|
-
function listCacheSet(key, value) {
|
|
277
|
-
var data = this.__data__, index = assocIndexOf(data, key);
|
|
278
|
-
if (index < 0) {
|
|
279
|
-
++this.size;
|
|
280
|
-
data.push([key, value]);
|
|
281
|
-
} else {
|
|
282
|
-
data[index][1] = value;
|
|
283
|
-
}
|
|
284
|
-
return this;
|
|
285
|
-
}
|
|
286
|
-
ListCache.prototype.clear = listCacheClear;
|
|
287
|
-
ListCache.prototype["delete"] = listCacheDelete;
|
|
288
|
-
ListCache.prototype.get = listCacheGet;
|
|
289
|
-
ListCache.prototype.has = listCacheHas;
|
|
290
|
-
ListCache.prototype.set = listCacheSet;
|
|
291
|
-
function MapCache(entries) {
|
|
292
|
-
var index = -1, length = entries == null ? 0 : entries.length;
|
|
293
|
-
this.clear();
|
|
294
|
-
while (++index < length) {
|
|
295
|
-
var entry = entries[index];
|
|
296
|
-
this.set(entry[0], entry[1]);
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
function mapCacheClear() {
|
|
300
|
-
this.size = 0;
|
|
301
|
-
this.__data__ = {
|
|
302
|
-
"hash": new Hash(),
|
|
303
|
-
"map": new (Map2 || ListCache)(),
|
|
304
|
-
"string": new Hash()
|
|
305
|
-
};
|
|
306
|
-
}
|
|
307
|
-
function mapCacheDelete(key) {
|
|
308
|
-
var result = getMapData(this, key)["delete"](key);
|
|
309
|
-
this.size -= result ? 1 : 0;
|
|
310
|
-
return result;
|
|
311
|
-
}
|
|
312
|
-
function mapCacheGet(key) {
|
|
313
|
-
return getMapData(this, key).get(key);
|
|
314
|
-
}
|
|
315
|
-
function mapCacheHas(key) {
|
|
316
|
-
return getMapData(this, key).has(key);
|
|
317
|
-
}
|
|
318
|
-
function mapCacheSet(key, value) {
|
|
319
|
-
var data = getMapData(this, key), size = data.size;
|
|
320
|
-
data.set(key, value);
|
|
321
|
-
this.size += data.size == size ? 0 : 1;
|
|
322
|
-
return this;
|
|
323
|
-
}
|
|
324
|
-
MapCache.prototype.clear = mapCacheClear;
|
|
325
|
-
MapCache.prototype["delete"] = mapCacheDelete;
|
|
326
|
-
MapCache.prototype.get = mapCacheGet;
|
|
327
|
-
MapCache.prototype.has = mapCacheHas;
|
|
328
|
-
MapCache.prototype.set = mapCacheSet;
|
|
329
|
-
function SetCache(values) {
|
|
330
|
-
var index = -1, length = values == null ? 0 : values.length;
|
|
331
|
-
this.__data__ = new MapCache();
|
|
332
|
-
while (++index < length) {
|
|
333
|
-
this.add(values[index]);
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
function setCacheAdd(value) {
|
|
337
|
-
this.__data__.set(value, HASH_UNDEFINED);
|
|
338
|
-
return this;
|
|
339
|
-
}
|
|
340
|
-
function setCacheHas(value) {
|
|
341
|
-
return this.__data__.has(value);
|
|
342
|
-
}
|
|
343
|
-
SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
|
|
344
|
-
SetCache.prototype.has = setCacheHas;
|
|
345
|
-
function Stack(entries) {
|
|
346
|
-
var data = this.__data__ = new ListCache(entries);
|
|
347
|
-
this.size = data.size;
|
|
348
|
-
}
|
|
349
|
-
function stackClear() {
|
|
350
|
-
this.__data__ = new ListCache();
|
|
351
|
-
this.size = 0;
|
|
352
|
-
}
|
|
353
|
-
function stackDelete(key) {
|
|
354
|
-
var data = this.__data__, result = data["delete"](key);
|
|
355
|
-
this.size = data.size;
|
|
356
|
-
return result;
|
|
357
|
-
}
|
|
358
|
-
function stackGet(key) {
|
|
359
|
-
return this.__data__.get(key);
|
|
360
|
-
}
|
|
361
|
-
function stackHas(key) {
|
|
362
|
-
return this.__data__.has(key);
|
|
363
|
-
}
|
|
364
|
-
function stackSet(key, value) {
|
|
365
|
-
var data = this.__data__;
|
|
366
|
-
if (data instanceof ListCache) {
|
|
367
|
-
var pairs = data.__data__;
|
|
368
|
-
if (!Map2 || pairs.length < LARGE_ARRAY_SIZE - 1) {
|
|
369
|
-
pairs.push([key, value]);
|
|
370
|
-
this.size = ++data.size;
|
|
371
|
-
return this;
|
|
372
|
-
}
|
|
373
|
-
data = this.__data__ = new MapCache(pairs);
|
|
374
|
-
}
|
|
375
|
-
data.set(key, value);
|
|
376
|
-
this.size = data.size;
|
|
377
|
-
return this;
|
|
378
|
-
}
|
|
379
|
-
Stack.prototype.clear = stackClear;
|
|
380
|
-
Stack.prototype["delete"] = stackDelete;
|
|
381
|
-
Stack.prototype.get = stackGet;
|
|
382
|
-
Stack.prototype.has = stackHas;
|
|
383
|
-
Stack.prototype.set = stackSet;
|
|
384
|
-
function arrayLikeKeys(value, inherited) {
|
|
385
|
-
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;
|
|
386
|
-
for (var key in value) {
|
|
387
|
-
if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
388
|
-
(key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
389
|
-
isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
390
|
-
isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
|
|
391
|
-
isIndex(key, length)))) {
|
|
392
|
-
result.push(key);
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
|
-
return result;
|
|
396
|
-
}
|
|
397
|
-
function assocIndexOf(array, key) {
|
|
398
|
-
var length = array.length;
|
|
399
|
-
while (length--) {
|
|
400
|
-
if (eq(array[length][0], key)) {
|
|
401
|
-
return length;
|
|
402
|
-
}
|
|
403
|
-
}
|
|
404
|
-
return -1;
|
|
405
|
-
}
|
|
406
|
-
function baseGetAllKeys(object, keysFunc, symbolsFunc) {
|
|
407
|
-
var result = keysFunc(object);
|
|
408
|
-
return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
|
|
409
|
-
}
|
|
410
|
-
function baseGetTag(value) {
|
|
411
|
-
if (value == null) {
|
|
412
|
-
return value === void 0 ? undefinedTag : nullTag;
|
|
413
|
-
}
|
|
414
|
-
return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
|
|
415
|
-
}
|
|
416
|
-
function baseIsArguments(value) {
|
|
417
|
-
return isObjectLike(value) && baseGetTag(value) == argsTag;
|
|
418
|
-
}
|
|
419
|
-
function baseIsEqual(value, other, bitmask, customizer, stack) {
|
|
420
|
-
if (value === other) {
|
|
421
|
-
return true;
|
|
422
|
-
}
|
|
423
|
-
if (value == null || other == null || !isObjectLike(value) && !isObjectLike(other)) {
|
|
424
|
-
return value !== value && other !== other;
|
|
425
|
-
}
|
|
426
|
-
return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
|
|
427
|
-
}
|
|
428
|
-
function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
|
|
429
|
-
var objIsArr = isArray(object), othIsArr = isArray(other), objTag = objIsArr ? arrayTag : getTag(object), othTag = othIsArr ? arrayTag : getTag(other);
|
|
430
|
-
objTag = objTag == argsTag ? objectTag : objTag;
|
|
431
|
-
othTag = othTag == argsTag ? objectTag : othTag;
|
|
432
|
-
var objIsObj = objTag == objectTag, othIsObj = othTag == objectTag, isSameTag = objTag == othTag;
|
|
433
|
-
if (isSameTag && isBuffer(object)) {
|
|
434
|
-
if (!isBuffer(other)) {
|
|
435
|
-
return false;
|
|
436
|
-
}
|
|
437
|
-
objIsArr = true;
|
|
438
|
-
objIsObj = false;
|
|
439
|
-
}
|
|
440
|
-
if (isSameTag && !objIsObj) {
|
|
441
|
-
stack || (stack = new Stack());
|
|
442
|
-
return objIsArr || isTypedArray(object) ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
|
|
443
|
-
}
|
|
444
|
-
if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
|
|
445
|
-
var objIsWrapped = objIsObj && hasOwnProperty.call(object, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty.call(other, "__wrapped__");
|
|
446
|
-
if (objIsWrapped || othIsWrapped) {
|
|
447
|
-
var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other;
|
|
448
|
-
stack || (stack = new Stack());
|
|
449
|
-
return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
|
|
450
|
-
}
|
|
451
|
-
}
|
|
452
|
-
if (!isSameTag) {
|
|
453
|
-
return false;
|
|
454
|
-
}
|
|
455
|
-
stack || (stack = new Stack());
|
|
456
|
-
return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
|
|
457
|
-
}
|
|
458
|
-
function baseIsNative(value) {
|
|
459
|
-
if (!isObject(value) || isMasked(value)) {
|
|
460
|
-
return false;
|
|
461
|
-
}
|
|
462
|
-
var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
|
|
463
|
-
return pattern.test(toSource(value));
|
|
464
|
-
}
|
|
465
|
-
function baseIsTypedArray(value) {
|
|
466
|
-
return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
|
|
467
|
-
}
|
|
468
|
-
function baseKeys(object) {
|
|
469
|
-
if (!isPrototype(object)) {
|
|
470
|
-
return nativeKeys(object);
|
|
471
|
-
}
|
|
472
|
-
var result = [];
|
|
473
|
-
for (var key in Object(object)) {
|
|
474
|
-
if (hasOwnProperty.call(object, key) && key != "constructor") {
|
|
475
|
-
result.push(key);
|
|
476
|
-
}
|
|
477
|
-
}
|
|
478
|
-
return result;
|
|
479
|
-
}
|
|
480
|
-
function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
|
|
481
|
-
var isPartial = bitmask & COMPARE_PARTIAL_FLAG, arrLength = array.length, othLength = other.length;
|
|
482
|
-
if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
|
|
483
|
-
return false;
|
|
484
|
-
}
|
|
485
|
-
var stacked = stack.get(array);
|
|
486
|
-
if (stacked && stack.get(other)) {
|
|
487
|
-
return stacked == other;
|
|
488
|
-
}
|
|
489
|
-
var index = -1, result = true, seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache() : void 0;
|
|
490
|
-
stack.set(array, other);
|
|
491
|
-
stack.set(other, array);
|
|
492
|
-
while (++index < arrLength) {
|
|
493
|
-
var arrValue = array[index], othValue = other[index];
|
|
494
|
-
if (customizer) {
|
|
495
|
-
var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack);
|
|
496
|
-
}
|
|
497
|
-
if (compared !== void 0) {
|
|
498
|
-
if (compared) {
|
|
499
|
-
continue;
|
|
500
|
-
}
|
|
501
|
-
result = false;
|
|
502
|
-
break;
|
|
503
|
-
}
|
|
504
|
-
if (seen) {
|
|
505
|
-
if (!arraySome(other, function(othValue2, othIndex) {
|
|
506
|
-
if (!cacheHas(seen, othIndex) && (arrValue === othValue2 || equalFunc(arrValue, othValue2, bitmask, customizer, stack))) {
|
|
507
|
-
return seen.push(othIndex);
|
|
508
|
-
}
|
|
509
|
-
})) {
|
|
510
|
-
result = false;
|
|
511
|
-
break;
|
|
512
|
-
}
|
|
513
|
-
} else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
|
|
514
|
-
result = false;
|
|
515
|
-
break;
|
|
516
|
-
}
|
|
517
|
-
}
|
|
518
|
-
stack["delete"](array);
|
|
519
|
-
stack["delete"](other);
|
|
520
|
-
return result;
|
|
521
|
-
}
|
|
522
|
-
function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
|
|
523
|
-
switch (tag) {
|
|
524
|
-
case dataViewTag:
|
|
525
|
-
if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) {
|
|
526
|
-
return false;
|
|
527
|
-
}
|
|
528
|
-
object = object.buffer;
|
|
529
|
-
other = other.buffer;
|
|
530
|
-
case arrayBufferTag:
|
|
531
|
-
if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
|
|
532
|
-
return false;
|
|
533
|
-
}
|
|
534
|
-
return true;
|
|
535
|
-
case boolTag:
|
|
536
|
-
case dateTag:
|
|
537
|
-
case numberTag:
|
|
538
|
-
return eq(+object, +other);
|
|
539
|
-
case errorTag:
|
|
540
|
-
return object.name == other.name && object.message == other.message;
|
|
541
|
-
case regexpTag:
|
|
542
|
-
case stringTag:
|
|
543
|
-
return object == other + "";
|
|
544
|
-
case mapTag:
|
|
545
|
-
var convert = mapToArray;
|
|
546
|
-
case setTag:
|
|
547
|
-
var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
|
|
548
|
-
convert || (convert = setToArray);
|
|
549
|
-
if (object.size != other.size && !isPartial) {
|
|
550
|
-
return false;
|
|
551
|
-
}
|
|
552
|
-
var stacked = stack.get(object);
|
|
553
|
-
if (stacked) {
|
|
554
|
-
return stacked == other;
|
|
555
|
-
}
|
|
556
|
-
bitmask |= COMPARE_UNORDERED_FLAG;
|
|
557
|
-
stack.set(object, other);
|
|
558
|
-
var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
|
|
559
|
-
stack["delete"](object);
|
|
560
|
-
return result;
|
|
561
|
-
case symbolTag:
|
|
562
|
-
if (symbolValueOf) {
|
|
563
|
-
return symbolValueOf.call(object) == symbolValueOf.call(other);
|
|
564
|
-
}
|
|
565
|
-
}
|
|
566
|
-
return false;
|
|
567
|
-
}
|
|
568
|
-
function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
|
|
569
|
-
var isPartial = bitmask & COMPARE_PARTIAL_FLAG, objProps = getAllKeys(object), objLength = objProps.length, othProps = getAllKeys(other), othLength = othProps.length;
|
|
570
|
-
if (objLength != othLength && !isPartial) {
|
|
571
|
-
return false;
|
|
572
|
-
}
|
|
573
|
-
var index = objLength;
|
|
574
|
-
while (index--) {
|
|
575
|
-
var key = objProps[index];
|
|
576
|
-
if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
|
|
577
|
-
return false;
|
|
578
|
-
}
|
|
579
|
-
}
|
|
580
|
-
var stacked = stack.get(object);
|
|
581
|
-
if (stacked && stack.get(other)) {
|
|
582
|
-
return stacked == other;
|
|
583
|
-
}
|
|
584
|
-
var result = true;
|
|
585
|
-
stack.set(object, other);
|
|
586
|
-
stack.set(other, object);
|
|
587
|
-
var skipCtor = isPartial;
|
|
588
|
-
while (++index < objLength) {
|
|
589
|
-
key = objProps[index];
|
|
590
|
-
var objValue = object[key], othValue = other[key];
|
|
591
|
-
if (customizer) {
|
|
592
|
-
var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack);
|
|
593
|
-
}
|
|
594
|
-
if (!(compared === void 0 ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) {
|
|
595
|
-
result = false;
|
|
596
|
-
break;
|
|
597
|
-
}
|
|
598
|
-
skipCtor || (skipCtor = key == "constructor");
|
|
599
|
-
}
|
|
600
|
-
if (result && !skipCtor) {
|
|
601
|
-
var objCtor = object.constructor, othCtor = other.constructor;
|
|
602
|
-
if (objCtor != othCtor && ("constructor" in object && "constructor" in other) && !(typeof objCtor == "function" && objCtor instanceof objCtor && typeof othCtor == "function" && othCtor instanceof othCtor)) {
|
|
603
|
-
result = false;
|
|
604
|
-
}
|
|
605
|
-
}
|
|
606
|
-
stack["delete"](object);
|
|
607
|
-
stack["delete"](other);
|
|
608
|
-
return result;
|
|
609
|
-
}
|
|
610
|
-
function getAllKeys(object) {
|
|
611
|
-
return baseGetAllKeys(object, keys, getSymbols);
|
|
612
|
-
}
|
|
613
|
-
function getMapData(map, key) {
|
|
614
|
-
var data = map.__data__;
|
|
615
|
-
return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
|
616
|
-
}
|
|
617
|
-
function getNative(object, key) {
|
|
618
|
-
var value = getValue(object, key);
|
|
619
|
-
return baseIsNative(value) ? value : void 0;
|
|
620
|
-
}
|
|
621
|
-
function getRawTag(value) {
|
|
622
|
-
var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag];
|
|
623
|
-
try {
|
|
624
|
-
value[symToStringTag] = void 0;
|
|
625
|
-
var unmasked = true;
|
|
626
|
-
} catch (e) {
|
|
627
|
-
}
|
|
628
|
-
var result = nativeObjectToString.call(value);
|
|
629
|
-
if (unmasked) {
|
|
630
|
-
if (isOwn) {
|
|
631
|
-
value[symToStringTag] = tag;
|
|
632
|
-
} else {
|
|
633
|
-
delete value[symToStringTag];
|
|
634
|
-
}
|
|
635
|
-
}
|
|
636
|
-
return result;
|
|
637
|
-
}
|
|
638
|
-
var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
|
|
639
|
-
if (object == null) {
|
|
640
|
-
return [];
|
|
641
|
-
}
|
|
642
|
-
object = Object(object);
|
|
643
|
-
return arrayFilter(nativeGetSymbols(object), function(symbol) {
|
|
644
|
-
return propertyIsEnumerable.call(object, symbol);
|
|
645
|
-
});
|
|
646
|
-
};
|
|
647
|
-
var getTag = baseGetTag;
|
|
648
|
-
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) {
|
|
649
|
-
getTag = function(value) {
|
|
650
|
-
var result = baseGetTag(value), Ctor = result == objectTag ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : "";
|
|
651
|
-
if (ctorString) {
|
|
652
|
-
switch (ctorString) {
|
|
653
|
-
case dataViewCtorString:
|
|
654
|
-
return dataViewTag;
|
|
655
|
-
case mapCtorString:
|
|
656
|
-
return mapTag;
|
|
657
|
-
case promiseCtorString:
|
|
658
|
-
return promiseTag;
|
|
659
|
-
case setCtorString:
|
|
660
|
-
return setTag;
|
|
661
|
-
case weakMapCtorString:
|
|
662
|
-
return weakMapTag;
|
|
663
|
-
}
|
|
664
|
-
}
|
|
665
|
-
return result;
|
|
666
|
-
};
|
|
667
|
-
}
|
|
668
|
-
function isIndex(value, length) {
|
|
669
|
-
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
670
|
-
return !!length && (typeof value == "number" || reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
|
|
671
|
-
}
|
|
672
|
-
function isKeyable(value) {
|
|
673
|
-
var type = typeof value;
|
|
674
|
-
return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
|
|
675
|
-
}
|
|
676
|
-
function isMasked(func) {
|
|
677
|
-
return !!maskSrcKey && maskSrcKey in func;
|
|
678
|
-
}
|
|
679
|
-
function isPrototype(value) {
|
|
680
|
-
var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto;
|
|
681
|
-
return value === proto;
|
|
682
|
-
}
|
|
683
|
-
function objectToString(value) {
|
|
684
|
-
return nativeObjectToString.call(value);
|
|
685
|
-
}
|
|
686
|
-
function toSource(func) {
|
|
687
|
-
if (func != null) {
|
|
688
|
-
try {
|
|
689
|
-
return funcToString.call(func);
|
|
690
|
-
} catch (e) {
|
|
691
|
-
}
|
|
692
|
-
try {
|
|
693
|
-
return func + "";
|
|
694
|
-
} catch (e) {
|
|
695
|
-
}
|
|
696
|
-
}
|
|
697
|
-
return "";
|
|
698
|
-
}
|
|
699
|
-
function eq(value, other) {
|
|
700
|
-
return value === other || value !== value && other !== other;
|
|
701
|
-
}
|
|
702
|
-
var isArguments = baseIsArguments(/* @__PURE__ */ function() {
|
|
703
|
-
return arguments;
|
|
704
|
-
}()) ? baseIsArguments : function(value) {
|
|
705
|
-
return isObjectLike(value) && hasOwnProperty.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
|
|
706
|
-
};
|
|
707
|
-
var isArray = Array.isArray;
|
|
708
|
-
function isArrayLike(value) {
|
|
709
|
-
return value != null && isLength(value.length) && !isFunction(value);
|
|
710
|
-
}
|
|
711
|
-
var isBuffer = nativeIsBuffer || stubFalse;
|
|
712
|
-
function isEqual2(value, other) {
|
|
713
|
-
return baseIsEqual(value, other);
|
|
714
|
-
}
|
|
715
|
-
function isFunction(value) {
|
|
716
|
-
if (!isObject(value)) {
|
|
717
|
-
return false;
|
|
718
|
-
}
|
|
719
|
-
var tag = baseGetTag(value);
|
|
720
|
-
return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
|
|
721
|
-
}
|
|
722
|
-
function isLength(value) {
|
|
723
|
-
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
724
|
-
}
|
|
725
|
-
function isObject(value) {
|
|
726
|
-
var type = typeof value;
|
|
727
|
-
return value != null && (type == "object" || type == "function");
|
|
728
|
-
}
|
|
729
|
-
function isObjectLike(value) {
|
|
730
|
-
return value != null && typeof value == "object";
|
|
731
|
-
}
|
|
732
|
-
var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
733
|
-
function keys(object) {
|
|
734
|
-
return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
|
|
735
|
-
}
|
|
736
|
-
function stubArray() {
|
|
737
|
-
return [];
|
|
738
|
-
}
|
|
739
|
-
function stubFalse() {
|
|
740
|
-
return false;
|
|
741
|
-
}
|
|
742
|
-
module.exports = isEqual2;
|
|
743
|
-
}
|
|
744
|
-
});
|
|
745
|
-
|
|
746
|
-
// src/index.ts
|
|
747
|
-
init_esm_shims();
|
|
748
|
-
|
|
749
|
-
// src/build.ts
|
|
750
|
-
init_esm_shims();
|
|
37
|
+
__privateSet
|
|
38
|
+
} from "./chunk-Z4BLTVTB.js";
|
|
751
39
|
|
|
752
40
|
// src/FileManager.ts
|
|
753
|
-
init_esm_shims();
|
|
754
|
-
var import_lodash = __toESM(require_lodash(), 1);
|
|
755
41
|
import crypto from "crypto";
|
|
756
42
|
import { extname, resolve } from "path";
|
|
757
43
|
import { print } from "@kubb/parser";
|
|
758
44
|
import * as factory from "@kubb/parser/factory";
|
|
759
45
|
import PQueue from "p-queue";
|
|
46
|
+
import { isDeepEqual } from "remeda";
|
|
760
47
|
|
|
761
48
|
// src/BarrelManager.ts
|
|
762
|
-
init_esm_shims();
|
|
763
49
|
import { getExports } from "@kubb/parser";
|
|
764
50
|
import path from "path";
|
|
765
51
|
|
|
766
52
|
// src/utils/TreeNode.ts
|
|
767
|
-
init_esm_shims();
|
|
768
53
|
import dirTree from "directory-tree";
|
|
769
54
|
var TreeNode = class _TreeNode {
|
|
770
55
|
constructor(data, parent) {
|
|
@@ -1221,12 +506,12 @@ function combineExports(exports) {
|
|
|
1221
506
|
(prev, curr) => {
|
|
1222
507
|
const name = curr.name;
|
|
1223
508
|
const prevByPath = prev.findLast((imp) => imp.path === curr.path);
|
|
1224
|
-
const prevByPathAndIsTypeOnly = prev.findLast((imp) => imp.path === curr.path && (
|
|
509
|
+
const prevByPathAndIsTypeOnly = prev.findLast((imp) => imp.path === curr.path && isDeepEqual(imp.name, name) && imp.isTypeOnly);
|
|
1225
510
|
if (prevByPathAndIsTypeOnly) {
|
|
1226
511
|
return prev;
|
|
1227
512
|
}
|
|
1228
513
|
const uniquePrev = prev.findLast(
|
|
1229
|
-
(imp) => imp.path === curr.path && (
|
|
514
|
+
(imp) => imp.path === curr.path && isDeepEqual(imp.name, name) && imp.isTypeOnly === curr.isTypeOnly && imp.asAlias === curr.asAlias
|
|
1230
515
|
);
|
|
1231
516
|
if (uniquePrev || Array.isArray(name) && !name.length || prevByPath?.asAlias && !curr.asAlias) {
|
|
1232
517
|
return prev;
|
|
@@ -1265,8 +550,8 @@ function combineImports(imports, exports, source) {
|
|
|
1265
550
|
name = name.filter((item) => typeof item === "string" ? hasImportInSource(item) : hasImportInSource(item.propertyName));
|
|
1266
551
|
}
|
|
1267
552
|
const prevByPath = prev.findLast((imp) => imp.path === curr.path && imp.isTypeOnly === curr.isTypeOnly);
|
|
1268
|
-
const uniquePrev = prev.findLast((imp) => imp.path === curr.path && (
|
|
1269
|
-
const prevByPathNameAndIsTypeOnly = prev.findLast((imp) => imp.path === curr.path && (
|
|
553
|
+
const uniquePrev = prev.findLast((imp) => imp.path === curr.path && isDeepEqual(imp.name, name) && imp.isTypeOnly === curr.isTypeOnly);
|
|
554
|
+
const prevByPathNameAndIsTypeOnly = prev.findLast((imp) => imp.path === curr.path && isDeepEqual(imp.name, name) && imp.isTypeOnly);
|
|
1270
555
|
if (prevByPathNameAndIsTypeOnly) {
|
|
1271
556
|
return prev;
|
|
1272
557
|
}
|
|
@@ -1327,14 +612,9 @@ function getEnvSource(source, env) {
|
|
|
1327
612
|
}
|
|
1328
613
|
|
|
1329
614
|
// src/PluginManager.ts
|
|
1330
|
-
init_esm_shims();
|
|
1331
615
|
import PQueue2 from "p-queue";
|
|
1332
616
|
|
|
1333
|
-
// src/PromiseManager.ts
|
|
1334
|
-
init_esm_shims();
|
|
1335
|
-
|
|
1336
617
|
// src/utils/executeStrategies.ts
|
|
1337
|
-
init_esm_shims();
|
|
1338
618
|
function hookSeq(promises) {
|
|
1339
619
|
return promises.filter(Boolean).reduce(
|
|
1340
620
|
(promise, func) => {
|
|
@@ -1398,7 +678,6 @@ function isPromiseRejectedResult(result) {
|
|
|
1398
678
|
}
|
|
1399
679
|
|
|
1400
680
|
// src/errors.ts
|
|
1401
|
-
init_esm_shims();
|
|
1402
681
|
var Warning = class extends Error {
|
|
1403
682
|
constructor(message, options) {
|
|
1404
683
|
super(message, { cause: options?.cause });
|
|
@@ -1409,11 +688,9 @@ var ValidationPluginError = class extends Error {
|
|
|
1409
688
|
};
|
|
1410
689
|
|
|
1411
690
|
// src/plugin.ts
|
|
1412
|
-
init_esm_shims();
|
|
1413
691
|
import path2 from "path";
|
|
1414
692
|
|
|
1415
693
|
// src/utils/cache.ts
|
|
1416
|
-
init_esm_shims();
|
|
1417
694
|
function createPluginCache(Store = /* @__PURE__ */ Object.create(null)) {
|
|
1418
695
|
return {
|
|
1419
696
|
set(id, value) {
|
|
@@ -1810,7 +1087,6 @@ Falling back on the first item.
|
|
|
1810
1087
|
return plugin;
|
|
1811
1088
|
});
|
|
1812
1089
|
}
|
|
1813
|
-
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
1814
1090
|
static get hooks() {
|
|
1815
1091
|
return ["buildStart", "resolvePath", "resolveName", "load", "transform", "writeFile", "buildEnd"];
|
|
1816
1092
|
}
|
|
@@ -1957,7 +1233,6 @@ parse_fn = function(plugin, pluginManager, context) {
|
|
|
1957
1233
|
};
|
|
1958
1234
|
|
|
1959
1235
|
// src/config.ts
|
|
1960
|
-
init_esm_shims();
|
|
1961
1236
|
function defineConfig(options) {
|
|
1962
1237
|
return options;
|
|
1963
1238
|
}
|
|
@@ -2129,7 +1404,6 @@ async function safeBuild(options) {
|
|
|
2129
1404
|
}
|
|
2130
1405
|
|
|
2131
1406
|
// src/Generator.ts
|
|
2132
|
-
init_esm_shims();
|
|
2133
1407
|
var _options3, _context;
|
|
2134
1408
|
var Generator = class {
|
|
2135
1409
|
constructor(options, context) {
|
|
@@ -2157,7 +1431,6 @@ _options3 = new WeakMap();
|
|
|
2157
1431
|
_context = new WeakMap();
|
|
2158
1432
|
|
|
2159
1433
|
// src/PackageManager.ts
|
|
2160
|
-
init_esm_shims();
|
|
2161
1434
|
import mod from "module";
|
|
2162
1435
|
import os from "os";
|
|
2163
1436
|
import { pathToFileURL } from "url";
|
|
@@ -2296,7 +1569,6 @@ var PackageManager = _PackageManager;
|
|
|
2296
1569
|
|
|
2297
1570
|
// src/kubb.ts
|
|
2298
1571
|
var kubb_exports = {};
|
|
2299
|
-
init_esm_shims();
|
|
2300
1572
|
export {
|
|
2301
1573
|
FileManager,
|
|
2302
1574
|
Generator,
|