@vxrn/tslib-lite 1.2.46 → 1.2.48
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/index.mjs +66 -24
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -29,7 +29,9 @@ var extendStatics = function (d, b) {
|
|
|
29
29
|
|
|
30
30
|
export function __extends(d, b) {
|
|
31
31
|
if (typeof b !== 'function' && b !== null)
|
|
32
|
-
throw new TypeError(
|
|
32
|
+
throw new TypeError(
|
|
33
|
+
'Class extends value ' + String(b) + ' is not a constructor or null'
|
|
34
|
+
)
|
|
33
35
|
extendStatics(d, b)
|
|
34
36
|
function __() {
|
|
35
37
|
this.constructor = d
|
|
@@ -52,7 +54,8 @@ export var __assign = function () {
|
|
|
52
54
|
|
|
53
55
|
export function __rest(s, e) {
|
|
54
56
|
var t = {}
|
|
55
|
-
for (var p in s)
|
|
57
|
+
for (var p in s)
|
|
58
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]
|
|
56
59
|
if (s != null && typeof Object.getOwnPropertySymbols === 'function')
|
|
57
60
|
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
58
61
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
@@ -64,14 +67,19 @@ export function __rest(s, e) {
|
|
|
64
67
|
export function __decorate(decorators, target, key, desc) {
|
|
65
68
|
var c = arguments.length,
|
|
66
69
|
r =
|
|
67
|
-
c < 3
|
|
70
|
+
c < 3
|
|
71
|
+
? target
|
|
72
|
+
: desc === null
|
|
73
|
+
? (desc = Object.getOwnPropertyDescriptor(target, key))
|
|
74
|
+
: desc,
|
|
68
75
|
d
|
|
69
76
|
if (typeof Reflect === 'object' && typeof Reflect.decorate === 'function')
|
|
70
77
|
r = Reflect.decorate(decorators, target, key, desc)
|
|
71
78
|
else
|
|
72
79
|
for (var i = decorators.length - 1; i >= 0; i--)
|
|
73
|
-
if ((d = decorators[i]))
|
|
74
|
-
|
|
80
|
+
if ((d = decorators[i]))
|
|
81
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r
|
|
82
|
+
return (c > 3 && r && Object.defineProperty(target, key, r), r)
|
|
75
83
|
}
|
|
76
84
|
|
|
77
85
|
export function __param(paramIndex, decorator) {
|
|
@@ -94,9 +102,11 @@ export function __esDecorate(
|
|
|
94
102
|
}
|
|
95
103
|
var kind = contextIn.kind,
|
|
96
104
|
key = kind === 'getter' ? 'get' : kind === 'setter' ? 'set' : 'value'
|
|
97
|
-
var target =
|
|
105
|
+
var target =
|
|
106
|
+
!descriptorIn && ctor ? (contextIn['static'] ? ctor : ctor.prototype) : null
|
|
98
107
|
var descriptor =
|
|
99
|
-
descriptorIn ||
|
|
108
|
+
descriptorIn ||
|
|
109
|
+
(target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {})
|
|
100
110
|
var _,
|
|
101
111
|
done = false
|
|
102
112
|
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
@@ -104,16 +114,20 @@ export function __esDecorate(
|
|
|
104
114
|
for (var p in contextIn) context[p] = p === 'access' ? {} : contextIn[p]
|
|
105
115
|
for (var p in contextIn.access) context.access[p] = contextIn.access[p]
|
|
106
116
|
context.addInitializer = function (f) {
|
|
107
|
-
if (done)
|
|
117
|
+
if (done)
|
|
118
|
+
throw new TypeError('Cannot add initializers after decoration has completed')
|
|
108
119
|
extraInitializers.push(accept(f || null))
|
|
109
120
|
}
|
|
110
121
|
var result = (0, decorators[i])(
|
|
111
|
-
kind === 'accessor'
|
|
122
|
+
kind === 'accessor'
|
|
123
|
+
? { get: descriptor.get, set: descriptor.set }
|
|
124
|
+
: descriptor[key],
|
|
112
125
|
context
|
|
113
126
|
)
|
|
114
127
|
if (kind === 'accessor') {
|
|
115
128
|
if (result === void 0) continue
|
|
116
|
-
if (result === null || typeof result !== 'object')
|
|
129
|
+
if (result === null || typeof result !== 'object')
|
|
130
|
+
throw new TypeError('Object expected')
|
|
117
131
|
if ((_ = accept(result.get))) descriptor.get = _
|
|
118
132
|
if ((_ = accept(result.set))) descriptor.set = _
|
|
119
133
|
if ((_ = accept(result.init))) initializers.unshift(_)
|
|
@@ -129,7 +143,9 @@ export function __esDecorate(
|
|
|
129
143
|
export function __runInitializers(thisArg, initializers, value) {
|
|
130
144
|
var useValue = arguments.length > 2
|
|
131
145
|
for (var i = 0; i < initializers.length; i++) {
|
|
132
|
-
value = useValue
|
|
146
|
+
value = useValue
|
|
147
|
+
? initializers[i].call(thisArg, value)
|
|
148
|
+
: initializers[i].call(thisArg)
|
|
133
149
|
}
|
|
134
150
|
return useValue ? value : void 0
|
|
135
151
|
}
|
|
@@ -139,7 +155,8 @@ export function __propKey(x) {
|
|
|
139
155
|
}
|
|
140
156
|
|
|
141
157
|
export function __setFunctionName(f, name, prefix) {
|
|
142
|
-
if (typeof name === 'symbol')
|
|
158
|
+
if (typeof name === 'symbol')
|
|
159
|
+
name = name.description ? '['.concat(name.description, ']') : ''
|
|
143
160
|
return Object.defineProperty(f, 'name', {
|
|
144
161
|
configurable: true,
|
|
145
162
|
value: prefix ? ''.concat(prefix, ' ', name) : name,
|
|
@@ -303,7 +320,8 @@ export var __createBinding = Object.create
|
|
|
303
320
|
|
|
304
321
|
export function __exportStar(m, o) {
|
|
305
322
|
for (var p in m)
|
|
306
|
-
if (p !== 'default' && !Object.prototype.hasOwnProperty.call(o, p))
|
|
323
|
+
if (p !== 'default' && !Object.prototype.hasOwnProperty.call(o, p))
|
|
324
|
+
__createBinding(o, m, p)
|
|
307
325
|
}
|
|
308
326
|
|
|
309
327
|
export function __values(o) {
|
|
@@ -377,7 +395,9 @@ export function __asyncGenerator(thisArg, _arguments, generator) {
|
|
|
377
395
|
i,
|
|
378
396
|
q = []
|
|
379
397
|
return (
|
|
380
|
-
(i = Object.create(
|
|
398
|
+
(i = Object.create(
|
|
399
|
+
(typeof AsyncIterator === 'function' ? AsyncIterator : Object).prototype
|
|
400
|
+
)),
|
|
381
401
|
verb('next'),
|
|
382
402
|
verb('throw'),
|
|
383
403
|
verb('return', awaitReturn),
|
|
@@ -467,7 +487,7 @@ export function __asyncValues(o) {
|
|
|
467
487
|
o[n] &&
|
|
468
488
|
function (v) {
|
|
469
489
|
return new Promise(function (resolve, reject) {
|
|
470
|
-
;(v = o[n](v)), settle(resolve, reject, v.done, v.value)
|
|
490
|
+
;((v = o[n](v)), settle(resolve, reject, v.done, v.value))
|
|
471
491
|
})
|
|
472
492
|
}
|
|
473
493
|
}
|
|
@@ -511,25 +531,44 @@ export function __importDefault(mod) {
|
|
|
511
531
|
}
|
|
512
532
|
|
|
513
533
|
export function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
514
|
-
if (kind === 'a' && !f)
|
|
534
|
+
if (kind === 'a' && !f)
|
|
535
|
+
throw new TypeError('Private accessor was defined without a getter')
|
|
515
536
|
if (typeof state === 'function' ? receiver !== state || !f : !state.has(receiver))
|
|
516
|
-
throw new TypeError(
|
|
517
|
-
|
|
537
|
+
throw new TypeError(
|
|
538
|
+
'Cannot read private member from an object whose class did not declare it'
|
|
539
|
+
)
|
|
540
|
+
return kind === 'm'
|
|
541
|
+
? f
|
|
542
|
+
: kind === 'a'
|
|
543
|
+
? f.call(receiver)
|
|
544
|
+
: f
|
|
545
|
+
? f.value
|
|
546
|
+
: state.get(receiver)
|
|
518
547
|
}
|
|
519
548
|
|
|
520
549
|
export function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
521
550
|
if (kind === 'm') throw new TypeError('Private method is not writable')
|
|
522
|
-
if (kind === 'a' && !f)
|
|
551
|
+
if (kind === 'a' && !f)
|
|
552
|
+
throw new TypeError('Private accessor was defined without a setter')
|
|
523
553
|
if (typeof state === 'function' ? receiver !== state || !f : !state.has(receiver))
|
|
524
|
-
throw new TypeError(
|
|
554
|
+
throw new TypeError(
|
|
555
|
+
'Cannot write private member to an object whose class did not declare it'
|
|
556
|
+
)
|
|
525
557
|
return (
|
|
526
|
-
kind === 'a'
|
|
558
|
+
kind === 'a'
|
|
559
|
+
? f.call(receiver, value)
|
|
560
|
+
: f
|
|
561
|
+
? (f.value = value)
|
|
562
|
+
: state.set(receiver, value),
|
|
527
563
|
value
|
|
528
564
|
)
|
|
529
565
|
}
|
|
530
566
|
|
|
531
567
|
export function __classPrivateFieldIn(state, receiver) {
|
|
532
|
-
if (
|
|
568
|
+
if (
|
|
569
|
+
receiver === null ||
|
|
570
|
+
(typeof receiver !== 'object' && typeof receiver !== 'function')
|
|
571
|
+
)
|
|
533
572
|
throw new TypeError("Cannot use 'in' operator on non-object")
|
|
534
573
|
return typeof state === 'function' ? receiver === state : state.has(receiver)
|
|
535
574
|
}
|
|
@@ -569,7 +608,9 @@ var _SuppressedError =
|
|
|
569
608
|
? SuppressedError
|
|
570
609
|
: function (error, suppressed, message) {
|
|
571
610
|
var e = new Error(message)
|
|
572
|
-
return (
|
|
611
|
+
return (
|
|
612
|
+
(e.name = 'SuppressedError'), (e.error = error), (e.suppressed = suppressed), e
|
|
613
|
+
)
|
|
573
614
|
}
|
|
574
615
|
|
|
575
616
|
export function __disposeResources(env) {
|
|
@@ -584,7 +625,8 @@ export function __disposeResources(env) {
|
|
|
584
625
|
function next() {
|
|
585
626
|
while ((r = env.stack.pop())) {
|
|
586
627
|
try {
|
|
587
|
-
if (!r.async && s === 1)
|
|
628
|
+
if (!r.async && s === 1)
|
|
629
|
+
return ((s = 0), env.stack.push(r), Promise.resolve().then(next))
|
|
588
630
|
if (r.dispose) {
|
|
589
631
|
var result = r.dispose.call(r.value)
|
|
590
632
|
if (r.async)
|