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$7("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$1 = 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$4 = 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 = 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, '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, '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, '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, '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$1 = 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 SPECIES$1 = wellKnownSymbol('species');
|
@@ -1383,7 +1403,7 @@
|
|
1383
1403
|
// `Array.prototype.concat` method
|
1384
1404
|
// https://tc39.es/ecma262/#sec-array.prototype.concat
|
1385
1405
|
// with adding support of @@isConcatSpreadable and @@species
|
1386
|
-
_export({ target: 'Array', proto: true, forced: FORCED$1 }, {
|
1406
|
+
_export({ target: 'Array', proto: true, arity: 1, forced: FORCED$1 }, {
|
1387
1407
|
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
1388
1408
|
concat: function concat(arg) {
|
1389
1409
|
var O = toObject(this);
|
@@ -1409,9 +1429,15 @@
|
|
1409
1429
|
var $includes = arrayIncludes.includes;
|
1410
1430
|
|
1411
1431
|
|
1432
|
+
|
1433
|
+
// FF99+ bug
|
1434
|
+
var BROKEN_ON_SPARSE = fails(function () {
|
1435
|
+
return !Array(1).includes();
|
1436
|
+
});
|
1437
|
+
|
1412
1438
|
// `Array.prototype.includes` method
|
1413
1439
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
1414
|
-
_export({ target: 'Array', proto: true }, {
|
1440
|
+
_export({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
|
1415
1441
|
includes: function includes(el /* , fromIndex = 0 */) {
|
1416
1442
|
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
|
1417
1443
|
}
|
@@ -1420,9 +1446,9 @@
|
|
1420
1446
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
1421
1447
|
addToUnscopables('includes');
|
1422
1448
|
|
1423
|
-
// eslint-disable-next-line es/no-object-assign -- safe
|
1449
|
+
// eslint-disable-next-line es-x/no-object-assign -- safe
|
1424
1450
|
var $assign = Object.assign;
|
1425
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
1451
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
1426
1452
|
var defineProperty = Object.defineProperty;
|
1427
1453
|
var concat = functionUncurryThis([].concat);
|
1428
1454
|
|
@@ -1442,7 +1468,7 @@
|
|
1442
1468
|
// should work with symbols and should have deterministic property order (V8 bug)
|
1443
1469
|
var A = {};
|
1444
1470
|
var B = {};
|
1445
|
-
// eslint-disable-next-line es/no-symbol -- safe
|
1471
|
+
// eslint-disable-next-line es-x/no-symbol -- safe
|
1446
1472
|
var symbol = Symbol();
|
1447
1473
|
var alphabet = 'abcdefghijklmnopqrst';
|
1448
1474
|
A[symbol] = 7;
|
@@ -1469,8 +1495,8 @@
|
|
1469
1495
|
|
1470
1496
|
// `Object.assign` method
|
1471
1497
|
// https://tc39.es/ecma262/#sec-object.assign
|
1472
|
-
// eslint-disable-next-line es/no-object-assign -- required for testing
|
1473
|
-
_export({ target: 'Object', stat: true, forced: Object.assign !== objectAssign }, {
|
1498
|
+
// eslint-disable-next-line es-x/no-object-assign -- required for testing
|
1499
|
+
_export({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== objectAssign }, {
|
1474
1500
|
assign: objectAssign
|
1475
1501
|
});
|
1476
1502
|
|
@@ -1573,7 +1599,7 @@
|
|
1573
1599
|
}
|
1574
1600
|
});
|
1575
1601
|
|
1576
|
-
/* eslint-disable es/no-array-prototype-indexof -- required for testing */
|
1602
|
+
/* eslint-disable es-x/no-array-prototype-indexof -- required for testing */
|
1577
1603
|
|
1578
1604
|
|
1579
1605
|
var $IndexOf = arrayIncludes.indexOf;
|
@@ -1657,6 +1683,7 @@
|
|
1657
1683
|
var regexpFlags = function () {
|
1658
1684
|
var that = anObject(this);
|
1659
1685
|
var result = '';
|
1686
|
+
if (that.hasIndices) result += 'd';
|
1660
1687
|
if (that.global) result += 'g';
|
1661
1688
|
if (that.ignoreCase) result += 'i';
|
1662
1689
|
if (that.multiline) result += 'm';
|
@@ -1666,8 +1693,15 @@
|
|
1666
1693
|
return result;
|
1667
1694
|
};
|
1668
1695
|
|
1669
|
-
var
|
1696
|
+
var RegExpPrototype$1 = RegExp.prototype;
|
1670
1697
|
|
1698
|
+
var regexpGetFlags = function (R) {
|
1699
|
+
var flags = R.flags;
|
1700
|
+
return flags === undefined && !('flags' in RegExpPrototype$1) && !hasOwnProperty_1(R, 'flags') && objectIsPrototypeOf(RegExpPrototype$1, R)
|
1701
|
+
? functionCall(regexpFlags, R) : flags;
|
1702
|
+
};
|
1703
|
+
|
1704
|
+
var PROPER_FUNCTION_NAME = functionName.PROPER;
|
1671
1705
|
|
1672
1706
|
|
1673
1707
|
|
@@ -1677,7 +1711,6 @@
|
|
1677
1711
|
var TO_STRING = 'toString';
|
1678
1712
|
var RegExpPrototype = RegExp.prototype;
|
1679
1713
|
var n$ToString = RegExpPrototype[TO_STRING];
|
1680
|
-
var getFlags = functionUncurryThis(regexpFlags);
|
1681
1714
|
|
1682
1715
|
var NOT_GENERIC = fails(function () { return n$ToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
|
1683
1716
|
// FF44- RegExp#toString has a wrong name
|
@@ -1686,12 +1719,11 @@
|
|
1686
1719
|
// `RegExp.prototype.toString` method
|
1687
1720
|
// https://tc39.es/ecma262/#sec-regexp.prototype.tostring
|
1688
1721
|
if (NOT_GENERIC || INCORRECT_NAME) {
|
1689
|
-
|
1722
|
+
defineBuiltIn(RegExp.prototype, TO_STRING, function toString() {
|
1690
1723
|
var R = anObject(this);
|
1691
|
-
var
|
1692
|
-
var
|
1693
|
-
|
1694
|
-
return '/' + p + '/' + f;
|
1724
|
+
var pattern = toString_1(R.source);
|
1725
|
+
var flags = toString_1(regexpGetFlags(R));
|
1726
|
+
return '/' + pattern + '/' + flags;
|
1695
1727
|
}, { unsafe: true });
|
1696
1728
|
}
|
1697
1729
|
|