Socket
Socket
Sign inDemoInstall

core-js-pure

Package Overview
Dependencies
0
Maintainers
1
Versions
150
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.35.0 to 3.35.1

4

internals/export.js

@@ -48,3 +48,3 @@ 'use strict';

var nativeSource = GLOBAL ? global : STATIC ? global[TARGET] : (global[TARGET] || {}).prototype;
var nativeSource = GLOBAL ? global : STATIC ? global[TARGET] : global[TARGET] && global[TARGET].prototype;

@@ -72,3 +72,3 @@ var target = GLOBAL ? path : path[TARGET] || createNonEnumerableProperty(path, TARGET, {})[TARGET];

if (USE_NATIVE && typeof targetProperty == typeof sourceProperty) continue;
if (!FORCED && !PROTO && typeof targetProperty == typeof sourceProperty) continue;

@@ -75,0 +75,0 @@ // bind methods to global for calling from export context

@@ -10,3 +10,2 @@ 'use strict';

var noop = function () { /* empty */ };
var empty = [];
var construct = getBuiltIn('Reflect', 'construct');

@@ -20,3 +19,3 @@ var constructorRegExp = /^\s*(?:class|function)\b/;

try {
construct(noop, empty, argument);
construct(noop, [], argument);
return true;

@@ -23,0 +22,0 @@ } catch (error) {

@@ -8,7 +8,7 @@ 'use strict';

})('versions', []).push({
version: '3.35.0',
version: '3.35.1',
mode: IS_PURE ? 'pure' : 'global',
copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
license: 'https://github.com/zloirock/core-js/blob/v3.35.0/LICENSE',
copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
license: 'https://github.com/zloirock/core-js/blob/v3.35.1/LICENSE',
source: 'https://github.com/zloirock/core-js'
});

@@ -9,3 +9,4 @@ 'use strict';

module.exports = function (argument) {
return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
var len = toIntegerOrInfinity(argument);
return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
};

@@ -23,8 +23,2 @@ 'use strict';

var stringIndexOf = function (string, searchValue, fromIndex) {
if (fromIndex > string.length) return -1;
if (searchValue === '') return fromIndex;
return indexOf(string, searchValue, fromIndex);
};
// `String.prototype.replaceAll` method

@@ -58,3 +52,3 @@ // https://tc39.es/ecma262/#sec-string.prototype.replaceall

advanceBy = max(1, searchLength);
position = stringIndexOf(string, searchString, 0);
position = indexOf(string, searchString);
while (position !== -1) {

@@ -66,3 +60,3 @@ replacement = functionalReplace

endOfLastMatch = position + searchLength;
position = stringIndexOf(string, searchString, position + advanceBy);
position = position + advanceBy > string.length ? -1 : indexOf(string, searchString, position + advanceBy);
}

@@ -69,0 +63,0 @@ if (endOfLastMatch < string.length) {

{
"name": "core-js-pure",
"version": "3.35.0",
"version": "3.35.1",
"type": "commonjs",

@@ -5,0 +5,0 @@ "description": "Standard library",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc