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
@@ -30,7 +30,7 @@
|
|
30
30
|
|
31
31
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
32
32
|
var global_1 =
|
33
|
-
// eslint-disable-next-line es/no-global-this -- safe
|
33
|
+
// eslint-disable-next-line es-x/no-global-this -- safe
|
34
34
|
check(typeof globalThis == 'object' && globalThis) ||
|
35
35
|
check(typeof window == 'object' && window) ||
|
36
36
|
// eslint-disable-next-line no-restricted-globals -- safe
|
@@ -49,11 +49,12 @@
|
|
49
49
|
|
50
50
|
// Detect IE8's incomplete defineProperty implementation
|
51
51
|
var descriptors = !fails(function () {
|
52
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
52
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
53
53
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
54
54
|
});
|
55
55
|
|
56
56
|
var functionBindNative = !fails(function () {
|
57
|
+
// eslint-disable-next-line es-x/no-function-prototype-bind -- safe
|
57
58
|
var test = (function () { /* empty */ }).bind();
|
58
59
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
59
60
|
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
@@ -66,7 +67,7 @@
|
|
66
67
|
};
|
67
68
|
|
68
69
|
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
69
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
70
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
70
71
|
var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
71
72
|
|
72
73
|
// Nashorn ~ JDK8 bug
|
@@ -188,11 +189,11 @@
|
|
188
189
|
|
189
190
|
var engineV8Version = version;
|
190
191
|
|
191
|
-
/* eslint-disable es/no-symbol -- required for testing */
|
192
|
+
/* eslint-disable es-x/no-symbol -- required for testing */
|
192
193
|
|
193
194
|
|
194
195
|
|
195
|
-
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
196
|
+
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
|
196
197
|
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
|
197
198
|
var symbol = Symbol();
|
198
199
|
// Chrome 38 Symbol has incorrect toString conversion
|
@@ -202,7 +203,7 @@
|
|
202
203
|
!Symbol.sham && engineV8Version && engineV8Version < 41;
|
203
204
|
});
|
204
205
|
|
205
|
-
/* eslint-disable es/no-symbol -- required for testing */
|
206
|
+
/* eslint-disable es-x/no-symbol -- required for testing */
|
206
207
|
|
207
208
|
|
208
209
|
var useSymbolAsUid = nativeSymbol
|
@@ -255,7 +256,7 @@
|
|
255
256
|
throw TypeError$8("Can't convert object to primitive value");
|
256
257
|
};
|
257
258
|
|
258
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
259
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
259
260
|
var defineProperty = Object.defineProperty;
|
260
261
|
|
261
262
|
var setGlobal = function (key, value) {
|
@@ -275,10 +276,10 @@
|
|
275
276
|
(module.exports = function (key, value) {
|
276
277
|
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
|
277
278
|
})('versions', []).push({
|
278
|
-
version: '3.
|
279
|
+
version: '3.22.4',
|
279
280
|
mode: 'global',
|
280
281
|
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
281
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
282
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.22.4/LICENSE',
|
282
283
|
source: 'https://github.com/zloirock/core-js'
|
283
284
|
});
|
284
285
|
});
|
@@ -295,6 +296,7 @@
|
|
295
296
|
|
296
297
|
// `HasOwnProperty` abstract operation
|
297
298
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
299
|
+
// eslint-disable-next-line es-x/no-object-hasown -- safe
|
298
300
|
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
299
301
|
return hasOwnProperty(toObject(it), key);
|
300
302
|
};
|
@@ -361,13 +363,13 @@
|
|
361
363
|
|
362
364
|
// Thanks to IE8 for its funny defineProperty
|
363
365
|
var ie8DomDefine = !descriptors && !fails(function () {
|
364
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
366
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
365
367
|
return Object.defineProperty(documentCreateElement('div'), 'a', {
|
366
368
|
get: function () { return 7; }
|
367
369
|
}).a != 7;
|
368
370
|
});
|
369
371
|
|
370
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
372
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
371
373
|
var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
372
374
|
|
373
375
|
// `Object.getOwnPropertyDescriptor` method
|
@@ -388,7 +390,7 @@
|
|
388
390
|
// V8 ~ Chrome 36-
|
389
391
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
390
392
|
var v8PrototypeDefineBug = descriptors && fails(function () {
|
391
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
393
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
392
394
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
393
395
|
value: 42,
|
394
396
|
writable: false
|
@@ -405,9 +407,9 @@
|
|
405
407
|
};
|
406
408
|
|
407
409
|
var TypeError$5 = global_1.TypeError;
|
408
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
410
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
409
411
|
var $defineProperty = Object.defineProperty;
|
410
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
412
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
411
413
|
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
412
414
|
var ENUMERABLE = 'enumerable';
|
413
415
|
var CONFIGURABLE$1 = 'configurable';
|
@@ -453,6 +455,21 @@
|
|
453
455
|
return object;
|
454
456
|
};
|
455
457
|
|
458
|
+
var FunctionPrototype$1 = Function.prototype;
|
459
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
460
|
+
var getDescriptor = descriptors && Object.getOwnPropertyDescriptor;
|
461
|
+
|
462
|
+
var EXISTS = hasOwnProperty_1(FunctionPrototype$1, 'name');
|
463
|
+
// additional protection from minified / mangled / dropped function names
|
464
|
+
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
465
|
+
var CONFIGURABLE = EXISTS && (!descriptors || (descriptors && getDescriptor(FunctionPrototype$1, 'name').configurable));
|
466
|
+
|
467
|
+
var functionName = {
|
468
|
+
EXISTS: EXISTS,
|
469
|
+
PROPER: PROPER,
|
470
|
+
CONFIGURABLE: CONFIGURABLE
|
471
|
+
};
|
472
|
+
|
456
473
|
var functionToString = functionUncurryThis(Function.toString);
|
457
474
|
|
458
475
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
@@ -536,50 +553,56 @@
|
|
536
553
|
getterFor: getterFor
|
537
554
|
};
|
538
555
|
|
539
|
-
var
|
540
|
-
|
541
|
-
var
|
556
|
+
var makeBuiltIn_1 = createCommonjsModule(function (module) {
|
557
|
+
var defineProperty = objectDefineProperty.f;
|
558
|
+
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
542
559
|
|
543
|
-
var EXISTS = hasOwnProperty_1(FunctionPrototype$1, 'name');
|
544
|
-
// additional protection from minified / mangled / dropped function names
|
545
|
-
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
546
|
-
var CONFIGURABLE = EXISTS && (!descriptors || (descriptors && getDescriptor(FunctionPrototype$1, 'name').configurable));
|
547
560
|
|
548
|
-
var functionName = {
|
549
|
-
EXISTS: EXISTS,
|
550
|
-
PROPER: PROPER,
|
551
|
-
CONFIGURABLE: CONFIGURABLE
|
552
|
-
};
|
553
|
-
|
554
|
-
var redefine = createCommonjsModule(function (module) {
|
555
|
-
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
556
561
|
|
557
|
-
var getInternalState = internalState.get;
|
558
562
|
var enforceInternalState = internalState.enforce;
|
563
|
+
var getInternalState = internalState.get;
|
564
|
+
|
565
|
+
var CONFIGURABLE_LENGTH = !fails(function () {
|
566
|
+
return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
567
|
+
});
|
568
|
+
|
559
569
|
var TEMPLATE = String(String).split('String');
|
560
570
|
|
561
|
-
|
571
|
+
var makeBuiltIn = module.exports = function (value, name, options) {
|
572
|
+
if (String(name).slice(0, 7) === 'Symbol(') {
|
573
|
+
name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
|
574
|
+
}
|
575
|
+
if (options && options.getter) name = 'get ' + name;
|
576
|
+
if (options && options.setter) name = 'set ' + name;
|
577
|
+
if (!hasOwnProperty_1(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
|
578
|
+
defineProperty(value, 'name', { value: name, configurable: true });
|
579
|
+
}
|
580
|
+
if (CONFIGURABLE_LENGTH && options && hasOwnProperty_1(options, 'arity') && value.length !== options.arity) {
|
581
|
+
defineProperty(value, 'length', { value: options.arity });
|
582
|
+
}
|
583
|
+
var state = enforceInternalState(value);
|
584
|
+
if (!hasOwnProperty_1(state, 'source')) {
|
585
|
+
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
586
|
+
} return value;
|
587
|
+
};
|
588
|
+
|
589
|
+
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
590
|
+
// eslint-disable-next-line no-extend-native -- required
|
591
|
+
Function.prototype.toString = makeBuiltIn(function toString() {
|
592
|
+
return isCallable(this) && getInternalState(this).source || inspectSource(this);
|
593
|
+
}, 'toString');
|
594
|
+
});
|
595
|
+
|
596
|
+
var defineBuiltIn = function (O, key, value, options) {
|
562
597
|
var unsafe = options ? !!options.unsafe : false;
|
563
598
|
var simple = options ? !!options.enumerable : false;
|
564
599
|
var noTargetGet = options ? !!options.noTargetGet : false;
|
565
600
|
var name = options && options.name !== undefined ? options.name : key;
|
566
|
-
|
567
|
-
if (isCallable(value)) {
|
568
|
-
if (String(name).slice(0, 7) === 'Symbol(') {
|
569
|
-
name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
|
570
|
-
}
|
571
|
-
if (!hasOwnProperty_1(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
|
572
|
-
createNonEnumerableProperty(value, 'name', name);
|
573
|
-
}
|
574
|
-
state = enforceInternalState(value);
|
575
|
-
if (!state.source) {
|
576
|
-
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
577
|
-
}
|
578
|
-
}
|
601
|
+
if (isCallable(value)) makeBuiltIn_1(value, name, options);
|
579
602
|
if (O === global_1) {
|
580
603
|
if (simple) O[key] = value;
|
581
604
|
else setGlobal(key, value);
|
582
|
-
return;
|
605
|
+
return O;
|
583
606
|
} else if (!unsafe) {
|
584
607
|
delete O[key];
|
585
608
|
} else if (!noTargetGet && O[key]) {
|
@@ -587,11 +610,8 @@
|
|
587
610
|
}
|
588
611
|
if (simple) O[key] = value;
|
589
612
|
else createNonEnumerableProperty(O, key, value);
|
590
|
-
|
591
|
-
}
|
592
|
-
return isCallable(this) && getInternalState(this).source || inspectSource(this);
|
593
|
-
});
|
594
|
-
});
|
613
|
+
return O;
|
614
|
+
};
|
595
615
|
|
596
616
|
var ceil = Math.ceil;
|
597
617
|
var floor$2 = Math.floor;
|
@@ -691,7 +711,7 @@
|
|
691
711
|
|
692
712
|
// `Object.getOwnPropertyNames` method
|
693
713
|
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
694
|
-
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
714
|
+
// eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
|
695
715
|
var f$2 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
696
716
|
return objectKeysInternal(O, hiddenKeys);
|
697
717
|
};
|
@@ -700,7 +720,7 @@
|
|
700
720
|
f: f$2
|
701
721
|
};
|
702
722
|
|
703
|
-
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
723
|
+
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
|
704
724
|
var f$1 = Object.getOwnPropertySymbols;
|
705
725
|
|
706
726
|
var objectGetOwnPropertySymbols = {
|
@@ -798,8 +818,7 @@
|
|
798
818
|
if (options.sham || (targetProperty && targetProperty.sham)) {
|
799
819
|
createNonEnumerableProperty(sourceProperty, 'sham', true);
|
800
820
|
}
|
801
|
-
|
802
|
-
redefine(target, key, sourceProperty, options);
|
821
|
+
defineBuiltIn(target, key, sourceProperty, options);
|
803
822
|
}
|
804
823
|
};
|
805
824
|
|
@@ -815,7 +834,7 @@
|
|
815
834
|
|
816
835
|
// `IsArray` abstract operation
|
817
836
|
// https://tc39.es/ecma262/#sec-isarray
|
818
|
-
// eslint-disable-next-line es/no-array-isarray -- safe
|
837
|
+
// eslint-disable-next-line es-x/no-array-isarray -- safe
|
819
838
|
var isArray = Array.isArray || function isArray(argument) {
|
820
839
|
return classofRaw(argument) == 'Array';
|
821
840
|
};
|
@@ -991,14 +1010,14 @@
|
|
991
1010
|
|
992
1011
|
// `Object.keys` method
|
993
1012
|
// https://tc39.es/ecma262/#sec-object.keys
|
994
|
-
// eslint-disable-next-line es/no-object-keys -- safe
|
1013
|
+
// eslint-disable-next-line es-x/no-object-keys -- safe
|
995
1014
|
var objectKeys = Object.keys || function keys(O) {
|
996
1015
|
return objectKeysInternal(O, enumBugKeys);
|
997
1016
|
};
|
998
1017
|
|
999
1018
|
// `Object.defineProperties` method
|
1000
1019
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
1001
|
-
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
1020
|
+
// eslint-disable-next-line es-x/no-object-defineproperties -- safe
|
1002
1021
|
var f = descriptors && !v8PrototypeDefineBug ? Object.defineProperties : function defineProperties(O, Properties) {
|
1003
1022
|
anObject(O);
|
1004
1023
|
var props = toIndexedObject(Properties);
|
@@ -1087,6 +1106,7 @@
|
|
1087
1106
|
|
1088
1107
|
// `Object.create` method
|
1089
1108
|
// https://tc39.es/ecma262/#sec-object.create
|
1109
|
+
// eslint-disable-next-line es-x/no-object-create -- safe
|
1090
1110
|
var objectCreate = Object.create || function create(O, Properties) {
|
1091
1111
|
var result;
|
1092
1112
|
if (O !== null) {
|
@@ -1145,7 +1165,7 @@
|
|
1145
1165
|
// `Object.prototype.toString` method
|
1146
1166
|
// https://tc39.es/ecma262/#sec-object.prototype.tostring
|
1147
1167
|
if (!toStringTagSupport) {
|
1148
|
-
|
1168
|
+
defineBuiltIn(Object.prototype, 'toString', objectToString, { unsafe: true });
|
1149
1169
|
}
|
1150
1170
|
|
1151
1171
|
var String$1 = global_1.String;
|
@@ -1218,6 +1238,7 @@
|
|
1218
1238
|
var regexpFlags = function () {
|
1219
1239
|
var that = anObject(this);
|
1220
1240
|
var result = '';
|
1241
|
+
if (that.hasIndices) result += 'd';
|
1221
1242
|
if (that.global) result += 'g';
|
1222
1243
|
if (that.ignoreCase) result += 'i';
|
1223
1244
|
if (that.multiline) result += 'm';
|
@@ -1227,8 +1248,15 @@
|
|
1227
1248
|
return result;
|
1228
1249
|
};
|
1229
1250
|
|
1230
|
-
var
|
1251
|
+
var RegExpPrototype$2 = RegExp.prototype;
|
1252
|
+
|
1253
|
+
var regexpGetFlags = function (R) {
|
1254
|
+
var flags = R.flags;
|
1255
|
+
return flags === undefined && !('flags' in RegExpPrototype$2) && !hasOwnProperty_1(R, 'flags') && objectIsPrototypeOf(RegExpPrototype$2, R)
|
1256
|
+
? functionCall(regexpFlags, R) : flags;
|
1257
|
+
};
|
1231
1258
|
|
1259
|
+
var PROPER_FUNCTION_NAME = functionName.PROPER;
|
1232
1260
|
|
1233
1261
|
|
1234
1262
|
|
@@ -1238,7 +1266,6 @@
|
|
1238
1266
|
var TO_STRING = 'toString';
|
1239
1267
|
var RegExpPrototype$1 = RegExp.prototype;
|
1240
1268
|
var n$ToString = RegExpPrototype$1[TO_STRING];
|
1241
|
-
var getFlags = functionUncurryThis(regexpFlags);
|
1242
1269
|
|
1243
1270
|
var NOT_GENERIC = fails(function () { return n$ToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
|
1244
1271
|
// FF44- RegExp#toString has a wrong name
|
@@ -1247,12 +1274,11 @@
|
|
1247
1274
|
// `RegExp.prototype.toString` method
|
1248
1275
|
// https://tc39.es/ecma262/#sec-regexp.prototype.tostring
|
1249
1276
|
if (NOT_GENERIC || INCORRECT_NAME) {
|
1250
|
-
|
1277
|
+
defineBuiltIn(RegExp.prototype, TO_STRING, function toString() {
|
1251
1278
|
var R = anObject(this);
|
1252
|
-
var
|
1253
|
-
var
|
1254
|
-
|
1255
|
-
return '/' + p + '/' + f;
|
1279
|
+
var pattern = toString_1(R.source);
|
1280
|
+
var flags = toString_1(regexpGetFlags(R));
|
1281
|
+
return '/' + pattern + '/' + flags;
|
1256
1282
|
}, { unsafe: true });
|
1257
1283
|
}
|
1258
1284
|
|
@@ -1599,7 +1625,7 @@
|
|
1599
1625
|
var apply = FunctionPrototype.apply;
|
1600
1626
|
var call = FunctionPrototype.call;
|
1601
1627
|
|
1602
|
-
// eslint-disable-next-line es/no-reflect -- safe
|
1628
|
+
// eslint-disable-next-line es-x/no-reflect -- safe
|
1603
1629
|
var functionApply = typeof Reflect == 'object' && Reflect.apply || (functionBindNative ? call.bind(apply) : function () {
|
1604
1630
|
return call.apply(apply, arguments);
|
1605
1631
|
});
|
@@ -1671,8 +1697,8 @@
|
|
1671
1697
|
return { done: false };
|
1672
1698
|
});
|
1673
1699
|
|
1674
|
-
|
1675
|
-
|
1700
|
+
defineBuiltIn(String.prototype, KEY, methods[0]);
|
1701
|
+
defineBuiltIn(RegExpPrototype, SYMBOL, methods[1]);
|
1676
1702
|
}
|
1677
1703
|
|
1678
1704
|
if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
|
@@ -1937,7 +1963,7 @@
|
|
1937
1963
|
// `Array.prototype.concat` method
|
1938
1964
|
// https://tc39.es/ecma262/#sec-array.prototype.concat
|
1939
1965
|
// with adding support of @@isConcatSpreadable and @@species
|
1940
|
-
_export({ target: 'Array', proto: true, forced: FORCED }, {
|
1966
|
+
_export({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
|
1941
1967
|
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
1942
1968
|
concat: function concat(arg) {
|
1943
1969
|
var O = toObject(this);
|
@@ -2179,9 +2205,15 @@
|
|
2179
2205
|
var $includes = arrayIncludes.includes;
|
2180
2206
|
|
2181
2207
|
|
2208
|
+
|
2209
|
+
// FF99+ bug
|
2210
|
+
var BROKEN_ON_SPARSE = fails(function () {
|
2211
|
+
return !Array(1).includes();
|
2212
|
+
});
|
2213
|
+
|
2182
2214
|
// `Array.prototype.includes` method
|
2183
2215
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
2184
|
-
_export({ target: 'Array', proto: true }, {
|
2216
|
+
_export({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
|
2185
2217
|
includes: function includes(el /* , fromIndex = 0 */) {
|
2186
2218
|
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
|
2187
2219
|
}
|
@@ -2243,7 +2275,7 @@
|
|
2243
2275
|
// https://tc39.es/ecma262/#sec-array.prototype.foreach
|
2244
2276
|
var arrayForEach = !STRICT_METHOD$2 ? function forEach(callbackfn /* , thisArg */) {
|
2245
2277
|
return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
2246
|
-
// eslint-disable-next-line es/no-array-prototype-foreach -- safe
|
2278
|
+
// eslint-disable-next-line es-x/no-array-prototype-foreach -- safe
|
2247
2279
|
} : [].forEach;
|
2248
2280
|
|
2249
2281
|
var handlePrototype = function (CollectionPrototype) {
|
@@ -2286,7 +2318,7 @@
|
|
2286
2318
|
}
|
2287
2319
|
});
|
2288
2320
|
|
2289
|
-
/* eslint-disable es/no-array-prototype-indexof -- required for testing */
|
2321
|
+
/* eslint-disable es-x/no-array-prototype-indexof -- required for testing */
|
2290
2322
|
|
2291
2323
|
|
2292
2324
|
var $IndexOf = arrayIncludes.indexOf;
|