Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

core-js

Package Overview
Dependencies
Maintainers
2
Versions
276
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

core-js - npm Package Compare versions

Comparing version 3.17.1 to 3.17.2

4

internals/async-iterator-create-proxy.js

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

var iterator = state.iterator;
iterator.done = true;
state.done = true;
var $$return = iterator['return'];

@@ -58,3 +58,3 @@ if ($$return === undefined) return resolve({ done: true, value: value });

var iterator = state.iterator;
iterator.done = true;
state.done = true;
var $$throw = iterator['throw'];

@@ -61,0 +61,0 @@ if ($$throw === undefined) return reject(value);

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

var iterator = state.iterator;
iterator.done = true;
state.done = true;
var $$return = iterator['return'];

@@ -43,3 +43,3 @@ return { done: true, value: $$return === undefined ? value : anObject($$return.call(iterator, value)).value };

var iterator = state.iterator;
iterator.done = true;
state.done = true;
var $$throw = iterator['throw'];

@@ -46,0 +46,0 @@ if ($$throw === undefined) throw value;

@@ -7,5 +7,5 @@ var IS_PURE = require('../internals/is-pure');

})('versions', []).push({
version: '3.17.1',
version: '3.17.2',
mode: IS_PURE ? 'pure' : 'global',
copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
});

@@ -1,2 +0,2 @@

var classof = require('../internals/classof-raw');
var valueOf = 1.0.valueOf;

@@ -6,6 +6,3 @@ // `thisNumberValue` abstract operation

module.exports = function (value) {
if (typeof value != 'number' && classof(value) != 'Number') {
throw TypeError('Incorrect invocation');
}
return +value;
return valueOf.call(value);
};

@@ -255,5 +255,5 @@ 'use strict';

