@ppg_pl/pallete 0.0.6 → 0.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.
@@ -343,6 +343,16 @@ var hasSymbols$1 = function hasNativeSymbols() {
343
343
  return shams();
344
344
  };
345
345
 
346
+ var test = {
347
+ foo: {}
348
+ };
349
+
350
+ var $Object = Object;
351
+
352
+ var hasProto$1 = function hasProto() {
353
+ return { __proto__: test }.foo === test.foo && !({ __proto__: null } instanceof $Object);
354
+ };
355
+
346
356
  /* eslint no-invalid-this: 1 */
347
357
 
348
358
  var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
@@ -432,18 +442,23 @@ var ThrowTypeError = $gOPD
432
442
  : throwTypeError;
433
443
 
434
444
  var hasSymbols = hasSymbols$1();
445
+ var hasProto = hasProto$1();
435
446
 
436
- var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
447
+ var getProto = Object.getPrototypeOf || (
448
+ hasProto
449
+ ? function (x) { return x.__proto__; } // eslint-disable-line no-proto
450
+ : null
451
+ );
437
452
 
438
453
  var needsEval = {};
439
454
 
440
- var TypedArray = typeof Uint8Array === 'undefined' ? undefined$1 : getProto(Uint8Array);
455
+ var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined$1 : getProto(Uint8Array);
441
456
 
442
457
  var INTRINSICS = {
443
458
  '%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
444
459
  '%Array%': Array,
445
460
  '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
446
- '%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined$1,
461
+ '%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined$1,
447
462
  '%AsyncFromSyncIteratorPrototype%': undefined$1,
448
463
  '%AsyncFunction%': needsEval,
449
464
  '%AsyncGenerator%': needsEval,
@@ -473,10 +488,10 @@ var INTRINSICS = {
473
488
  '%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
474
489
  '%isFinite%': isFinite,
475
490
  '%isNaN%': isNaN,
476
- '%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
491
+ '%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
477
492
  '%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
478
493
  '%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
479
- '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
494
+ '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
480
495
  '%Math%': Math,
481
496
  '%Number%': Number,
482
497
  '%Object%': Object,
@@ -489,10 +504,10 @@ var INTRINSICS = {
489
504
  '%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
490
505
  '%RegExp%': RegExp,
491
506
  '%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
492
- '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
507
+ '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
493
508
  '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
494
509
  '%String%': String,
495
- '%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined$1,
510
+ '%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined$1,
496
511
  '%Symbol%': hasSymbols ? Symbol : undefined$1,
497
512
  '%SyntaxError%': $SyntaxError,
498
513
  '%ThrowTypeError%': ThrowTypeError,
@@ -523,7 +538,7 @@ var doEval = function doEval(name) {
523
538
  }
524
539
  } else if (name === '%AsyncIteratorPrototype%') {
525
540
  var gen = doEval('%AsyncGenerator%');
526
- if (gen) {
541
+ if (gen && getProto) {
527
542
  value = getProto(gen.prototype);
528
543
  }
529
544
  }
@@ -2091,7 +2106,8 @@ var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('✓')
2091
2106
  var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')
2092
2107
 
2093
2108
  var parseValues = function parseQueryStringValues(str, options) {
2094
- var obj = {};
2109
+ var obj = { __proto__: null };
2110
+
2095
2111
  var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
2096
2112
  var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
2097
2113
  var parts = cleanStr.split(options.delimiter, limit);