@openfeature/flagd-provider 0.2.1 → 0.3.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/README.md +2 -2
- package/index.cjs +285 -171
- package/index.js +285 -171
- package/lib/flagd-provider.d.ts +2 -2
- package/lib/service/http/service.d.ts +2 -2
- package/package.json +1 -1
- package/proto/ts/schema/v1/schema.client.d.ts +16 -6
- package/proto/ts/schema/v1/schema.d.ts +67 -17
package/index.cjs
CHANGED
|
@@ -49,7 +49,7 @@ var global$c =
|
|
|
49
49
|
|
|
50
50
|
var objectGetOwnPropertyDescriptor = {};
|
|
51
51
|
|
|
52
|
-
var fails$
|
|
52
|
+
var fails$c = function (exec) {
|
|
53
53
|
try {
|
|
54
54
|
return !!exec();
|
|
55
55
|
} catch (error) {
|
|
@@ -57,17 +57,17 @@ var fails$b = function (exec) {
|
|
|
57
57
|
}
|
|
58
58
|
};
|
|
59
59
|
|
|
60
|
-
var fails$
|
|
60
|
+
var fails$b = fails$c;
|
|
61
61
|
|
|
62
62
|
// Detect IE8's incomplete defineProperty implementation
|
|
63
|
-
var descriptors = !fails$
|
|
63
|
+
var descriptors = !fails$b(function () {
|
|
64
64
|
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
65
65
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
|
66
66
|
});
|
|
67
67
|
|
|
68
|
-
var fails$
|
|
68
|
+
var fails$a = fails$c;
|
|
69
69
|
|
|
70
|
-
var functionBindNative = !fails$
|
|
70
|
+
var functionBindNative = !fails$a(function () {
|
|
71
71
|
// eslint-disable-next-line es-x/no-function-prototype-bind -- safe
|
|
72
72
|
var test = (function () { /* empty */ }).bind();
|
|
73
73
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
@@ -76,10 +76,10 @@ var functionBindNative = !fails$9(function () {
|
|
|
76
76
|
|
|
77
77
|
var NATIVE_BIND$1 = functionBindNative;
|
|
78
78
|
|
|
79
|
-
var call$
|
|
79
|
+
var call$7 = Function.prototype.call;
|
|
80
80
|
|
|
81
|
-
var functionCall = NATIVE_BIND$1 ? call$
|
|
82
|
-
return call$
|
|
81
|
+
var functionCall = NATIVE_BIND$1 ? call$7.bind(call$7) : function () {
|
|
82
|
+
return call$7.apply(call$7, arguments);
|
|
83
83
|
};
|
|
84
84
|
|
|
85
85
|
var objectPropertyIsEnumerable = {};
|
|
@@ -111,41 +111,41 @@ var NATIVE_BIND = functionBindNative;
|
|
|
111
111
|
|
|
112
112
|
var FunctionPrototype$1 = Function.prototype;
|
|
113
113
|
var bind = FunctionPrototype$1.bind;
|
|
114
|
-
var call$
|
|
115
|
-
var uncurryThis$b = NATIVE_BIND && bind.bind(call$
|
|
114
|
+
var call$6 = FunctionPrototype$1.call;
|
|
115
|
+
var uncurryThis$b = NATIVE_BIND && bind.bind(call$6, call$6);
|
|
116
116
|
|
|
117
117
|
var functionUncurryThis = NATIVE_BIND ? function (fn) {
|
|
118
118
|
return fn && uncurryThis$b(fn);
|
|
119
119
|
} : function (fn) {
|
|
120
120
|
return fn && function () {
|
|
121
|
-
return call$
|
|
121
|
+
return call$6.apply(fn, arguments);
|
|
122
122
|
};
|
|
123
123
|
};
|
|
124
124
|
|
|
125
125
|
var uncurryThis$a = functionUncurryThis;
|
|
126
126
|
|
|
127
|
-
var toString$
|
|
127
|
+
var toString$2 = uncurryThis$a({}.toString);
|
|
128
128
|
var stringSlice = uncurryThis$a(''.slice);
|
|
129
129
|
|
|
130
|
-
var classofRaw = function (it) {
|
|
131
|
-
return stringSlice(toString$
|
|
130
|
+
var classofRaw$1 = function (it) {
|
|
131
|
+
return stringSlice(toString$2(it), 8, -1);
|
|
132
132
|
};
|
|
133
133
|
|
|
134
134
|
var uncurryThis$9 = functionUncurryThis;
|
|
135
|
-
var fails$
|
|
136
|
-
var classof = classofRaw;
|
|
135
|
+
var fails$9 = fails$c;
|
|
136
|
+
var classof$2 = classofRaw$1;
|
|
137
137
|
|
|
138
|
-
var $Object$
|
|
138
|
+
var $Object$4 = Object;
|
|
139
139
|
var split = uncurryThis$9(''.split);
|
|
140
140
|
|
|
141
141
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
142
|
-
var indexedObject = fails$
|
|
142
|
+
var indexedObject = fails$9(function () {
|
|
143
143
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
144
144
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
145
|
-
return !$Object$
|
|
145
|
+
return !$Object$4('z').propertyIsEnumerable(0);
|
|
146
146
|
}) ? function (it) {
|
|
147
|
-
return classof(it) == 'String' ? split(it, '') : $Object$
|
|
148
|
-
} : $Object$
|
|
147
|
+
return classof$2(it) == 'String' ? split(it, '') : $Object$4(it);
|
|
148
|
+
} : $Object$4;
|
|
149
149
|
|
|
150
150
|
var $TypeError$6 = TypeError;
|
|
151
151
|
|
|
@@ -166,21 +166,21 @@ var toIndexedObject$5 = function (it) {
|
|
|
166
166
|
|
|
167
167
|
// `IsCallable` abstract operation
|
|
168
168
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
169
|
-
var isCallable$
|
|
169
|
+
var isCallable$f = function (argument) {
|
|
170
170
|
return typeof argument == 'function';
|
|
171
171
|
};
|
|
172
172
|
|
|
173
|
-
var isCallable$
|
|
173
|
+
var isCallable$e = isCallable$f;
|
|
174
174
|
|
|
175
175
|
var isObject$5 = function (it) {
|
|
176
|
-
return typeof it == 'object' ? it !== null : isCallable$
|
|
176
|
+
return typeof it == 'object' ? it !== null : isCallable$e(it);
|
|
177
177
|
};
|
|
178
178
|
|
|
179
179
|
var global$b = global$c;
|
|
180
|
-
var isCallable$
|
|
180
|
+
var isCallable$d = isCallable$f;
|
|
181
181
|
|
|
182
182
|
var aFunction = function (argument) {
|
|
183
|
-
return isCallable$
|
|
183
|
+
return isCallable$d(argument) ? argument : undefined;
|
|
184
184
|
};
|
|
185
185
|
|
|
186
186
|
var getBuiltIn$4 = function (namespace, method) {
|
|
@@ -226,10 +226,10 @@ var engineV8Version = version;
|
|
|
226
226
|
/* eslint-disable es-x/no-symbol -- required for testing */
|
|
227
227
|
|
|
228
228
|
var V8_VERSION = engineV8Version;
|
|
229
|
-
var fails$
|
|
229
|
+
var fails$8 = fails$c;
|
|
230
230
|
|
|
231
231
|
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
|
|
232
|
-
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$
|
|
232
|
+
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$8(function () {
|
|
233
233
|
var symbol = Symbol();
|
|
234
234
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
235
235
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
@@ -247,37 +247,37 @@ var useSymbolAsUid = NATIVE_SYMBOL$1
|
|
|
247
247
|
&& typeof Symbol.iterator == 'symbol';
|
|
248
248
|
|
|
249
249
|
var getBuiltIn$2 = getBuiltIn$4;
|
|
250
|
-
var isCallable$
|
|
251
|
-
var isPrototypeOf = objectIsPrototypeOf;
|
|
250
|
+
var isCallable$c = isCallable$f;
|
|
251
|
+
var isPrototypeOf$1 = objectIsPrototypeOf;
|
|
252
252
|
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
253
253
|
|
|
254
|
-
var $Object$
|
|
254
|
+
var $Object$3 = Object;
|
|
255
255
|
|
|
256
256
|
var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
|
|
257
257
|
return typeof it == 'symbol';
|
|
258
258
|
} : function (it) {
|
|
259
259
|
var $Symbol = getBuiltIn$2('Symbol');
|
|
260
|
-
return isCallable$
|
|
260
|
+
return isCallable$c($Symbol) && isPrototypeOf$1($Symbol.prototype, $Object$3(it));
|
|
261
261
|
};
|
|
262
262
|
|
|
263
|
-
var $String$
|
|
263
|
+
var $String$3 = String;
|
|
264
264
|
|
|
265
265
|
var tryToString$1 = function (argument) {
|
|
266
266
|
try {
|
|
267
|
-
return $String$
|
|
267
|
+
return $String$3(argument);
|
|
268
268
|
} catch (error) {
|
|
269
269
|
return 'Object';
|
|
270
270
|
}
|
|
271
271
|
};
|
|
272
272
|
|
|
273
|
-
var isCallable$
|
|
273
|
+
var isCallable$b = isCallable$f;
|
|
274
274
|
var tryToString = tryToString$1;
|
|
275
275
|
|
|
276
276
|
var $TypeError$5 = TypeError;
|
|
277
277
|
|
|
278
278
|
// `Assert: IsCallable(argument) is true`
|
|
279
279
|
var aCallable$1 = function (argument) {
|
|
280
|
-
if (isCallable$
|
|
280
|
+
if (isCallable$b(argument)) return argument;
|
|
281
281
|
throw $TypeError$5(tryToString(argument) + ' is not a function');
|
|
282
282
|
};
|
|
283
283
|
|
|
@@ -290,8 +290,8 @@ var getMethod$1 = function (V, P) {
|
|
|
290
290
|
return func == null ? undefined : aCallable(func);
|
|
291
291
|
};
|
|
292
292
|
|
|
293
|
-
var call$
|
|
294
|
-
var isCallable$
|
|
293
|
+
var call$5 = functionCall;
|
|
294
|
+
var isCallable$a = isCallable$f;
|
|
295
295
|
var isObject$4 = isObject$5;
|
|
296
296
|
|
|
297
297
|
var $TypeError$4 = TypeError;
|
|
@@ -300,9 +300,9 @@ var $TypeError$4 = TypeError;
|
|
|
300
300
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
301
301
|
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
302
302
|
var fn, val;
|
|
303
|
-
if (pref === 'string' && isCallable$
|
|
304
|
-
if (isCallable$
|
|
305
|
-
if (pref !== 'string' && isCallable$
|
|
303
|
+
if (pref === 'string' && isCallable$a(fn = input.toString) && !isObject$4(val = call$5(fn, input))) return val;
|
|
304
|
+
if (isCallable$a(fn = input.valueOf) && !isObject$4(val = call$5(fn, input))) return val;
|
|
305
|
+
if (pref !== 'string' && isCallable$a(fn = input.toString) && !isObject$4(val = call$5(fn, input))) return val;
|
|
306
306
|
throw $TypeError$4("Can't convert object to primitive value");
|
|
307
307
|
};
|
|
308
308
|
|
|
@@ -343,12 +343,12 @@ var store$2 = sharedStore;
|
|
|
343
343
|
|
|
344
344
|
var requireObjectCoercible = requireObjectCoercible$2;
|
|
345
345
|
|
|
346
|
-
var $Object$
|
|
346
|
+
var $Object$2 = Object;
|
|
347
347
|
|
|
348
348
|
// `ToObject` abstract operation
|
|
349
349
|
// https://tc39.es/ecma262/#sec-toobject
|
|
350
350
|
var toObject$3 = function (argument) {
|
|
351
|
-
return $Object$
|
|
351
|
+
return $Object$2(requireObjectCoercible(argument));
|
|
352
352
|
};
|
|
353
353
|
|
|
354
354
|
var uncurryThis$7 = functionUncurryThis;
|
|
@@ -367,15 +367,15 @@ var uncurryThis$6 = functionUncurryThis;
|
|
|
367
367
|
|
|
368
368
|
var id = 0;
|
|
369
369
|
var postfix = Math.random();
|
|
370
|
-
var toString = uncurryThis$6(1.0.toString);
|
|
370
|
+
var toString$1 = uncurryThis$6(1.0.toString);
|
|
371
371
|
|
|
372
372
|
var uid$2 = function (key) {
|
|
373
|
-
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
|
|
373
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$1(++id + postfix, 36);
|
|
374
374
|
};
|
|
375
375
|
|
|
376
376
|
var global$7 = global$c;
|
|
377
377
|
var shared$2 = shared$3.exports;
|
|
378
|
-
var hasOwn$
|
|
378
|
+
var hasOwn$9 = hasOwnProperty_1;
|
|
379
379
|
var uid$1 = uid$2;
|
|
380
380
|
var NATIVE_SYMBOL = nativeSymbol;
|
|
381
381
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
@@ -385,10 +385,10 @@ var Symbol$1 = global$7.Symbol;
|
|
|
385
385
|
var symbolFor = Symbol$1 && Symbol$1['for'];
|
|
386
386
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
387
387
|
|
|
388
|
-
var wellKnownSymbol$
|
|
389
|
-
if (!hasOwn$
|
|
388
|
+
var wellKnownSymbol$8 = function (name) {
|
|
389
|
+
if (!hasOwn$9(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
|
|
390
390
|
var description = 'Symbol.' + name;
|
|
391
|
-
if (NATIVE_SYMBOL && hasOwn$
|
|
391
|
+
if (NATIVE_SYMBOL && hasOwn$9(Symbol$1, name)) {
|
|
392
392
|
WellKnownSymbolsStore[name] = Symbol$1[name];
|
|
393
393
|
} else if (USE_SYMBOL_AS_UID && symbolFor) {
|
|
394
394
|
WellKnownSymbolsStore[name] = symbolFor(description);
|
|
@@ -398,15 +398,15 @@ var wellKnownSymbol$6 = function (name) {
|
|
|
398
398
|
} return WellKnownSymbolsStore[name];
|
|
399
399
|
};
|
|
400
400
|
|
|
401
|
-
var call$
|
|
401
|
+
var call$4 = functionCall;
|
|
402
402
|
var isObject$3 = isObject$5;
|
|
403
403
|
var isSymbol$1 = isSymbol$2;
|
|
404
404
|
var getMethod = getMethod$1;
|
|
405
405
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
406
|
-
var wellKnownSymbol$
|
|
406
|
+
var wellKnownSymbol$7 = wellKnownSymbol$8;
|
|
407
407
|
|
|
408
408
|
var $TypeError$3 = TypeError;
|
|
409
|
-
var TO_PRIMITIVE = wellKnownSymbol$
|
|
409
|
+
var TO_PRIMITIVE = wellKnownSymbol$7('toPrimitive');
|
|
410
410
|
|
|
411
411
|
// `ToPrimitive` abstract operation
|
|
412
412
|
// https://tc39.es/ecma262/#sec-toprimitive
|
|
@@ -416,7 +416,7 @@ var toPrimitive$1 = function (input, pref) {
|
|
|
416
416
|
var result;
|
|
417
417
|
if (exoticToPrim) {
|
|
418
418
|
if (pref === undefined) pref = 'default';
|
|
419
|
-
result = call$
|
|
419
|
+
result = call$4(exoticToPrim, input, pref);
|
|
420
420
|
if (!isObject$3(result) || isSymbol$1(result)) return result;
|
|
421
421
|
throw $TypeError$3("Can't convert object to primitive value");
|
|
422
422
|
}
|
|
@@ -446,11 +446,11 @@ var documentCreateElement$2 = function (it) {
|
|
|
446
446
|
};
|
|
447
447
|
|
|
448
448
|
var DESCRIPTORS$9 = descriptors;
|
|
449
|
-
var fails$
|
|
449
|
+
var fails$7 = fails$c;
|
|
450
450
|
var createElement = documentCreateElement$2;
|
|
451
451
|
|
|
452
452
|
// Thanks to IE8 for its funny defineProperty
|
|
453
|
-
var ie8DomDefine = !DESCRIPTORS$9 && !fails$
|
|
453
|
+
var ie8DomDefine = !DESCRIPTORS$9 && !fails$7(function () {
|
|
454
454
|
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
455
455
|
return Object.defineProperty(createElement('div'), 'a', {
|
|
456
456
|
get: function () { return 7; }
|
|
@@ -458,12 +458,12 @@ var ie8DomDefine = !DESCRIPTORS$9 && !fails$6(function () {
|
|
|
458
458
|
});
|
|
459
459
|
|
|
460
460
|
var DESCRIPTORS$8 = descriptors;
|
|
461
|
-
var call$
|
|
461
|
+
var call$3 = functionCall;
|
|
462
462
|
var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
|
|
463
463
|
var createPropertyDescriptor$2 = createPropertyDescriptor$3;
|
|
464
464
|
var toIndexedObject$4 = toIndexedObject$5;
|
|
465
465
|
var toPropertyKey$1 = toPropertyKey$2;
|
|
466
|
-
var hasOwn$
|
|
466
|
+
var hasOwn$8 = hasOwnProperty_1;
|
|
467
467
|
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
468
468
|
|
|
469
469
|
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
@@ -477,17 +477,17 @@ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$8 ? $getOwnPropertyDescriptor$1 :
|
|
|
477
477
|
if (IE8_DOM_DEFINE$1) try {
|
|
478
478
|
return $getOwnPropertyDescriptor$1(O, P);
|
|
479
479
|
} catch (error) { /* empty */ }
|
|
480
|
-
if (hasOwn$
|
|
480
|
+
if (hasOwn$8(O, P)) return createPropertyDescriptor$2(!call$3(propertyIsEnumerableModule$1.f, O, P), O[P]);
|
|
481
481
|
};
|
|
482
482
|
|
|
483
483
|
var objectDefineProperty = {};
|
|
484
484
|
|
|
485
485
|
var DESCRIPTORS$7 = descriptors;
|
|
486
|
-
var fails$
|
|
486
|
+
var fails$6 = fails$c;
|
|
487
487
|
|
|
488
488
|
// V8 ~ Chrome 36-
|
|
489
489
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
490
|
-
var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$
|
|
490
|
+
var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$6(function () {
|
|
491
491
|
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
492
492
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
493
493
|
value: 42,
|
|
@@ -497,19 +497,19 @@ var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$5(function () {
|
|
|
497
497
|
|
|
498
498
|
var isObject$1 = isObject$5;
|
|
499
499
|
|
|
500
|
-
var $String$
|
|
500
|
+
var $String$2 = String;
|
|
501
501
|
var $TypeError$2 = TypeError;
|
|
502
502
|
|
|
503
503
|
// `Assert: Type(argument) is Object`
|
|
504
|
-
var anObject$
|
|
504
|
+
var anObject$7 = function (argument) {
|
|
505
505
|
if (isObject$1(argument)) return argument;
|
|
506
|
-
throw $TypeError$2($String$
|
|
506
|
+
throw $TypeError$2($String$2(argument) + ' is not an object');
|
|
507
507
|
};
|
|
508
508
|
|
|
509
509
|
var DESCRIPTORS$6 = descriptors;
|
|
510
510
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
511
511
|
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
512
|
-
var anObject$
|
|
512
|
+
var anObject$6 = anObject$7;
|
|
513
513
|
var toPropertyKey = toPropertyKey$2;
|
|
514
514
|
|
|
515
515
|
var $TypeError$1 = TypeError;
|
|
@@ -524,9 +524,9 @@ var WRITABLE = 'writable';
|
|
|
524
524
|
// `Object.defineProperty` method
|
|
525
525
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
526
526
|
objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
527
|
-
anObject$
|
|
527
|
+
anObject$6(O);
|
|
528
528
|
P = toPropertyKey(P);
|
|
529
|
-
anObject$
|
|
529
|
+
anObject$6(Attributes);
|
|
530
530
|
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
531
531
|
var current = $getOwnPropertyDescriptor(O, P);
|
|
532
532
|
if (current && current[WRITABLE]) {
|
|
@@ -539,9 +539,9 @@ objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
|
|
|
539
539
|
}
|
|
540
540
|
} return $defineProperty(O, P, Attributes);
|
|
541
541
|
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
|
542
|
-
anObject$
|
|
542
|
+
anObject$6(O);
|
|
543
543
|
P = toPropertyKey(P);
|
|
544
|
-
anObject$
|
|
544
|
+
anObject$6(Attributes);
|
|
545
545
|
if (IE8_DOM_DEFINE) try {
|
|
546
546
|
return $defineProperty(O, P, Attributes);
|
|
547
547
|
} catch (error) { /* empty */ }
|
|
@@ -564,13 +564,13 @@ var createNonEnumerableProperty$5 = DESCRIPTORS$5 ? function (object, key, value
|
|
|
564
564
|
var makeBuiltIn$2 = {exports: {}};
|
|
565
565
|
|
|
566
566
|
var DESCRIPTORS$4 = descriptors;
|
|
567
|
-
var hasOwn$
|
|
567
|
+
var hasOwn$7 = hasOwnProperty_1;
|
|
568
568
|
|
|
569
569
|
var FunctionPrototype = Function.prototype;
|
|
570
570
|
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
571
571
|
var getDescriptor = DESCRIPTORS$4 && Object.getOwnPropertyDescriptor;
|
|
572
572
|
|
|
573
|
-
var EXISTS = hasOwn$
|
|
573
|
+
var EXISTS = hasOwn$7(FunctionPrototype, 'name');
|
|
574
574
|
// additional protection from minified / mangled / dropped function names
|
|
575
575
|
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
576
576
|
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$4 || (DESCRIPTORS$4 && getDescriptor(FunctionPrototype, 'name').configurable));
|
|
@@ -582,13 +582,13 @@ var functionName = {
|
|
|
582
582
|
};
|
|
583
583
|
|
|
584
584
|
var uncurryThis$5 = functionUncurryThis;
|
|
585
|
-
var isCallable$
|
|
585
|
+
var isCallable$9 = isCallable$f;
|
|
586
586
|
var store$1 = sharedStore;
|
|
587
587
|
|
|
588
588
|
var functionToString = uncurryThis$5(Function.toString);
|
|
589
589
|
|
|
590
590
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
591
|
-
if (!isCallable$
|
|
591
|
+
if (!isCallable$9(store$1.inspectSource)) {
|
|
592
592
|
store$1.inspectSource = function (it) {
|
|
593
593
|
return functionToString(it);
|
|
594
594
|
};
|
|
@@ -597,12 +597,12 @@ if (!isCallable$8(store$1.inspectSource)) {
|
|
|
597
597
|
var inspectSource$2 = store$1.inspectSource;
|
|
598
598
|
|
|
599
599
|
var global$5 = global$c;
|
|
600
|
-
var isCallable$
|
|
600
|
+
var isCallable$8 = isCallable$f;
|
|
601
601
|
var inspectSource$1 = inspectSource$2;
|
|
602
602
|
|
|
603
603
|
var WeakMap$1 = global$5.WeakMap;
|
|
604
604
|
|
|
605
|
-
var nativeWeakMap = isCallable$
|
|
605
|
+
var nativeWeakMap = isCallable$8(WeakMap$1) && /native code/.test(inspectSource$1(WeakMap$1));
|
|
606
606
|
|
|
607
607
|
var shared$1 = shared$3.exports;
|
|
608
608
|
var uid = uid$2;
|
|
@@ -620,7 +620,7 @@ var global$4 = global$c;
|
|
|
620
620
|
var uncurryThis$4 = functionUncurryThis;
|
|
621
621
|
var isObject = isObject$5;
|
|
622
622
|
var createNonEnumerableProperty$4 = createNonEnumerableProperty$5;
|
|
623
|
-
var hasOwn$
|
|
623
|
+
var hasOwn$6 = hasOwnProperty_1;
|
|
624
624
|
var shared = sharedStore;
|
|
625
625
|
var sharedKey$2 = sharedKey$3;
|
|
626
626
|
var hiddenKeys$3 = hiddenKeys$4;
|
|
@@ -664,16 +664,16 @@ if (NATIVE_WEAK_MAP || shared.state) {
|
|
|
664
664
|
var STATE = sharedKey$2('state');
|
|
665
665
|
hiddenKeys$3[STATE] = true;
|
|
666
666
|
set = function (it, metadata) {
|
|
667
|
-
if (hasOwn$
|
|
667
|
+
if (hasOwn$6(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
668
668
|
metadata.facade = it;
|
|
669
669
|
createNonEnumerableProperty$4(it, STATE, metadata);
|
|
670
670
|
return metadata;
|
|
671
671
|
};
|
|
672
672
|
get = function (it) {
|
|
673
|
-
return hasOwn$
|
|
673
|
+
return hasOwn$6(it, STATE) ? it[STATE] : {};
|
|
674
674
|
};
|
|
675
675
|
has = function (it) {
|
|
676
|
-
return hasOwn$
|
|
676
|
+
return hasOwn$6(it, STATE);
|
|
677
677
|
};
|
|
678
678
|
}
|
|
679
679
|
|
|
@@ -685,9 +685,9 @@ var internalState = {
|
|
|
685
685
|
getterFor: getterFor
|
|
686
686
|
};
|
|
687
687
|
|
|
688
|
-
var fails$
|
|
689
|
-
var isCallable$
|
|
690
|
-
var hasOwn$
|
|
688
|
+
var fails$5 = fails$c;
|
|
689
|
+
var isCallable$7 = isCallable$f;
|
|
690
|
+
var hasOwn$5 = hasOwnProperty_1;
|
|
691
691
|
var DESCRIPTORS$3 = descriptors;
|
|
692
692
|
var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
|
|
693
693
|
var inspectSource = inspectSource$2;
|
|
@@ -698,7 +698,7 @@ var getInternalState$1 = InternalStateModule$1.get;
|
|
|
698
698
|
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
699
699
|
var defineProperty$4 = Object.defineProperty;
|
|
700
700
|
|
|
701
|
-
var CONFIGURABLE_LENGTH = DESCRIPTORS$3 && !fails$
|
|
701
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$3 && !fails$5(function () {
|
|
702
702
|
return defineProperty$4(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
703
703
|
});
|
|
704
704
|
|
|
@@ -710,20 +710,20 @@ var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
|
|
|
710
710
|
}
|
|
711
711
|
if (options && options.getter) name = 'get ' + name;
|
|
712
712
|
if (options && options.setter) name = 'set ' + name;
|
|
713
|
-
if (!hasOwn$
|
|
713
|
+
if (!hasOwn$5(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
|
|
714
714
|
defineProperty$4(value, 'name', { value: name, configurable: true });
|
|
715
715
|
}
|
|
716
|
-
if (CONFIGURABLE_LENGTH && options && hasOwn$
|
|
716
|
+
if (CONFIGURABLE_LENGTH && options && hasOwn$5(options, 'arity') && value.length !== options.arity) {
|
|
717
717
|
defineProperty$4(value, 'length', { value: options.arity });
|
|
718
718
|
}
|
|
719
719
|
try {
|
|
720
|
-
if (options && hasOwn$
|
|
720
|
+
if (options && hasOwn$5(options, 'constructor') && options.constructor) {
|
|
721
721
|
if (DESCRIPTORS$3) defineProperty$4(value, 'prototype', { writable: false });
|
|
722
722
|
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
|
723
723
|
} else if (value.prototype) value.prototype = undefined;
|
|
724
724
|
} catch (error) { /* empty */ }
|
|
725
725
|
var state = enforceInternalState(value);
|
|
726
|
-
if (!hasOwn$
|
|
726
|
+
if (!hasOwn$5(state, 'source')) {
|
|
727
727
|
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
|
728
728
|
} return value;
|
|
729
729
|
};
|
|
@@ -731,19 +731,19 @@ var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
|
|
|
731
731
|
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
732
732
|
// eslint-disable-next-line no-extend-native -- required
|
|
733
733
|
Function.prototype.toString = makeBuiltIn$1(function toString() {
|
|
734
|
-
return isCallable$
|
|
734
|
+
return isCallable$7(this) && getInternalState$1(this).source || inspectSource(this);
|
|
735
735
|
}, 'toString');
|
|
736
736
|
|
|
737
|
-
var isCallable$
|
|
737
|
+
var isCallable$6 = isCallable$f;
|
|
738
738
|
var createNonEnumerableProperty$3 = createNonEnumerableProperty$5;
|
|
739
739
|
var makeBuiltIn = makeBuiltIn$2.exports;
|
|
740
740
|
var defineGlobalProperty$1 = defineGlobalProperty$3;
|
|
741
741
|
|
|
742
|
-
var defineBuiltIn$
|
|
742
|
+
var defineBuiltIn$4 = function (O, key, value, options) {
|
|
743
743
|
if (!options) options = {};
|
|
744
744
|
var simple = options.enumerable;
|
|
745
745
|
var name = options.name !== undefined ? options.name : key;
|
|
746
|
-
if (isCallable$
|
|
746
|
+
if (isCallable$6(value)) makeBuiltIn(value, name, options);
|
|
747
747
|
if (options.global) {
|
|
748
748
|
if (simple) O[key] = value;
|
|
749
749
|
else defineGlobalProperty$1(key, value);
|
|
@@ -843,7 +843,7 @@ var arrayIncludes = {
|
|
|
843
843
|
};
|
|
844
844
|
|
|
845
845
|
var uncurryThis$3 = functionUncurryThis;
|
|
846
|
-
var hasOwn$
|
|
846
|
+
var hasOwn$4 = hasOwnProperty_1;
|
|
847
847
|
var toIndexedObject$2 = toIndexedObject$5;
|
|
848
848
|
var indexOf = arrayIncludes.indexOf;
|
|
849
849
|
var hiddenKeys$2 = hiddenKeys$4;
|
|
@@ -855,9 +855,9 @@ var objectKeysInternal = function (object, names) {
|
|
|
855
855
|
var i = 0;
|
|
856
856
|
var result = [];
|
|
857
857
|
var key;
|
|
858
|
-
for (key in O) !hasOwn$
|
|
858
|
+
for (key in O) !hasOwn$4(hiddenKeys$2, key) && hasOwn$4(O, key) && push(result, key);
|
|
859
859
|
// Don't enum bug & hidden keys
|
|
860
|
-
while (names.length > i) if (hasOwn$
|
|
860
|
+
while (names.length > i) if (hasOwn$4(O, key = names[i++])) {
|
|
861
861
|
~indexOf(result, key) || push(result, key);
|
|
862
862
|
}
|
|
863
863
|
return result;
|
|
@@ -895,18 +895,18 @@ var getBuiltIn$1 = getBuiltIn$4;
|
|
|
895
895
|
var uncurryThis$2 = functionUncurryThis;
|
|
896
896
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
897
897
|
var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
|
|
898
|
-
var anObject$
|
|
898
|
+
var anObject$5 = anObject$7;
|
|
899
899
|
|
|
900
900
|
var concat$1 = uncurryThis$2([].concat);
|
|
901
901
|
|
|
902
902
|
// all object keys, includes non-enumerable and symbols
|
|
903
903
|
var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
904
|
-
var keys = getOwnPropertyNamesModule.f(anObject$
|
|
904
|
+
var keys = getOwnPropertyNamesModule.f(anObject$5(it));
|
|
905
905
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
|
|
906
906
|
return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
|
|
907
907
|
};
|
|
908
908
|
|
|
909
|
-
var hasOwn$
|
|
909
|
+
var hasOwn$3 = hasOwnProperty_1;
|
|
910
910
|
var ownKeys = ownKeys$1;
|
|
911
911
|
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
|
912
912
|
var definePropertyModule$1 = objectDefineProperty;
|
|
@@ -917,14 +917,14 @@ var copyConstructorProperties$1 = function (target, source, exceptions) {
|
|
|
917
917
|
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
918
918
|
for (var i = 0; i < keys.length; i++) {
|
|
919
919
|
var key = keys[i];
|
|
920
|
-
if (!hasOwn$
|
|
920
|
+
if (!hasOwn$3(target, key) && !(exceptions && hasOwn$3(exceptions, key))) {
|
|
921
921
|
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
922
922
|
}
|
|
923
923
|
}
|
|
924
924
|
};
|
|
925
925
|
|
|
926
|
-
var fails$
|
|
927
|
-
var isCallable$
|
|
926
|
+
var fails$4 = fails$c;
|
|
927
|
+
var isCallable$5 = isCallable$f;
|
|
928
928
|
|
|
929
929
|
var replacement = /#|\.prototype\./;
|
|
930
930
|
|
|
@@ -932,7 +932,7 @@ var isForced$1 = function (feature, detection) {
|
|
|
932
932
|
var value = data[normalize(feature)];
|
|
933
933
|
return value == POLYFILL ? true
|
|
934
934
|
: value == NATIVE ? false
|
|
935
|
-
: isCallable$
|
|
935
|
+
: isCallable$5(detection) ? fails$4(detection)
|
|
936
936
|
: !!detection;
|
|
937
937
|
};
|
|
938
938
|
|
|
@@ -949,7 +949,7 @@ var isForced_1 = isForced$1;
|
|
|
949
949
|
var global$3 = global$c;
|
|
950
950
|
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
951
951
|
var createNonEnumerableProperty$2 = createNonEnumerableProperty$5;
|
|
952
|
-
var defineBuiltIn$
|
|
952
|
+
var defineBuiltIn$3 = defineBuiltIn$4;
|
|
953
953
|
var defineGlobalProperty = defineGlobalProperty$3;
|
|
954
954
|
var copyConstructorProperties = copyConstructorProperties$1;
|
|
955
955
|
var isForced = isForced_1;
|
|
@@ -997,7 +997,7 @@ var _export = function (options, source) {
|
|
|
997
997
|
if (options.sham || (targetProperty && targetProperty.sham)) {
|
|
998
998
|
createNonEnumerableProperty$2(sourceProperty, 'sham', true);
|
|
999
999
|
}
|
|
1000
|
-
defineBuiltIn$
|
|
1000
|
+
defineBuiltIn$3(target, key, sourceProperty, options);
|
|
1001
1001
|
}
|
|
1002
1002
|
};
|
|
1003
1003
|
|
|
@@ -1013,8 +1013,8 @@ var objectKeys$2 = Object.keys || function keys(O) {
|
|
|
1013
1013
|
|
|
1014
1014
|
var DESCRIPTORS$2 = descriptors;
|
|
1015
1015
|
var uncurryThis$1 = functionUncurryThis;
|
|
1016
|
-
var call$
|
|
1017
|
-
var fails$
|
|
1016
|
+
var call$2 = functionCall;
|
|
1017
|
+
var fails$3 = fails$c;
|
|
1018
1018
|
var objectKeys$1 = objectKeys$2;
|
|
1019
1019
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
1020
1020
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
@@ -1029,7 +1029,7 @@ var concat = uncurryThis$1([].concat);
|
|
|
1029
1029
|
|
|
1030
1030
|
// `Object.assign` method
|
|
1031
1031
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
1032
|
-
var objectAssign = !$assign || fails$
|
|
1032
|
+
var objectAssign = !$assign || fails$3(function () {
|
|
1033
1033
|
// should have correct order of operations (Edge bug)
|
|
1034
1034
|
if (DESCRIPTORS$2 && $assign({ b: 1 }, $assign(defineProperty$3({}, 'a', {
|
|
1035
1035
|
enumerable: true,
|
|
@@ -1063,7 +1063,7 @@ var objectAssign = !$assign || fails$2(function () {
|
|
|
1063
1063
|
var key;
|
|
1064
1064
|
while (length > j) {
|
|
1065
1065
|
key = keys[j++];
|
|
1066
|
-
if (!DESCRIPTORS$2 || call$
|
|
1066
|
+
if (!DESCRIPTORS$2 || call$2(propertyIsEnumerable, S, key)) T[key] = S[key];
|
|
1067
1067
|
}
|
|
1068
1068
|
} return T;
|
|
1069
1069
|
} : $assign;
|
|
@@ -1103,14 +1103,16 @@ function __awaiter(thisArg, _arguments, P, generator) {
|
|
|
1103
1103
|
});
|
|
1104
1104
|
}
|
|
1105
1105
|
|
|
1106
|
-
class HTTPService{constructor(a){this.url=`${a.protocol}://${a.host}:${a.port}`;}resolveBoolean(a,b,c){return __awaiter(this,void 0,void 0,function*(){try{const d=yield axios__default["default"].post(`${this.url}/flags/${encodeURIComponent(a)}/resolve/boolean`,c);return checkResponse(d,"boolean")?{value:d.data.value,reason:d.data.reason,variant:d.data.variant}:{value:b,reason:nodejsSdk.StandardResolutionReasons.ERROR,errorCode:nodejsSdk.ErrorCode.PARSE_ERROR}}catch(a){return {reason:nodejsSdk.StandardResolutionReasons.ERROR,errorCode:getErrorCode(a),value:b}}})}resolveNumber(a,b,c){return __awaiter(this,void 0,void 0,function*(){try{const d=yield axios__default["default"].post(
|
|
1106
|
+
class HTTPService{constructor(a){this.url=`${a.protocol}://${a.host}:${a.port}`;}resolveBoolean(a,b,c){return __awaiter(this,void 0,void 0,function*(){try{const d=yield axios__default["default"].post(`${this.url}/flags/${encodeURIComponent(a)}/resolve/boolean`,c);return checkResponse(d,"boolean")?{value:d.data.value,reason:d.data.reason,variant:d.data.variant}:{value:b,reason:nodejsSdk.StandardResolutionReasons.ERROR,errorCode:nodejsSdk.ErrorCode.PARSE_ERROR}}catch(a){return {reason:nodejsSdk.StandardResolutionReasons.ERROR,errorCode:getErrorCode(a),value:b}}})}resolveNumber(a,b,c){return __awaiter(this,void 0,void 0,function*(){try{const d=yield axios__default["default"].post(/**
|
|
1107
|
+
* JavaScript numbers are always 64-bit floating point
|
|
1108
|
+
*/`${this.url}/flags/${encodeURIComponent(a)}/resolve/float`,c);return checkResponse(d,"number")?{value:d.data.value,reason:d.data.reason,variant:d.data.variant}:{value:b,reason:nodejsSdk.StandardResolutionReasons.ERROR,errorCode:nodejsSdk.ErrorCode.PARSE_ERROR}}catch(a){return {reason:nodejsSdk.StandardResolutionReasons.ERROR,errorCode:getErrorCode(a),value:b}}})}resolveString(a,b,c){return __awaiter(this,void 0,void 0,function*(){try{const d=yield axios__default["default"].post(`${this.url}/flags/${encodeURIComponent(a)}/resolve/string`,c);return checkResponse(d,"string")?{value:d.data.value,reason:d.data.reason,variant:d.data.variant}:{value:b,reason:nodejsSdk.StandardResolutionReasons.ERROR,errorCode:nodejsSdk.ErrorCode.PARSE_ERROR}}catch(a){return {reason:nodejsSdk.StandardResolutionReasons.ERROR,errorCode:getErrorCode(a),value:b}}})}resolveObject(a,b,c){return __awaiter(this,void 0,void 0,function*(){try{const d=yield axios__default["default"].post(`${this.url}/flags/${encodeURIComponent(a)}/resolve/object`,c);return checkResponse(d,"object")?{value:d.data.value,reason:d.data.reason,variant:d.data.variant}:{value:b,reason:nodejsSdk.StandardResolutionReasons.ERROR,errorCode:nodejsSdk.ErrorCode.PARSE_ERROR}}catch(a){return {reason:nodejsSdk.StandardResolutionReasons.ERROR,errorCode:getErrorCode(a),value:b}}})}}function getErrorCode(a){var b;const c=null===(b=null===a||void 0===a?void 0:a.response)||void 0===b?void 0:b.status;let d=nodejsSdk.StandardResolutionReasons.UNKNOWN;return null!=c&&(404==c?d=nodejsSdk.ErrorCode.FLAG_NOT_FOUND:400==c&&(d=nodejsSdk.ErrorCode.TYPE_MISMATCH)),d}function checkResponse(a,b){return !!(a.data&&typeof a.data.value===b&&"string"==typeof a.data.variant&&"string"==typeof a.data.reason)}
|
|
1107
1109
|
|
|
1108
1110
|
var objectDefineProperties = {};
|
|
1109
1111
|
|
|
1110
1112
|
var DESCRIPTORS$1 = descriptors;
|
|
1111
1113
|
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
1112
1114
|
var definePropertyModule = objectDefineProperty;
|
|
1113
|
-
var anObject$
|
|
1115
|
+
var anObject$4 = anObject$7;
|
|
1114
1116
|
var toIndexedObject$1 = toIndexedObject$5;
|
|
1115
1117
|
var objectKeys = objectKeys$2;
|
|
1116
1118
|
|
|
@@ -1118,7 +1120,7 @@ var objectKeys = objectKeys$2;
|
|
|
1118
1120
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
1119
1121
|
// eslint-disable-next-line es-x/no-object-defineproperties -- safe
|
|
1120
1122
|
objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
1121
|
-
anObject$
|
|
1123
|
+
anObject$4(O);
|
|
1122
1124
|
var props = toIndexedObject$1(Properties);
|
|
1123
1125
|
var keys = objectKeys(Properties);
|
|
1124
1126
|
var length = keys.length;
|
|
@@ -1134,7 +1136,7 @@ var html$1 = getBuiltIn('document', 'documentElement');
|
|
|
1134
1136
|
|
|
1135
1137
|
/* global ActiveXObject -- old IE, WSH */
|
|
1136
1138
|
|
|
1137
|
-
var anObject$
|
|
1139
|
+
var anObject$3 = anObject$7;
|
|
1138
1140
|
var definePropertiesModule = objectDefineProperties;
|
|
1139
1141
|
var enumBugKeys = enumBugKeys$3;
|
|
1140
1142
|
var hiddenKeys = hiddenKeys$4;
|
|
@@ -1208,7 +1210,7 @@ hiddenKeys[IE_PROTO$1] = true;
|
|
|
1208
1210
|
var objectCreate = Object.create || function create(O, Properties) {
|
|
1209
1211
|
var result;
|
|
1210
1212
|
if (O !== null) {
|
|
1211
|
-
EmptyConstructor[PROTOTYPE] = anObject$
|
|
1213
|
+
EmptyConstructor[PROTOTYPE] = anObject$3(O);
|
|
1212
1214
|
result = new EmptyConstructor();
|
|
1213
1215
|
EmptyConstructor[PROTOTYPE] = null;
|
|
1214
1216
|
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
@@ -1217,11 +1219,11 @@ var objectCreate = Object.create || function create(O, Properties) {
|
|
|
1217
1219
|
return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
|
|
1218
1220
|
};
|
|
1219
1221
|
|
|
1220
|
-
var wellKnownSymbol$
|
|
1222
|
+
var wellKnownSymbol$6 = wellKnownSymbol$8;
|
|
1221
1223
|
var create$1 = objectCreate;
|
|
1222
1224
|
var defineProperty$2 = objectDefineProperty.f;
|
|
1223
1225
|
|
|
1224
|
-
var UNSCOPABLES = wellKnownSymbol$
|
|
1226
|
+
var UNSCOPABLES = wellKnownSymbol$6('unscopables');
|
|
1225
1227
|
var ArrayPrototype = Array.prototype;
|
|
1226
1228
|
|
|
1227
1229
|
// Array.prototype[@@unscopables]
|
|
@@ -1240,44 +1242,44 @@ var addToUnscopables$1 = function (key) {
|
|
|
1240
1242
|
|
|
1241
1243
|
var iterators = {};
|
|
1242
1244
|
|
|
1243
|
-
var fails$
|
|
1245
|
+
var fails$2 = fails$c;
|
|
1244
1246
|
|
|
1245
|
-
var correctPrototypeGetter = !fails$
|
|
1247
|
+
var correctPrototypeGetter = !fails$2(function () {
|
|
1246
1248
|
function F() { /* empty */ }
|
|
1247
1249
|
F.prototype.constructor = null;
|
|
1248
1250
|
// eslint-disable-next-line es-x/no-object-getprototypeof -- required for testing
|
|
1249
1251
|
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
1250
1252
|
});
|
|
1251
1253
|
|
|
1252
|
-
var hasOwn$
|
|
1253
|
-
var isCallable$
|
|
1254
|
+
var hasOwn$2 = hasOwnProperty_1;
|
|
1255
|
+
var isCallable$4 = isCallable$f;
|
|
1254
1256
|
var toObject = toObject$3;
|
|
1255
1257
|
var sharedKey = sharedKey$3;
|
|
1256
1258
|
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
|
|
1257
1259
|
|
|
1258
1260
|
var IE_PROTO = sharedKey('IE_PROTO');
|
|
1259
|
-
var $Object = Object;
|
|
1260
|
-
var ObjectPrototype = $Object.prototype;
|
|
1261
|
+
var $Object$1 = Object;
|
|
1262
|
+
var ObjectPrototype = $Object$1.prototype;
|
|
1261
1263
|
|
|
1262
1264
|
// `Object.getPrototypeOf` method
|
|
1263
1265
|
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
1264
1266
|
// eslint-disable-next-line es-x/no-object-getprototypeof -- safe
|
|
1265
|
-
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
|
|
1267
|
+
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
|
|
1266
1268
|
var object = toObject(O);
|
|
1267
|
-
if (hasOwn$
|
|
1269
|
+
if (hasOwn$2(object, IE_PROTO)) return object[IE_PROTO];
|
|
1268
1270
|
var constructor = object.constructor;
|
|
1269
|
-
if (isCallable$
|
|
1271
|
+
if (isCallable$4(constructor) && object instanceof constructor) {
|
|
1270
1272
|
return constructor.prototype;
|
|
1271
|
-
} return object instanceof $Object ? ObjectPrototype : null;
|
|
1273
|
+
} return object instanceof $Object$1 ? ObjectPrototype : null;
|
|
1272
1274
|
};
|
|
1273
1275
|
|
|
1274
|
-
var fails = fails$
|
|
1275
|
-
var isCallable$
|
|
1276
|
+
var fails$1 = fails$c;
|
|
1277
|
+
var isCallable$3 = isCallable$f;
|
|
1276
1278
|
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
1277
|
-
var defineBuiltIn$
|
|
1278
|
-
var wellKnownSymbol$
|
|
1279
|
+
var defineBuiltIn$2 = defineBuiltIn$4;
|
|
1280
|
+
var wellKnownSymbol$5 = wellKnownSymbol$8;
|
|
1279
1281
|
|
|
1280
|
-
var ITERATOR$2 = wellKnownSymbol$
|
|
1282
|
+
var ITERATOR$2 = wellKnownSymbol$5('iterator');
|
|
1281
1283
|
var BUGGY_SAFARI_ITERATORS$1 = false;
|
|
1282
1284
|
|
|
1283
1285
|
// `%IteratorPrototype%` object
|
|
@@ -1295,7 +1297,7 @@ if ([].keys) {
|
|
|
1295
1297
|
}
|
|
1296
1298
|
}
|
|
1297
1299
|
|
|
1298
|
-
var NEW_ITERATOR_PROTOTYPE = IteratorPrototype$2 == undefined || fails(function () {
|
|
1300
|
+
var NEW_ITERATOR_PROTOTYPE = IteratorPrototype$2 == undefined || fails$1(function () {
|
|
1299
1301
|
var test = {};
|
|
1300
1302
|
// FF44- legacy iterators case
|
|
1301
1303
|
return IteratorPrototype$2[ITERATOR$2].call(test) !== test;
|
|
@@ -1305,8 +1307,8 @@ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
|
|
|
1305
1307
|
|
|
1306
1308
|
// `%IteratorPrototype%[@@iterator]()` method
|
|
1307
1309
|
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
|
|
1308
|
-
if (!isCallable$
|
|
1309
|
-
defineBuiltIn$
|
|
1310
|
+
if (!isCallable$3(IteratorPrototype$2[ITERATOR$2])) {
|
|
1311
|
+
defineBuiltIn$2(IteratorPrototype$2, ITERATOR$2, function () {
|
|
1310
1312
|
return this;
|
|
1311
1313
|
});
|
|
1312
1314
|
}
|
|
@@ -1317,15 +1319,15 @@ var iteratorsCore = {
|
|
|
1317
1319
|
};
|
|
1318
1320
|
|
|
1319
1321
|
var defineProperty$1 = objectDefineProperty.f;
|
|
1320
|
-
var hasOwn = hasOwnProperty_1;
|
|
1321
|
-
var wellKnownSymbol$
|
|
1322
|
+
var hasOwn$1 = hasOwnProperty_1;
|
|
1323
|
+
var wellKnownSymbol$4 = wellKnownSymbol$8;
|
|
1322
1324
|
|
|
1323
|
-
var TO_STRING_TAG$
|
|
1325
|
+
var TO_STRING_TAG$3 = wellKnownSymbol$4('toStringTag');
|
|
1324
1326
|
|
|
1325
1327
|
var setToStringTag$2 = function (target, TAG, STATIC) {
|
|
1326
1328
|
if (target && !STATIC) target = target.prototype;
|
|
1327
|
-
if (target && !hasOwn(target, TO_STRING_TAG$
|
|
1328
|
-
defineProperty$1(target, TO_STRING_TAG$
|
|
1329
|
+
if (target && !hasOwn$1(target, TO_STRING_TAG$3)) {
|
|
1330
|
+
defineProperty$1(target, TO_STRING_TAG$3, { configurable: true, value: TAG });
|
|
1329
1331
|
}
|
|
1330
1332
|
};
|
|
1331
1333
|
|
|
@@ -1345,20 +1347,20 @@ var createIteratorConstructor$1 = function (IteratorConstructor, NAME, next, ENU
|
|
|
1345
1347
|
return IteratorConstructor;
|
|
1346
1348
|
};
|
|
1347
1349
|
|
|
1348
|
-
var isCallable$
|
|
1350
|
+
var isCallable$2 = isCallable$f;
|
|
1349
1351
|
|
|
1350
|
-
var $String = String;
|
|
1352
|
+
var $String$1 = String;
|
|
1351
1353
|
var $TypeError = TypeError;
|
|
1352
1354
|
|
|
1353
1355
|
var aPossiblePrototype$1 = function (argument) {
|
|
1354
|
-
if (typeof argument == 'object' || isCallable$
|
|
1355
|
-
throw $TypeError("Can't set " + $String(argument) + ' as a prototype');
|
|
1356
|
+
if (typeof argument == 'object' || isCallable$2(argument)) return argument;
|
|
1357
|
+
throw $TypeError("Can't set " + $String$1(argument) + ' as a prototype');
|
|
1356
1358
|
};
|
|
1357
1359
|
|
|
1358
1360
|
/* eslint-disable no-proto -- safe */
|
|
1359
1361
|
|
|
1360
1362
|
var uncurryThis = functionUncurryThis;
|
|
1361
|
-
var anObject = anObject$
|
|
1363
|
+
var anObject$2 = anObject$7;
|
|
1362
1364
|
var aPossiblePrototype = aPossiblePrototype$1;
|
|
1363
1365
|
|
|
1364
1366
|
// `Object.setPrototypeOf` method
|
|
@@ -1376,7 +1378,7 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
1376
1378
|
CORRECT_SETTER = test instanceof Array;
|
|
1377
1379
|
} catch (error) { /* empty */ }
|
|
1378
1380
|
return function setPrototypeOf(O, proto) {
|
|
1379
|
-
anObject(O);
|
|
1381
|
+
anObject$2(O);
|
|
1380
1382
|
aPossiblePrototype(proto);
|
|
1381
1383
|
if (CORRECT_SETTER) setter(O, proto);
|
|
1382
1384
|
else O.__proto__ = proto;
|
|
@@ -1385,24 +1387,24 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
1385
1387
|
}() : undefined);
|
|
1386
1388
|
|
|
1387
1389
|
var $$1 = _export;
|
|
1388
|
-
var call = functionCall;
|
|
1390
|
+
var call$1 = functionCall;
|
|
1389
1391
|
var FunctionName = functionName;
|
|
1390
|
-
var isCallable = isCallable$
|
|
1392
|
+
var isCallable$1 = isCallable$f;
|
|
1391
1393
|
var createIteratorConstructor = createIteratorConstructor$1;
|
|
1392
1394
|
var getPrototypeOf = objectGetPrototypeOf;
|
|
1393
1395
|
var setPrototypeOf = objectSetPrototypeOf;
|
|
1394
1396
|
var setToStringTag = setToStringTag$2;
|
|
1395
1397
|
var createNonEnumerableProperty$1 = createNonEnumerableProperty$5;
|
|
1396
|
-
var defineBuiltIn = defineBuiltIn$
|
|
1397
|
-
var wellKnownSymbol$
|
|
1398
|
+
var defineBuiltIn$1 = defineBuiltIn$4;
|
|
1399
|
+
var wellKnownSymbol$3 = wellKnownSymbol$8;
|
|
1398
1400
|
var Iterators$1 = iterators;
|
|
1399
1401
|
var IteratorsCore = iteratorsCore;
|
|
1400
1402
|
|
|
1401
|
-
var PROPER_FUNCTION_NAME = FunctionName.PROPER;
|
|
1403
|
+
var PROPER_FUNCTION_NAME$1 = FunctionName.PROPER;
|
|
1402
1404
|
var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
|
|
1403
1405
|
var IteratorPrototype = IteratorsCore.IteratorPrototype;
|
|
1404
1406
|
var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
|
|
1405
|
-
var ITERATOR$1 = wellKnownSymbol$
|
|
1407
|
+
var ITERATOR$1 = wellKnownSymbol$3('iterator');
|
|
1406
1408
|
var KEYS = 'keys';
|
|
1407
1409
|
var VALUES = 'values';
|
|
1408
1410
|
var ENTRIES = 'entries';
|
|
@@ -1439,8 +1441,8 @@ var defineIterator$1 = function (Iterable, NAME, IteratorConstructor, next, DEFA
|
|
|
1439
1441
|
if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
|
|
1440
1442
|
if (setPrototypeOf) {
|
|
1441
1443
|
setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
|
|
1442
|
-
} else if (!isCallable(CurrentIteratorPrototype[ITERATOR$1])) {
|
|
1443
|
-
defineBuiltIn(CurrentIteratorPrototype, ITERATOR$1, returnThis);
|
|
1444
|
+
} else if (!isCallable$1(CurrentIteratorPrototype[ITERATOR$1])) {
|
|
1445
|
+
defineBuiltIn$1(CurrentIteratorPrototype, ITERATOR$1, returnThis);
|
|
1444
1446
|
}
|
|
1445
1447
|
}
|
|
1446
1448
|
// Set @@toStringTag to native iterators
|
|
@@ -1449,12 +1451,12 @@ var defineIterator$1 = function (Iterable, NAME, IteratorConstructor, next, DEFA
|
|
|
1449
1451
|
}
|
|
1450
1452
|
|
|
1451
1453
|
// fix Array.prototype.{ values, @@iterator }.name in V8 / FF
|
|
1452
|
-
if (PROPER_FUNCTION_NAME && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
|
|
1454
|
+
if (PROPER_FUNCTION_NAME$1 && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
|
|
1453
1455
|
if (CONFIGURABLE_FUNCTION_NAME) {
|
|
1454
1456
|
createNonEnumerableProperty$1(IterablePrototype, 'name', VALUES);
|
|
1455
1457
|
} else {
|
|
1456
1458
|
INCORRECT_VALUES_NAME = true;
|
|
1457
|
-
defaultIterator = function values() { return call(nativeIterator, this); };
|
|
1459
|
+
defaultIterator = function values() { return call$1(nativeIterator, this); };
|
|
1458
1460
|
}
|
|
1459
1461
|
}
|
|
1460
1462
|
|
|
@@ -1467,14 +1469,14 @@ var defineIterator$1 = function (Iterable, NAME, IteratorConstructor, next, DEFA
|
|
|
1467
1469
|
};
|
|
1468
1470
|
if (FORCED) for (KEY in methods) {
|
|
1469
1471
|
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
1470
|
-
defineBuiltIn(IterablePrototype, KEY, methods[KEY]);
|
|
1472
|
+
defineBuiltIn$1(IterablePrototype, KEY, methods[KEY]);
|
|
1471
1473
|
}
|
|
1472
1474
|
} else $$1({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
|
1473
1475
|
}
|
|
1474
1476
|
|
|
1475
1477
|
// define iterator
|
|
1476
1478
|
if (IterablePrototype[ITERATOR$1] !== defaultIterator) {
|
|
1477
|
-
defineBuiltIn(IterablePrototype, ITERATOR$1, defaultIterator, { name: DEFAULT });
|
|
1479
|
+
defineBuiltIn$1(IterablePrototype, ITERATOR$1, defaultIterator, { name: DEFAULT });
|
|
1478
1480
|
}
|
|
1479
1481
|
Iterators$1[NAME] = defaultIterator;
|
|
1480
1482
|
|
|
@@ -1590,10 +1592,10 @@ var DOMIterables = domIterables;
|
|
|
1590
1592
|
var DOMTokenListPrototype = domTokenListPrototype;
|
|
1591
1593
|
var ArrayIteratorMethods = es_array_iterator;
|
|
1592
1594
|
var createNonEnumerableProperty = createNonEnumerableProperty$5;
|
|
1593
|
-
var wellKnownSymbol = wellKnownSymbol$
|
|
1595
|
+
var wellKnownSymbol$2 = wellKnownSymbol$8;
|
|
1594
1596
|
|
|
1595
|
-
var ITERATOR = wellKnownSymbol('iterator');
|
|
1596
|
-
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
1597
|
+
var ITERATOR = wellKnownSymbol$2('iterator');
|
|
1598
|
+
var TO_STRING_TAG$2 = wellKnownSymbol$2('toStringTag');
|
|
1597
1599
|
var ArrayValues = ArrayIteratorMethods.values;
|
|
1598
1600
|
|
|
1599
1601
|
var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
@@ -1604,8 +1606,8 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
|
1604
1606
|
} catch (error) {
|
|
1605
1607
|
CollectionPrototype[ITERATOR] = ArrayValues;
|
|
1606
1608
|
}
|
|
1607
|
-
if (!CollectionPrototype[TO_STRING_TAG]) {
|
|
1608
|
-
createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);
|
|
1609
|
+
if (!CollectionPrototype[TO_STRING_TAG$2]) {
|
|
1610
|
+
createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG$2, COLLECTION_NAME);
|
|
1609
1611
|
}
|
|
1610
1612
|
if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
|
|
1611
1613
|
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
@@ -4583,6 +4585,110 @@ class ListValue$Type extends MessageType{constructor(){super("google.protobuf.Li
|
|
|
4583
4585
|
* @generated MessageType for protobuf message google.protobuf.ListValue
|
|
4584
4586
|
*/const ListValue=new ListValue$Type;
|
|
4585
4587
|
|
|
4588
|
+
var wellKnownSymbol$1 = wellKnownSymbol$8;
|
|
4589
|
+
|
|
4590
|
+
var TO_STRING_TAG$1 = wellKnownSymbol$1('toStringTag');
|
|
4591
|
+
var test = {};
|
|
4592
|
+
|
|
4593
|
+
test[TO_STRING_TAG$1] = 'z';
|
|
4594
|
+
|
|
4595
|
+
var toStringTagSupport = String(test) === '[object z]';
|
|
4596
|
+
|
|
4597
|
+
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
4598
|
+
var isCallable = isCallable$f;
|
|
4599
|
+
var classofRaw = classofRaw$1;
|
|
4600
|
+
var wellKnownSymbol = wellKnownSymbol$8;
|
|
4601
|
+
|
|
4602
|
+
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
4603
|
+
var $Object = Object;
|
|
4604
|
+
|
|
4605
|
+
// ES3 wrong here
|
|
4606
|
+
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
|
|
4607
|
+
|
|
4608
|
+
// fallback for IE11 Script Access Denied error
|
|
4609
|
+
var tryGet = function (it, key) {
|
|
4610
|
+
try {
|
|
4611
|
+
return it[key];
|
|
4612
|
+
} catch (error) { /* empty */ }
|
|
4613
|
+
};
|
|
4614
|
+
|
|
4615
|
+
// getting tag from ES6+ `Object.prototype.toString`
|
|
4616
|
+
var classof$1 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
|
|
4617
|
+
var O, tag, result;
|
|
4618
|
+
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
4619
|
+
// @@toStringTag case
|
|
4620
|
+
: typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
|
|
4621
|
+
// builtinTag case
|
|
4622
|
+
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
4623
|
+
// ES3 arguments fallback
|
|
4624
|
+
: (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;
|
|
4625
|
+
};
|
|
4626
|
+
|
|
4627
|
+
var classof = classof$1;
|
|
4628
|
+
|
|
4629
|
+
var $String = String;
|
|
4630
|
+
|
|
4631
|
+
var toString = function (argument) {
|
|
4632
|
+
if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
|
4633
|
+
return $String(argument);
|
|
4634
|
+
};
|
|
4635
|
+
|
|
4636
|
+
var anObject$1 = anObject$7;
|
|
4637
|
+
|
|
4638
|
+
// `RegExp.prototype.flags` getter implementation
|
|
4639
|
+
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
|
4640
|
+
var regexpFlags = function () {
|
|
4641
|
+
var that = anObject$1(this);
|
|
4642
|
+
var result = '';
|
|
4643
|
+
if (that.hasIndices) result += 'd';
|
|
4644
|
+
if (that.global) result += 'g';
|
|
4645
|
+
if (that.ignoreCase) result += 'i';
|
|
4646
|
+
if (that.multiline) result += 'm';
|
|
4647
|
+
if (that.dotAll) result += 's';
|
|
4648
|
+
if (that.unicode) result += 'u';
|
|
4649
|
+
if (that.sticky) result += 'y';
|
|
4650
|
+
return result;
|
|
4651
|
+
};
|
|
4652
|
+
|
|
4653
|
+
var call = functionCall;
|
|
4654
|
+
var hasOwn = hasOwnProperty_1;
|
|
4655
|
+
var isPrototypeOf = objectIsPrototypeOf;
|
|
4656
|
+
var regExpFlags = regexpFlags;
|
|
4657
|
+
|
|
4658
|
+
var RegExpPrototype$1 = RegExp.prototype;
|
|
4659
|
+
|
|
4660
|
+
var regexpGetFlags = function (R) {
|
|
4661
|
+
var flags = R.flags;
|
|
4662
|
+
return flags === undefined && !('flags' in RegExpPrototype$1) && !hasOwn(R, 'flags') && isPrototypeOf(RegExpPrototype$1, R)
|
|
4663
|
+
? call(regExpFlags, R) : flags;
|
|
4664
|
+
};
|
|
4665
|
+
|
|
4666
|
+
var PROPER_FUNCTION_NAME = functionName.PROPER;
|
|
4667
|
+
var defineBuiltIn = defineBuiltIn$4;
|
|
4668
|
+
var anObject = anObject$7;
|
|
4669
|
+
var $toString = toString;
|
|
4670
|
+
var fails = fails$c;
|
|
4671
|
+
var getRegExpFlags = regexpGetFlags;
|
|
4672
|
+
|
|
4673
|
+
var TO_STRING = 'toString';
|
|
4674
|
+
var RegExpPrototype = RegExp.prototype;
|
|
4675
|
+
var n$ToString = RegExpPrototype[TO_STRING];
|
|
4676
|
+
|
|
4677
|
+
var NOT_GENERIC = fails(function () { return n$ToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
|
|
4678
|
+
// FF44- RegExp#toString has a wrong name
|
|
4679
|
+
var INCORRECT_NAME = PROPER_FUNCTION_NAME && n$ToString.name != TO_STRING;
|
|
4680
|
+
|
|
4681
|
+
// `RegExp.prototype.toString` method
|
|
4682
|
+
// https://tc39.es/ecma262/#sec-regexp.prototype.tostring
|
|
4683
|
+
if (NOT_GENERIC || INCORRECT_NAME) {
|
|
4684
|
+
defineBuiltIn(RegExp.prototype, TO_STRING, function toString() {
|
|
4685
|
+
var R = anObject(this);
|
|
4686
|
+
var pattern = $toString(R.source);
|
|
4687
|
+
var flags = $toString(getRegExpFlags(R));
|
|
4688
|
+
return '/' + pattern + '/' + flags;
|
|
4689
|
+
}, { unsafe: true });
|
|
4690
|
+
}
|
|
4691
|
+
|
|
4586
4692
|
/**
|
|
4587
4693
|
* Turns PartialMethodInfo into MethodInfo.
|
|
4588
4694
|
*/
|
|
@@ -4665,12 +4771,18 @@ class ResolveStringRequest$Type extends MessageType{constructor(){super("schema.
|
|
|
4665
4771
|
class ResolveStringResponse$Type extends MessageType{constructor(){super("schema.v1.ResolveStringResponse",[{no:1,name:"value",kind:"scalar",T:9/*ScalarType.STRING*/},{no:2,name:"reason",kind:"scalar",T:9/*ScalarType.STRING*/},{no:3,name:"variant",kind:"scalar",T:9/*ScalarType.STRING*/}]);}create(a){const b={value:"",reason:"",variant:""};return globalThis.Object.defineProperty(b,MESSAGE_TYPE,{enumerable:!1,value:this}),void 0!==a&&reflectionMergePartial(this,b,a),b}internalBinaryRead(a,b,c,d){let e=null!==d&&void 0!==d?d:this.create(),f=a.pos+b;for(;a.pos<f;){let[b,f]=a.tag();switch(b){case/* string value */1:e.value=a.string();break;case/* string reason */2:e.reason=a.string();break;case/* string variant */3:e.variant=a.string();break;default:let g=c.readUnknownField;if("throw"===g)throw new globalThis.Error(`Unknown field ${b} (wire type ${f}) for ${this.typeName}`);let h=a.skip(f);!1!==g&&(!0===g?UnknownFieldHandler.onRead:g)(this.typeName,e,b,f,h);}}return e}internalBinaryWrite(a,b,c){""!==a.value&&b.tag(1,WireType.LengthDelimited).string(a.value),""!==a.reason&&b.tag(2,WireType.LengthDelimited).string(a.reason),""!==a.variant&&b.tag(3,WireType.LengthDelimited).string(a.variant);let d=c.writeUnknownFields;return !1!==d&&(!0==d?UnknownFieldHandler.onWrite:d)(this.typeName,a,b),b}}/**
|
|
4666
4772
|
* @generated MessageType for protobuf message schema.v1.ResolveStringResponse
|
|
4667
4773
|
*/const ResolveStringResponse=new ResolveStringResponse$Type;// @generated message type with reflection information, may provide speed optimized methods
|
|
4668
|
-
class
|
|
4669
|
-
* @generated MessageType for protobuf message schema.v1.
|
|
4670
|
-
*/const
|
|
4671
|
-
class
|
|
4672
|
-
* @generated MessageType for protobuf message schema.v1.
|
|
4673
|
-
*/const
|
|
4774
|
+
class ResolveFloatRequest$Type extends MessageType{constructor(){super("schema.v1.ResolveFloatRequest",[{no:1,name:"flag_key",kind:"scalar",T:9/*ScalarType.STRING*/},{no:2,name:"context",kind:"message",T:()=>Struct}]);}create(a){const b={flagKey:""};return globalThis.Object.defineProperty(b,MESSAGE_TYPE,{enumerable:!1,value:this}),void 0!==a&&reflectionMergePartial(this,b,a),b}internalBinaryRead(a,b,c,d){let e=null!==d&&void 0!==d?d:this.create(),f=a.pos+b;for(;a.pos<f;){let[b,f]=a.tag();switch(b){case/* string flag_key */1:e.flagKey=a.string();break;case/* google.protobuf.Struct context */2:e.context=Struct.internalBinaryRead(a,a.uint32(),c,e.context);break;default:let g=c.readUnknownField;if("throw"===g)throw new globalThis.Error(`Unknown field ${b} (wire type ${f}) for ${this.typeName}`);let h=a.skip(f);!1!==g&&(!0===g?UnknownFieldHandler.onRead:g)(this.typeName,e,b,f,h);}}return e}internalBinaryWrite(a,b,c){""!==a.flagKey&&b.tag(1,WireType.LengthDelimited).string(a.flagKey),a.context&&Struct.internalBinaryWrite(a.context,b.tag(2,WireType.LengthDelimited).fork(),c).join();let d=c.writeUnknownFields;return !1!==d&&(!0==d?UnknownFieldHandler.onWrite:d)(this.typeName,a,b),b}}/**
|
|
4775
|
+
* @generated MessageType for protobuf message schema.v1.ResolveFloatRequest
|
|
4776
|
+
*/const ResolveFloatRequest=new ResolveFloatRequest$Type;// @generated message type with reflection information, may provide speed optimized methods
|
|
4777
|
+
class ResolveFloatResponse$Type extends MessageType{constructor(){super("schema.v1.ResolveFloatResponse",[{no:1,name:"value",kind:"scalar",T:1/*ScalarType.DOUBLE*/},{no:2,name:"reason",kind:"scalar",T:9/*ScalarType.STRING*/},{no:3,name:"variant",kind:"scalar",T:9/*ScalarType.STRING*/}]);}create(a){const b={value:0,reason:"",variant:""};return globalThis.Object.defineProperty(b,MESSAGE_TYPE,{enumerable:!1,value:this}),void 0!==a&&reflectionMergePartial(this,b,a),b}internalBinaryRead(a,b,c,d){let e=null!==d&&void 0!==d?d:this.create(),f=a.pos+b;for(;a.pos<f;){let[b,f]=a.tag();switch(b){case/* double value */1:e.value=a.double();break;case/* string reason */2:e.reason=a.string();break;case/* string variant */3:e.variant=a.string();break;default:let g=c.readUnknownField;if("throw"===g)throw new globalThis.Error(`Unknown field ${b} (wire type ${f}) for ${this.typeName}`);let h=a.skip(f);!1!==g&&(!0===g?UnknownFieldHandler.onRead:g)(this.typeName,e,b,f,h);}}return e}internalBinaryWrite(a,b,c){0!==a.value&&b.tag(1,WireType.Bit64).double(a.value),""!==a.reason&&b.tag(2,WireType.LengthDelimited).string(a.reason),""!==a.variant&&b.tag(3,WireType.LengthDelimited).string(a.variant);let d=c.writeUnknownFields;return !1!==d&&(!0==d?UnknownFieldHandler.onWrite:d)(this.typeName,a,b),b}}/**
|
|
4778
|
+
* @generated MessageType for protobuf message schema.v1.ResolveFloatResponse
|
|
4779
|
+
*/const ResolveFloatResponse=new ResolveFloatResponse$Type;// @generated message type with reflection information, may provide speed optimized methods
|
|
4780
|
+
class ResolveIntRequest$Type extends MessageType{constructor(){super("schema.v1.ResolveIntRequest",[{no:1,name:"flag_key",kind:"scalar",T:9/*ScalarType.STRING*/},{no:2,name:"context",kind:"message",T:()=>Struct}]);}create(a){const b={flagKey:""};return globalThis.Object.defineProperty(b,MESSAGE_TYPE,{enumerable:!1,value:this}),void 0!==a&&reflectionMergePartial(this,b,a),b}internalBinaryRead(a,b,c,d){let e=null!==d&&void 0!==d?d:this.create(),f=a.pos+b;for(;a.pos<f;){let[b,f]=a.tag();switch(b){case/* string flag_key */1:e.flagKey=a.string();break;case/* google.protobuf.Struct context */2:e.context=Struct.internalBinaryRead(a,a.uint32(),c,e.context);break;default:let g=c.readUnknownField;if("throw"===g)throw new globalThis.Error(`Unknown field ${b} (wire type ${f}) for ${this.typeName}`);let h=a.skip(f);!1!==g&&(!0===g?UnknownFieldHandler.onRead:g)(this.typeName,e,b,f,h);}}return e}internalBinaryWrite(a,b,c){""!==a.flagKey&&b.tag(1,WireType.LengthDelimited).string(a.flagKey),a.context&&Struct.internalBinaryWrite(a.context,b.tag(2,WireType.LengthDelimited).fork(),c).join();let d=c.writeUnknownFields;return !1!==d&&(!0==d?UnknownFieldHandler.onWrite:d)(this.typeName,a,b),b}}/**
|
|
4781
|
+
* @generated MessageType for protobuf message schema.v1.ResolveIntRequest
|
|
4782
|
+
*/const ResolveIntRequest=new ResolveIntRequest$Type;// @generated message type with reflection information, may provide speed optimized methods
|
|
4783
|
+
class ResolveIntResponse$Type extends MessageType{constructor(){super("schema.v1.ResolveIntResponse",[{no:1,name:"value",kind:"scalar",T:3/*ScalarType.INT64*/},{no:2,name:"reason",kind:"scalar",T:9/*ScalarType.STRING*/},{no:3,name:"variant",kind:"scalar",T:9/*ScalarType.STRING*/}]);}create(a){const b={value:"0",reason:"",variant:""};return globalThis.Object.defineProperty(b,MESSAGE_TYPE,{enumerable:!1,value:this}),void 0!==a&&reflectionMergePartial(this,b,a),b}internalBinaryRead(a,b,c,d){let e=null!==d&&void 0!==d?d:this.create(),f=a.pos+b;for(;a.pos<f;){let[b,f]=a.tag();switch(b){case/* int64 value */1:e.value=a.int64().toString();break;case/* string reason */2:e.reason=a.string();break;case/* string variant */3:e.variant=a.string();break;default:let g=c.readUnknownField;if("throw"===g)throw new globalThis.Error(`Unknown field ${b} (wire type ${f}) for ${this.typeName}`);let h=a.skip(f);!1!==g&&(!0===g?UnknownFieldHandler.onRead:g)(this.typeName,e,b,f,h);}}return e}internalBinaryWrite(a,b,c){"0"!==a.value&&b.tag(1,WireType.Varint).int64(a.value),""!==a.reason&&b.tag(2,WireType.LengthDelimited).string(a.reason),""!==a.variant&&b.tag(3,WireType.LengthDelimited).string(a.variant);let d=c.writeUnknownFields;return !1!==d&&(!0==d?UnknownFieldHandler.onWrite:d)(this.typeName,a,b),b}}/**
|
|
4784
|
+
* @generated MessageType for protobuf message schema.v1.ResolveIntResponse
|
|
4785
|
+
*/const ResolveIntResponse=new ResolveIntResponse$Type;// @generated message type with reflection information, may provide speed optimized methods
|
|
4674
4786
|
class ResolveObjectRequest$Type extends MessageType{constructor(){super("schema.v1.ResolveObjectRequest",[{no:1,name:"flag_key",kind:"scalar",T:9/*ScalarType.STRING*/},{no:2,name:"context",kind:"message",T:()=>Struct}]);}create(a){const b={flagKey:""};return globalThis.Object.defineProperty(b,MESSAGE_TYPE,{enumerable:!1,value:this}),void 0!==a&&reflectionMergePartial(this,b,a),b}internalBinaryRead(a,b,c,d){let e=null!==d&&void 0!==d?d:this.create(),f=a.pos+b;for(;a.pos<f;){let[b,f]=a.tag();switch(b){case/* string flag_key */1:e.flagKey=a.string();break;case/* google.protobuf.Struct context */2:e.context=Struct.internalBinaryRead(a,a.uint32(),c,e.context);break;default:let g=c.readUnknownField;if("throw"===g)throw new globalThis.Error(`Unknown field ${b} (wire type ${f}) for ${this.typeName}`);let h=a.skip(f);!1!==g&&(!0===g?UnknownFieldHandler.onRead:g)(this.typeName,e,b,f,h);}}return e}internalBinaryWrite(a,b,c){""!==a.flagKey&&b.tag(1,WireType.LengthDelimited).string(a.flagKey),a.context&&Struct.internalBinaryWrite(a.context,b.tag(2,WireType.LengthDelimited).fork(),c).join();let d=c.writeUnknownFields;return !1!==d&&(!0==d?UnknownFieldHandler.onWrite:d)(this.typeName,a,b),b}}/**
|
|
4675
4787
|
* @generated MessageType for protobuf message schema.v1.ResolveObjectRequest
|
|
4676
4788
|
*/const ResolveObjectRequest=new ResolveObjectRequest$Type;// @generated message type with reflection information, may provide speed optimized methods
|
|
@@ -4678,7 +4790,7 @@ class ResolveObjectResponse$Type extends MessageType{constructor(){super("schema
|
|
|
4678
4790
|
* @generated MessageType for protobuf message schema.v1.ResolveObjectResponse
|
|
4679
4791
|
*/const ResolveObjectResponse=new ResolveObjectResponse$Type;/**
|
|
4680
4792
|
* @generated ServiceType for protobuf service schema.v1.Service
|
|
4681
|
-
*/const Service=new ServiceType("schema.v1.Service",[{name:"ResolveBoolean",options:{"google.api.http":{post:"/flags/{flag_key}/resolve/boolean",body:"context"}},I:ResolveBooleanRequest,O:ResolveBooleanResponse},{name:"ResolveString",options:{"google.api.http":{post:"/flags/{flag_key}/resolve/string",body:"context"}},I:ResolveStringRequest,O:ResolveStringResponse},{name:"
|
|
4793
|
+
*/const Service=new ServiceType("schema.v1.Service",[{name:"ResolveBoolean",options:{"google.api.http":{post:"/flags/{flag_key}/resolve/boolean",body:"context"}},I:ResolveBooleanRequest,O:ResolveBooleanResponse},{name:"ResolveString",options:{"google.api.http":{post:"/flags/{flag_key}/resolve/string",body:"context"}},I:ResolveStringRequest,O:ResolveStringResponse},{name:"ResolveFloat",options:{"google.api.http":{post:"/flags/{flag_key}/resolve/float",body:"context"}},I:ResolveFloatRequest,O:ResolveFloatResponse},{name:"ResolveInt",options:{"google.api.http":{post:"/flags/{flag_key}/resolve/int",body:"context"}},I:ResolveIntRequest,O:ResolveIntResponse},{name:"ResolveObject",options:{"google.api.http":{post:"/flags/{flag_key}/resolve/object",body:"context"}},I:ResolveObjectRequest,O:ResolveObjectResponse}]);
|
|
4682
4794
|
|
|
4683
4795
|
/**
|
|
4684
4796
|
* @generated from protobuf service schema.v1.Service
|
|
@@ -4687,13 +4799,15 @@ class ResolveObjectResponse$Type extends MessageType{constructor(){super("schema
|
|
|
4687
4799
|
*/resolveBoolean(a,b){const c=this.methods[0],d=this._transport.mergeOptions(b);return stackIntercept("unary",this._transport,c,d,a)}/**
|
|
4688
4800
|
* @generated from protobuf rpc: ResolveString(schema.v1.ResolveStringRequest) returns (schema.v1.ResolveStringResponse);
|
|
4689
4801
|
*/resolveString(a,b){const c=this.methods[1],d=this._transport.mergeOptions(b);return stackIntercept("unary",this._transport,c,d,a)}/**
|
|
4690
|
-
* @generated from protobuf rpc:
|
|
4691
|
-
*/
|
|
4802
|
+
* @generated from protobuf rpc: ResolveFloat(schema.v1.ResolveFloatRequest) returns (schema.v1.ResolveFloatResponse);
|
|
4803
|
+
*/resolveFloat(a,b){const c=this.methods[2],d=this._transport.mergeOptions(b);return stackIntercept("unary",this._transport,c,d,a)}/**
|
|
4804
|
+
* @generated from protobuf rpc: ResolveInt(schema.v1.ResolveIntRequest) returns (schema.v1.ResolveIntResponse);
|
|
4805
|
+
*/resolveInt(a,b){const c=this.methods[3],d=this._transport.mergeOptions(b);return stackIntercept("unary",this._transport,c,d,a)}/**
|
|
4692
4806
|
* @generated from protobuf rpc: ResolveObject(schema.v1.ResolveObjectRequest) returns (schema.v1.ResolveObjectResponse);
|
|
4693
|
-
*/resolveObject(a,b){const c=this.methods[
|
|
4807
|
+
*/resolveObject(a,b){const c=this.methods[4],d=this._transport.mergeOptions(b);return stackIntercept("unary",this._transport,c,d,a)}}
|
|
4694
4808
|
|
|
4695
|
-
class GRPCService{constructor(a){const{host:b,port:c}=a;this.client=new ServiceClient(new grpcTransport.GrpcTransport({host:`${b}:${c}`,channelCredentials:grpc__namespace.credentials.createInsecure()}));}resolveBoolean(a,b,c){var d;return __awaiter(this,void 0,void 0,function*(){try{const{response:b}=yield this.client.resolveBoolean({flagKey:a,context:Struct.fromJsonString(JSON.stringify(c))});return {value:b.value,reason:b.reason,variant:b.variant}}catch(a){return {reason:nodejsSdk.StandardResolutionReasons.ERROR,errorCode:null!==(d=null===a||void 0===a?void 0:a.code)&&void 0!==d?d:nodejsSdk.StandardResolutionReasons.UNKNOWN,value:b}}})}resolveString(a,b,c){var d;return __awaiter(this,void 0,void 0,function*(){try{const{response:b}=yield this.client.resolveString({flagKey:a,context:Struct.fromJsonString(JSON.stringify(c))});return {value:b.value,reason:b.reason,variant:b.variant}}catch(a){return {reason:nodejsSdk.StandardResolutionReasons.ERROR,errorCode:null!==(d=null===a||void 0===a?void 0:a.code)&&void 0!==d?d:nodejsSdk.StandardResolutionReasons.UNKNOWN,value:b}}})}resolveNumber(a,b,c){var d;return __awaiter(this,void 0,void 0,function*(){try{const{response:b}=yield this.client.
|
|
4809
|
+
class GRPCService{constructor(a){const{host:b,port:c}=a;this.client=new ServiceClient(new grpcTransport.GrpcTransport({host:`${b}:${c}`,channelCredentials:grpc__namespace.credentials.createInsecure()}));}resolveBoolean(a,b,c){var d;return __awaiter(this,void 0,void 0,function*(){try{const{response:b}=yield this.client.resolveBoolean({flagKey:a,context:Struct.fromJsonString(JSON.stringify(c))});return {value:b.value,reason:b.reason,variant:b.variant}}catch(a){return {reason:nodejsSdk.StandardResolutionReasons.ERROR,errorCode:null!==(d=null===a||void 0===a?void 0:a.code)&&void 0!==d?d:nodejsSdk.StandardResolutionReasons.UNKNOWN,value:b}}})}resolveString(a,b,c){var d;return __awaiter(this,void 0,void 0,function*(){try{const{response:b}=yield this.client.resolveString({flagKey:a,context:Struct.fromJsonString(JSON.stringify(c))});return {value:b.value,reason:b.reason,variant:b.variant}}catch(a){return {reason:nodejsSdk.StandardResolutionReasons.ERROR,errorCode:null!==(d=null===a||void 0===a?void 0:a.code)&&void 0!==d?d:nodejsSdk.StandardResolutionReasons.UNKNOWN,value:b}}})}resolveNumber(a,b,c){var d;return __awaiter(this,void 0,void 0,function*(){try{const{response:b}=yield this.client.resolveFloat({flagKey:a,context:Struct.fromJsonString(JSON.stringify(c))});return {value:b.value,reason:b.reason,variant:b.variant}}catch(a){return {reason:nodejsSdk.StandardResolutionReasons.ERROR,errorCode:null!==(d=null===a||void 0===a?void 0:a.code)&&void 0!==d?d:nodejsSdk.StandardResolutionReasons.UNKNOWN,value:b}}})}resolveObject(a,b,c){var d;return __awaiter(this,void 0,void 0,function*(){try{const{response:b}=yield this.client.resolveObject({flagKey:a,context:Struct.fromJsonString(JSON.stringify(c))});return {value:b.value,reason:b.reason,variant:b.variant}}catch(a){return {reason:nodejsSdk.StandardResolutionReasons.ERROR,errorCode:null!==(d=null===a||void 0===a?void 0:a.code)&&void 0!==d?d:nodejsSdk.StandardResolutionReasons.UNKNOWN,value:b}}})}}
|
|
4696
4810
|
|
|
4697
|
-
class FlagdProvider{constructor(a){this.metadata={name:
|
|
4811
|
+
class FlagdProvider{constructor(a){this.metadata={name:"flagD Provider"};const{service:b,host:c,port:d,protocol:e}=Object.assign({service:"http",host:"localhost",port:8013,protocol:"http"},a);this.service="http"===b?new HTTPService({host:c,port:d,protocol:e}):new GRPCService({host:c,port:d});}resolveBooleanEvaluation(a,b,c){return this.service.resolveBoolean(a,b,c)}resolveStringEvaluation(a,b,c){return this.service.resolveString(a,b,c)}resolveNumberEvaluation(a,b,c){return this.service.resolveNumber(a,b,c)}resolveObjectEvaluation(a,b,c){return this.service.resolveObject(a,b,c)}}
|
|
4698
4812
|
|
|
4699
4813
|
exports.FlagdProvider = FlagdProvider;
|