core-js
Advanced tools
Comparing version 3.29.0 to 3.29.1
var parent = require('../../stable/array'); | ||
require('../../modules/es.map'); | ||
require('../../modules/es.promise'); | ||
require('../../modules/es.object.to-string'); | ||
@@ -4,0 +4,0 @@ require('../../modules/esnext.array.from-async'); |
@@ -1,1 +0,1 @@ | ||
require('../../modules/esnext.typed-array.to-reversed'); | ||
require('../../modules/es.typed-array.to-reversed'); |
@@ -1,1 +0,1 @@ | ||
require('../../modules/esnext.typed-array.with'); | ||
require('../../modules/es.typed-array.with'); |
var parent = require('../../actual/array'); | ||
require('../../modules/es.promise'); | ||
require('../../modules/es.map'); | ||
// TODO: Remove from `core-js@4` | ||
@@ -4,0 +4,0 @@ require('../../modules/esnext.array.at'); |
@@ -1,4 +0,3 @@ | ||
require('../../modules/esnext.array.to-reversed'); | ||
var entryUnbind = require('../../internals/entry-unbind'); | ||
var parent = require('../../actual/array/to-reversed'); | ||
module.exports = entryUnbind('Array', 'toReversed'); | ||
module.exports = parent; |
@@ -1,5 +0,3 @@ | ||
require('../../modules/es.array.sort'); | ||
require('../../modules/esnext.array.to-sorted'); | ||
var entryUnbind = require('../../internals/entry-unbind'); | ||
var parent = require('../../actual/array/to-sorted'); | ||
module.exports = entryUnbind('Array', 'toSorted'); | ||
module.exports = parent; |
@@ -1,4 +0,3 @@ | ||
require('../../modules/esnext.array.to-spliced'); | ||
var entryUnbind = require('../../internals/entry-unbind'); | ||
var parent = require('../../actual/array/to-spliced'); | ||
module.exports = entryUnbind('Array', 'toSpliced'); | ||
module.exports = parent; |
@@ -1,4 +0,3 @@ | ||
require('../../modules/esnext.array.with'); | ||
var entryUnbind = require('../../internals/entry-unbind'); | ||
var parent = require('../../actual/array/with'); | ||
module.exports = entryUnbind('Array', 'with'); | ||
module.exports = parent; |
@@ -0,3 +1,6 @@ | ||
// TODO: remove from `core-js@4` | ||
require('../../modules/esnext.string.replace-all'); | ||
var parent = require('../../actual/instance/replace-all'); | ||
module.exports = parent; |
@@ -1,1 +0,1 @@ | ||
module.exports = require('./features'); | ||
module.exports = require('./full'); |
@@ -7,3 +7,3 @@ 'use strict'; | ||
var isObject = require('../internals/is-object'); | ||
var defineProperties = require('../internals/object-define-properties').f; | ||
var defineBuiltInAccessor = require('../internals/define-built-in-accessor'); | ||
var DESCRIPTORS = require('../internals/descriptors'); | ||
@@ -57,3 +57,3 @@ | ||
step: step, | ||
inclusiveEnd: inclusiveEnd, | ||
inclusive: inclusiveEnd, | ||
hitsEnd: hitsEnd, | ||
@@ -77,3 +77,3 @@ currentCount: zero, | ||
if (currentYieldingValue === end) state.hitsEnd = true; | ||
var inclusiveEnd = state.inclusiveEnd; | ||
var inclusiveEnd = state.inclusive; | ||
var endCondition; | ||
@@ -91,23 +91,20 @@ if (end > start) { | ||
var getter = function (fn) { | ||
return { get: fn, set: function () { /* empty */ }, configurable: true, enumerable: false }; | ||
var addGetter = function (key) { | ||
defineBuiltInAccessor($RangeIterator.prototype, key, { | ||
get: function () { | ||
return getInternalState(this)[key]; | ||
}, | ||
set: function () { /* empty */ }, | ||
configurable: true, | ||
enumerable: false | ||
}); | ||
}; | ||
if (DESCRIPTORS) { | ||
defineProperties($RangeIterator.prototype, { | ||
start: getter(function () { | ||
return getInternalState(this).start; | ||
}), | ||
end: getter(function () { | ||
return getInternalState(this).end; | ||
}), | ||
inclusive: getter(function () { | ||
return getInternalState(this).inclusiveEnd; | ||
}), | ||
step: getter(function () { | ||
return getInternalState(this).step; | ||
}) | ||
}); | ||
addGetter('start'); | ||
addGetter('end'); | ||
addGetter('inclusive'); | ||
addGetter('step'); | ||
} | ||
module.exports = $RangeIterator; |
@@ -7,7 +7,7 @@ var IS_PURE = require('../internals/is-pure'); | ||
})('versions', []).push({ | ||
version: '3.29.0', | ||
version: '3.29.1', | ||
mode: IS_PURE ? 'pure' : 'global', | ||
copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)', | ||
license: 'https://github.com/zloirock/core-js/blob/v3.29.0/LICENSE', | ||
license: 'https://github.com/zloirock/core-js/blob/v3.29.1/LICENSE', | ||
source: 'https://github.com/zloirock/core-js' | ||
}); |
@@ -18,3 +18,3 @@ var getBuiltIn = require('../internals/get-built-in'); | ||
if (isSetLike(it)) return it; | ||
if (isIterable(it)) return new Set(it); | ||
return isIterable(it) ? new Set(it) : it; | ||
}; |
{ | ||
"name": "core-js", | ||
"version": "3.29.0", | ||
"version": "3.29.1", | ||
"description": "Standard library", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
1120749
26022