collect-your-stuff 1.1.5 → 1.1.6
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/LICENSE +0 -0
- package/README.md +0 -0
- package/browser/collect-your-stuff.js +38 -91
- package/browser/collect-your-stuff.min.js +1 -1
- package/package.json +2 -2
package/LICENSE
CHANGED
|
File without changes
|
package/README.md
CHANGED
|
File without changes
|
|
@@ -4731,7 +4731,7 @@
|
|
|
4731
4731
|
} else if (STATIC) {
|
|
4732
4732
|
target = global[TARGET] || defineGlobalProperty(TARGET, {})
|
|
4733
4733
|
} else {
|
|
4734
|
-
target =
|
|
4734
|
+
target = global[TARGET] && global[TARGET].prototype
|
|
4735
4735
|
}
|
|
4736
4736
|
if (target) {
|
|
4737
4737
|
for (key in source) {
|
|
@@ -4769,7 +4769,7 @@
|
|
|
4769
4769
|
'use strict'
|
|
4770
4770
|
// TODO: Remove from `core-js@4` since it's moved to entry points
|
|
4771
4771
|
require('../modules/es.regexp.exec')
|
|
4772
|
-
var
|
|
4772
|
+
var call = require('../internals/function-call')
|
|
4773
4773
|
var defineBuiltIn = require('../internals/define-built-in')
|
|
4774
4774
|
var regexpExec = require('../internals/regexp-exec')
|
|
4775
4775
|
var fails = require('../internals/fails')
|
|
@@ -4783,7 +4783,7 @@
|
|
|
4783
4783
|
var SYMBOL = wellKnownSymbol(KEY)
|
|
4784
4784
|
|
|
4785
4785
|
var DELEGATES_TO_SYMBOL = !fails(function () {
|
|
4786
|
-
// String methods call symbol-named
|
|
4786
|
+
// String methods call symbol-named RegExp methods
|
|
4787
4787
|
var O = {}
|
|
4788
4788
|
O[SYMBOL] = function () { return 7 }
|
|
4789
4789
|
return ''[KEY](O) !== 7
|
|
@@ -4821,18 +4821,17 @@
|
|
|
4821
4821
|
!DELEGATES_TO_EXEC ||
|
|
4822
4822
|
FORCED
|
|
4823
4823
|
) {
|
|
4824
|
-
var
|
|
4824
|
+
var nativeRegExpMethod = /./[SYMBOL]
|
|
4825
4825
|
var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
|
|
4826
|
-
var uncurriedNativeMethod = uncurryThis(nativeMethod)
|
|
4827
4826
|
var $exec = regexp.exec
|
|
4828
4827
|
if ($exec === regexpExec || $exec === RegExpPrototype.exec) {
|
|
4829
4828
|
if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
|
|
4830
4829
|
// The native String method already delegates to @@method (this
|
|
4831
4830
|
// polyfilled function), leasing to infinite recursion.
|
|
4832
4831
|
// We avoid it by directly calling the native @@method method.
|
|
4833
|
-
return { done: true, value:
|
|
4832
|
+
return { done: true, value: call(nativeRegExpMethod, regexp, str, arg2) }
|
|
4834
4833
|
}
|
|
4835
|
-
return { done: true, value:
|
|
4834
|
+
return { done: true, value: call(nativeMethod, str, regexp, arg2) }
|
|
4836
4835
|
}
|
|
4837
4836
|
return { done: false }
|
|
4838
4837
|
})
|
|
@@ -4843,7 +4842,7 @@
|
|
|
4843
4842
|
|
|
4844
4843
|
if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true)
|
|
4845
4844
|
}
|
|
4846
|
-
}, { '../internals/create-non-enumerable-property': 70, '../internals/define-built-in': 76, '../internals/fails': 105, '../internals/function-
|
|
4845
|
+
}, { '../internals/create-non-enumerable-property': 70, '../internals/define-built-in': 76, '../internals/fails': 105, '../internals/function-call': 113, '../internals/regexp-exec': 208, '../internals/well-known-symbol': 271, '../modules/es.regexp.exec': 429 }],
|
|
4847
4846
|
107: [function (require, module, exports) {
|
|
4848
4847
|
'use strict'
|
|
4849
4848
|
var isArray = require('../internals/is-array')
|
|
@@ -5663,7 +5662,6 @@
|
|
|
5663
5662
|
var inspectSource = require('../internals/inspect-source')
|
|
5664
5663
|
|
|
5665
5664
|
var noop = function () { /* empty */ }
|
|
5666
|
-
var empty = []
|
|
5667
5665
|
var construct = getBuiltIn('Reflect', 'construct')
|
|
5668
5666
|
var constructorRegExp = /^\s*(?:class|function)\b/
|
|
5669
5667
|
var exec = uncurryThis(constructorRegExp.exec)
|
|
@@ -5672,7 +5670,7 @@
|
|
|
5672
5670
|
var isConstructorModern = function isConstructor (argument) {
|
|
5673
5671
|
if (!isCallable(argument)) return false
|
|
5674
5672
|
try {
|
|
5675
|
-
construct(noop,
|
|
5673
|
+
construct(noop, [], argument)
|
|
5676
5674
|
return true
|
|
5677
5675
|
} catch (error) {
|
|
5678
5676
|
return false
|
|
@@ -6246,7 +6244,7 @@
|
|
|
6246
6244
|
|
|
6247
6245
|
var makeBuiltIn = module.exports = function (value, name, options) {
|
|
6248
6246
|
if (stringSlice($String(name), 0, 7) === 'Symbol(') {
|
|
6249
|
-
name = '[' + replace($String(name), /^Symbol\(([^)]*)\)
|
|
6247
|
+
name = '[' + replace($String(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']'
|
|
6250
6248
|
}
|
|
6251
6249
|
if (options && options.getter) name = 'get ' + name
|
|
6252
6250
|
if (options && options.setter) name = 'set ' + name
|
|
@@ -7661,10 +7659,10 @@
|
|
|
7661
7659
|
(module.exports = function (key, value) {
|
|
7662
7660
|
return store[key] || (store[key] = value !== undefined ? value : {})
|
|
7663
7661
|
})('versions', []).push({
|
|
7664
|
-
version: '3.35.
|
|
7662
|
+
version: '3.35.1',
|
|
7665
7663
|
mode: IS_PURE ? 'pure' : 'global',
|
|
7666
|
-
copyright: '© 2014-
|
|
7667
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.35.
|
|
7664
|
+
copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
|
|
7665
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.35.1/LICENSE',
|
|
7668
7666
|
source: 'https://github.com/zloirock/core-js'
|
|
7669
7667
|
})
|
|
7670
7668
|
}, { '../internals/is-pure': 150, '../internals/shared-store': 223 }],
|
|
@@ -8337,7 +8335,8 @@
|
|
|
8337
8335
|
// `ToLength` abstract operation
|
|
8338
8336
|
// https://tc39.es/ecma262/#sec-tolength
|
|
8339
8337
|
module.exports = function (argument) {
|
|
8340
|
-
|
|
8338
|
+
var len = toIntegerOrInfinity(argument)
|
|
8339
|
+
return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0 // 2 ** 53 - 1 == 9007199254740991
|
|
8341
8340
|
}
|
|
8342
8341
|
}, { '../internals/to-integer-or-infinity': 246 }],
|
|
8343
8342
|
248: [function (require, module, exports) {
|
|
@@ -13951,12 +13950,6 @@
|
|
|
13951
13950
|
var stringSlice = uncurryThis(''.slice)
|
|
13952
13951
|
var max = Math.max
|
|
13953
13952
|
|
|
13954
|
-
var stringIndexOf = function (string, searchValue, fromIndex) {
|
|
13955
|
-
if (fromIndex > string.length) return -1
|
|
13956
|
-
if (searchValue === '') return fromIndex
|
|
13957
|
-
return indexOf(string, searchValue, fromIndex)
|
|
13958
|
-
}
|
|
13959
|
-
|
|
13960
13953
|
// `String.prototype.replaceAll` method
|
|
13961
13954
|
// https://tc39.es/ecma262/#sec-string.prototype.replaceall
|
|
13962
13955
|
$({ target: 'String', proto: true }, {
|
|
@@ -13985,14 +13978,14 @@
|
|
|
13985
13978
|
if (!functionalReplace) replaceValue = toString(replaceValue)
|
|
13986
13979
|
searchLength = searchString.length
|
|
13987
13980
|
advanceBy = max(1, searchLength)
|
|
13988
|
-
position =
|
|
13981
|
+
position = indexOf(string, searchString)
|
|
13989
13982
|
while (position !== -1) {
|
|
13990
13983
|
replacement = functionalReplace
|
|
13991
13984
|
? toString(replaceValue(searchString, position, string))
|
|
13992
13985
|
: getSubstitution(searchString, string, position, [], undefined, replaceValue)
|
|
13993
13986
|
result += stringSlice(string, endOfLastMatch, position) + replacement
|
|
13994
13987
|
endOfLastMatch = position + searchLength
|
|
13995
|
-
position =
|
|
13988
|
+
position = position + advanceBy > string.length ? -1 : indexOf(string, searchString, position + advanceBy)
|
|
13996
13989
|
}
|
|
13997
13990
|
if (endOfLastMatch < string.length) {
|
|
13998
13991
|
result += stringSlice(string, endOfLastMatch)
|
|
@@ -14201,31 +14194,25 @@
|
|
|
14201
14194
|
}, { '../internals/create-html': 68, '../internals/export': 104, '../internals/string-html-forced': 226 }],
|
|
14202
14195
|
462: [function (require, module, exports) {
|
|
14203
14196
|
'use strict'
|
|
14204
|
-
var apply = require('../internals/function-apply')
|
|
14205
14197
|
var call = require('../internals/function-call')
|
|
14206
14198
|
var uncurryThis = require('../internals/function-uncurry-this')
|
|
14207
14199
|
var fixRegExpWellKnownSymbolLogic = require('../internals/fix-regexp-well-known-symbol-logic')
|
|
14208
14200
|
var anObject = require('../internals/an-object')
|
|
14209
14201
|
var isNullOrUndefined = require('../internals/is-null-or-undefined')
|
|
14210
|
-
var isRegExp = require('../internals/is-regexp')
|
|
14211
14202
|
var requireObjectCoercible = require('../internals/require-object-coercible')
|
|
14212
14203
|
var speciesConstructor = require('../internals/species-constructor')
|
|
14213
14204
|
var advanceStringIndex = require('../internals/advance-string-index')
|
|
14214
14205
|
var toLength = require('../internals/to-length')
|
|
14215
14206
|
var toString = require('../internals/to-string')
|
|
14216
14207
|
var getMethod = require('../internals/get-method')
|
|
14217
|
-
var
|
|
14218
|
-
var callRegExpExec = require('../internals/regexp-exec-abstract')
|
|
14219
|
-
var regexpExec = require('../internals/regexp-exec')
|
|
14208
|
+
var regExpExec = require('../internals/regexp-exec-abstract')
|
|
14220
14209
|
var stickyHelpers = require('../internals/regexp-sticky-helpers')
|
|
14221
14210
|
var fails = require('../internals/fails')
|
|
14222
14211
|
|
|
14223
14212
|
var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y
|
|
14224
14213
|
var MAX_UINT32 = 0xFFFFFFFF
|
|
14225
14214
|
var min = Math.min
|
|
14226
|
-
var
|
|
14227
|
-
var exec = uncurryThis(/./.exec)
|
|
14228
|
-
var push = uncurryThis($push)
|
|
14215
|
+
var push = uncurryThis([].push)
|
|
14229
14216
|
var stringSlice = uncurryThis(''.slice)
|
|
14230
14217
|
|
|
14231
14218
|
// Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
|
|
@@ -14239,60 +14226,20 @@
|
|
|
14239
14226
|
return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b'
|
|
14240
14227
|
})
|
|
14241
14228
|
|
|
14229
|
+
var BUGGY = 'abbc'.split(/(b)*/)[1] === 'c' ||
|
|
14230
|
+
// eslint-disable-next-line regexp/no-empty-group -- required for testing
|
|
14231
|
+
'test'.split(/(?:)/, -1).length !== 4 ||
|
|
14232
|
+
'ab'.split(/(?:ab)*/).length !== 2 ||
|
|
14233
|
+
'.'.split(/(.?)(.?)/).length !== 4 ||
|
|
14234
|
+
// eslint-disable-next-line regexp/no-empty-capturing-group, regexp/no-empty-group -- required for testing
|
|
14235
|
+
'.'.split(/()()/).length > 1 ||
|
|
14236
|
+
''.split(/.?/).length
|
|
14237
|
+
|
|
14242
14238
|
// @@split logic
|
|
14243
14239
|
fixRegExpWellKnownSymbolLogic('split', function (SPLIT, nativeSplit, maybeCallNative) {
|
|
14244
|
-
var internalSplit
|
|
14245
|
-
|
|
14246
|
-
|
|
14247
|
-
// eslint-disable-next-line regexp/no-empty-group -- required for testing
|
|
14248
|
-
'test'.split(/(?:)/, -1).length !== 4 ||
|
|
14249
|
-
'ab'.split(/(?:ab)*/).length !== 2 ||
|
|
14250
|
-
'.'.split(/(.?)(.?)/).length !== 4 ||
|
|
14251
|
-
// eslint-disable-next-line regexp/no-empty-capturing-group, regexp/no-empty-group -- required for testing
|
|
14252
|
-
'.'.split(/()()/).length > 1 ||
|
|
14253
|
-
''.split(/.?/).length
|
|
14254
|
-
) {
|
|
14255
|
-
// based on es5-shim implementation, need to rework it
|
|
14256
|
-
internalSplit = function (separator, limit) {
|
|
14257
|
-
var string = toString(requireObjectCoercible(this))
|
|
14258
|
-
var lim = limit === undefined ? MAX_UINT32 : limit >>> 0
|
|
14259
|
-
if (lim === 0) return []
|
|
14260
|
-
if (separator === undefined) return [string]
|
|
14261
|
-
// If `separator` is not a regex, use native split
|
|
14262
|
-
if (!isRegExp(separator)) {
|
|
14263
|
-
return call(nativeSplit, string, separator, lim)
|
|
14264
|
-
}
|
|
14265
|
-
var output = []
|
|
14266
|
-
var flags = (separator.ignoreCase ? 'i' : '') +
|
|
14267
|
-
(separator.multiline ? 'm' : '') +
|
|
14268
|
-
(separator.unicode ? 'u' : '') +
|
|
14269
|
-
(separator.sticky ? 'y' : '')
|
|
14270
|
-
var lastLastIndex = 0
|
|
14271
|
-
// Make `global` and avoid `lastIndex` issues by working with a copy
|
|
14272
|
-
var separatorCopy = new RegExp(separator.source, flags + 'g')
|
|
14273
|
-
var match, lastIndex, lastLength
|
|
14274
|
-
while (match = call(regexpExec, separatorCopy, string)) {
|
|
14275
|
-
lastIndex = separatorCopy.lastIndex
|
|
14276
|
-
if (lastIndex > lastLastIndex) {
|
|
14277
|
-
push(output, stringSlice(string, lastLastIndex, match.index))
|
|
14278
|
-
if (match.length > 1 && match.index < string.length) apply($push, output, arraySlice(match, 1))
|
|
14279
|
-
lastLength = match[0].length
|
|
14280
|
-
lastLastIndex = lastIndex
|
|
14281
|
-
if (output.length >= lim) break
|
|
14282
|
-
}
|
|
14283
|
-
if (separatorCopy.lastIndex === match.index) separatorCopy.lastIndex++ // Avoid an infinite loop
|
|
14284
|
-
}
|
|
14285
|
-
if (lastLastIndex === string.length) {
|
|
14286
|
-
if (lastLength || !exec(separatorCopy, '')) push(output, '')
|
|
14287
|
-
} else push(output, stringSlice(string, lastLastIndex))
|
|
14288
|
-
return output.length > lim ? arraySlice(output, 0, lim) : output
|
|
14289
|
-
}
|
|
14290
|
-
// Chakra, V8
|
|
14291
|
-
} else if ('0'.split(undefined, 0).length) {
|
|
14292
|
-
internalSplit = function (separator, limit) {
|
|
14293
|
-
return separator === undefined && limit === 0 ? [] : call(nativeSplit, this, separator, limit)
|
|
14294
|
-
}
|
|
14295
|
-
} else internalSplit = nativeSplit
|
|
14240
|
+
var internalSplit = '0'.split(undefined, 0).length ? function (separator, limit) {
|
|
14241
|
+
return separator === undefined && limit === 0 ? [] : call(nativeSplit, this, separator, limit)
|
|
14242
|
+
} : nativeSplit
|
|
14296
14243
|
|
|
14297
14244
|
return [
|
|
14298
14245
|
// `String.prototype.split` method
|
|
@@ -14312,30 +14259,30 @@
|
|
|
14312
14259
|
function (string, limit) {
|
|
14313
14260
|
var rx = anObject(this)
|
|
14314
14261
|
var S = toString(string)
|
|
14315
|
-
var res = maybeCallNative(internalSplit, rx, S, limit, internalSplit !== nativeSplit)
|
|
14316
14262
|
|
|
14317
|
-
if (
|
|
14263
|
+
if (!BUGGY) {
|
|
14264
|
+
var res = maybeCallNative(internalSplit, rx, S, limit, internalSplit !== nativeSplit)
|
|
14265
|
+
if (res.done) return res.value
|
|
14266
|
+
}
|
|
14318
14267
|
|
|
14319
14268
|
var C = speciesConstructor(rx, RegExp)
|
|
14320
|
-
|
|
14321
14269
|
var unicodeMatching = rx.unicode
|
|
14322
14270
|
var flags = (rx.ignoreCase ? 'i' : '') +
|
|
14323
14271
|
(rx.multiline ? 'm' : '') +
|
|
14324
14272
|
(rx.unicode ? 'u' : '') +
|
|
14325
14273
|
(UNSUPPORTED_Y ? 'g' : 'y')
|
|
14326
|
-
|
|
14327
14274
|
// ^(? + rx + ) is needed, in combination with some S slicing, to
|
|
14328
14275
|
// simulate the 'y' flag.
|
|
14329
14276
|
var splitter = new C(UNSUPPORTED_Y ? '^(?:' + rx.source + ')' : rx, flags)
|
|
14330
14277
|
var lim = limit === undefined ? MAX_UINT32 : limit >>> 0
|
|
14331
14278
|
if (lim === 0) return []
|
|
14332
|
-
if (S.length === 0) return
|
|
14279
|
+
if (S.length === 0) return regExpExec(splitter, S) === null ? [S] : []
|
|
14333
14280
|
var p = 0
|
|
14334
14281
|
var q = 0
|
|
14335
14282
|
var A = []
|
|
14336
14283
|
while (q < S.length) {
|
|
14337
14284
|
splitter.lastIndex = UNSUPPORTED_Y ? 0 : q
|
|
14338
|
-
var z =
|
|
14285
|
+
var z = regExpExec(splitter, UNSUPPORTED_Y ? stringSlice(S, q) : S)
|
|
14339
14286
|
var e
|
|
14340
14287
|
if (
|
|
14341
14288
|
z === null ||
|
|
@@ -14356,8 +14303,8 @@
|
|
|
14356
14303
|
return A
|
|
14357
14304
|
}
|
|
14358
14305
|
]
|
|
14359
|
-
}, !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC, UNSUPPORTED_Y)
|
|
14360
|
-
}, { '../internals/advance-string-index': 27, '../internals/an-object': 29, '../internals/
|
|
14306
|
+
}, BUGGY || !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC, UNSUPPORTED_Y)
|
|
14307
|
+
}, { '../internals/advance-string-index': 27, '../internals/an-object': 29, '../internals/fails': 105, '../internals/fix-regexp-well-known-symbol-logic': 106, '../internals/function-call': 113, '../internals/function-uncurry-this': 117, '../internals/get-method': 124, '../internals/is-null-or-undefined': 147, '../internals/regexp-exec-abstract': 207, '../internals/regexp-sticky-helpers': 211, '../internals/require-object-coercible': 214, '../internals/species-constructor': 225, '../internals/to-length': 247, '../internals/to-string': 254 }],
|
|
14361
14308
|
463: [function (require, module, exports) {
|
|
14362
14309
|
'use strict'
|
|
14363
14310
|
var $ = require('../internals/export')
|