@feathersjs/client 5.0.5 → 5.0.7

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/feathers.js CHANGED
@@ -536,17 +536,20 @@ var StorageWrapper = /*#__PURE__*/function () {
536
536
  _createClass(StorageWrapper, [{
537
537
  key: "getItem",
538
538
  value: function getItem(key) {
539
- return Promise.resolve(this.storage.getItem(key));
539
+ var _a;
540
+ return Promise.resolve((_a = this.storage) === null || _a === void 0 ? void 0 : _a.getItem(key));
540
541
  }
541
542
  }, {
542
543
  key: "setItem",
543
544
  value: function setItem(key, value) {
544
- return Promise.resolve(this.storage.setItem(key, value));
545
+ var _a;
546
+ return Promise.resolve((_a = this.storage) === null || _a === void 0 ? void 0 : _a.setItem(key, value));
545
547
  }
546
548
  }, {
547
549
  key: "removeItem",
548
550
  value: function removeItem(key) {
549
- return Promise.resolve(this.storage.removeItem(key));
551
+ var _a;
552
+ return Promise.resolve((_a = this.storage) === null || _a === void 0 ? void 0 : _a.removeItem(key));
550
553
  }
551
554
  }]);
552
555
  return StorageWrapper;
@@ -3182,18 +3185,23 @@ var ThrowTypeError = $gOPD
3182
3185
  : throwTypeError;
3183
3186
 
3184
3187
  var hasSymbols = __webpack_require__(/*! has-symbols */ "../../node_modules/has-symbols/index.js")();
3188
+ var hasProto = __webpack_require__(/*! has-proto */ "../../node_modules/has-proto/index.js")();
3185
3189
 
3186
- var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
3190
+ var getProto = Object.getPrototypeOf || (
3191
+ hasProto
3192
+ ? function (x) { return x.__proto__; } // eslint-disable-line no-proto
3193
+ : null
3194
+ );
3187
3195
 
3188
3196
  var needsEval = {};
3189
3197
 
3190
- var TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto(Uint8Array);
3198
+ var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array);
3191
3199
 
3192
3200
  var INTRINSICS = {
3193
3201
  '%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
3194
3202
  '%Array%': Array,
3195
3203
  '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
3196
- '%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined,
3204
+ '%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined,
3197
3205
  '%AsyncFromSyncIteratorPrototype%': undefined,
3198
3206
  '%AsyncFunction%': needsEval,
3199
3207
  '%AsyncGenerator%': needsEval,
@@ -3223,10 +3231,10 @@ var INTRINSICS = {
3223
3231
  '%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,
3224
3232
  '%isFinite%': isFinite,
3225
3233
  '%isNaN%': isNaN,
3226
- '%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined,
3234
+ '%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined,
3227
3235
  '%JSON%': typeof JSON === 'object' ? JSON : undefined,
3228
3236
  '%Map%': typeof Map === 'undefined' ? undefined : Map,
3229
- '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined : getProto(new Map()[Symbol.iterator]()),
3237
+ '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()),
3230
3238
  '%Math%': Math,
3231
3239
  '%Number%': Number,
3232
3240
  '%Object%': Object,
@@ -3239,10 +3247,10 @@ var INTRINSICS = {
3239
3247
  '%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
3240
3248
  '%RegExp%': RegExp,
3241
3249
  '%Set%': typeof Set === 'undefined' ? undefined : Set,
3242
- '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined : getProto(new Set()[Symbol.iterator]()),
3250
+ '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Set()[Symbol.iterator]()),
3243
3251
  '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,
3244
3252
  '%String%': String,
3245
- '%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined,
3253
+ '%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined,
3246
3254
  '%Symbol%': hasSymbols ? Symbol : undefined,
3247
3255
  '%SyntaxError%': $SyntaxError,
3248
3256
  '%ThrowTypeError%': ThrowTypeError,
@@ -3258,12 +3266,14 @@ var INTRINSICS = {
3258
3266
  '%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
3259
3267
  };
3260
3268
 
3261
- try {
3262
- null.error; // eslint-disable-line no-unused-expressions
3263
- } catch (e) {
3264
- // https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229
3265
- var errorProto = getProto(getProto(e));
3266
- INTRINSICS['%Error.prototype%'] = errorProto;
3269
+ if (getProto) {
3270
+ try {
3271
+ null.error; // eslint-disable-line no-unused-expressions
3272
+ } catch (e) {
3273
+ // https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229
3274
+ var errorProto = getProto(getProto(e));
3275
+ INTRINSICS['%Error.prototype%'] = errorProto;
3276
+ }
3267
3277
  }
3268
3278
 
3269
3279
  var doEval = function doEval(name) {
@@ -3281,7 +3291,7 @@ var doEval = function doEval(name) {
3281
3291
  }
3282
3292
  } else if (name === '%AsyncIteratorPrototype%') {
3283
3293
  var gen = doEval('%AsyncGenerator%');
3284
- if (gen) {
3294
+ if (gen && getProto) {
3285
3295
  value = getProto(gen.prototype);
3286
3296
  }
3287
3297
  }
@@ -3483,6 +3493,28 @@ module.exports = function GetIntrinsic(name, allowMissing) {
3483
3493
  };
3484
3494
 
3485
3495
 
3496
+ /***/ }),
3497
+
3498
+ /***/ "../../node_modules/has-proto/index.js":
3499
+ /*!*********************************************!*\
3500
+ !*** ../../node_modules/has-proto/index.js ***!
3501
+ \*********************************************/
3502
+ /***/ (function(module) {
3503
+
3504
+ "use strict";
3505
+
3506
+
3507
+ var test = {
3508
+ foo: {}
3509
+ };
3510
+
3511
+ var $Object = Object;
3512
+
3513
+ module.exports = function hasProto() {
3514
+ return { __proto__: test }.foo === test.foo && !({ __proto__: null } instanceof $Object);
3515
+ };
3516
+
3517
+
3486
3518
  /***/ }),
3487
3519
 
3488
3520
  /***/ "../../node_modules/has-symbols/index.js":
@@ -4218,7 +4250,8 @@ var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('✓')
4218
4250
  var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')
4219
4251
 
4220
4252
  var parseValues = function parseQueryStringValues(str, options) {
4221
- var obj = {};
4253
+ var obj = { __proto__: null };
4254
+
4222
4255
  var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
4223
4256
  var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
4224
4257
  var parts = cleanStr.split(options.delimiter, limit);