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

core-js

Package Overview
Dependencies
Maintainers
1
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.33.2 to 3.33.3

2

internals/engine-is-bun.js
'use strict';
/* global Bun -- Deno case */
/* global Bun -- Bun case */
module.exports = typeof Bun == 'function' && Bun && typeof Bun.version == 'string';

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

check(typeof global == 'object' && global) ||
check(typeof this == 'object' && this) ||
// eslint-disable-next-line no-new-func -- fallback
(function () { return this; })() || this || Function('return this')();
(function () { return this; })() || Function('return this')();

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

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

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

var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');
var parseInt = require('../internals/number-parse-int');

@@ -13,2 +12,3 @@ var INVALID_NUMBER_REPRESENTATION = 'Invalid number representation';

var $TypeError = TypeError;
var $parseInt = parseInt;
var pow = Math.pow;

@@ -38,4 +38,4 @@ var valid = /^[\d.a-z]+$/;

var parts = split(string, '.');
var mathNum = parseInt(parts[0], R);
if (parts.length > 1) mathNum += parseInt(parts[1], R) / pow(R, parts[1].length);
var mathNum = $parseInt(parts[0], R);
if (parts.length > 1) mathNum += $parseInt(parts[1], R) / pow(R, parts[1].length);
if (numberToString(mathNum, R) !== string) throw new $SyntaxError(INVALID_NUMBER_REPRESENTATION);

@@ -42,0 +42,0 @@ return sign * mathNum;

'use strict';
var FREEZING = require('../internals/freezing');
var $ = require('../internals/export');
var shared = require('../internals/shared');
var getBuiltIn = require('../internals/get-built-in');
var makeBuiltIn = require('../internals/make-built-in');

@@ -15,2 +13,3 @@ var uncurryThis = require('../internals/function-uncurry-this');

var createArrayFromList = require('../internals/array-slice-simple');
var WeakMapHelpers = require('../internals/weak-map-helpers');
var cooked = require('../internals/string-cooked');

@@ -20,11 +19,7 @@ var parse = require('../internals/string-parse');

var WeakMap = getBuiltIn('WeakMap');
var globalDedentRegistry = shared('GlobalDedentRegistry', new WeakMap());
var DedentMap = new WeakMapHelpers.WeakMap();
var weakMapGet = WeakMapHelpers.get;
var weakMapHas = WeakMapHelpers.has;
var weakMapSet = WeakMapHelpers.set;
/* eslint-disable no-self-assign -- prototype methods protection */
globalDedentRegistry.has = globalDedentRegistry.has;
globalDedentRegistry.get = globalDedentRegistry.get;
globalDedentRegistry.set = globalDedentRegistry.set;
/* eslint-enable no-self-assign -- prototype methods protection */
var $Array = Array;

@@ -53,3 +48,3 @@ var $TypeError = TypeError;

if (FREEZING && !isFrozen(rawInput)) throw new $TypeError('Raw template should be frozen');
if (globalDedentRegistry.has(rawInput)) return globalDedentRegistry.get(rawInput);
if (weakMapHas(DedentMap, rawInput)) return weakMapGet(DedentMap, rawInput);
var raw = dedentStringsArray(rawInput);

@@ -61,3 +56,3 @@ var cookedArr = cookStrings(raw);

freeze(cookedArr);
globalDedentRegistry.set(rawInput, cookedArr);
weakMapSet(DedentMap, rawInput, cookedArr);
return cookedArr;

@@ -64,0 +59,0 @@ };

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

options = 'maxByteLength' in value ? { maxByteLength: value.maxByteLength } : undefined;
// eslint-disable-next-line es/no-resizable-and-growable-arraybuffers -- safe
clone = new ArrayBuffer(length, options);

@@ -165,0 +166,0 @@ source = new DataView(value);

{
"name": "core-js",
"version": "3.33.2",
"version": "3.33.3",
"type": "commonjs",

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

'use strict';
// https://github.com/tc39/proposal-is-usv-string
require('../modules/esnext.string.is-well-formed');
require('../modules/esnext.string.to-well-formed');
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