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

string.prototype.split

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

string.prototype.split - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

.eslintignore

13

CHANGELOG.md

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

## [v1.0.2](https://github.com/es-shims/String.prototype.split/compare/v1.0.1...v1.0.2) - 2020-11-19
### Commits
- [Tests] migrate tests to Github Actions [`3051ffa`](https://github.com/es-shims/String.prototype.split/commit/3051ffa88381eb811580444f9c1849ffc3a06e53)
- [meta] do not publish github action workflow files [`aba1b8c`](https://github.com/es-shims/String.prototype.split/commit/aba1b8cd8273f8ea5cb7f386934e7d9282e335c0)
- [Tests] run `nyc` on all tests [`c13200e`](https://github.com/es-shims/String.prototype.split/commit/c13200e43d89e97944f7ec47f7c8c07696ad45d4)
- [Refactor] add `get-intrinsic` and `call-bind` [`b3d60d8`](https://github.com/es-shims/String.prototype.split/commit/b3d60d83226bf932610b71c4596d22309467c700)
- [actions] add "Allow Edits" workflow [`f80d595`](https://github.com/es-shims/String.prototype.split/commit/f80d595d3b4fc7a45aeaaf75eb909283019cf6ef)
- [Tests] make 0.6 required [`75f6023`](https://github.com/es-shims/String.prototype.split/commit/75f6023937d0b733a0b59987dbe36f9f08c3c050)
- [Robustness] cache `String.prototype.split.apply` in the implementation [`ef5b3cd`](https://github.com/es-shims/String.prototype.split/commit/ef5b3cd7ad095fb470734ec8196a0324fd39edb2)
- [Tests] add `aud` [`bf4ef72`](https://github.com/es-shims/String.prototype.split/commit/bf4ef7270c4ba714d5ace50f680f2ada515c4acc)
## [v1.0.1](https://github.com/es-shims/String.prototype.split/compare/v1.0.0...v1.0.1) - 2020-08-16

@@ -10,0 +23,0 @@

6

implementation-broken-captures.js
'use strict';
var GetIntrinsic = require('es-abstract/GetIntrinsic');
var callBind = require('es-abstract/helpers/callBind');
var callBound = require('es-abstract/helpers/callBound');
var GetIntrinsic = require('get-intrinsic');
var callBind = require('call-bind');
var callBound = require('call-bind/callBound');
var ToUint32 = require('es-abstract/2020/ToUint32');

@@ -7,0 +7,0 @@ var regexFlags = require('regexp.prototype.flags');

'use strict';
var callBound = require('es-abstract/helpers/callBound');
var callBound = require('call-bind/callBound');

@@ -5,0 +5,0 @@ var strSplit = callBound('String.prototype.split');

'use strict';
// var ToObject = require('es-abstract/2020/ToObject');
var callBind = require('call-bind');
var $split = callBind.apply(String.prototype.split);
module.exports = function split() {
// var O = ToObject(this);
return String.prototype.split.apply(this, arguments);
return $split(this, arguments);
};
'use strict';
var define = require('define-properties');
var callBind = require('es-abstract/helpers/callBind');
var callBind = require('call-bind');
var RequireObjectCoercible = require('es-abstract/2020/RequireObjectCoercible');

@@ -6,0 +6,0 @@

{
"name": "string.prototype.split",
"version": "1.0.1",
"version": "1.0.2",
"description": "An ES spec-compliant `String.prototype.split` shim/polyfill/replacement that works as far down as ES3",

@@ -46,6 +46,6 @@ "main": "index.js",

"pretest": "npm run lint",
"tests-only": "tape 'test/*.js'",
"tests-esm": "node test/index.mjs",
"tests-only": "nyc tape 'test/*.js'",
"tests-esm": "nyc node test/index.mjs",
"test": "npm run tests-only && npm run tests-esm",
"posttest": "npx aud",
"posttest": "aud --production",
"version": "auto-changelog && git add CHANGELOG.md",

@@ -74,4 +74,6 @@ "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""

"dependencies": {
"call-bind": "^1.0.0",
"define-properties": "^1.1.3",
"es-abstract": "^1.18.0-next.0",
"get-intrinsic": "^1.0.1",
"is-regex": "^1.1.1",

@@ -83,2 +85,3 @@ "regexp.prototype.flags": "^1.3.0"

"@ljharb/eslint-config": "^17.1.0",
"aud": "^1.1.3",
"auto-changelog": "^2.2.0",

@@ -88,2 +91,3 @@ "eslint": "^7.7.0",

"has-strict-mode": "^1.0.0",
"nyc": "^10.3.2",
"safe-publish-latest": "^1.1.4",

@@ -90,0 +94,0 @@ "tape": "^5.0.1"

'use strict';
var implementation = require('../implementation');
var callBind = require('es-abstract/helpers/callBind');
var callBind = require('call-bind');
var test = require('tape');

@@ -6,0 +6,0 @@ var hasStrictMode = require('has-strict-mode')();

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

var defineProperties = require('define-properties');
var callBind = require('es-abstract/helpers/callBind');
var callBind = require('call-bind');

@@ -10,0 +10,0 @@ var isEnumerable = Object.prototype.propertyIsEnumerable;

Sorry, the diff of this file is not supported yet

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