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

es-abstract

Package Overview
Dependencies
Maintainers
0
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

es-abstract - npm Package Compare versions

Comparing version 1.23.8 to 1.23.9

12

2015/ArrayCreate.js

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

var MAX_ARRAY_LENGTH = require('math-intrinsics/constants/maxArrayLength');
var $setProto = require('set-proto');
var hasProto = require('has-proto')();
var $setProto = GetIntrinsic('%Object.setPrototypeOf%', true) || (
hasProto
? function (O, proto) {
O.__proto__ = proto; // eslint-disable-line no-proto, no-param-reassign
return O;
}
: null
);
// https://262.ecma-international.org/6.0/#sec-arraycreate

@@ -25,0 +15,0 @@

3

2015/StringCreate.js

@@ -9,7 +9,6 @@ 'use strict';

var $TypeError = require('es-errors/type');
var setProto = require('set-proto');
var DefinePropertyOrThrow = require('./DefinePropertyOrThrow');
var setProto = require('../helpers/setProto');
// https://262.ecma-international.org/6.0/#sec-stringcreate

@@ -16,0 +15,0 @@

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

var MAX_ARRAY_LENGTH = require('math-intrinsics/constants/maxArrayLength');
var $setProto = require('set-proto');
var hasProto = require('has-proto')();
var $setProto = GetIntrinsic('%Object.setPrototypeOf%', true) || (
hasProto
? function (O, proto) {
O.__proto__ = proto; // eslint-disable-line no-proto, no-param-reassign
return O;
}
: null
);
// https://262.ecma-international.org/6.0/#sec-arraycreate

@@ -25,0 +15,0 @@

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

var $getProto = require('../helpers/getProto');
var $getProto = require('get-proto');
var isObject = require('../helpers/isObject');

@@ -8,0 +8,0 @@

'use strict';
var $TypeError = require('es-errors/type');
var $setProto = require('set-proto');
var $setProto = require('../helpers/setProto');
var OrdinaryGetPrototypeOf = require('./OrdinaryGetPrototypeOf');

@@ -8,0 +7,0 @@

@@ -9,7 +9,6 @@ 'use strict';

var $TypeError = require('es-errors/type');
var setProto = require('set-proto');
var DefinePropertyOrThrow = require('./DefinePropertyOrThrow');
var setProto = require('../helpers/setProto');
// https://262.ecma-international.org/6.0/#sec-stringcreate

@@ -16,0 +15,0 @@

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

var MAX_ARRAY_LENGTH = require('math-intrinsics/constants/maxArrayLength');
var $setProto = require('set-proto');
var hasProto = require('has-proto')();
var $setProto = GetIntrinsic('%Object.setPrototypeOf%', true) || (
hasProto
? function (O, proto) {
O.__proto__ = proto; // eslint-disable-line no-proto, no-param-reassign
return O;
}
: null
);
// https://262.ecma-international.org/6.0/#sec-arraycreate

@@ -25,0 +15,0 @@

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

var $getProto = require('../helpers/getProto');
var $getProto = require('get-proto');
var isObject = require('../helpers/isObject');

@@ -8,0 +8,0 @@

'use strict';
var $TypeError = require('es-errors/type');
var $setProto = require('set-proto');
var $setProto = require('../helpers/setProto');
var OrdinaryGetPrototypeOf = require('./OrdinaryGetPrototypeOf');

@@ -8,0 +7,0 @@

@@ -9,7 +9,6 @@ 'use strict';

var $TypeError = require('es-errors/type');
var setProto = require('set-proto');
var DefinePropertyOrThrow = require('./DefinePropertyOrThrow');
var setProto = require('../helpers/setProto');
// https://262.ecma-international.org/6.0/#sec-stringcreate

@@ -16,0 +15,0 @@

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

