@smartbills/sdk 0.0.2-alpha.20 → 0.0.2-alpha.22
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/@types/services/oauth/OAuthService.d.ts +1 -1
- package/dist/@types/services/prices/PriceService.d.ts +2 -2
- package/dist/@types/services/product-images/ProductImageService.d.ts +1 -1
- package/dist/@types/services/product-variants/ProductVariantService.d.ts +1 -1
- package/dist/@types/services/receipts/ReceiptCreateRequest.d.ts +1 -1
- package/dist/@types/services/reviews/ReviewService.d.ts +1 -1
- package/dist/cjs/_virtual/__polyfill-node.util.cjs +11 -0
- package/dist/cjs/_virtual/__polyfill-node.util.cjs.map +1 -0
- package/dist/cjs/_virtual/_commonjsHelpers.cjs +37 -0
- package/dist/cjs/_virtual/_commonjsHelpers.cjs.map +1 -0
- package/dist/cjs/_virtual/_polyfill-node._inherits.cjs +31 -0
- package/dist/cjs/_virtual/_polyfill-node._inherits.cjs.map +1 -0
- package/dist/cjs/_virtual/_polyfill-node.buffer.cjs +1985 -0
- package/dist/cjs/_virtual/_polyfill-node.buffer.cjs.map +1 -0
- package/dist/cjs/_virtual/_polyfill-node.global.cjs +10 -0
- package/dist/cjs/_virtual/_polyfill-node.global.cjs.map +1 -0
- package/dist/cjs/_virtual/_polyfill-node.process.cjs +253 -0
- package/dist/cjs/_virtual/_polyfill-node.process.cjs.map +1 -0
- package/dist/cjs/_virtual/_polyfill-node.util.cjs +707 -0
- package/dist/cjs/_virtual/_polyfill-node.util.cjs.map +1 -0
- package/dist/cjs/_virtual/index.cjs +6 -0
- package/dist/cjs/_virtual/index.cjs.map +1 -0
- package/dist/cjs/node_modules/call-bind/callBound.cjs +18 -0
- package/dist/cjs/node_modules/call-bind/callBound.cjs.map +1 -0
- package/dist/cjs/node_modules/call-bind/index.cjs +42 -0
- package/dist/cjs/node_modules/call-bind/index.cjs.map +1 -0
- package/dist/cjs/node_modules/define-data-property/index.cjs +56 -0
- package/dist/cjs/node_modules/define-data-property/index.cjs.map +1 -0
- package/dist/cjs/node_modules/es-define-property/index.cjs +29 -0
- package/dist/cjs/node_modules/es-define-property/index.cjs.map +1 -0
- package/dist/cjs/node_modules/es-errors/eval.cjs +7 -0
- package/dist/cjs/node_modules/es-errors/eval.cjs.map +1 -0
- package/dist/cjs/node_modules/es-errors/index.cjs +7 -0
- package/dist/cjs/node_modules/es-errors/index.cjs.map +1 -0
- package/dist/cjs/node_modules/es-errors/range.cjs +7 -0
- package/dist/cjs/node_modules/es-errors/range.cjs.map +1 -0
- package/dist/cjs/node_modules/es-errors/ref.cjs +7 -0
- package/dist/cjs/node_modules/es-errors/ref.cjs.map +1 -0
- package/dist/cjs/node_modules/es-errors/syntax.cjs +7 -0
- package/dist/cjs/node_modules/es-errors/syntax.cjs.map +1 -0
- package/dist/cjs/node_modules/es-errors/type.cjs +7 -0
- package/dist/cjs/node_modules/es-errors/type.cjs.map +1 -0
- package/dist/cjs/node_modules/es-errors/uri.cjs +7 -0
- package/dist/cjs/node_modules/es-errors/uri.cjs.map +1 -0
- package/dist/cjs/node_modules/function-bind/implementation.cjs +69 -0
- package/dist/cjs/node_modules/function-bind/implementation.cjs.map +1 -0
- package/dist/cjs/node_modules/function-bind/index.cjs +9 -0
- package/dist/cjs/node_modules/function-bind/index.cjs.map +1 -0
- package/dist/cjs/node_modules/get-intrinsic/index.cjs +340 -0
- package/dist/cjs/node_modules/get-intrinsic/index.cjs.map +1 -0
- package/dist/cjs/node_modules/gopd/index.cjs +18 -0
- package/dist/cjs/node_modules/gopd/index.cjs.map +1 -0
- package/dist/cjs/node_modules/has-property-descriptors/index.cjs +26 -0
- package/dist/cjs/node_modules/has-property-descriptors/index.cjs.map +1 -0
- package/dist/cjs/node_modules/has-proto/index.cjs +18 -0
- package/dist/cjs/node_modules/has-proto/index.cjs.map +1 -0
- package/dist/cjs/node_modules/has-symbols/index.cjs +24 -0
- package/dist/cjs/node_modules/has-symbols/index.cjs.map +1 -0
- package/dist/cjs/node_modules/has-symbols/shams.cjs +60 -0
- package/dist/cjs/node_modules/has-symbols/shams.cjs.map +1 -0
- package/dist/cjs/node_modules/hasown/index.cjs +13 -0
- package/dist/cjs/node_modules/hasown/index.cjs.map +1 -0
- package/dist/cjs/node_modules/object-inspect/index.cjs +522 -0
- package/dist/cjs/node_modules/object-inspect/index.cjs.map +1 -0
- package/dist/cjs/node_modules/object-inspect/util.inspect.cjs +8 -0
- package/dist/cjs/node_modules/object-inspect/util.inspect.cjs.map +1 -0
- package/dist/cjs/node_modules/qs/lib/formats.cjs +24 -0
- package/dist/cjs/node_modules/qs/lib/formats.cjs.map +1 -0
- package/dist/cjs/node_modules/qs/lib/index.cjs +21 -0
- package/dist/cjs/node_modules/qs/lib/index.cjs.map +1 -0
- package/dist/cjs/node_modules/qs/lib/parse.cjs +258 -0
- package/dist/cjs/node_modules/qs/lib/parse.cjs.map +1 -0
- package/dist/cjs/node_modules/qs/lib/stringify.cjs +250 -0
- package/dist/cjs/node_modules/qs/lib/stringify.cjs.map +1 -0
- package/dist/cjs/node_modules/qs/lib/utils.cjs +229 -0
- package/dist/cjs/node_modules/qs/lib/utils.cjs.map +1 -0
- package/dist/cjs/node_modules/set-function-length/index.cjs +47 -0
- package/dist/cjs/node_modules/set-function-length/index.cjs.map +1 -0
- package/dist/cjs/node_modules/side-channel/index.cjs +145 -0
- package/dist/cjs/node_modules/side-channel/index.cjs.map +1 -0
- package/dist/cjs/packages/sdk/package.json.cjs +1 -1
- package/dist/cjs/services/oauth/AuthorizationCodeResponse.cjs +2 -2
- package/dist/cjs/services/oauth/AuthorizationCodeResponse.cjs.map +1 -1
- package/dist/cjs/services/oauth/OAuthService.cjs +20 -10
- package/dist/cjs/services/oauth/OAuthService.cjs.map +1 -1
- package/dist/esm/_virtual/__polyfill-node.util.mjs +7 -0
- package/dist/esm/_virtual/__polyfill-node.util.mjs.map +1 -0
- package/dist/esm/_virtual/_commonjsHelpers.mjs +33 -0
- package/dist/esm/_virtual/_commonjsHelpers.mjs.map +1 -0
- package/dist/esm/_virtual/_polyfill-node._inherits.mjs +27 -0
- package/dist/esm/_virtual/_polyfill-node._inherits.mjs.map +1 -0
- package/dist/esm/_virtual/_polyfill-node.buffer.mjs +1981 -0
- package/dist/esm/_virtual/_polyfill-node.buffer.mjs.map +1 -0
- package/dist/esm/_virtual/_polyfill-node.global.mjs +6 -0
- package/dist/esm/_virtual/_polyfill-node.global.mjs.map +1 -0
- package/dist/esm/_virtual/_polyfill-node.process.mjs +226 -0
- package/dist/esm/_virtual/_polyfill-node.process.mjs.map +1 -0
- package/dist/esm/_virtual/_polyfill-node.util.mjs +679 -0
- package/dist/esm/_virtual/_polyfill-node.util.mjs.map +1 -0
- package/dist/esm/_virtual/index.mjs +4 -0
- package/dist/esm/_virtual/index.mjs.map +1 -0
- package/dist/esm/node_modules/call-bind/callBound.mjs +16 -0
- package/dist/esm/node_modules/call-bind/callBound.mjs.map +1 -0
- package/dist/esm/node_modules/call-bind/index.mjs +40 -0
- package/dist/esm/node_modules/call-bind/index.mjs.map +1 -0
- package/dist/esm/node_modules/define-data-property/index.mjs +54 -0
- package/dist/esm/node_modules/define-data-property/index.mjs.map +1 -0
- package/dist/esm/node_modules/es-define-property/index.mjs +27 -0
- package/dist/esm/node_modules/es-define-property/index.mjs.map +1 -0
- package/dist/esm/node_modules/es-errors/eval.mjs +5 -0
- package/dist/esm/node_modules/es-errors/eval.mjs.map +1 -0
- package/dist/esm/node_modules/es-errors/index.mjs +5 -0
- package/dist/esm/node_modules/es-errors/index.mjs.map +1 -0
- package/dist/esm/node_modules/es-errors/range.mjs +5 -0
- package/dist/esm/node_modules/es-errors/range.mjs.map +1 -0
- package/dist/esm/node_modules/es-errors/ref.mjs +5 -0
- package/dist/esm/node_modules/es-errors/ref.mjs.map +1 -0
- package/dist/esm/node_modules/es-errors/syntax.mjs +5 -0
- package/dist/esm/node_modules/es-errors/syntax.mjs.map +1 -0
- package/dist/esm/node_modules/es-errors/type.mjs +5 -0
- package/dist/esm/node_modules/es-errors/type.mjs.map +1 -0
- package/dist/esm/node_modules/es-errors/uri.mjs +5 -0
- package/dist/esm/node_modules/es-errors/uri.mjs.map +1 -0
- package/dist/esm/node_modules/function-bind/implementation.mjs +67 -0
- package/dist/esm/node_modules/function-bind/implementation.mjs.map +1 -0
- package/dist/esm/node_modules/function-bind/index.mjs +7 -0
- package/dist/esm/node_modules/function-bind/index.mjs.map +1 -0
- package/dist/esm/node_modules/get-intrinsic/index.mjs +338 -0
- package/dist/esm/node_modules/get-intrinsic/index.mjs.map +1 -0
- package/dist/esm/node_modules/gopd/index.mjs +16 -0
- package/dist/esm/node_modules/gopd/index.mjs.map +1 -0
- package/dist/esm/node_modules/has-property-descriptors/index.mjs +24 -0
- package/dist/esm/node_modules/has-property-descriptors/index.mjs.map +1 -0
- package/dist/esm/node_modules/has-proto/index.mjs +16 -0
- package/dist/esm/node_modules/has-proto/index.mjs.map +1 -0
- package/dist/esm/node_modules/has-symbols/index.mjs +22 -0
- package/dist/esm/node_modules/has-symbols/index.mjs.map +1 -0
- package/dist/esm/node_modules/has-symbols/shams.mjs +58 -0
- package/dist/esm/node_modules/has-symbols/shams.mjs.map +1 -0
- package/dist/esm/node_modules/hasown/index.mjs +11 -0
- package/dist/esm/node_modules/hasown/index.mjs.map +1 -0
- package/dist/esm/node_modules/object-inspect/index.mjs +520 -0
- package/dist/esm/node_modules/object-inspect/index.mjs.map +1 -0
- package/dist/esm/node_modules/object-inspect/util.inspect.mjs +6 -0
- package/dist/esm/node_modules/object-inspect/util.inspect.mjs.map +1 -0
- package/dist/esm/node_modules/qs/lib/formats.mjs +22 -0
- package/dist/esm/node_modules/qs/lib/formats.mjs.map +1 -0
- package/dist/esm/node_modules/qs/lib/index.mjs +17 -0
- package/dist/esm/node_modules/qs/lib/index.mjs.map +1 -0
- package/dist/esm/node_modules/qs/lib/parse.mjs +256 -0
- package/dist/esm/node_modules/qs/lib/parse.mjs.map +1 -0
- package/dist/esm/node_modules/qs/lib/stringify.mjs +248 -0
- package/dist/esm/node_modules/qs/lib/stringify.mjs.map +1 -0
- package/dist/esm/node_modules/qs/lib/utils.mjs +227 -0
- package/dist/esm/node_modules/qs/lib/utils.mjs.map +1 -0
- package/dist/esm/node_modules/set-function-length/index.mjs +45 -0
- package/dist/esm/node_modules/set-function-length/index.mjs.map +1 -0
- package/dist/esm/node_modules/side-channel/index.mjs +143 -0
- package/dist/esm/node_modules/side-channel/index.mjs.map +1 -0
- package/dist/esm/packages/sdk/package.json.mjs +1 -1
- package/dist/esm/services/oauth/AuthorizationCodeResponse.mjs +2 -2
- package/dist/esm/services/oauth/AuthorizationCodeResponse.mjs.map +1 -1
- package/dist/esm/services/oauth/OAuthService.mjs +20 -10
- package/dist/esm/services/oauth/OAuthService.mjs.map +1 -1
- package/dist/umd/index.js +5073 -14
- package/dist/umd/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,340 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index$1 = require('../es-errors/index.cjs');
|
|
4
|
+
var _eval = require('../es-errors/eval.cjs');
|
|
5
|
+
var range = require('../es-errors/range.cjs');
|
|
6
|
+
var ref = require('../es-errors/ref.cjs');
|
|
7
|
+
var syntax = require('../es-errors/syntax.cjs');
|
|
8
|
+
var type = require('../es-errors/type.cjs');
|
|
9
|
+
var uri = require('../es-errors/uri.cjs');
|
|
10
|
+
var index = require('../has-symbols/index.cjs');
|
|
11
|
+
var index$2 = require('../has-proto/index.cjs');
|
|
12
|
+
var index$3 = require('../function-bind/index.cjs');
|
|
13
|
+
var index$4 = require('../hasown/index.cjs');
|
|
14
|
+
|
|
15
|
+
var undefined$1;
|
|
16
|
+
var $Error = index$1.esErrors;
|
|
17
|
+
var $EvalError = _eval._eval;
|
|
18
|
+
var $RangeError = range.range;
|
|
19
|
+
var $ReferenceError = ref.ref;
|
|
20
|
+
var $SyntaxError = syntax.syntax;
|
|
21
|
+
var $TypeError = type.type;
|
|
22
|
+
var $URIError = uri.uri;
|
|
23
|
+
var $Function = Function;
|
|
24
|
+
|
|
25
|
+
// eslint-disable-next-line consistent-return
|
|
26
|
+
var getEvalledConstructor = function (expressionSyntax) {
|
|
27
|
+
try {
|
|
28
|
+
return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
|
|
29
|
+
} catch (e) {}
|
|
30
|
+
};
|
|
31
|
+
var $gOPD = Object.getOwnPropertyDescriptor;
|
|
32
|
+
if ($gOPD) {
|
|
33
|
+
try {
|
|
34
|
+
$gOPD({}, '');
|
|
35
|
+
} catch (e) {
|
|
36
|
+
$gOPD = null; // this is IE 8, which has a broken gOPD
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
var throwTypeError = function () {
|
|
40
|
+
throw new $TypeError();
|
|
41
|
+
};
|
|
42
|
+
var ThrowTypeError = $gOPD ? function () {
|
|
43
|
+
try {
|
|
44
|
+
// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
|
|
45
|
+
arguments.callee; // IE 8 does not throw here
|
|
46
|
+
return throwTypeError;
|
|
47
|
+
} catch (calleeThrows) {
|
|
48
|
+
try {
|
|
49
|
+
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
|
|
50
|
+
return $gOPD(arguments, 'callee').get;
|
|
51
|
+
} catch (gOPDthrows) {
|
|
52
|
+
return throwTypeError;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}() : throwTypeError;
|
|
56
|
+
var hasSymbols = index.hasSymbols();
|
|
57
|
+
var hasProto = index$2.hasProto();
|
|
58
|
+
var getProto = Object.getPrototypeOf || (hasProto ? function (x) {
|
|
59
|
+
return x.__proto__;
|
|
60
|
+
} // eslint-disable-line no-proto
|
|
61
|
+
: null);
|
|
62
|
+
var needsEval = {};
|
|
63
|
+
var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined$1 : getProto(Uint8Array);
|
|
64
|
+
var INTRINSICS = {
|
|
65
|
+
__proto__: null,
|
|
66
|
+
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
|
|
67
|
+
'%Array%': Array,
|
|
68
|
+
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
|
|
69
|
+
'%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined$1,
|
|
70
|
+
'%AsyncFromSyncIteratorPrototype%': undefined$1,
|
|
71
|
+
'%AsyncFunction%': needsEval,
|
|
72
|
+
'%AsyncGenerator%': needsEval,
|
|
73
|
+
'%AsyncGeneratorFunction%': needsEval,
|
|
74
|
+
'%AsyncIteratorPrototype%': needsEval,
|
|
75
|
+
'%Atomics%': typeof Atomics === 'undefined' ? undefined$1 : Atomics,
|
|
76
|
+
'%BigInt%': typeof BigInt === 'undefined' ? undefined$1 : BigInt,
|
|
77
|
+
'%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined$1 : BigInt64Array,
|
|
78
|
+
'%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined$1 : BigUint64Array,
|
|
79
|
+
'%Boolean%': Boolean,
|
|
80
|
+
'%DataView%': typeof DataView === 'undefined' ? undefined$1 : DataView,
|
|
81
|
+
'%Date%': Date,
|
|
82
|
+
'%decodeURI%': decodeURI,
|
|
83
|
+
'%decodeURIComponent%': decodeURIComponent,
|
|
84
|
+
'%encodeURI%': encodeURI,
|
|
85
|
+
'%encodeURIComponent%': encodeURIComponent,
|
|
86
|
+
'%Error%': $Error,
|
|
87
|
+
'%eval%': eval,
|
|
88
|
+
// eslint-disable-line no-eval
|
|
89
|
+
'%EvalError%': $EvalError,
|
|
90
|
+
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array,
|
|
91
|
+
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array,
|
|
92
|
+
'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined$1 : FinalizationRegistry,
|
|
93
|
+
'%Function%': $Function,
|
|
94
|
+
'%GeneratorFunction%': needsEval,
|
|
95
|
+
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array,
|
|
96
|
+
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined$1 : Int16Array,
|
|
97
|
+
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
|
|
98
|
+
'%isFinite%': isFinite,
|
|
99
|
+
'%isNaN%': isNaN,
|
|
100
|
+
'%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
|
|
101
|
+
'%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
|
|
102
|
+
'%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
|
|
103
|
+
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
|
|
104
|
+
'%Math%': Math,
|
|
105
|
+
'%Number%': Number,
|
|
106
|
+
'%Object%': Object,
|
|
107
|
+
'%parseFloat%': parseFloat,
|
|
108
|
+
'%parseInt%': parseInt,
|
|
109
|
+
'%Promise%': typeof Promise === 'undefined' ? undefined$1 : Promise,
|
|
110
|
+
'%Proxy%': typeof Proxy === 'undefined' ? undefined$1 : Proxy,
|
|
111
|
+
'%RangeError%': $RangeError,
|
|
112
|
+
'%ReferenceError%': $ReferenceError,
|
|
113
|
+
'%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
|
|
114
|
+
'%RegExp%': RegExp,
|
|
115
|
+
'%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
|
|
116
|
+
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
|
|
117
|
+
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
|
|
118
|
+
'%String%': String,
|
|
119
|
+
'%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined$1,
|
|
120
|
+
'%Symbol%': hasSymbols ? Symbol : undefined$1,
|
|
121
|
+
'%SyntaxError%': $SyntaxError,
|
|
122
|
+
'%ThrowTypeError%': ThrowTypeError,
|
|
123
|
+
'%TypedArray%': TypedArray,
|
|
124
|
+
'%TypeError%': $TypeError,
|
|
125
|
+
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array,
|
|
126
|
+
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray,
|
|
127
|
+
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array,
|
|
128
|
+
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array,
|
|
129
|
+
'%URIError%': $URIError,
|
|
130
|
+
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap,
|
|
131
|
+
'%WeakRef%': typeof WeakRef === 'undefined' ? undefined$1 : WeakRef,
|
|
132
|
+
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet
|
|
133
|
+
};
|
|
134
|
+
if (getProto) {
|
|
135
|
+
try {
|
|
136
|
+
null.error; // eslint-disable-line no-unused-expressions
|
|
137
|
+
} catch (e) {
|
|
138
|
+
// https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229
|
|
139
|
+
var errorProto = getProto(getProto(e));
|
|
140
|
+
INTRINSICS['%Error.prototype%'] = errorProto;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
var doEval = function doEval(name) {
|
|
144
|
+
var value;
|
|
145
|
+
if (name === '%AsyncFunction%') {
|
|
146
|
+
value = getEvalledConstructor('async function () {}');
|
|
147
|
+
} else if (name === '%GeneratorFunction%') {
|
|
148
|
+
value = getEvalledConstructor('function* () {}');
|
|
149
|
+
} else if (name === '%AsyncGeneratorFunction%') {
|
|
150
|
+
value = getEvalledConstructor('async function* () {}');
|
|
151
|
+
} else if (name === '%AsyncGenerator%') {
|
|
152
|
+
var fn = doEval('%AsyncGeneratorFunction%');
|
|
153
|
+
if (fn) {
|
|
154
|
+
value = fn.prototype;
|
|
155
|
+
}
|
|
156
|
+
} else if (name === '%AsyncIteratorPrototype%') {
|
|
157
|
+
var gen = doEval('%AsyncGenerator%');
|
|
158
|
+
if (gen && getProto) {
|
|
159
|
+
value = getProto(gen.prototype);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
INTRINSICS[name] = value;
|
|
163
|
+
return value;
|
|
164
|
+
};
|
|
165
|
+
var LEGACY_ALIASES = {
|
|
166
|
+
__proto__: null,
|
|
167
|
+
'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
|
|
168
|
+
'%ArrayPrototype%': ['Array', 'prototype'],
|
|
169
|
+
'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
|
|
170
|
+
'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
|
|
171
|
+
'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
|
|
172
|
+
'%ArrayProto_values%': ['Array', 'prototype', 'values'],
|
|
173
|
+
'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
|
|
174
|
+
'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
|
|
175
|
+
'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
|
|
176
|
+
'%BooleanPrototype%': ['Boolean', 'prototype'],
|
|
177
|
+
'%DataViewPrototype%': ['DataView', 'prototype'],
|
|
178
|
+
'%DatePrototype%': ['Date', 'prototype'],
|
|
179
|
+
'%ErrorPrototype%': ['Error', 'prototype'],
|
|
180
|
+
'%EvalErrorPrototype%': ['EvalError', 'prototype'],
|
|
181
|
+
'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
|
|
182
|
+
'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
|
|
183
|
+
'%FunctionPrototype%': ['Function', 'prototype'],
|
|
184
|
+
'%Generator%': ['GeneratorFunction', 'prototype'],
|
|
185
|
+
'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
|
|
186
|
+
'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
|
|
187
|
+
'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
|
|
188
|
+
'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
|
|
189
|
+
'%JSONParse%': ['JSON', 'parse'],
|
|
190
|
+
'%JSONStringify%': ['JSON', 'stringify'],
|
|
191
|
+
'%MapPrototype%': ['Map', 'prototype'],
|
|
192
|
+
'%NumberPrototype%': ['Number', 'prototype'],
|
|
193
|
+
'%ObjectPrototype%': ['Object', 'prototype'],
|
|
194
|
+
'%ObjProto_toString%': ['Object', 'prototype', 'toString'],
|
|
195
|
+
'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
|
|
196
|
+
'%PromisePrototype%': ['Promise', 'prototype'],
|
|
197
|
+
'%PromiseProto_then%': ['Promise', 'prototype', 'then'],
|
|
198
|
+
'%Promise_all%': ['Promise', 'all'],
|
|
199
|
+
'%Promise_reject%': ['Promise', 'reject'],
|
|
200
|
+
'%Promise_resolve%': ['Promise', 'resolve'],
|
|
201
|
+
'%RangeErrorPrototype%': ['RangeError', 'prototype'],
|
|
202
|
+
'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
|
|
203
|
+
'%RegExpPrototype%': ['RegExp', 'prototype'],
|
|
204
|
+
'%SetPrototype%': ['Set', 'prototype'],
|
|
205
|
+
'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
|
|
206
|
+
'%StringPrototype%': ['String', 'prototype'],
|
|
207
|
+
'%SymbolPrototype%': ['Symbol', 'prototype'],
|
|
208
|
+
'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
|
|
209
|
+
'%TypedArrayPrototype%': ['TypedArray', 'prototype'],
|
|
210
|
+
'%TypeErrorPrototype%': ['TypeError', 'prototype'],
|
|
211
|
+
'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
|
|
212
|
+
'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
|
|
213
|
+
'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
|
|
214
|
+
'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
|
|
215
|
+
'%URIErrorPrototype%': ['URIError', 'prototype'],
|
|
216
|
+
'%WeakMapPrototype%': ['WeakMap', 'prototype'],
|
|
217
|
+
'%WeakSetPrototype%': ['WeakSet', 'prototype']
|
|
218
|
+
};
|
|
219
|
+
var bind = index$3.functionBind;
|
|
220
|
+
var hasOwn = index$4.hasown;
|
|
221
|
+
var $concat = bind.call(Function.call, Array.prototype.concat);
|
|
222
|
+
var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
|
|
223
|
+
var $replace = bind.call(Function.call, String.prototype.replace);
|
|
224
|
+
var $strSlice = bind.call(Function.call, String.prototype.slice);
|
|
225
|
+
var $exec = bind.call(Function.call, RegExp.prototype.exec);
|
|
226
|
+
|
|
227
|
+
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
228
|
+
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
229
|
+
var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
|
230
|
+
var stringToPath = function stringToPath(string) {
|
|
231
|
+
var first = $strSlice(string, 0, 1);
|
|
232
|
+
var last = $strSlice(string, -1);
|
|
233
|
+
if (first === '%' && last !== '%') {
|
|
234
|
+
throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
|
|
235
|
+
} else if (last === '%' && first !== '%') {
|
|
236
|
+
throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
|
|
237
|
+
}
|
|
238
|
+
var result = [];
|
|
239
|
+
$replace(string, rePropName, function (match, number, quote, subString) {
|
|
240
|
+
result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
|
|
241
|
+
});
|
|
242
|
+
return result;
|
|
243
|
+
};
|
|
244
|
+
/* end adaptation */
|
|
245
|
+
|
|
246
|
+
var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
|
|
247
|
+
var intrinsicName = name;
|
|
248
|
+
var alias;
|
|
249
|
+
if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
|
|
250
|
+
alias = LEGACY_ALIASES[intrinsicName];
|
|
251
|
+
intrinsicName = '%' + alias[0] + '%';
|
|
252
|
+
}
|
|
253
|
+
if (hasOwn(INTRINSICS, intrinsicName)) {
|
|
254
|
+
var value = INTRINSICS[intrinsicName];
|
|
255
|
+
if (value === needsEval) {
|
|
256
|
+
value = doEval(intrinsicName);
|
|
257
|
+
}
|
|
258
|
+
if (typeof value === 'undefined' && !allowMissing) {
|
|
259
|
+
throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
260
|
+
}
|
|
261
|
+
return {
|
|
262
|
+
alias: alias,
|
|
263
|
+
name: intrinsicName,
|
|
264
|
+
value: value
|
|
265
|
+
};
|
|
266
|
+
}
|
|
267
|
+
throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
|
|
268
|
+
};
|
|
269
|
+
var getIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
270
|
+
if (typeof name !== 'string' || name.length === 0) {
|
|
271
|
+
throw new $TypeError('intrinsic name must be a non-empty string');
|
|
272
|
+
}
|
|
273
|
+
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
274
|
+
throw new $TypeError('"allowMissing" argument must be a boolean');
|
|
275
|
+
}
|
|
276
|
+
if ($exec(/^%?[^%]*%?$/, name) === null) {
|
|
277
|
+
throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
|
|
278
|
+
}
|
|
279
|
+
var parts = stringToPath(name);
|
|
280
|
+
var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
|
|
281
|
+
var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
|
|
282
|
+
var intrinsicRealName = intrinsic.name;
|
|
283
|
+
var value = intrinsic.value;
|
|
284
|
+
var skipFurtherCaching = false;
|
|
285
|
+
var alias = intrinsic.alias;
|
|
286
|
+
if (alias) {
|
|
287
|
+
intrinsicBaseName = alias[0];
|
|
288
|
+
$spliceApply(parts, $concat([0, 1], alias));
|
|
289
|
+
}
|
|
290
|
+
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
|
291
|
+
var part = parts[i];
|
|
292
|
+
var first = $strSlice(part, 0, 1);
|
|
293
|
+
var last = $strSlice(part, -1);
|
|
294
|
+
if ((first === '"' || first === "'" || first === '`' || last === '"' || last === "'" || last === '`') && first !== last) {
|
|
295
|
+
throw new $SyntaxError('property names with quotes must have matching quotes');
|
|
296
|
+
}
|
|
297
|
+
if (part === 'constructor' || !isOwn) {
|
|
298
|
+
skipFurtherCaching = true;
|
|
299
|
+
}
|
|
300
|
+
intrinsicBaseName += '.' + part;
|
|
301
|
+
intrinsicRealName = '%' + intrinsicBaseName + '%';
|
|
302
|
+
if (hasOwn(INTRINSICS, intrinsicRealName)) {
|
|
303
|
+
value = INTRINSICS[intrinsicRealName];
|
|
304
|
+
} else if (value != null) {
|
|
305
|
+
if (!(part in value)) {
|
|
306
|
+
if (!allowMissing) {
|
|
307
|
+
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
308
|
+
}
|
|
309
|
+
return void undefined$1;
|
|
310
|
+
}
|
|
311
|
+
if ($gOPD && i + 1 >= parts.length) {
|
|
312
|
+
var desc = $gOPD(value, part);
|
|
313
|
+
isOwn = !!desc;
|
|
314
|
+
|
|
315
|
+
// By convention, when a data property is converted to an accessor
|
|
316
|
+
// property to emulate a data property that does not suffer from
|
|
317
|
+
// the override mistake, that accessor's getter is marked with
|
|
318
|
+
// an `originalValue` property. Here, when we detect this, we
|
|
319
|
+
// uphold the illusion by pretending to see that original data
|
|
320
|
+
// property, i.e., returning the value rather than the getter
|
|
321
|
+
// itself.
|
|
322
|
+
if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
|
|
323
|
+
value = desc.get;
|
|
324
|
+
} else {
|
|
325
|
+
value = value[part];
|
|
326
|
+
}
|
|
327
|
+
} else {
|
|
328
|
+
isOwn = hasOwn(value, part);
|
|
329
|
+
value = value[part];
|
|
330
|
+
}
|
|
331
|
+
if (isOwn && !skipFurtherCaching) {
|
|
332
|
+
INTRINSICS[intrinsicRealName] = value;
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
return value;
|
|
337
|
+
};
|
|
338
|
+
|
|
339
|
+
exports.getIntrinsic = getIntrinsic;
|
|
340
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../../../node_modules/get-intrinsic/index.js"],"sourcesContent":["'use strict';\n\nvar undefined;\n\nvar $Error = require('es-errors');\nvar $EvalError = require('es-errors/eval');\nvar $RangeError = require('es-errors/range');\nvar $ReferenceError = require('es-errors/ref');\nvar $SyntaxError = require('es-errors/syntax');\nvar $TypeError = require('es-errors/type');\nvar $URIError = require('es-errors/uri');\n\nvar $Function = Function;\n\n// eslint-disable-next-line consistent-return\nvar getEvalledConstructor = function (expressionSyntax) {\n\ttry {\n\t\treturn $Function('\"use strict\"; return (' + expressionSyntax + ').constructor;')();\n\t} catch (e) {}\n};\n\nvar $gOPD = Object.getOwnPropertyDescriptor;\nif ($gOPD) {\n\ttry {\n\t\t$gOPD({}, '');\n\t} catch (e) {\n\t\t$gOPD = null; // this is IE 8, which has a broken gOPD\n\t}\n}\n\nvar throwTypeError = function () {\n\tthrow new $TypeError();\n};\nvar ThrowTypeError = $gOPD\n\t? (function () {\n\t\ttry {\n\t\t\t// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties\n\t\t\targuments.callee; // IE 8 does not throw here\n\t\t\treturn throwTypeError;\n\t\t} catch (calleeThrows) {\n\t\t\ttry {\n\t\t\t\t// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')\n\t\t\t\treturn $gOPD(arguments, 'callee').get;\n\t\t\t} catch (gOPDthrows) {\n\t\t\t\treturn throwTypeError;\n\t\t\t}\n\t\t}\n\t}())\n\t: throwTypeError;\n\nvar hasSymbols = require('has-symbols')();\nvar hasProto = require('has-proto')();\n\nvar getProto = Object.getPrototypeOf || (\n\thasProto\n\t\t? function (x) { return x.__proto__; } // eslint-disable-line no-proto\n\t\t: null\n);\n\nvar needsEval = {};\n\nvar TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array);\n\nvar INTRINSICS = {\n\t__proto__: null,\n\t'%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,\n\t'%Array%': Array,\n\t'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,\n\t'%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined,\n\t'%AsyncFromSyncIteratorPrototype%': undefined,\n\t'%AsyncFunction%': needsEval,\n\t'%AsyncGenerator%': needsEval,\n\t'%AsyncGeneratorFunction%': needsEval,\n\t'%AsyncIteratorPrototype%': needsEval,\n\t'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,\n\t'%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,\n\t'%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined : BigInt64Array,\n\t'%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined : BigUint64Array,\n\t'%Boolean%': Boolean,\n\t'%DataView%': typeof DataView === 'undefined' ? undefined : DataView,\n\t'%Date%': Date,\n\t'%decodeURI%': decodeURI,\n\t'%decodeURIComponent%': decodeURIComponent,\n\t'%encodeURI%': encodeURI,\n\t'%encodeURIComponent%': encodeURIComponent,\n\t'%Error%': $Error,\n\t'%eval%': eval, // eslint-disable-line no-eval\n\t'%EvalError%': $EvalError,\n\t'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,\n\t'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,\n\t'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,\n\t'%Function%': $Function,\n\t'%GeneratorFunction%': needsEval,\n\t'%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,\n\t'%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,\n\t'%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,\n\t'%isFinite%': isFinite,\n\t'%isNaN%': isNaN,\n\t'%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined,\n\t'%JSON%': typeof JSON === 'object' ? JSON : undefined,\n\t'%Map%': typeof Map === 'undefined' ? undefined : Map,\n\t'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()),\n\t'%Math%': Math,\n\t'%Number%': Number,\n\t'%Object%': Object,\n\t'%parseFloat%': parseFloat,\n\t'%parseInt%': parseInt,\n\t'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,\n\t'%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,\n\t'%RangeError%': $RangeError,\n\t'%ReferenceError%': $ReferenceError,\n\t'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,\n\t'%RegExp%': RegExp,\n\t'%Set%': typeof Set === 'undefined' ? undefined : Set,\n\t'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Set()[Symbol.iterator]()),\n\t'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,\n\t'%String%': String,\n\t'%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined,\n\t'%Symbol%': hasSymbols ? Symbol : undefined,\n\t'%SyntaxError%': $SyntaxError,\n\t'%ThrowTypeError%': ThrowTypeError,\n\t'%TypedArray%': TypedArray,\n\t'%TypeError%': $TypeError,\n\t'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,\n\t'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,\n\t'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,\n\t'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,\n\t'%URIError%': $URIError,\n\t'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,\n\t'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,\n\t'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet\n};\n\nif (getProto) {\n\ttry {\n\t\tnull.error; // eslint-disable-line no-unused-expressions\n\t} catch (e) {\n\t\t// https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229\n\t\tvar errorProto = getProto(getProto(e));\n\t\tINTRINSICS['%Error.prototype%'] = errorProto;\n\t}\n}\n\nvar doEval = function doEval(name) {\n\tvar value;\n\tif (name === '%AsyncFunction%') {\n\t\tvalue = getEvalledConstructor('async function () {}');\n\t} else if (name === '%GeneratorFunction%') {\n\t\tvalue = getEvalledConstructor('function* () {}');\n\t} else if (name === '%AsyncGeneratorFunction%') {\n\t\tvalue = getEvalledConstructor('async function* () {}');\n\t} else if (name === '%AsyncGenerator%') {\n\t\tvar fn = doEval('%AsyncGeneratorFunction%');\n\t\tif (fn) {\n\t\t\tvalue = fn.prototype;\n\t\t}\n\t} else if (name === '%AsyncIteratorPrototype%') {\n\t\tvar gen = doEval('%AsyncGenerator%');\n\t\tif (gen && getProto) {\n\t\t\tvalue = getProto(gen.prototype);\n\t\t}\n\t}\n\n\tINTRINSICS[name] = value;\n\n\treturn value;\n};\n\nvar LEGACY_ALIASES = {\n\t__proto__: null,\n\t'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],\n\t'%ArrayPrototype%': ['Array', 'prototype'],\n\t'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],\n\t'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],\n\t'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],\n\t'%ArrayProto_values%': ['Array', 'prototype', 'values'],\n\t'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],\n\t'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],\n\t'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],\n\t'%BooleanPrototype%': ['Boolean', 'prototype'],\n\t'%DataViewPrototype%': ['DataView', 'prototype'],\n\t'%DatePrototype%': ['Date', 'prototype'],\n\t'%ErrorPrototype%': ['Error', 'prototype'],\n\t'%EvalErrorPrototype%': ['EvalError', 'prototype'],\n\t'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],\n\t'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],\n\t'%FunctionPrototype%': ['Function', 'prototype'],\n\t'%Generator%': ['GeneratorFunction', 'prototype'],\n\t'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],\n\t'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],\n\t'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],\n\t'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],\n\t'%JSONParse%': ['JSON', 'parse'],\n\t'%JSONStringify%': ['JSON', 'stringify'],\n\t'%MapPrototype%': ['Map', 'prototype'],\n\t'%NumberPrototype%': ['Number', 'prototype'],\n\t'%ObjectPrototype%': ['Object', 'prototype'],\n\t'%ObjProto_toString%': ['Object', 'prototype', 'toString'],\n\t'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],\n\t'%PromisePrototype%': ['Promise', 'prototype'],\n\t'%PromiseProto_then%': ['Promise', 'prototype', 'then'],\n\t'%Promise_all%': ['Promise', 'all'],\n\t'%Promise_reject%': ['Promise', 'reject'],\n\t'%Promise_resolve%': ['Promise', 'resolve'],\n\t'%RangeErrorPrototype%': ['RangeError', 'prototype'],\n\t'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],\n\t'%RegExpPrototype%': ['RegExp', 'prototype'],\n\t'%SetPrototype%': ['Set', 'prototype'],\n\t'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],\n\t'%StringPrototype%': ['String', 'prototype'],\n\t'%SymbolPrototype%': ['Symbol', 'prototype'],\n\t'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],\n\t'%TypedArrayPrototype%': ['TypedArray', 'prototype'],\n\t'%TypeErrorPrototype%': ['TypeError', 'prototype'],\n\t'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],\n\t'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],\n\t'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],\n\t'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],\n\t'%URIErrorPrototype%': ['URIError', 'prototype'],\n\t'%WeakMapPrototype%': ['WeakMap', 'prototype'],\n\t'%WeakSetPrototype%': ['WeakSet', 'prototype']\n};\n\nvar bind = require('function-bind');\nvar hasOwn = require('hasown');\nvar $concat = bind.call(Function.call, Array.prototype.concat);\nvar $spliceApply = bind.call(Function.apply, Array.prototype.splice);\nvar $replace = bind.call(Function.call, String.prototype.replace);\nvar $strSlice = bind.call(Function.call, String.prototype.slice);\nvar $exec = bind.call(Function.call, RegExp.prototype.exec);\n\n/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */\nvar rePropName = /[^%.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|%$))/g;\nvar reEscapeChar = /\\\\(\\\\)?/g; /** Used to match backslashes in property paths. */\nvar stringToPath = function stringToPath(string) {\n\tvar first = $strSlice(string, 0, 1);\n\tvar last = $strSlice(string, -1);\n\tif (first === '%' && last !== '%') {\n\t\tthrow new $SyntaxError('invalid intrinsic syntax, expected closing `%`');\n\t} else if (last === '%' && first !== '%') {\n\t\tthrow new $SyntaxError('invalid intrinsic syntax, expected opening `%`');\n\t}\n\tvar result = [];\n\t$replace(string, rePropName, function (match, number, quote, subString) {\n\t\tresult[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;\n\t});\n\treturn result;\n};\n/* end adaptation */\n\nvar getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {\n\tvar intrinsicName = name;\n\tvar alias;\n\tif (hasOwn(LEGACY_ALIASES, intrinsicName)) {\n\t\talias = LEGACY_ALIASES[intrinsicName];\n\t\tintrinsicName = '%' + alias[0] + '%';\n\t}\n\n\tif (hasOwn(INTRINSICS, intrinsicName)) {\n\t\tvar value = INTRINSICS[intrinsicName];\n\t\tif (value === needsEval) {\n\t\t\tvalue = doEval(intrinsicName);\n\t\t}\n\t\tif (typeof value === 'undefined' && !allowMissing) {\n\t\t\tthrow new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');\n\t\t}\n\n\t\treturn {\n\t\t\talias: alias,\n\t\t\tname: intrinsicName,\n\t\t\tvalue: value\n\t\t};\n\t}\n\n\tthrow new $SyntaxError('intrinsic ' + name + ' does not exist!');\n};\n\nmodule.exports = function GetIntrinsic(name, allowMissing) {\n\tif (typeof name !== 'string' || name.length === 0) {\n\t\tthrow new $TypeError('intrinsic name must be a non-empty string');\n\t}\n\tif (arguments.length > 1 && typeof allowMissing !== 'boolean') {\n\t\tthrow new $TypeError('\"allowMissing\" argument must be a boolean');\n\t}\n\n\tif ($exec(/^%?[^%]*%?$/, name) === null) {\n\t\tthrow new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');\n\t}\n\tvar parts = stringToPath(name);\n\tvar intrinsicBaseName = parts.length > 0 ? parts[0] : '';\n\n\tvar intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);\n\tvar intrinsicRealName = intrinsic.name;\n\tvar value = intrinsic.value;\n\tvar skipFurtherCaching = false;\n\n\tvar alias = intrinsic.alias;\n\tif (alias) {\n\t\tintrinsicBaseName = alias[0];\n\t\t$spliceApply(parts, $concat([0, 1], alias));\n\t}\n\n\tfor (var i = 1, isOwn = true; i < parts.length; i += 1) {\n\t\tvar part = parts[i];\n\t\tvar first = $strSlice(part, 0, 1);\n\t\tvar last = $strSlice(part, -1);\n\t\tif (\n\t\t\t(\n\t\t\t\t(first === '\"' || first === \"'\" || first === '`')\n\t\t\t\t|| (last === '\"' || last === \"'\" || last === '`')\n\t\t\t)\n\t\t\t&& first !== last\n\t\t) {\n\t\t\tthrow new $SyntaxError('property names with quotes must have matching quotes');\n\t\t}\n\t\tif (part === 'constructor' || !isOwn) {\n\t\t\tskipFurtherCaching = true;\n\t\t}\n\n\t\tintrinsicBaseName += '.' + part;\n\t\tintrinsicRealName = '%' + intrinsicBaseName + '%';\n\n\t\tif (hasOwn(INTRINSICS, intrinsicRealName)) {\n\t\t\tvalue = INTRINSICS[intrinsicRealName];\n\t\t} else if (value != null) {\n\t\t\tif (!(part in value)) {\n\t\t\t\tif (!allowMissing) {\n\t\t\t\t\tthrow new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');\n\t\t\t\t}\n\t\t\t\treturn void undefined;\n\t\t\t}\n\t\t\tif ($gOPD && (i + 1) >= parts.length) {\n\t\t\t\tvar desc = $gOPD(value, part);\n\t\t\t\tisOwn = !!desc;\n\n\t\t\t\t// By convention, when a data property is converted to an accessor\n\t\t\t\t// property to emulate a data property that does not suffer from\n\t\t\t\t// the override mistake, that accessor's getter is marked with\n\t\t\t\t// an `originalValue` property. Here, when we detect this, we\n\t\t\t\t// uphold the illusion by pretending to see that original data\n\t\t\t\t// property, i.e., returning the value rather than the getter\n\t\t\t\t// itself.\n\t\t\t\tif (isOwn && 'get' in desc && !('originalValue' in desc.get)) {\n\t\t\t\t\tvalue = desc.get;\n\t\t\t\t} else {\n\t\t\t\t\tvalue = value[part];\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tisOwn = hasOwn(value, part);\n\t\t\t\tvalue = value[part];\n\t\t\t}\n\n\t\t\tif (isOwn && !skipFurtherCaching) {\n\t\t\t\tINTRINSICS[intrinsicRealName] = value;\n\t\t\t}\n\t\t}\n\t}\n\treturn value;\n};\n"],"names":["undefined","$Error","require$$0","$EvalError","require$$1","$RangeError","require$$2","$ReferenceError","require$$3","$SyntaxError","require$$4","$TypeError","require$$5","$URIError","require$$6","$Function","Function","getEvalledConstructor","expressionSyntax","e","$gOPD","Object","getOwnPropertyDescriptor","throwTypeError","ThrowTypeError","arguments","callee","calleeThrows","get","gOPDthrows","hasSymbols","require$$7","hasProto","require$$8","getProto","getPrototypeOf","x","__proto__","needsEval","TypedArray","Uint8Array","INTRINSICS","AggregateError","Array","ArrayBuffer","Symbol","iterator","Atomics","BigInt","BigInt64Array","BigUint64Array","Boolean","DataView","Date","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","eval","Float32Array","Float64Array","FinalizationRegistry","Int8Array","Int16Array","Int32Array","isFinite","isNaN","JSON","Map","Math","Number","parseFloat","parseInt","Promise","Proxy","Reflect","RegExp","Set","SharedArrayBuffer","String","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","WeakRef","WeakSet","error","errorProto","doEval","name","value","fn","prototype","gen","LEGACY_ALIASES","bind","require$$9","hasOwn","require$$10","$concat","call","concat","$spliceApply","apply","splice","$replace","replace","$strSlice","slice","$exec","exec","rePropName","reEscapeChar","stringToPath","string","first","last","result","match","number","quote","subString","length","getBaseIntrinsic","allowMissing","intrinsicName","alias","getIntrinsic","GetIntrinsic","parts","intrinsicBaseName","intrinsic","intrinsicRealName","skipFurtherCaching","i","isOwn","part","desc"],"mappings":";;;;;;;;;;;;;;AAEA,IAAIA,WAAS,CAAA;AAEb,IAAIC,MAAM,GAAGC,gBAAoB,CAAA;AACjC,IAAIC,UAAU,GAAGC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,18 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('../get-intrinsic/index.cjs');
|
|
4
|
+
|
|
5
|
+
var GetIntrinsic = index.getIntrinsic;
|
|
6
|
+
var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
|
|
7
|
+
if ($gOPD) {
|
|
8
|
+
try {
|
|
9
|
+
$gOPD([], 'length');
|
|
10
|
+
} catch (e) {
|
|
11
|
+
// IE 8 has a broken gOPD
|
|
12
|
+
$gOPD = null;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
var gopd = $gOPD;
|
|
16
|
+
|
|
17
|
+
exports.gopd = gopd;
|
|
18
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../../../node_modules/gopd/index.js"],"sourcesContent":["'use strict';\n\nvar GetIntrinsic = require('get-intrinsic');\n\nvar $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);\n\nif ($gOPD) {\n\ttry {\n\t\t$gOPD([], 'length');\n\t} catch (e) {\n\t\t// IE 8 has a broken gOPD\n\t\t$gOPD = null;\n\t}\n}\n\nmodule.exports = $gOPD;\n"],"names":["GetIntrinsic","require$$0","$gOPD","e","gopd"],"mappings":";;;;AAEA,IAAIA,YAAY,GAAGC,kBAAwB,CAAA;AAE3C,IAAIC,KAAK,GAAGF,YAAY,CAAC,mCAAmC,EAAE,IAAI,CAAC,CAAA;AAEnE,IAAIE,KAAK,EAAE;EACV,IAAI;AACHA,IAAAA,KAAK,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAA;GACnB,CAAC,OAAOC,CAAC,EAAE;AACb;AACED,IAAAA,KAAK,GAAG,IAAI,CAAA;AACZ,GAAA;AACF,CAAA;AAEAE,IAAAA,IAAc,GAAGF;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('../es-define-property/index.cjs');
|
|
4
|
+
|
|
5
|
+
var $defineProperty = index.__require();
|
|
6
|
+
var hasPropertyDescriptors = function hasPropertyDescriptors() {
|
|
7
|
+
return !!$defineProperty;
|
|
8
|
+
};
|
|
9
|
+
hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
|
|
10
|
+
// node v0.6 has a bug where array lengths can be Set but not Defined
|
|
11
|
+
if (!$defineProperty) {
|
|
12
|
+
return null;
|
|
13
|
+
}
|
|
14
|
+
try {
|
|
15
|
+
return $defineProperty([], 'length', {
|
|
16
|
+
value: 1
|
|
17
|
+
}).length !== 1;
|
|
18
|
+
} catch (e) {
|
|
19
|
+
// In Firefox 4-22, defining length on an array throws an exception.
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
var hasPropertyDescriptors_1 = hasPropertyDescriptors;
|
|
24
|
+
|
|
25
|
+
exports.hasPropertyDescriptors_1 = hasPropertyDescriptors_1;
|
|
26
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../../../node_modules/has-property-descriptors/index.js"],"sourcesContent":["'use strict';\n\nvar $defineProperty = require('es-define-property');\n\nvar hasPropertyDescriptors = function hasPropertyDescriptors() {\n\treturn !!$defineProperty;\n};\n\nhasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {\n\t// node v0.6 has a bug where array lengths can be Set but not Defined\n\tif (!$defineProperty) {\n\t\treturn null;\n\t}\n\ttry {\n\t\treturn $defineProperty([], 'length', { value: 1 }).length !== 1;\n\t} catch (e) {\n\t\t// In Firefox 4-22, defining length on an array throws an exception.\n\t\treturn true;\n\t}\n};\n\nmodule.exports = hasPropertyDescriptors;\n"],"names":["$defineProperty","require$$0","hasPropertyDescriptors","hasArrayLengthDefineBug","value","length","e","hasPropertyDescriptors_1"],"mappings":";;;;AAEA,IAAIA,eAAe,GAAGC,eAAA,EAA6B,CAAA;AAEnD,IAAIC,sBAAsB,GAAG,SAASA,sBAAsBA,GAAG;EAC9D,OAAO,CAAC,CAACF,eAAe,CAAA;AACzB,CAAC,CAAA;AAEDE,sBAAsB,CAACC,uBAAuB,GAAG,SAASA,uBAAuBA,GAAG;AACpF;EACC,IAAI,CAACH,eAAe,EAAE;AACrB,IAAA,OAAO,IAAI,CAAA;AACX,GAAA;EACD,IAAI;AACH,IAAA,OAAOA,eAAe,CAAC,EAAE,EAAE,QAAQ,EAAE;AAAEI,MAAAA,KAAK,EAAE,CAAA;AAAG,KAAA,CAAC,CAACC,MAAM,KAAK,CAAC,CAAA;GAC/D,CAAC,OAAOC,CAAC,EAAE;AACb;AACE,IAAA,OAAO,IAAI,CAAA;AACX,GAAA;AACF,CAAC,CAAA;AAEDC,IAAAA,wBAAc,GAAGL;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var test = {
|
|
4
|
+
__proto__: null,
|
|
5
|
+
foo: {}
|
|
6
|
+
};
|
|
7
|
+
var $Object = Object;
|
|
8
|
+
|
|
9
|
+
/** @type {import('.')} */
|
|
10
|
+
var hasProto = function hasProto() {
|
|
11
|
+
// @ts-expect-error: TS errors on an inherited property for some reason
|
|
12
|
+
return {
|
|
13
|
+
__proto__: test
|
|
14
|
+
}.foo === test.foo && !(test instanceof $Object);
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
exports.hasProto = hasProto;
|
|
18
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../../../node_modules/has-proto/index.js"],"sourcesContent":["'use strict';\n\nvar test = {\n\t__proto__: null,\n\tfoo: {}\n};\n\nvar $Object = Object;\n\n/** @type {import('.')} */\nmodule.exports = function hasProto() {\n\t// @ts-expect-error: TS errors on an inherited property for some reason\n\treturn { __proto__: test }.foo === test.foo\n\t\t&& !(test instanceof $Object);\n};\n"],"names":["test","__proto__","foo","$Object","Object","hasProto"],"mappings":";;AAEA,IAAIA,IAAI,GAAG;AACVC,EAAAA,SAAS,EAAE,IAAI;AACfC,EAAAA,GAAG,EAAE,EAAE;AACR,CAAC,CAAA;AAED,IAAIC,OAAO,GAAGC,MAAM,CAAA;;AAEpB;IACAC,QAAc,GAAG,SAASA,QAAQA,GAAG;AACrC;EACC,OAAO;AAAEJ,IAAAA,SAAS,EAAED,IAAAA;GAAM,CAACE,GAAG,KAAKF,IAAI,CAACE,GAAG,IACvC,EAAEF,IAAI,YAAYG,OAAO,CAAC,CAAA;AAC/B;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var shams = require('./shams.cjs');
|
|
4
|
+
|
|
5
|
+
var origSymbol = typeof Symbol !== 'undefined' && Symbol;
|
|
6
|
+
var hasSymbolSham = shams.shams;
|
|
7
|
+
var hasSymbols = function hasNativeSymbols() {
|
|
8
|
+
if (typeof origSymbol !== 'function') {
|
|
9
|
+
return false;
|
|
10
|
+
}
|
|
11
|
+
if (typeof Symbol !== 'function') {
|
|
12
|
+
return false;
|
|
13
|
+
}
|
|
14
|
+
if (typeof origSymbol('foo') !== 'symbol') {
|
|
15
|
+
return false;
|
|
16
|
+
}
|
|
17
|
+
if (typeof Symbol('bar') !== 'symbol') {
|
|
18
|
+
return false;
|
|
19
|
+
}
|
|
20
|
+
return hasSymbolSham();
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
exports.hasSymbols = hasSymbols;
|
|
24
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../../../node_modules/has-symbols/index.js"],"sourcesContent":["'use strict';\n\nvar origSymbol = typeof Symbol !== 'undefined' && Symbol;\nvar hasSymbolSham = require('./shams');\n\nmodule.exports = function hasNativeSymbols() {\n\tif (typeof origSymbol !== 'function') { return false; }\n\tif (typeof Symbol !== 'function') { return false; }\n\tif (typeof origSymbol('foo') !== 'symbol') { return false; }\n\tif (typeof Symbol('bar') !== 'symbol') { return false; }\n\n\treturn hasSymbolSham();\n};\n"],"names":["origSymbol","Symbol","hasSymbolSham","require$$0","hasSymbols","hasNativeSymbols"],"mappings":";;;;AAEA,IAAIA,UAAU,GAAG,OAAOC,MAAM,KAAK,WAAW,IAAIA,MAAM,CAAA;AACxD,IAAIC,aAAa,GAAGC,WAAkB,CAAA;IAEtCC,UAAc,GAAG,SAASC,gBAAgBA,GAAG;AAC5C,EAAA,IAAI,OAAOL,UAAU,KAAK,UAAU,EAAE;AAAE,IAAA,OAAO,KAAK,CAAA;AAAG,GAAA;AACvD,EAAA,IAAI,OAAOC,MAAM,KAAK,UAAU,EAAE;AAAE,IAAA,OAAO,KAAK,CAAA;AAAG,GAAA;AACnD,EAAA,IAAI,OAAOD,UAAU,CAAC,KAAK,CAAC,KAAK,QAAQ,EAAE;AAAE,IAAA,OAAO,KAAK,CAAA;AAAG,GAAA;AAC5D,EAAA,IAAI,OAAOC,MAAM,CAAC,KAAK,CAAC,KAAK,QAAQ,EAAE;AAAE,IAAA,OAAO,KAAK,CAAA;AAAG,GAAA;EAExD,OAAOC,aAAa,EAAE,CAAA;AACvB;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/* eslint complexity: [2, 18], max-statements: [2, 33] */
|
|
4
|
+
var shams = function hasSymbols() {
|
|
5
|
+
if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') {
|
|
6
|
+
return false;
|
|
7
|
+
}
|
|
8
|
+
if (typeof Symbol.iterator === 'symbol') {
|
|
9
|
+
return true;
|
|
10
|
+
}
|
|
11
|
+
var obj = {};
|
|
12
|
+
var sym = Symbol('test');
|
|
13
|
+
var symObj = Object(sym);
|
|
14
|
+
if (typeof sym === 'string') {
|
|
15
|
+
return false;
|
|
16
|
+
}
|
|
17
|
+
if (Object.prototype.toString.call(sym) !== '[object Symbol]') {
|
|
18
|
+
return false;
|
|
19
|
+
}
|
|
20
|
+
if (Object.prototype.toString.call(symObj) !== '[object Symbol]') {
|
|
21
|
+
return false;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// temp disabled per https://github.com/ljharb/object.assign/issues/17
|
|
25
|
+
// if (sym instanceof Symbol) { return false; }
|
|
26
|
+
// temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
|
|
27
|
+
// if (!(symObj instanceof Symbol)) { return false; }
|
|
28
|
+
|
|
29
|
+
// if (typeof Symbol.prototype.toString !== 'function') { return false; }
|
|
30
|
+
// if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
|
|
31
|
+
|
|
32
|
+
var symVal = 42;
|
|
33
|
+
obj[sym] = symVal;
|
|
34
|
+
for (sym in obj) {
|
|
35
|
+
return false;
|
|
36
|
+
} // eslint-disable-line no-restricted-syntax, no-unreachable-loop
|
|
37
|
+
if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) {
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) {
|
|
41
|
+
return false;
|
|
42
|
+
}
|
|
43
|
+
var syms = Object.getOwnPropertySymbols(obj);
|
|
44
|
+
if (syms.length !== 1 || syms[0] !== sym) {
|
|
45
|
+
return false;
|
|
46
|
+
}
|
|
47
|
+
if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) {
|
|
48
|
+
return false;
|
|
49
|
+
}
|
|
50
|
+
if (typeof Object.getOwnPropertyDescriptor === 'function') {
|
|
51
|
+
var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
|
|
52
|
+
if (descriptor.value !== symVal || descriptor.enumerable !== true) {
|
|
53
|
+
return false;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
return true;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
exports.shams = shams;
|
|
60
|
+
//# sourceMappingURL=shams.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shams.cjs","sources":["../../../../../../node_modules/has-symbols/shams.js"],"sourcesContent":["'use strict';\n\n/* eslint complexity: [2, 18], max-statements: [2, 33] */\nmodule.exports = function hasSymbols() {\n\tif (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }\n\tif (typeof Symbol.iterator === 'symbol') { return true; }\n\n\tvar obj = {};\n\tvar sym = Symbol('test');\n\tvar symObj = Object(sym);\n\tif (typeof sym === 'string') { return false; }\n\n\tif (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }\n\tif (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }\n\n\t// temp disabled per https://github.com/ljharb/object.assign/issues/17\n\t// if (sym instanceof Symbol) { return false; }\n\t// temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4\n\t// if (!(symObj instanceof Symbol)) { return false; }\n\n\t// if (typeof Symbol.prototype.toString !== 'function') { return false; }\n\t// if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }\n\n\tvar symVal = 42;\n\tobj[sym] = symVal;\n\tfor (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop\n\tif (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }\n\n\tif (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }\n\n\tvar syms = Object.getOwnPropertySymbols(obj);\n\tif (syms.length !== 1 || syms[0] !== sym) { return false; }\n\n\tif (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }\n\n\tif (typeof Object.getOwnPropertyDescriptor === 'function') {\n\t\tvar descriptor = Object.getOwnPropertyDescriptor(obj, sym);\n\t\tif (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }\n\t}\n\n\treturn true;\n};\n"],"names":["shams","hasSymbols","Symbol","Object","getOwnPropertySymbols","iterator","obj","sym","symObj","prototype","toString","call","symVal","keys","length","getOwnPropertyNames","syms","propertyIsEnumerable","getOwnPropertyDescriptor","descriptor","value","enumerable"],"mappings":";;AAEA;IACAA,KAAc,GAAG,SAASC,UAAUA,GAAG;EACtC,IAAI,OAAOC,MAAM,KAAK,UAAU,IAAI,OAAOC,MAAM,CAACC,qBAAqB,KAAK,UAAU,EAAE;AAAE,IAAA,OAAO,KAAK,CAAA;AAAG,GAAA;AACzG,EAAA,IAAI,OAAOF,MAAM,CAACG,QAAQ,KAAK,QAAQ,EAAE;AAAE,IAAA,OAAO,IAAI,CAAA;AAAG,GAAA;EAEzD,IAAIC,GAAG,GAAG,EAAE,CAAA;AACZ,EAAA,IAAIC,GAAG,GAAGL,MAAM,CAAC,MAAM,CAAC,CAAA;AACxB,EAAA,IAAIM,MAAM,GAAGL,MAAM,CAACI,GAAG,CAAC,CAAA;AACxB,EAAA,IAAI,OAAOA,GAAG,KAAK,QAAQ,EAAE;AAAE,IAAA,OAAO,KAAK,CAAA;AAAG,GAAA;AAE9C,EAAA,IAAIJ,MAAM,CAACM,SAAS,CAACC,QAAQ,CAACC,IAAI,CAACJ,GAAG,CAAC,KAAK,iBAAiB,EAAE;AAAE,IAAA,OAAO,KAAK,CAAA;AAAG,GAAA;AAChF,EAAA,IAAIJ,MAAM,CAACM,SAAS,CAACC,QAAQ,CAACC,IAAI,CAACH,MAAM,CAAC,KAAK,iBAAiB,EAAE;AAAE,IAAA,OAAO,KAAK,CAAA;AAAG,GAAA;;AAEpF;AACA;AACA;AACA;;AAEA;AACA;;EAEC,IAAII,MAAM,GAAG,EAAE,CAAA;AACfN,EAAAA,GAAG,CAACC,GAAG,CAAC,GAAGK,MAAM,CAAA;EACjB,KAAKL,GAAG,IAAID,GAAG,EAAE;AAAE,IAAA,OAAO,KAAK,CAAA;AAAG,GAAA;AAClC,EAAA,IAAI,OAAOH,MAAM,CAACU,IAAI,KAAK,UAAU,IAAIV,MAAM,CAACU,IAAI,CAACP,GAAG,CAAC,CAACQ,MAAM,KAAK,CAAC,EAAE;AAAE,IAAA,OAAO,KAAK,CAAA;AAAG,GAAA;AAEzF,EAAA,IAAI,OAAOX,MAAM,CAACY,mBAAmB,KAAK,UAAU,IAAIZ,MAAM,CAACY,mBAAmB,CAACT,GAAG,CAAC,CAACQ,MAAM,KAAK,CAAC,EAAE;AAAE,IAAA,OAAO,KAAK,CAAA;AAAG,GAAA;AAEvH,EAAA,IAAIE,IAAI,GAAGb,MAAM,CAACC,qBAAqB,CAACE,GAAG,CAAC,CAAA;AAC5C,EAAA,IAAIU,IAAI,CAACF,MAAM,KAAK,CAAC,IAAIE,IAAI,CAAC,CAAC,CAAC,KAAKT,GAAG,EAAE;AAAE,IAAA,OAAO,KAAK,CAAA;AAAG,GAAA;AAE3D,EAAA,IAAI,CAACJ,MAAM,CAACM,SAAS,CAACQ,oBAAoB,CAACN,IAAI,CAACL,GAAG,EAAEC,GAAG,CAAC,EAAE;AAAE,IAAA,OAAO,KAAK,CAAA;AAAG,GAAA;AAE5E,EAAA,IAAI,OAAOJ,MAAM,CAACe,wBAAwB,KAAK,UAAU,EAAE;IAC1D,IAAIC,UAAU,GAAGhB,MAAM,CAACe,wBAAwB,CAACZ,GAAG,EAAEC,GAAG,CAAC,CAAA;IAC1D,IAAIY,UAAU,CAACC,KAAK,KAAKR,MAAM,IAAIO,UAAU,CAACE,UAAU,KAAK,IAAI,EAAE;AAAE,MAAA,OAAO,KAAK,CAAA;AAAG,KAAA;AACpF,GAAA;AAED,EAAA,OAAO,IAAI,CAAA;AACZ;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('../function-bind/index.cjs');
|
|
4
|
+
|
|
5
|
+
var call = Function.prototype.call;
|
|
6
|
+
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
7
|
+
var bind = index.functionBind;
|
|
8
|
+
|
|
9
|
+
/** @type {import('.')} */
|
|
10
|
+
var hasown = bind.call(call, $hasOwn);
|
|
11
|
+
|
|
12
|
+
exports.hasown = hasown;
|
|
13
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../../../node_modules/hasown/index.js"],"sourcesContent":["'use strict';\n\nvar call = Function.prototype.call;\nvar $hasOwn = Object.prototype.hasOwnProperty;\nvar bind = require('function-bind');\n\n/** @type {import('.')} */\nmodule.exports = bind.call(call, $hasOwn);\n"],"names":["call","Function","prototype","$hasOwn","Object","hasOwnProperty","bind","require$$0","hasown"],"mappings":";;;;AAEA,IAAIA,IAAI,GAAGC,QAAQ,CAACC,SAAS,CAACF,IAAI,CAAA;AAClC,IAAIG,OAAO,GAAGC,MAAM,CAACF,SAAS,CAACG,cAAc,CAAA;AAC7C,IAAIC,IAAI,GAAGC,kBAAwB,CAAA;;AAEnC;AACAC,IAAAA,MAAc,GAAGF,IAAI,CAACN,IAAI,CAACA,IAAI,EAAEG,OAAO;;;;","x_google_ignoreList":[0]}
|