bootstrap-table-rails 1.20.0 → 1.20.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bootstrap-table-rails/version.rb +1 -1
- data/vendor/assets/javascripts/.DS_Store +0 -0
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-locale-all.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.esm.js +82 -61
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.js +82 -61
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.css +6 -6
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.js +217 -143
- data/vendor/assets/javascripts/bootstrap-table/extensions/addrbar/bootstrap-table-addrbar.js +114 -87
- data/vendor/assets/javascripts/bootstrap-table/extensions/auto-refresh/bootstrap-table-auto-refresh.js +84 -64
- data/vendor/assets/javascripts/bootstrap-table/extensions/cookie/bootstrap-table-cookie.js +111 -75
- data/vendor/assets/javascripts/bootstrap-table/extensions/copy-rows/bootstrap-table-copy-rows.js +84 -64
- data/vendor/assets/javascripts/bootstrap-table/extensions/custom-view/bootstrap-table-custom-view.js +84 -64
- data/vendor/assets/javascripts/bootstrap-table/extensions/defer-url/bootstrap-table-defer-url.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/extensions/editable/bootstrap-table-editable.js +84 -63
- data/vendor/assets/javascripts/bootstrap-table/extensions/export/bootstrap-table-export.js +93 -68
- data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/bootstrap-table-filter-control.js +426 -367
- data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/utils.js +104 -72
- data/vendor/assets/javascripts/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.js +80 -60
- data/vendor/assets/javascripts/bootstrap-table/extensions/group-by-v2/bootstrap-table-group-by.js +85 -65
- data/vendor/assets/javascripts/bootstrap-table/extensions/key-events/bootstrap-table-key-events.js +83 -62
- data/vendor/assets/javascripts/bootstrap-table/extensions/mobile/bootstrap-table-mobile.js +87 -61
- data/vendor/assets/javascripts/bootstrap-table/extensions/multiple-sort/bootstrap-table-multiple-sort.js +105 -73
- data/vendor/assets/javascripts/bootstrap-table/extensions/page-jump-to/bootstrap-table-page-jump-to.js +79 -59
- data/vendor/assets/javascripts/bootstrap-table/extensions/pipeline/bootstrap-table-pipeline.js +76 -57
- data/vendor/assets/javascripts/bootstrap-table/extensions/print/bootstrap-table-print.js +92 -66
- data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-columns/bootstrap-table-reorder-columns.js +79 -59
- data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-rows/bootstrap-table-reorder-rows.js +80 -57
- data/vendor/assets/javascripts/bootstrap-table/extensions/resizable/bootstrap-table-resizable.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/extensions/sticky-header/bootstrap-table-sticky-header.js +79 -59
- data/vendor/assets/javascripts/bootstrap-table/extensions/toolbar/bootstrap-table-toolbar.js +96 -69
- data/vendor/assets/javascripts/bootstrap-table/extensions/treegrid/bootstrap-table-treegrid.js +76 -57
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-af-ZA.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ar-SA.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-bg-BG.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ca-ES.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-cs-CZ.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-da-DK.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-de-DE.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-el-GR.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-en-US.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-AR.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CL.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CR.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-ES.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-MX.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-NI.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-SP.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-et-EE.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-eu-EU.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fa-IR.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fi-FI.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-BE.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-CH.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-FR.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-LU.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-he-IL.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hi-IN.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hr-HR.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hu-HU.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-id-ID.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-it-IT.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ja-JP.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ka-GE.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ko-KR.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-lb-LU.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ms-MY.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nb-NO.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-BE.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-NL.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pl-PL.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-BR.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-PT.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ro-RO.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ru-RU.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sk-SK.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Cyrl-RS.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Latn-RS.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sv-SE.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-th-TH.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-tr-TR.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uk-UA.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ur-PK.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uz-Latn-UZ.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-vi-VN.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-CN.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-TW.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.css +5 -5
- data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.js +85 -59
- data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.css +5 -5
- data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.js +85 -59
- data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.css +5 -5
- data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.js +85 -59
- data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.css +5 -5
- data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.js +85 -59
- data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.css +5 -5
- data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.js +85 -59
- metadata +1 -2
- data/vendor/assets/javascripts/bootstrap-table/.DS_Store +0 -0
data/vendor/assets/javascripts/bootstrap-table/extensions/toolbar/bootstrap-table-toolbar.js
CHANGED
@@ -291,7 +291,7 @@
|
|
291
291
|
|
292
292
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
293
293
|
var global_1 =
|
294
|
-
// eslint-disable-next-line es/no-global-this -- safe
|
294
|
+
// eslint-disable-next-line es-x/no-global-this -- safe
|
295
295
|
check(typeof globalThis == 'object' && globalThis) ||
|
296
296
|
check(typeof window == 'object' && window) ||
|
297
297
|
// eslint-disable-next-line no-restricted-globals -- safe
|
@@ -310,11 +310,12 @@
|
|
310
310
|
|
311
311
|
// Detect IE8's incomplete defineProperty implementation
|
312
312
|
var descriptors = !fails(function () {
|
313
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
313
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
314
314
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
315
315
|
});
|
316
316
|
|
317
317
|
var functionBindNative = !fails(function () {
|
318
|
+
// eslint-disable-next-line es-x/no-function-prototype-bind -- safe
|
318
319
|
var test = (function () { /* empty */ }).bind();
|
319
320
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
320
321
|
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
@@ -327,7 +328,7 @@
|
|
327
328
|
};
|
328
329
|
|
329
330
|
var $propertyIsEnumerable$1 = {}.propertyIsEnumerable;
|
330
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
331
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
331
332
|
var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
332
333
|
|
333
334
|
// Nashorn ~ JDK8 bug
|
@@ -449,11 +450,11 @@
|
|
449
450
|
|
450
451
|
var engineV8Version = version;
|
451
452
|
|
452
|
-
/* eslint-disable es/no-symbol -- required for testing */
|
453
|
+
/* eslint-disable es-x/no-symbol -- required for testing */
|
453
454
|
|
454
455
|
|
455
456
|
|
456
|
-
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
457
|
+
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
|
457
458
|
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
|
458
459
|
var symbol = Symbol();
|
459
460
|
// Chrome 38 Symbol has incorrect toString conversion
|
@@ -463,7 +464,7 @@
|
|
463
464
|
!Symbol.sham && engineV8Version && engineV8Version < 41;
|
464
465
|
});
|
465
466
|
|
466
|
-
/* eslint-disable es/no-symbol -- required for testing */
|
467
|
+
/* eslint-disable es-x/no-symbol -- required for testing */
|
467
468
|
|
468
469
|
|
469
470
|
var useSymbolAsUid = nativeSymbol
|
@@ -516,7 +517,7 @@
|
|
516
517
|
throw TypeError$8("Can't convert object to primitive value");
|
517
518
|
};
|
518
519
|
|
519
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
520
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
520
521
|
var defineProperty$1 = Object.defineProperty;
|
521
522
|
|
522
523
|
var setGlobal = function (key, value) {
|
@@ -536,10 +537,10 @@
|
|
536
537
|
(module.exports = function (key, value) {
|
537
538
|
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
|
538
539
|
})('versions', []).push({
|
539
|
-
version: '3.
|
540
|
+
version: '3.22.4',
|
540
541
|
mode: 'global',
|
541
542
|
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
542
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
543
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.22.4/LICENSE',
|
543
544
|
source: 'https://github.com/zloirock/core-js'
|
544
545
|
});
|
545
546
|
});
|
@@ -556,6 +557,7 @@
|
|
556
557
|
|
557
558
|
// `HasOwnProperty` abstract operation
|
558
559
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
560
|
+
// eslint-disable-next-line es-x/no-object-hasown -- safe
|
559
561
|
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
560
562
|
return hasOwnProperty(toObject(it), key);
|
561
563
|
};
|
@@ -622,13 +624,13 @@
|
|
622
624
|
|
623
625
|
// Thanks to IE8 for its funny defineProperty
|
624
626
|
var ie8DomDefine = !descriptors && !fails(function () {
|
625
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
627
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
626
628
|
return Object.defineProperty(documentCreateElement('div'), 'a', {
|
627
629
|
get: function () { return 7; }
|
628
630
|
}).a != 7;
|
629
631
|
});
|
630
632
|
|
631
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
633
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
632
634
|
var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
633
635
|
|
634
636
|
// `Object.getOwnPropertyDescriptor` method
|
@@ -649,7 +651,7 @@
|
|
649
651
|
// V8 ~ Chrome 36-
|
650
652
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
651
653
|
var v8PrototypeDefineBug = descriptors && fails(function () {
|
652
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
654
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
653
655
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
654
656
|
value: 42,
|
655
657
|
writable: false
|
@@ -666,9 +668,9 @@
|
|
666
668
|
};
|
667
669
|
|
668
670
|
var TypeError$5 = global_1.TypeError;
|
669
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
671
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
670
672
|
var $defineProperty = Object.defineProperty;
|
671
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
673
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
672
674
|
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
673
675
|
var ENUMERABLE = 'enumerable';
|
674
676
|
var CONFIGURABLE$1 = 'configurable';
|
@@ -714,6 +716,21 @@
|
|
714
716
|
return object;
|
715
717
|
};
|
716
718
|
|
719
|
+
var FunctionPrototype = Function.prototype;
|
720
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
721
|
+
var getDescriptor = descriptors && Object.getOwnPropertyDescriptor;
|
722
|
+
|
723
|
+
var EXISTS = hasOwnProperty_1(FunctionPrototype, 'name');
|
724
|
+
// additional protection from minified / mangled / dropped function names
|
725
|
+
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
726
|
+
var CONFIGURABLE = EXISTS && (!descriptors || (descriptors && getDescriptor(FunctionPrototype, 'name').configurable));
|
727
|
+
|
728
|
+
var functionName = {
|
729
|
+
EXISTS: EXISTS,
|
730
|
+
PROPER: PROPER,
|
731
|
+
CONFIGURABLE: CONFIGURABLE
|
732
|
+
};
|
733
|
+
|
717
734
|
var functionToString = functionUncurryThis(Function.toString);
|
718
735
|
|
719
736
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
@@ -797,50 +814,56 @@
|
|
797
814
|
getterFor: getterFor
|
798
815
|
};
|
799
816
|
|
800
|
-
var
|
801
|
-
|
802
|
-
var
|
803
|
-
|
804
|
-
var EXISTS = hasOwnProperty_1(FunctionPrototype, 'name');
|
805
|
-
// additional protection from minified / mangled / dropped function names
|
806
|
-
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
807
|
-
var CONFIGURABLE = EXISTS && (!descriptors || (descriptors && getDescriptor(FunctionPrototype, 'name').configurable));
|
817
|
+
var makeBuiltIn_1 = createCommonjsModule(function (module) {
|
818
|
+
var defineProperty = objectDefineProperty.f;
|
819
|
+
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
808
820
|
|
809
|
-
var functionName = {
|
810
|
-
EXISTS: EXISTS,
|
811
|
-
PROPER: PROPER,
|
812
|
-
CONFIGURABLE: CONFIGURABLE
|
813
|
-
};
|
814
821
|
|
815
|
-
var redefine = createCommonjsModule(function (module) {
|
816
|
-
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
817
822
|
|
818
|
-
var getInternalState = internalState.get;
|
819
823
|
var enforceInternalState = internalState.enforce;
|
824
|
+
var getInternalState = internalState.get;
|
825
|
+
|
826
|
+
var CONFIGURABLE_LENGTH = !fails(function () {
|
827
|
+
return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
828
|
+
});
|
829
|
+
|
820
830
|
var TEMPLATE = String(String).split('String');
|
821
831
|
|
822
|
-
|
832
|
+
var makeBuiltIn = module.exports = function (value, name, options) {
|
833
|
+
if (String(name).slice(0, 7) === 'Symbol(') {
|
834
|
+
name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
|
835
|
+
}
|
836
|
+
if (options && options.getter) name = 'get ' + name;
|
837
|
+
if (options && options.setter) name = 'set ' + name;
|
838
|
+
if (!hasOwnProperty_1(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
|
839
|
+
defineProperty(value, 'name', { value: name, configurable: true });
|
840
|
+
}
|
841
|
+
if (CONFIGURABLE_LENGTH && options && hasOwnProperty_1(options, 'arity') && value.length !== options.arity) {
|
842
|
+
defineProperty(value, 'length', { value: options.arity });
|
843
|
+
}
|
844
|
+
var state = enforceInternalState(value);
|
845
|
+
if (!hasOwnProperty_1(state, 'source')) {
|
846
|
+
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
847
|
+
} return value;
|
848
|
+
};
|
849
|
+
|
850
|
+
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
851
|
+
// eslint-disable-next-line no-extend-native -- required
|
852
|
+
Function.prototype.toString = makeBuiltIn(function toString() {
|
853
|
+
return isCallable(this) && getInternalState(this).source || inspectSource(this);
|
854
|
+
}, 'toString');
|
855
|
+
});
|
856
|
+
|
857
|
+
var defineBuiltIn = function (O, key, value, options) {
|
823
858
|
var unsafe = options ? !!options.unsafe : false;
|
824
859
|
var simple = options ? !!options.enumerable : false;
|
825
860
|
var noTargetGet = options ? !!options.noTargetGet : false;
|
826
861
|
var name = options && options.name !== undefined ? options.name : key;
|
827
|
-
|
828
|
-
if (isCallable(value)) {
|
829
|
-
if (String(name).slice(0, 7) === 'Symbol(') {
|
830
|
-
name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
|
831
|
-
}
|
832
|
-
if (!hasOwnProperty_1(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
|
833
|
-
createNonEnumerableProperty(value, 'name', name);
|
834
|
-
}
|
835
|
-
state = enforceInternalState(value);
|
836
|
-
if (!state.source) {
|
837
|
-
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
838
|
-
}
|
839
|
-
}
|
862
|
+
if (isCallable(value)) makeBuiltIn_1(value, name, options);
|
840
863
|
if (O === global_1) {
|
841
864
|
if (simple) O[key] = value;
|
842
865
|
else setGlobal(key, value);
|
843
|
-
return;
|
866
|
+
return O;
|
844
867
|
} else if (!unsafe) {
|
845
868
|
delete O[key];
|
846
869
|
} else if (!noTargetGet && O[key]) {
|
@@ -848,11 +871,8 @@
|
|
848
871
|
}
|
849
872
|
if (simple) O[key] = value;
|
850
873
|
else createNonEnumerableProperty(O, key, value);
|
851
|
-
|
852
|
-
}
|
853
|
-
return isCallable(this) && getInternalState(this).source || inspectSource(this);
|
854
|
-
});
|
855
|
-
});
|
874
|
+
return O;
|
875
|
+
};
|
856
876
|
|
857
877
|
var ceil = Math.ceil;
|
858
878
|
var floor = Math.floor;
|
@@ -952,7 +972,7 @@
|
|
952
972
|
|
953
973
|
// `Object.getOwnPropertyNames` method
|
954
974
|
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
955
|
-
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
975
|
+
// eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
|
956
976
|
var f$2 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
957
977
|
return objectKeysInternal(O, hiddenKeys);
|
958
978
|
};
|
@@ -961,7 +981,7 @@
|
|
961
981
|
f: f$2
|
962
982
|
};
|
963
983
|
|
964
|
-
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
984
|
+
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
|
965
985
|
var f$1 = Object.getOwnPropertySymbols;
|
966
986
|
|
967
987
|
var objectGetOwnPropertySymbols = {
|
@@ -1059,8 +1079,7 @@
|
|
1059
1079
|
if (options.sham || (targetProperty && targetProperty.sham)) {
|
1060
1080
|
createNonEnumerableProperty(sourceProperty, 'sham', true);
|
1061
1081
|
}
|
1062
|
-
|
1063
|
-
redefine(target, key, sourceProperty, options);
|
1082
|
+
defineBuiltIn(target, key, sourceProperty, options);
|
1064
1083
|
}
|
1065
1084
|
};
|
1066
1085
|
|
@@ -1108,6 +1127,7 @@
|
|
1108
1127
|
var regexpFlags = function () {
|
1109
1128
|
var that = anObject(this);
|
1110
1129
|
var result = '';
|
1130
|
+
if (that.hasIndices) result += 'd';
|
1111
1131
|
if (that.global) result += 'g';
|
1112
1132
|
if (that.ignoreCase) result += 'i';
|
1113
1133
|
if (that.multiline) result += 'm';
|
@@ -1147,14 +1167,14 @@
|
|
1147
1167
|
|
1148
1168
|
// `Object.keys` method
|
1149
1169
|
// https://tc39.es/ecma262/#sec-object.keys
|
1150
|
-
// eslint-disable-next-line es/no-object-keys -- safe
|
1170
|
+
// eslint-disable-next-line es-x/no-object-keys -- safe
|
1151
1171
|
var objectKeys = Object.keys || function keys(O) {
|
1152
1172
|
return objectKeysInternal(O, enumBugKeys);
|
1153
1173
|
};
|
1154
1174
|
|
1155
1175
|
// `Object.defineProperties` method
|
1156
1176
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
1157
|
-
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
1177
|
+
// eslint-disable-next-line es-x/no-object-defineproperties -- safe
|
1158
1178
|
var f = descriptors && !v8PrototypeDefineBug ? Object.defineProperties : function defineProperties(O, Properties) {
|
1159
1179
|
anObject(O);
|
1160
1180
|
var props = toIndexedObject(Properties);
|
@@ -1243,6 +1263,7 @@
|
|
1243
1263
|
|
1244
1264
|
// `Object.create` method
|
1245
1265
|
// https://tc39.es/ecma262/#sec-object.create
|
1266
|
+
// eslint-disable-next-line es-x/no-object-create -- safe
|
1246
1267
|
var objectCreate = Object.create || function create(O, Properties) {
|
1247
1268
|
var result;
|
1248
1269
|
if (O !== null) {
|
@@ -1462,8 +1483,8 @@
|
|
1462
1483
|
return { done: false };
|
1463
1484
|
});
|
1464
1485
|
|
1465
|
-
|
1466
|
-
|
1486
|
+
defineBuiltIn(String.prototype, KEY, methods[0]);
|
1487
|
+
defineBuiltIn(RegExpPrototype, SYMBOL, methods[1]);
|
1467
1488
|
}
|
1468
1489
|
|
1469
1490
|
if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
|
@@ -1471,7 +1492,7 @@
|
|
1471
1492
|
|
1472
1493
|
// `SameValue` abstract operation
|
1473
1494
|
// https://tc39.es/ecma262/#sec-samevalue
|
1474
|
-
// eslint-disable-next-line es/no-object-is -- safe
|
1495
|
+
// eslint-disable-next-line es-x/no-object-is -- safe
|
1475
1496
|
var sameValue = Object.is || function is(x, y) {
|
1476
1497
|
// eslint-disable-next-line no-self-compare -- NaN check
|
1477
1498
|
return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;
|
@@ -1520,9 +1541,9 @@
|
|
1520
1541
|
];
|
1521
1542
|
});
|
1522
1543
|
|
1523
|
-
// eslint-disable-next-line es/no-object-assign -- safe
|
1544
|
+
// eslint-disable-next-line es-x/no-object-assign -- safe
|
1524
1545
|
var $assign = Object.assign;
|
1525
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
1546
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
1526
1547
|
var defineProperty = Object.defineProperty;
|
1527
1548
|
var concat = functionUncurryThis([].concat);
|
1528
1549
|
|
@@ -1542,7 +1563,7 @@
|
|
1542
1563
|
// should work with symbols and should have deterministic property order (V8 bug)
|
1543
1564
|
var A = {};
|
1544
1565
|
var B = {};
|
1545
|
-
// eslint-disable-next-line es/no-symbol -- safe
|
1566
|
+
// eslint-disable-next-line es-x/no-symbol -- safe
|
1546
1567
|
var symbol = Symbol();
|
1547
1568
|
var alphabet = 'abcdefghijklmnopqrst';
|
1548
1569
|
A[symbol] = 7;
|
@@ -1569,8 +1590,8 @@
|
|
1569
1590
|
|
1570
1591
|
// `Object.assign` method
|
1571
1592
|
// https://tc39.es/ecma262/#sec-object.assign
|
1572
|
-
// eslint-disable-next-line es/no-object-assign -- required for testing
|
1573
|
-
_export({ target: 'Object', stat: true, forced: Object.assign !== objectAssign }, {
|
1593
|
+
// eslint-disable-next-line es-x/no-object-assign -- required for testing
|
1594
|
+
_export({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== objectAssign }, {
|
1574
1595
|
assign: objectAssign
|
1575
1596
|
});
|
1576
1597
|
|
@@ -1607,7 +1628,7 @@
|
|
1607
1628
|
|
1608
1629
|
// `IsArray` abstract operation
|
1609
1630
|
// https://tc39.es/ecma262/#sec-isarray
|
1610
|
-
// eslint-disable-next-line es/no-array-isarray -- safe
|
1631
|
+
// eslint-disable-next-line es-x/no-array-isarray -- safe
|
1611
1632
|
var isArray = Array.isArray || function isArray(argument) {
|
1612
1633
|
return classofRaw(argument) == 'Array';
|
1613
1634
|
};
|
@@ -1795,7 +1816,7 @@
|
|
1795
1816
|
// `Object.prototype.toString` method
|
1796
1817
|
// https://tc39.es/ecma262/#sec-object.prototype.tostring
|
1797
1818
|
if (!toStringTagSupport) {
|
1798
|
-
|
1819
|
+
defineBuiltIn(Object.prototype, 'toString', objectToString, { unsafe: true });
|
1799
1820
|
}
|
1800
1821
|
|
1801
1822
|
var createProperty = function (object, key, value) {
|
@@ -1847,7 +1868,7 @@
|
|
1847
1868
|
// `Array.prototype.concat` method
|
1848
1869
|
// https://tc39.es/ecma262/#sec-array.prototype.concat
|
1849
1870
|
// with adding support of @@isConcatSpreadable and @@species
|
1850
|
-
_export({ target: 'Array', proto: true, forced: FORCED }, {
|
1871
|
+
_export({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
|
1851
1872
|
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
1852
1873
|
concat: function concat(arg) {
|
1853
1874
|
var O = toObject(this);
|
@@ -1927,7 +1948,7 @@
|
|
1927
1948
|
}
|
1928
1949
|
});
|
1929
1950
|
|
1930
|
-
/* eslint-disable es/no-array-prototype-indexof -- required for testing */
|
1951
|
+
/* eslint-disable es-x/no-array-prototype-indexof -- required for testing */
|
1931
1952
|
|
1932
1953
|
|
1933
1954
|
var $IndexOf = arrayIncludes.indexOf;
|
@@ -1953,9 +1974,15 @@
|
|
1953
1974
|
var $includes = arrayIncludes.includes;
|
1954
1975
|
|
1955
1976
|
|
1977
|
+
|
1978
|
+
// FF99+ bug
|
1979
|
+
var BROKEN_ON_SPARSE = fails(function () {
|
1980
|
+
return !Array(1).includes();
|
1981
|
+
});
|
1982
|
+
|
1956
1983
|
// `Array.prototype.includes` method
|
1957
1984
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
1958
|
-
_export({ target: 'Array', proto: true }, {
|
1985
|
+
_export({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
|
1959
1986
|
includes: function includes(el /* , fromIndex = 0 */) {
|
1960
1987
|
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
|
1961
1988
|
}
|