var MAX_ARRAY_LENGTH = require('math-intrinsics/constants/maxArrayLength');
var $setProto = require('set-proto');
var hasProto = require('has-proto')();
var $setProto = GetIntrinsic('%Object.setPrototypeOf%', true) || (
hasProto
? function (O, proto) {
O.__proto__ = proto; // eslint-disable-line no-proto, no-param-reassign
return O;
}
: null
);
// https://262.ecma-international.org/6.0/#sec-arraycreate

@@ -25,0 +15,0 @@

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

var $getProto = require('../helpers/getProto');
var $getProto = require('get-proto');
var isObject = require('../helpers/isObject');

@@ -8,0 +8,0 @@

'use strict';
var $TypeError = require('es-errors/type');
var $setProto = require('set-proto');
var $setProto = require('../helpers/setProto');
var OrdinaryGetPrototypeOf = require('./OrdinaryGetPrototypeOf');

@@ -8,0 +7,0 @@

@@ -9,7 +9,6 @@ 'use strict';

var $TypeError = require('es-errors/type');
var setProto = require('set-proto');
var DefinePropertyOrThrow = require('./DefinePropertyOrThrow');
var setProto = require('../helpers/setProto');
// https://262.ecma-international.org/6.0/#sec-stringcreate

@@ -16,0 +15,0 @@

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

var MAX_ARRAY_LENGTH = require('math-intrinsics/constants/maxArrayLength');
var $setProto = require('set-proto');
var hasProto = require('has-proto')();
var $setProto = GetIntrinsic('%Object.setPrototypeOf%', true) || (
hasProto
? function (O, proto) {
O.__proto__ = proto; // eslint-disable-line no-proto, no-param-reassign
return O;
}
: null
);
// https://262.ecma-international.org/6.0/#sec-arraycreate

@@ -25,0 +15,0 @@

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

var $getProto = require('../helpers/getProto');
var $getProto = require('get-proto');
var isObject = require('../helpers/isObject');

@@ -8,0 +8,0 @@

'use strict';
var $TypeError = require('es-errors/type');
var $setProto = require('set-proto');
var $setProto = require('../helpers/setProto');
var OrdinaryGetPrototypeOf = require('./OrdinaryGetPrototypeOf');

@@ -8,0 +7,0 @@

@@ -9,7 +9,6 @@ 'use strict';

var $TypeError = require('es-errors/type');
var setProto = require('set-proto');
var DefinePropertyOrThrow = require('./DefinePropertyOrThrow');
var setProto = require('../helpers/setProto');
// https://262.ecma-international.org/6.0/#sec-stringcreate

@@ -16,0 +15,0 @@

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

var MAX_ARRAY_LENGTH = require('math-intrinsics/constants/maxArrayLength');
var $setProto = require('set-proto');
var hasProto = require('has-proto')();
var $setProto = GetIntrinsic('%Object.setPrototypeOf%', true) || (
hasProto
? function (O, proto) {
O.__proto__ = proto; // eslint-disable-line no-proto, no-param-reassign
return O;
}
: null
);
// https://262.ecma-international.org/6.0/#sec-arraycreate

@@ -25,0 +15,0 @@

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

var $getProto = require('../helpers/getProto');
var $getProto = require('get-proto');
var isObject = require('../helpers/isObject');

@@ -8,0 +8,0 @@

'use strict';
var $TypeError = require('es-errors/type');
var $setProto = require('set-proto');
var $setProto = require('../helpers/setProto');
var OrdinaryGetPrototypeOf = require('./OrdinaryGetPrototypeOf');

@@ -8,0 +7,0 @@

@@ -9,7 +9,6 @@ 'use strict';

var $TypeError = require('es-errors/type');
var setProto = require('set-proto');
var DefinePropertyOrThrow = require('./DefinePropertyOrThrow');
var setProto = require('../helpers/setProto');
// https://262.ecma-international.org/6.0/#sec-stringcreate

@@ -16,0 +15,0 @@

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

var MAX_ARRAY_LENGTH = require('math-intrinsics/constants/maxArrayLength');
var $setProto = require('set-proto');
var hasProto = require('has-proto')();
var $setProto = GetIntrinsic('%Object.setPrototypeOf%', true) || (
hasProto
? function (O, proto) {
O.__proto__ = proto; // eslint-disable-line no-proto, no-param-reassign
return O;
}
: null
);
// https://262.ecma-international.org/12.0/#sec-arraycreate

@@ -25,0 +15,0 @@

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

var $getProto = require('../helpers/getProto');
var $getProto = require('get-proto');
var isObject = require('../helpers/isObject');

@@ -8,0 +8,0 @@

'use strict';
var $TypeError = require('es-errors/type');
var $setProto = require('set-proto');
var $setProto = require('../helpers/setProto');
var OrdinaryGetPrototypeOf = require('./OrdinaryGetPrototypeOf');

@@ -8,0 +7,0 @@

@@ -9,7 +9,6 @@ 'use strict';

var $TypeError = require('es-errors/type');
var setProto = require('set-proto');
var DefinePropertyOrThrow = require('./DefinePropertyOrThrow');
var setProto = require('../helpers/setProto');
// https://262.ecma-international.org/6.0/#sec-stringcreate

@@ -16,0 +15,0 @@

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

var MAX_ARRAY_LENGTH = require('math-intrinsics/constants/maxArrayLength');
var $setProto = require('set-proto');
var hasProto = require('has-proto')();
var $setProto = GetIntrinsic('%Object.setPrototypeOf%', true) || (
hasProto
? function (O, proto) {
O.__proto__ = proto; // eslint-disable-line no-proto, no-param-reassign
return O;
}
: null
);
// https://262.ecma-international.org/12.0/#sec-arraycreate

@@ -25,0 +15,0 @@

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

var $getProto = require('../helpers/getProto');
var $getProto = require('get-proto');
var isObject = require('../helpers/isObject');

@@ -8,0 +8,0 @@

'use strict';
var $TypeError = require('es-errors/type');
var $setProto = require('set-proto');
var $setProto = require('../helpers/setProto');
var OrdinaryGetPrototypeOf = require('./OrdinaryGetPrototypeOf');

@@ -8,0 +7,0 @@

@@ -9,7 +9,6 @@ 'use strict';

var $TypeError = require('es-errors/type');
var setProto = require('set-proto');
var DefinePropertyOrThrow = require('./DefinePropertyOrThrow');
var setProto = require('../helpers/setProto');
// https://262.ecma-international.org/6.0/#sec-stringcreate

@@ -16,0 +15,0 @@

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

var MAX_ARRAY_LENGTH = require('math-intrinsics/constants/maxArrayLength');
var $setProto = require('set-proto');
var hasProto = require('has-proto')();
var $setProto = GetIntrinsic('%Object.setPrototypeOf%', true) || (
hasProto
? function (O, proto) {
O.__proto__ = proto; // eslint-disable-line no-proto, no-param-reassign
return O;
}
: null
);
// https://262.ecma-international.org/12.0/#sec-arraycreate

@@ -25,0 +15,0 @@

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

var $getProto = require('../helpers/getProto');
var $getProto = require('get-proto');
var isObject = require('../helpers/isObject');

@@ -8,0 +8,0 @@

'use strict';
var $TypeError = require('es-errors/type');
var $setProto = require('set-proto');
var $setProto = require('../helpers/setProto');
var OrdinaryGetPrototypeOf = require('./OrdinaryGetPrototypeOf');

@@ -8,0 +7,0 @@

@@ -9,7 +9,6 @@ 'use strict';

var $TypeError = require('es-errors/type');
var setProto = require('set-proto');
var DefinePropertyOrThrow = require('./DefinePropertyOrThrow');
var setProto = require('../helpers/setProto');
// https://262.ecma-international.org/6.0/#sec-stringcreate

@@ -16,0 +15,0 @@

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

