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.25.4 to 3.25.5

internals/function-uncurry-this-raw.js

6

internals/classof-raw.js

@@ -1,5 +0,5 @@

var uncurryThis = require('../internals/function-uncurry-this');
var uncurryThisRaw = require('../internals/function-uncurry-this-raw');
var toString = uncurryThis({}.toString);
var stringSlice = uncurryThis(''.slice);
var toString = uncurryThisRaw({}.toString);
var stringSlice = uncurryThisRaw(''.slice);

@@ -6,0 +6,0 @@ module.exports = function (it) {

@@ -1,9 +0,4 @@

var NATIVE_BIND = require('../internals/function-bind-native');
var classofRaw = require('../internals/classof-raw');
var uncurryThisRaw = require('../internals/function-uncurry-this-raw');
var $Function = Function;
var FunctionPrototype = $Function.prototype;
var bind = FunctionPrototype.bind;
var call = FunctionPrototype.call;
var uncurryThis = NATIVE_BIND && bind.bind(call, call);
module.exports = function (fn) {

@@ -13,5 +8,3 @@ // Nashorn bug:

// https://github.com/zloirock/core-js/issues/1130
return fn instanceof $Function ? NATIVE_BIND ? uncurryThis(fn) : function () {
return call.apply(fn, arguments);
} : undefined;
if (classofRaw(fn) === 'Function') return uncurryThisRaw(fn);
};
var NATIVE_WEAK_MAP = require('../internals/weak-map-basic-detection');
var global = require('../internals/global');
var uncurryThis = require('../internals/function-uncurry-this');
var isObject = require('../internals/is-object');

@@ -31,16 +30,18 @@ var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');

var store = shared.state || (shared.state = new WeakMap());
var wmget = uncurryThis(store.get);
var wmhas = uncurryThis(store.has);
var wmset = uncurryThis(store.set);
/* eslint-disable no-self-assign -- prototype methods protection */
store.get = store.get;
store.has = store.has;
store.set = store.set;
/* eslint-enable no-self-assign -- prototype methods protection */
set = function (it, metadata) {
if (wmhas(store, it)) throw TypeError(OBJECT_ALREADY_INITIALIZED);
if (store.has(it)) throw TypeError(OBJECT_ALREADY_INITIALIZED);
metadata.facade = it;
wmset(store, it, metadata);
store.set(it, metadata);
return metadata;
};
get = function (it) {
return wmget(store, it) || {};
return store.get(it) || {};
};
has = function (it) {
return wmhas(store, it);
return store.has(it);
};

@@ -47,0 +48,0 @@ } else {

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

})('versions', []).push({
version: '3.25.4',
version: '3.25.5',
mode: IS_PURE ? 'pure' : 'global',
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
license: 'https://github.com/zloirock/core-js/blob/v3.25.4/LICENSE',
license: 'https://github.com/zloirock/core-js/blob/v3.25.5/LICENSE',
source: 'https://github.com/zloirock/core-js'
});
var $ = require('../internals/export');
var uncurryThis = require('../internals/function-uncurry-this');
var uncurryThisRaw = require('../internals/function-uncurry-this-raw');
var aCallable = require('../internals/a-callable');

@@ -9,4 +9,4 @@

unThis: function unThis() {
return uncurryThis(aCallable(this));
return uncurryThisRaw(aCallable(this));
}
});
{
"name": "core-js",
"description": "Standard library",
"version": "3.25.4",
"version": "3.25.5",
"repository": {

@@ -6,0 +6,0 @@ "type": "git",

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