Socket
Socket
Sign inDemoInstall

array.prototype.tosorted

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

array.prototype.tosorted - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

10

CHANGELOG.md

@@ -8,2 +8,12 @@ # Changelog

## [v1.1.3](https://github.com/es-shims/Array.prototype.toSorted/compare/v1.1.2...v1.1.3) - 2024-02-04
### Commits
- [Refactor] use `es-errors` where possible, so things that only need those do not need `get-intrinsic` [`6c089a5`](https://github.com/es-shims/Array.prototype.toSorted/commit/6c089a5712a25008daa5d3d9dbc9d4fa7c908a64)
- [Deps] update `call-bind`, `define-properties`, `es-abstract`, `es-shim-unscopables`, `get-intrinsic` [`d096b56`](https://github.com/es-shims/Array.prototype.toSorted/commit/d096b56d30bb5f5b09649f285eee21e22e2db8f9)
- [Dev Deps] update `aud`, `npmignore`, `tape` [`43cea6d`](https://github.com/es-shims/Array.prototype.toSorted/commit/43cea6dfaa05669f6a60bef860f2d6fbf86f167e)
- [Dev Deps] use `hasown` instead of `has` [`cefe5dc`](https://github.com/es-shims/Array.prototype.toSorted/commit/cefe5dc1bbc2699ca03c3e4ae9ce7fc696a76ca8)
- [Dev Deps] update `tape` [`ad8446e`](https://github.com/es-shims/Array.prototype.toSorted/commit/ad8446ecbca6f724458af81da3aa3ffcd3552825)
## [v1.1.2](https://github.com/es-shims/Array.prototype.toSorted/compare/v1.1.1...v1.1.2) - 2023-09-07

@@ -10,0 +20,0 @@

3

implementation.js
'use strict';
var GetIntrinsic = require('get-intrinsic');
var callBound = require('call-bind/callBound');

@@ -13,3 +12,3 @@

var $TypeError = GetIntrinsic('%TypeError%');
var $TypeError = require('es-errors/type');

@@ -16,0 +15,0 @@ var $sort = callBound('Array.prototype.sort');

{
"name": "array.prototype.tosorted",
"version": "1.1.2",
"version": "1.1.3",
"description": "An ESnext spec-compliant `Array.prototype.toSorted` shim/polyfill/replacement that works as far down as ES3.",

@@ -48,6 +48,13 @@ "main": "index.js",

"homepage": "https://github.com/es-shims/Array.prototype.toSorted#readme",
"dependencies": {
"call-bind": "^1.0.5",
"define-properties": "^1.2.1",
"es-abstract": "^1.22.3",
"es-errors": "^1.1.0",
"es-shim-unscopables": "^1.0.2"
},
"devDependencies": {
"@es-shims/api": "^2.4.2",
"@ljharb/eslint-config": "^21.1.0",
"aud": "^2.0.3",
"aud": "^2.0.4",
"auto-changelog": "^2.4.0",

@@ -57,17 +64,10 @@ "eslint": "=8.8.0",

"functions-have-names": "^1.2.3",
"has": "^1.0.3",
"has-strict-mode": "^1.0.1",
"hasown": "^2.0.0",
"in-publish": "^2.0.1",
"npmignore": "^0.3.0",
"npmignore": "^0.3.1",
"nyc": "^10.3.2",
"safe-publish-latest": "^2.0.0",
"tape": "^5.6.6"
"tape": "^5.7.4"
},
"dependencies": {
"call-bind": "^1.0.2",
"define-properties": "^1.2.0",
"es-abstract": "^1.22.1",
"es-shim-unscopables": "^1.0.0",
"get-intrinsic": "^1.2.1"
},
"auto-changelog": {

@@ -74,0 +74,0 @@ "output": "CHANGELOG.md",

'use strict';
var has = require('has');
var hasOwn = require('hasown');

@@ -146,3 +146,3 @@ module.exports = function (toSorted, t) {

st.deepEqual(sorted, [1, 2, 3, 4, undefined]);
st.ok(has(sorted, 4));
st.ok(hasOwn(sorted, 4));

@@ -149,0 +149,0 @@ st.end();

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