var MAX_ARRAY_LENGTH = require('math-intrinsics/constants/maxArrayLength');
var $setProto = require('set-proto');
var hasProto = require('has-proto')();
var $setProto = GetIntrinsic('%Object.setPrototypeOf%', true) || (
hasProto
? function (O, proto) {
O.__proto__ = proto; // eslint-disable-line no-proto, no-param-reassign
return O;
}
: null
);
// https://262.ecma-international.org/12.0/#sec-arraycreate

@@ -25,0 +15,0 @@

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

var $getProto = require('../helpers/getProto');
var $getProto = require('get-proto');
var isObject = require('../helpers/isObject');

@@ -8,0 +8,0 @@

'use strict';
var $TypeError = require('es-errors/type');
var $setProto = require('set-proto');
var $setProto = require('../helpers/setProto');
var OrdinaryGetPrototypeOf = require('./OrdinaryGetPrototypeOf');

@@ -8,0 +7,0 @@

@@ -9,7 +9,6 @@ 'use strict';

var $TypeError = require('es-errors/type');
var setProto = require('set-proto');
var DefinePropertyOrThrow = require('./DefinePropertyOrThrow');
var setProto = require('../helpers/setProto');
// https://262.ecma-international.org/6.0/#sec-stringcreate

@@ -16,0 +15,0 @@

@@ -0,1 +1,11 @@

1.23.9 / 2025-01-02
=================
* [Refactor] use `get-proto` directly
* [Refactor] use `set-proto` directly
* [Refactor] use `Reflect.setPrototypeOf` and `dunder-proto` in `setProto` helper
* [Refactor] `ES2015`+: `ArrayCreate`: use `setProto` helper
* [Deps] update `es-set-tostringtag`, `own-keys`
* [Dev Deps] update `is-core-module`
* [Tests] use `own-keys` directly
1.23.8 / 2024-12-28

@@ -2,0 +12,0 @@ =================

'use strict';
var GetIntrinsic = require('get-intrinsic');
var originalGetProto = GetIntrinsic('%Object.getPrototypeOf%', true);
var hasProto = require('has-proto')();
module.exports = originalGetProto || (
hasProto
? function (O) {
return O.__proto__; // eslint-disable-line no-proto
}
: null
);
// TODO, semver-major: remove
module.exports = require('get-proto');
'use strict';
var GetIntrinsic = require('get-intrinsic');
var originalSetProto = GetIntrinsic('%Object.setPrototypeOf%', true);
var hasProto = require('has-proto')();
module.exports = originalSetProto || (
hasProto
? function (O, proto) {
O.__proto__ = proto; // eslint-disable-line no-proto, no-param-reassign
return O;
}
: null
);
// TODO, semver-major: remove
module.exports = require('set-proto');
{
"name": "es-abstract",
"version": "1.23.8",
"version": "1.23.9",
"author": {

@@ -70,6 +70,7 @@ "name": "Jordan Harband",

"es-object-atoms": "^1.0.0",
"es-set-tostringtag": "^2.0.3",
"es-set-tostringtag": "^2.1.0",
"es-to-primitive": "^1.3.0",
"function.prototype.name": "^1.1.8",
"get-intrinsic": "^1.2.6",
"get-intrinsic": "^1.2.7",
"get-proto": "^1.0.0",
"get-symbol-description": "^1.1.0",

@@ -95,3 +96,3 @@ "globalthis": "^1.0.4",

"object.assign": "^4.1.7",
"own-keys": "^1.0.0",
"own-keys": "^1.0.1",
"regexp.prototype.flags": "^1.5.3",

@@ -101,2 +102,3 @@ "safe-array-concat": "^1.1.3",

"safe-regex-test": "^1.1.0",
"set-proto": "^1.0.0",
"string.prototype.trim": "^1.2.10",

@@ -135,3 +137,3 @@ "string.prototype.trimend": "^1.0.9",

"in-publish": "^2.0.1",
"is-core-module": "^2.16.0",
"is-core-module": "^2.16.1",
"is-registered-symbol": "^1.1.1",

@@ -138,0 +140,0 @@ "jackspeak": "=2.1.1",

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