var percentEncode = function (char, set) {
var code = codeAt(char, 0);
return code > 0x20 && code < 0x7F && !has(set, char) ? char : encodeURIComponent(char);
var percentEncode = function (chr, set) {
var code = codeAt(chr, 0);
return code > 0x20 && code < 0x7F && !has(set, chr) ? chr : encodeURIComponent(chr);
};

@@ -344,3 +344,3 @@

var seenPasswordToken = false;
var codePoints, char, bufferCodePoints, failure;
var codePoints, chr, bufferCodePoints, failure;

@@ -365,7 +365,7 @@ if (!stateOverride) {

while (pointer <= codePoints.length) {
char = codePoints[pointer];
chr = codePoints[pointer];
switch (state) {
case SCHEME_START:
if (char && ALPHA.test(char)) {
buffer += char.toLowerCase();
if (chr && ALPHA.test(chr)) {
buffer += chr.toLowerCase();
state = SCHEME;

@@ -379,5 +379,5 @@ } else if (!stateOverride) {

case SCHEME:
if (char && (ALPHANUMERIC.test(char) || char == '+' || char == '-' || char == '.')) {
buffer += char.toLowerCase();
} else if (char == ':') {
if (chr && (ALPHANUMERIC.test(chr) || chr == '+' || chr == '-' || chr == '.')) {
buffer += chr.toLowerCase();
} else if (chr == ':') {
if (stateOverride && (

@@ -417,4 +417,4 @@ (isSpecial(url) != has(specialSchemes, buffer)) ||

case NO_SCHEME:
if (!base || (base.cannotBeABaseURL && char != '#')) return INVALID_SCHEME;
if (base.cannotBeABaseURL && char == '#') {
if (!base || (base.cannotBeABaseURL && chr != '#')) return INVALID_SCHEME;
if (base.cannotBeABaseURL && chr == '#') {
url.scheme = base.scheme;

@@ -432,3 +432,3 @@ url.path = base.path.slice();

case SPECIAL_RELATIVE_OR_AUTHORITY:
if (char == '/' && codePoints[pointer + 1] == '/') {
if (chr == '/' && codePoints[pointer + 1] == '/') {
state = SPECIAL_AUTHORITY_IGNORE_SLASHES;

@@ -442,3 +442,3 @@ pointer++;

case PATH_OR_AUTHORITY:
if (char == '/') {
if (chr == '/') {
state = AUTHORITY;

@@ -453,3 +453,3 @@ break;

url.scheme = base.scheme;
if (char == EOF) {
if (chr == EOF) {
url.username = base.username;

@@ -461,5 +461,5 @@ url.password = base.password;

url.query = base.query;
} else if (char == '/' || (char == '\\' && isSpecial(url))) {
} else if (chr == '/' || (chr == '\\' && isSpecial(url))) {
state = RELATIVE_SLASH;
} else if (char == '?') {
} else if (chr == '?') {
url.username = base.username;

@@ -472,3 +472,3 @@ url.password = base.password;

state = QUERY;
} else if (char == '#') {
} else if (chr == '#') {
url.username = base.username;

@@ -494,5 +494,5 @@ url.password = base.password;

case RELATIVE_SLASH:
if (isSpecial(url) && (char == '/' || char == '\\')) {
if (isSpecial(url) && (chr == '/' || chr == '\\')) {
state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
} else if (char == '/') {
} else if (chr == '/') {
state = AUTHORITY;

@@ -510,3 +510,3 @@ } else {

state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
if (char != '/' || buffer.charAt(pointer + 1) != '/') continue;
if (chr != '/' || buffer.charAt(pointer + 1) != '/') continue;
pointer++;

@@ -516,3 +516,3 @@ break;

case SPECIAL_AUTHORITY_IGNORE_SLASHES:
if (char != '/' && char != '\\') {
if (chr != '/' && chr != '\\') {
state = AUTHORITY;

@@ -523,3 +523,3 @@ continue;

case AUTHORITY:
if (char == '@') {
if (chr == '@') {
if (seenAt) buffer = '%40' + buffer;

@@ -540,4 +540,4 @@ seenAt = true;

} else if (
char == EOF || char == '/' || char == '?' || char == '#' ||
(char == '\\' && isSpecial(url))
chr == EOF || chr == '/' || chr == '?' || chr == '#' ||
(chr == '\\' && isSpecial(url))
) {

@@ -548,3 +548,3 @@ if (seenAt && buffer == '') return INVALID_AUTHORITY;

state = HOST;
} else buffer += char;
} else buffer += chr;
break;

@@ -557,3 +557,3 @@

continue;
} else if (char == ':' && !seenBracket) {
} else if (chr == ':' && !seenBracket) {
if (buffer == '') return INVALID_HOST;

@@ -566,4 +566,4 @@ failure = parseHost(url, buffer);

} else if (
char == EOF || char == '/' || char == '?' || char == '#' ||
(char == '\\' && isSpecial(url))
chr == EOF || chr == '/' || chr == '?' || chr == '#' ||
(chr == '\\' && isSpecial(url))
) {

@@ -579,13 +579,13 @@ if (isSpecial(url) && buffer == '') return INVALID_HOST;

} else {
if (char == '[') seenBracket = true;
else if (char == ']') seenBracket = false;
buffer += char;
if (chr == '[') seenBracket = true;
else if (chr == ']') seenBracket = false;
buffer += chr;
} break;
case PORT:
if (DIGIT.test(char)) {
buffer += char;
if (DIGIT.test(chr)) {
buffer += chr;
} else if (
char == EOF || char == '/' || char == '?' || char == '#' ||
(char == '\\' && isSpecial(url)) ||
chr == EOF || chr == '/' || chr == '?' || chr == '#' ||
(chr == '\\' && isSpecial(url)) ||
stateOverride

@@ -607,9 +607,9 @@ ) {

url.scheme = 'file';
if (char == '/' || char == '\\') state = FILE_SLASH;
if (chr == '/' || chr == '\\') state = FILE_SLASH;
else if (base && base.scheme == 'file') {
if (char == EOF) {
if (chr == EOF) {
url.host = base.host;
url.path = base.path.slice();
url.query = base.query;
} else if (char == '?') {
} else if (chr == '?') {
url.host = base.host;

@@ -619,3 +619,3 @@ url.path = base.path.slice();

state = QUERY;
} else if (char == '#') {
} else if (chr == '#') {
url.host = base.host;

@@ -641,3 +641,3 @@ url.path = base.path.slice();

case FILE_SLASH:
if (char == '/' || char == '\\') {
if (chr == '/' || chr == '\\') {
state = FILE_HOST;

@@ -654,3 +654,3 @@ break;

case FILE_HOST:
if (char == EOF || char == '/' || char == '\\' || char == '?' || char == '#') {
if (chr == EOF || chr == '/' || chr == '\\' || chr == '?' || chr == '#') {
if (!stateOverride && isWindowsDriveLetter(buffer)) {

@@ -670,3 +670,3 @@ state = PATH;

} continue;
} else buffer += char;
} else buffer += chr;
break;

@@ -677,12 +677,12 @@

state = PATH;
if (char != '/' && char != '\\') continue;
} else if (!stateOverride && char == '?') {
if (chr != '/' && chr != '\\') continue;
} else if (!stateOverride && chr == '?') {
url.query = '';
state = QUERY;
} else if (!stateOverride && char == '#') {
} else if (!stateOverride && chr == '#') {
url.fragment = '';
state = FRAGMENT;
} else if (char != EOF) {
} else if (chr != EOF) {
state = PATH;
if (char != '/') continue;
if (chr != '/') continue;
} break;

@@ -692,13 +692,13 @@

if (
char == EOF || char == '/' ||
(char == '\\' && isSpecial(url)) ||
(!stateOverride && (char == '?' || char == '#'))
chr == EOF || chr == '/' ||
(chr == '\\' && isSpecial(url)) ||
(!stateOverride && (chr == '?' || chr == '#'))
) {
if (isDoubleDot(buffer)) {
shortenURLsPath(url);
if (char != '/' && !(char == '\\' && isSpecial(url))) {
if (chr != '/' && !(chr == '\\' && isSpecial(url))) {
url.path.push('');
}
} else if (isSingleDot(buffer)) {
if (char != '/' && !(char == '\\' && isSpecial(url))) {
if (chr != '/' && !(chr == '\\' && isSpecial(url))) {
url.path.push('');

@@ -714,3 +714,3 @@ }

buffer = '';
if (url.scheme == 'file' && (char == EOF || char == '?' || char == '#')) {
if (url.scheme == 'file' && (chr == EOF || chr == '?' || chr == '#')) {
while (url.path.length > 1 && url.path[0] === '') {

@@ -720,6 +720,6 @@ url.path.shift();

}
if (char == '?') {
if (chr == '?') {
url.query = '';
state = QUERY;
} else if (char == '#') {
} else if (chr == '#') {
url.fragment = '';

@@ -729,28 +729,28 @@ state = FRAGMENT;

} else {
buffer += percentEncode(char, pathPercentEncodeSet);
buffer += percentEncode(chr, pathPercentEncodeSet);
} break;
case CANNOT_BE_A_BASE_URL_PATH:
if (char == '?') {
if (chr == '?') {
url.query = '';
state = QUERY;
} else if (char == '#') {
} else if (chr == '#') {
url.fragment = '';
state = FRAGMENT;
} else if (char != EOF) {
url.path[0] += percentEncode(char, C0ControlPercentEncodeSet);
} else if (chr != EOF) {
url.path[0] += percentEncode(chr, C0ControlPercentEncodeSet);
} break;
case QUERY:
if (!stateOverride && char == '#') {
if (!stateOverride && chr == '#') {
url.fragment = '';
state = FRAGMENT;
} else if (char != EOF) {
if (char == "'" && isSpecial(url)) url.query += '%27';
else if (char == '#') url.query += '%23';
else url.query += percentEncode(char, C0ControlPercentEncodeSet);
} else if (chr != EOF) {
if (chr == "'" && isSpecial(url)) url.query += '%27';
else if (chr == '#') url.query += '%23';
else url.query += percentEncode(chr, C0ControlPercentEncodeSet);
} break;
case FRAGMENT:
if (char != EOF) url.fragment += percentEncode(char, fragmentPercentEncodeSet);
if (chr != EOF) url.fragment += percentEncode(chr, fragmentPercentEncodeSet);
break;

@@ -757,0 +757,0 @@ }

{
"name": "core-js",
"description": "Standard library",
"version": "3.17.1",
"version": "3.17.2",
"repository": {

@@ -57,3 +57,3 @@ "type": "git",

},
"gitHead": "c526e7a00305a917fc697a9b87e64a82781f09f4"
"gitHead": "4f68180d6e5227f144ba0a9a024f62ffe541be12"
}

@@ -1,6 +0,4 @@

require('../proposals/accessible-object-hasownproperty');
require('../proposals/array-find-from-last');
require('../proposals/relative-indexing-method');
var parent = require('./4');
module.exports = parent;

@@ -0,4 +1,6 @@

require('../proposals/accessible-object-hasownproperty');
require('../proposals/global-this');
require('../proposals/promise-all-settled');
require('../proposals/promise-any');
require('../proposals/relative-indexing-method');
require('../proposals/string-match-all');

@@ -5,0 +7,0 @@ require('../proposals/string-replace-all');

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc