@gjsify/util 0.3.15 → 0.3.17
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/lib/esm/_virtual/_rolldown/runtime.js +1 -18
- package/lib/esm/errors.js +1 -261
- package/lib/esm/index.js +4 -589
- package/lib/esm/types/index.js +1 -253
- package/lib/esm/types.js +1 -52
- package/package.json +6 -6
- package/tsconfig.tsbuildinfo +1 -1
package/lib/esm/types/index.js
CHANGED
|
@@ -1,253 +1 @@
|
|
|
1
|
-
|
|
2
|
-
const _toString = Object.prototype.toString;
|
|
3
|
-
const _bigIntValueOf = BigInt.prototype.valueOf;
|
|
4
|
-
const _booleanValueOf = Boolean.prototype.valueOf;
|
|
5
|
-
const _dateValueOf = Date.prototype.valueOf;
|
|
6
|
-
const _numberValueOf = Number.prototype.valueOf;
|
|
7
|
-
const _stringValueOf = String.prototype.valueOf;
|
|
8
|
-
const _symbolValueOf = Symbol.prototype.valueOf;
|
|
9
|
-
const _weakMapHas = WeakMap.prototype.has;
|
|
10
|
-
const _weakSetHas = WeakSet.prototype.has;
|
|
11
|
-
const _getArrayBufferByteLength = Object.getOwnPropertyDescriptor(ArrayBuffer.prototype, "byteLength").get;
|
|
12
|
-
const _getSharedArrayBufferByteLength = typeof SharedArrayBuffer !== "undefined" ? Object.getOwnPropertyDescriptor(SharedArrayBuffer.prototype, "byteLength").get : undefined;
|
|
13
|
-
const _getTypedArrayToStringTag = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Uint8Array).prototype, Symbol.toStringTag).get;
|
|
14
|
-
const _getSetSize = Object.getOwnPropertyDescriptor(Set.prototype, "size").get;
|
|
15
|
-
const _getMapSize = Object.getOwnPropertyDescriptor(Map.prototype, "size").get;
|
|
16
|
-
function isObjectLike(value) {
|
|
17
|
-
return value !== null && typeof value === "object";
|
|
18
|
-
}
|
|
19
|
-
function isAnyArrayBuffer(value) {
|
|
20
|
-
return isArrayBuffer(value) || isSharedArrayBuffer(value);
|
|
21
|
-
}
|
|
22
|
-
function isArrayBuffer(value) {
|
|
23
|
-
try {
|
|
24
|
-
_getArrayBufferByteLength.call(value);
|
|
25
|
-
return true;
|
|
26
|
-
} catch {
|
|
27
|
-
return false;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
function isSharedArrayBuffer(value) {
|
|
31
|
-
if (_getSharedArrayBufferByteLength === undefined) return false;
|
|
32
|
-
try {
|
|
33
|
-
_getSharedArrayBufferByteLength.call(value);
|
|
34
|
-
return true;
|
|
35
|
-
} catch {
|
|
36
|
-
return false;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
function isArrayBufferView(value) {
|
|
40
|
-
return ArrayBuffer.isView(value);
|
|
41
|
-
}
|
|
42
|
-
function isTypedArray(value) {
|
|
43
|
-
return _getTypedArrayToStringTag.call(value) !== undefined;
|
|
44
|
-
}
|
|
45
|
-
function isUint8Array(value) {
|
|
46
|
-
return _getTypedArrayToStringTag.call(value) === "Uint8Array";
|
|
47
|
-
}
|
|
48
|
-
function isUint8ClampedArray(value) {
|
|
49
|
-
return _getTypedArrayToStringTag.call(value) === "Uint8ClampedArray";
|
|
50
|
-
}
|
|
51
|
-
function isUint16Array(value) {
|
|
52
|
-
return _getTypedArrayToStringTag.call(value) === "Uint16Array";
|
|
53
|
-
}
|
|
54
|
-
function isUint32Array(value) {
|
|
55
|
-
return _getTypedArrayToStringTag.call(value) === "Uint32Array";
|
|
56
|
-
}
|
|
57
|
-
function isInt8Array(value) {
|
|
58
|
-
return _getTypedArrayToStringTag.call(value) === "Int8Array";
|
|
59
|
-
}
|
|
60
|
-
function isInt16Array(value) {
|
|
61
|
-
return _getTypedArrayToStringTag.call(value) === "Int16Array";
|
|
62
|
-
}
|
|
63
|
-
function isInt32Array(value) {
|
|
64
|
-
return _getTypedArrayToStringTag.call(value) === "Int32Array";
|
|
65
|
-
}
|
|
66
|
-
function isFloat32Array(value) {
|
|
67
|
-
return _getTypedArrayToStringTag.call(value) === "Float32Array";
|
|
68
|
-
}
|
|
69
|
-
function isFloat64Array(value) {
|
|
70
|
-
return _getTypedArrayToStringTag.call(value) === "Float64Array";
|
|
71
|
-
}
|
|
72
|
-
function isBigInt64Array(value) {
|
|
73
|
-
return _getTypedArrayToStringTag.call(value) === "BigInt64Array";
|
|
74
|
-
}
|
|
75
|
-
function isBigUint64Array(value) {
|
|
76
|
-
return _getTypedArrayToStringTag.call(value) === "BigUint64Array";
|
|
77
|
-
}
|
|
78
|
-
function isDataView(value) {
|
|
79
|
-
return ArrayBuffer.isView(value) && _getTypedArrayToStringTag.call(value) === undefined;
|
|
80
|
-
}
|
|
81
|
-
function isMap(value) {
|
|
82
|
-
try {
|
|
83
|
-
_getMapSize.call(value);
|
|
84
|
-
return true;
|
|
85
|
-
} catch {
|
|
86
|
-
return false;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
function isSet(value) {
|
|
90
|
-
try {
|
|
91
|
-
_getSetSize.call(value);
|
|
92
|
-
return true;
|
|
93
|
-
} catch {
|
|
94
|
-
return false;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
function isWeakMap(value) {
|
|
98
|
-
try {
|
|
99
|
-
_weakMapHas.call(value, null);
|
|
100
|
-
return true;
|
|
101
|
-
} catch {
|
|
102
|
-
return false;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
function isWeakSet(value) {
|
|
106
|
-
try {
|
|
107
|
-
_weakSetHas.call(value, null);
|
|
108
|
-
return true;
|
|
109
|
-
} catch {
|
|
110
|
-
return false;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
function isMapIterator(value) {
|
|
114
|
-
return isObjectLike(value) && value[Symbol.toStringTag] === "Map Iterator";
|
|
115
|
-
}
|
|
116
|
-
function isSetIterator(value) {
|
|
117
|
-
return isObjectLike(value) && value[Symbol.toStringTag] === "Set Iterator";
|
|
118
|
-
}
|
|
119
|
-
function isDate(value) {
|
|
120
|
-
try {
|
|
121
|
-
_dateValueOf.call(value);
|
|
122
|
-
return true;
|
|
123
|
-
} catch {
|
|
124
|
-
return false;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
function isRegExp(value) {
|
|
128
|
-
return isObjectLike(value) && value[Symbol.toStringTag] === undefined && _toString.call(value) === "[object RegExp]";
|
|
129
|
-
}
|
|
130
|
-
function isNativeError(value) {
|
|
131
|
-
return isObjectLike(value) && value[Symbol.toStringTag] === undefined && _toString.call(value) === "[object Error]";
|
|
132
|
-
}
|
|
133
|
-
function isAsyncFunction(value) {
|
|
134
|
-
return typeof value === "function" && value[Symbol.toStringTag] === "AsyncFunction";
|
|
135
|
-
}
|
|
136
|
-
function isGeneratorFunction(value) {
|
|
137
|
-
return typeof value === "function" && value[Symbol.toStringTag] === "GeneratorFunction";
|
|
138
|
-
}
|
|
139
|
-
function isGeneratorObject(value) {
|
|
140
|
-
return isObjectLike(value) && value[Symbol.toStringTag] === "Generator";
|
|
141
|
-
}
|
|
142
|
-
function isPromise(value) {
|
|
143
|
-
return isObjectLike(value) && value[Symbol.toStringTag] === "Promise";
|
|
144
|
-
}
|
|
145
|
-
function isBooleanObject(value) {
|
|
146
|
-
if (!isObjectLike(value)) return false;
|
|
147
|
-
try {
|
|
148
|
-
_booleanValueOf.call(value);
|
|
149
|
-
return true;
|
|
150
|
-
} catch {
|
|
151
|
-
return false;
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
function isNumberObject(value) {
|
|
155
|
-
if (!isObjectLike(value)) return false;
|
|
156
|
-
try {
|
|
157
|
-
_numberValueOf.call(value);
|
|
158
|
-
return true;
|
|
159
|
-
} catch {
|
|
160
|
-
return false;
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
function isStringObject(value) {
|
|
164
|
-
if (!isObjectLike(value)) return false;
|
|
165
|
-
try {
|
|
166
|
-
_stringValueOf.call(value);
|
|
167
|
-
return true;
|
|
168
|
-
} catch {
|
|
169
|
-
return false;
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
function isSymbolObject(value) {
|
|
173
|
-
if (!isObjectLike(value)) return false;
|
|
174
|
-
try {
|
|
175
|
-
_symbolValueOf.call(value);
|
|
176
|
-
return true;
|
|
177
|
-
} catch {
|
|
178
|
-
return false;
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
function isBigIntObject(value) {
|
|
182
|
-
if (!isObjectLike(value)) return false;
|
|
183
|
-
try {
|
|
184
|
-
_bigIntValueOf.call(value);
|
|
185
|
-
return true;
|
|
186
|
-
} catch {
|
|
187
|
-
return false;
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
function isBoxedPrimitive(value) {
|
|
191
|
-
return isBooleanObject(value) || isStringObject(value) || isNumberObject(value) || isSymbolObject(value) || isBigIntObject(value);
|
|
192
|
-
}
|
|
193
|
-
function isArgumentsObject(value) {
|
|
194
|
-
return isObjectLike(value) && value[Symbol.toStringTag] === undefined && _toString.call(value) === "[object Arguments]";
|
|
195
|
-
}
|
|
196
|
-
function isModuleNamespaceObject(value) {
|
|
197
|
-
return isObjectLike(value) && value[Symbol.toStringTag] === "Module";
|
|
198
|
-
}
|
|
199
|
-
function isProxy(value) {
|
|
200
|
-
return false;
|
|
201
|
-
}
|
|
202
|
-
function isCryptoKey(value) {
|
|
203
|
-
return isObjectLike(value) && _toString.call(value) === "[object CryptoKey]";
|
|
204
|
-
}
|
|
205
|
-
function isKeyObject(value) {
|
|
206
|
-
return false;
|
|
207
|
-
}
|
|
208
|
-
const types = {
|
|
209
|
-
isAnyArrayBuffer,
|
|
210
|
-
isArrayBuffer,
|
|
211
|
-
isArrayBufferView,
|
|
212
|
-
isArgumentsObject,
|
|
213
|
-
isAsyncFunction,
|
|
214
|
-
isBigInt64Array,
|
|
215
|
-
isBigUint64Array,
|
|
216
|
-
isBigIntObject,
|
|
217
|
-
isBooleanObject,
|
|
218
|
-
isBoxedPrimitive,
|
|
219
|
-
isCryptoKey,
|
|
220
|
-
isDataView,
|
|
221
|
-
isDate,
|
|
222
|
-
isFloat32Array,
|
|
223
|
-
isFloat64Array,
|
|
224
|
-
isGeneratorFunction,
|
|
225
|
-
isGeneratorObject,
|
|
226
|
-
isInt8Array,
|
|
227
|
-
isInt16Array,
|
|
228
|
-
isInt32Array,
|
|
229
|
-
isKeyObject,
|
|
230
|
-
isMap,
|
|
231
|
-
isMapIterator,
|
|
232
|
-
isModuleNamespaceObject,
|
|
233
|
-
isNativeError,
|
|
234
|
-
isNumberObject,
|
|
235
|
-
isPromise,
|
|
236
|
-
isProxy,
|
|
237
|
-
isRegExp,
|
|
238
|
-
isSet,
|
|
239
|
-
isSetIterator,
|
|
240
|
-
isSharedArrayBuffer,
|
|
241
|
-
isStringObject,
|
|
242
|
-
isSymbolObject,
|
|
243
|
-
isTypedArray,
|
|
244
|
-
isUint8Array,
|
|
245
|
-
isUint8ClampedArray,
|
|
246
|
-
isUint16Array,
|
|
247
|
-
isUint32Array,
|
|
248
|
-
isWeakMap,
|
|
249
|
-
isWeakSet
|
|
250
|
-
};
|
|
251
|
-
|
|
252
|
-
//#endregion
|
|
253
|
-
export { types as default, isAnyArrayBuffer, isArgumentsObject, isArrayBuffer, isArrayBufferView, isAsyncFunction, isBigInt64Array, isBigIntObject, isBigUint64Array, isBooleanObject, isBoxedPrimitive, isCryptoKey, isDataView, isDate, isFloat32Array, isFloat64Array, isGeneratorFunction, isGeneratorObject, isInt16Array, isInt32Array, isInt8Array, isKeyObject, isMap, isMapIterator, isModuleNamespaceObject, isNativeError, isNumberObject, isPromise, isProxy, isRegExp, isSet, isSetIterator, isSharedArrayBuffer, isStringObject, isSymbolObject, isTypedArray, isUint16Array, isUint32Array, isUint8Array, isUint8ClampedArray, isWeakMap, isWeakSet };
|
|
1
|
+
const e=Object.prototype.toString,t=BigInt.prototype.valueOf,n=Boolean.prototype.valueOf,r=Date.prototype.valueOf,i=Number.prototype.valueOf,ee=String.prototype.valueOf,te=Symbol.prototype.valueOf,a=WeakMap.prototype.has,o=WeakSet.prototype.has,s=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,`byteLength`).get,c=typeof SharedArrayBuffer<`u`?Object.getOwnPropertyDescriptor(SharedArrayBuffer.prototype,`byteLength`).get:void 0,l=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Uint8Array).prototype,Symbol.toStringTag).get,u=Object.getOwnPropertyDescriptor(Set.prototype,`size`).get,d=Object.getOwnPropertyDescriptor(Map.prototype,`size`).get;function f(e){return typeof e==`object`&&!!e}function p(e){return m(e)||h(e)}function m(e){try{return s.call(e),!0}catch{return!1}}function h(e){if(c===void 0)return!1;try{return c.call(e),!0}catch{return!1}}function g(e){return ArrayBuffer.isView(e)}function _(e){return l.call(e)!==void 0}function v(e){return l.call(e)===`Uint8Array`}function y(e){return l.call(e)===`Uint8ClampedArray`}function b(e){return l.call(e)===`Uint16Array`}function x(e){return l.call(e)===`Uint32Array`}function S(e){return l.call(e)===`Int8Array`}function C(e){return l.call(e)===`Int16Array`}function w(e){return l.call(e)===`Int32Array`}function T(e){return l.call(e)===`Float32Array`}function E(e){return l.call(e)===`Float64Array`}function D(e){return l.call(e)===`BigInt64Array`}function O(e){return l.call(e)===`BigUint64Array`}function k(e){return ArrayBuffer.isView(e)&&l.call(e)===void 0}function A(e){try{return d.call(e),!0}catch{return!1}}function j(e){try{return u.call(e),!0}catch{return!1}}function M(e){try{return a.call(e,null),!0}catch{return!1}}function N(e){try{return o.call(e,null),!0}catch{return!1}}function P(e){return f(e)&&e[Symbol.toStringTag]===`Map Iterator`}function F(e){return f(e)&&e[Symbol.toStringTag]===`Set Iterator`}function I(e){try{return r.call(e),!0}catch{return!1}}function L(t){return f(t)&&t[Symbol.toStringTag]===void 0&&e.call(t)===`[object RegExp]`}function R(t){return f(t)&&t[Symbol.toStringTag]===void 0&&e.call(t)===`[object Error]`}function z(e){return typeof e==`function`&&e[Symbol.toStringTag]===`AsyncFunction`}function B(e){return typeof e==`function`&&e[Symbol.toStringTag]===`GeneratorFunction`}function V(e){return f(e)&&e[Symbol.toStringTag]===`Generator`}function H(e){return f(e)&&e[Symbol.toStringTag]===`Promise`}function U(e){if(!f(e))return!1;try{return n.call(e),!0}catch{return!1}}function W(e){if(!f(e))return!1;try{return i.call(e),!0}catch{return!1}}function G(e){if(!f(e))return!1;try{return ee.call(e),!0}catch{return!1}}function K(e){if(!f(e))return!1;try{return te.call(e),!0}catch{return!1}}function q(e){if(!f(e))return!1;try{return t.call(e),!0}catch{return!1}}function J(e){return U(e)||G(e)||W(e)||K(e)||q(e)}function Y(t){return f(t)&&t[Symbol.toStringTag]===void 0&&e.call(t)===`[object Arguments]`}function X(e){return f(e)&&e[Symbol.toStringTag]===`Module`}function Z(e){return!1}function Q(t){return f(t)&&e.call(t)===`[object CryptoKey]`}function $(e){return!1}const ne={isAnyArrayBuffer:p,isArrayBuffer:m,isArrayBufferView:g,isArgumentsObject:Y,isAsyncFunction:z,isBigInt64Array:D,isBigUint64Array:O,isBigIntObject:q,isBooleanObject:U,isBoxedPrimitive:J,isCryptoKey:Q,isDataView:k,isDate:I,isFloat32Array:T,isFloat64Array:E,isGeneratorFunction:B,isGeneratorObject:V,isInt8Array:S,isInt16Array:C,isInt32Array:w,isKeyObject:$,isMap:A,isMapIterator:P,isModuleNamespaceObject:X,isNativeError:R,isNumberObject:W,isPromise:H,isProxy:Z,isRegExp:L,isSet:j,isSetIterator:F,isSharedArrayBuffer:h,isStringObject:G,isSymbolObject:K,isTypedArray:_,isUint8Array:v,isUint8ClampedArray:y,isUint16Array:b,isUint32Array:x,isWeakMap:M,isWeakSet:N};export{ne as default,p as isAnyArrayBuffer,Y as isArgumentsObject,m as isArrayBuffer,g as isArrayBufferView,z as isAsyncFunction,D as isBigInt64Array,q as isBigIntObject,O as isBigUint64Array,U as isBooleanObject,J as isBoxedPrimitive,Q as isCryptoKey,k as isDataView,I as isDate,T as isFloat32Array,E as isFloat64Array,B as isGeneratorFunction,V as isGeneratorObject,C as isInt16Array,w as isInt32Array,S as isInt8Array,$ as isKeyObject,A as isMap,P as isMapIterator,X as isModuleNamespaceObject,R as isNativeError,W as isNumberObject,H as isPromise,Z as isProxy,L as isRegExp,j as isSet,F as isSetIterator,h as isSharedArrayBuffer,G as isStringObject,K as isSymbolObject,_ as isTypedArray,b as isUint16Array,x as isUint32Array,v as isUint8Array,y as isUint8ClampedArray,M as isWeakMap,N as isWeakSet};
|
package/lib/esm/types.js
CHANGED
|
@@ -1,52 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import types, { isAnyArrayBuffer, isArgumentsObject, isArrayBuffer, isArrayBufferView, isAsyncFunction, isBigInt64Array, isBigIntObject, isBigUint64Array, isBooleanObject, isBoxedPrimitive, isCryptoKey, isDataView, isDate, isFloat32Array, isFloat64Array, isGeneratorFunction, isGeneratorObject, isInt16Array, isInt32Array, isInt8Array, isKeyObject, isMap, isMapIterator, isModuleNamespaceObject, isNativeError, isNumberObject, isPromise, isProxy, isRegExp, isSet, isSetIterator, isSharedArrayBuffer, isStringObject, isSymbolObject, isTypedArray, isUint16Array, isUint32Array, isUint8Array, isUint8ClampedArray, isWeakMap, isWeakSet } from "./types/index.js";
|
|
3
|
-
|
|
4
|
-
//#region src/types.ts
|
|
5
|
-
var types_exports = /* @__PURE__ */ __exportAll({
|
|
6
|
-
default: () => types_default,
|
|
7
|
-
isAnyArrayBuffer: () => isAnyArrayBuffer,
|
|
8
|
-
isArgumentsObject: () => isArgumentsObject,
|
|
9
|
-
isArrayBuffer: () => isArrayBuffer,
|
|
10
|
-
isArrayBufferView: () => isArrayBufferView,
|
|
11
|
-
isAsyncFunction: () => isAsyncFunction,
|
|
12
|
-
isBigInt64Array: () => isBigInt64Array,
|
|
13
|
-
isBigIntObject: () => isBigIntObject,
|
|
14
|
-
isBigUint64Array: () => isBigUint64Array,
|
|
15
|
-
isBooleanObject: () => isBooleanObject,
|
|
16
|
-
isBoxedPrimitive: () => isBoxedPrimitive,
|
|
17
|
-
isCryptoKey: () => isCryptoKey,
|
|
18
|
-
isDataView: () => isDataView,
|
|
19
|
-
isDate: () => isDate,
|
|
20
|
-
isFloat32Array: () => isFloat32Array,
|
|
21
|
-
isFloat64Array: () => isFloat64Array,
|
|
22
|
-
isGeneratorFunction: () => isGeneratorFunction,
|
|
23
|
-
isGeneratorObject: () => isGeneratorObject,
|
|
24
|
-
isInt16Array: () => isInt16Array,
|
|
25
|
-
isInt32Array: () => isInt32Array,
|
|
26
|
-
isInt8Array: () => isInt8Array,
|
|
27
|
-
isKeyObject: () => isKeyObject,
|
|
28
|
-
isMap: () => isMap,
|
|
29
|
-
isMapIterator: () => isMapIterator,
|
|
30
|
-
isModuleNamespaceObject: () => isModuleNamespaceObject,
|
|
31
|
-
isNativeError: () => isNativeError,
|
|
32
|
-
isNumberObject: () => isNumberObject,
|
|
33
|
-
isPromise: () => isPromise,
|
|
34
|
-
isProxy: () => isProxy,
|
|
35
|
-
isRegExp: () => isRegExp,
|
|
36
|
-
isSet: () => isSet,
|
|
37
|
-
isSetIterator: () => isSetIterator,
|
|
38
|
-
isSharedArrayBuffer: () => isSharedArrayBuffer,
|
|
39
|
-
isStringObject: () => isStringObject,
|
|
40
|
-
isSymbolObject: () => isSymbolObject,
|
|
41
|
-
isTypedArray: () => isTypedArray,
|
|
42
|
-
isUint16Array: () => isUint16Array,
|
|
43
|
-
isUint32Array: () => isUint32Array,
|
|
44
|
-
isUint8Array: () => isUint8Array,
|
|
45
|
-
isUint8ClampedArray: () => isUint8ClampedArray,
|
|
46
|
-
isWeakMap: () => isWeakMap,
|
|
47
|
-
isWeakSet: () => isWeakSet
|
|
48
|
-
});
|
|
49
|
-
var types_default = types;
|
|
50
|
-
|
|
51
|
-
//#endregion
|
|
52
|
-
export { types_default as default, isAnyArrayBuffer, isArgumentsObject, isArrayBuffer, isArrayBufferView, isAsyncFunction, isBigInt64Array, isBigIntObject, isBigUint64Array, isBooleanObject, isBoxedPrimitive, isCryptoKey, isDataView, isDate, isFloat32Array, isFloat64Array, isGeneratorFunction, isGeneratorObject, isInt16Array, isInt32Array, isInt8Array, isKeyObject, isMap, isMapIterator, isModuleNamespaceObject, isNativeError, isNumberObject, isPromise, isProxy, isRegExp, isSet, isSetIterator, isSharedArrayBuffer, isStringObject, isSymbolObject, isTypedArray, isUint16Array, isUint32Array, isUint8Array, isUint8ClampedArray, isWeakMap, isWeakSet, types_exports };
|
|
1
|
+
import{__exportAll as e}from"./_virtual/_rolldown/runtime.js";import t,{isAnyArrayBuffer as n,isArgumentsObject as r,isArrayBuffer as i,isArrayBufferView as a,isAsyncFunction as o,isBigInt64Array as s,isBigIntObject as c,isBigUint64Array as l,isBooleanObject as u,isBoxedPrimitive as d,isCryptoKey as f,isDataView as p,isDate as m,isFloat32Array as h,isFloat64Array as g,isGeneratorFunction as _,isGeneratorObject as v,isInt16Array as y,isInt32Array as b,isInt8Array as x,isKeyObject as S,isMap as C,isMapIterator as w,isModuleNamespaceObject as T,isNativeError as E,isNumberObject as D,isPromise as O,isProxy as k,isRegExp as A,isSet as j,isSetIterator as M,isSharedArrayBuffer as N,isStringObject as P,isSymbolObject as F,isTypedArray as I,isUint16Array as L,isUint32Array as R,isUint8Array as z,isUint8ClampedArray as B,isWeakMap as V,isWeakSet as H}from"./types/index.js";var U=e({default:()=>W,isAnyArrayBuffer:()=>n,isArgumentsObject:()=>r,isArrayBuffer:()=>i,isArrayBufferView:()=>a,isAsyncFunction:()=>o,isBigInt64Array:()=>s,isBigIntObject:()=>c,isBigUint64Array:()=>l,isBooleanObject:()=>u,isBoxedPrimitive:()=>d,isCryptoKey:()=>f,isDataView:()=>p,isDate:()=>m,isFloat32Array:()=>h,isFloat64Array:()=>g,isGeneratorFunction:()=>_,isGeneratorObject:()=>v,isInt16Array:()=>y,isInt32Array:()=>b,isInt8Array:()=>x,isKeyObject:()=>S,isMap:()=>C,isMapIterator:()=>w,isModuleNamespaceObject:()=>T,isNativeError:()=>E,isNumberObject:()=>D,isPromise:()=>O,isProxy:()=>k,isRegExp:()=>A,isSet:()=>j,isSetIterator:()=>M,isSharedArrayBuffer:()=>N,isStringObject:()=>P,isSymbolObject:()=>F,isTypedArray:()=>I,isUint16Array:()=>L,isUint32Array:()=>R,isUint8Array:()=>z,isUint8ClampedArray:()=>B,isWeakMap:()=>V,isWeakSet:()=>H}),W=t;export{W as default,n as isAnyArrayBuffer,r as isArgumentsObject,i as isArrayBuffer,a as isArrayBufferView,o as isAsyncFunction,s as isBigInt64Array,c as isBigIntObject,l as isBigUint64Array,u as isBooleanObject,d as isBoxedPrimitive,f as isCryptoKey,p as isDataView,m as isDate,h as isFloat32Array,g as isFloat64Array,_ as isGeneratorFunction,v as isGeneratorObject,y as isInt16Array,b as isInt32Array,x as isInt8Array,S as isKeyObject,C as isMap,w as isMapIterator,T as isModuleNamespaceObject,E as isNativeError,D as isNumberObject,O as isPromise,k as isProxy,A as isRegExp,j as isSet,M as isSetIterator,N as isSharedArrayBuffer,P as isStringObject,F as isSymbolObject,I as isTypedArray,L as isUint16Array,R as isUint32Array,z as isUint8Array,B as isUint8ClampedArray,V as isWeakMap,H as isWeakSet,U as types_exports};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gjsify/util",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.17",
|
|
4
4
|
"description": "Node.js util module for Gjs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "lib/esm/index.js",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"build:gjsify": "gjsify build --library 'src/**/*.{ts,js}' --exclude 'src/**/*.spec.{mts,ts}' 'src/test.{mts,ts}'",
|
|
23
23
|
"build:types": "tsc",
|
|
24
24
|
"build:test": "yarn build:test:gjs && yarn build:test:node",
|
|
25
|
-
"build:test:gjs": "gjsify build src/test.ts --app gjs --outfile test.gjs.mjs",
|
|
26
|
-
"build:test:node": "gjsify build src/test.ts --app node --outfile test.node.mjs",
|
|
25
|
+
"build:test:gjs": "gjsify build src/test.ts --app gjs --no-minify --outfile test.gjs.mjs",
|
|
26
|
+
"build:test:node": "gjsify build src/test.ts --app node --no-minify --outfile test.node.mjs",
|
|
27
27
|
"test": "yarn build:gjsify && yarn build:test && yarn test:node && yarn test:gjs",
|
|
28
28
|
"test:gjs": "gjsify run test.gjs.mjs",
|
|
29
29
|
"test:node": "node test.node.mjs"
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
"util"
|
|
35
35
|
],
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@gjsify/cli": "^0.3.
|
|
38
|
-
"@gjsify/unit": "^0.3.
|
|
37
|
+
"@gjsify/cli": "^0.3.17",
|
|
38
|
+
"@gjsify/unit": "^0.3.17",
|
|
39
39
|
"@types/inherits": "^2.0.0",
|
|
40
|
-
"@types/node": "^25.6.
|
|
40
|
+
"@types/node": "^25.6.2",
|
|
41
41
|
"typescript": "^6.0.3"
|
|
42
42
|
}
|
|
43
43
|
}
|