🚀 Socket Launch Week 🚀 Day 5: Introducing Socket Fix.Learn More
Socket
Sign inDemoInstall
Socket

string.prototype.padstart

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.padstart - npm Package Compare versions

Comparing version

to
3.1.2

8

CHANGELOG.md

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

3.1.2 / 2021-02-20
=================
* [meta] do not publish github action workflow files
* [Deps] update `call-bind`, `es-abstract`
* [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `functions-have-names`, `has-strict-mode`, `tape`
* [actions] update workflows
* [Tests] increase coverage
3.1.1 / 2020-11-21

@@ -2,0 +10,0 @@ =================

18

package.json
{
"name": "string.prototype.padstart",
"version": "3.1.1",
"version": "3.1.2",
"author": "Jordan Harband <ljharb@gmail.com>",

@@ -40,16 +40,16 @@ "funding": {

"dependencies": {
"call-bind": "^1.0.0",
"call-bind": "^1.0.2",
"define-properties": "^1.1.3",
"es-abstract": "^1.18.0-next.1"
"es-abstract": "^1.18.0-next.2"
},
"devDependencies": {
"@es-shims/api": "^2.1.2",
"@ljharb/eslint-config": "^17.2.0",
"aud": "^1.1.3",
"eslint": "^7.14.0",
"functions-have-names": "^1.2.1",
"has-strict-mode": "^1.0.0",
"@ljharb/eslint-config": "^17.5.1",
"aud": "^1.1.4",
"eslint": "^7.20.0",
"functions-have-names": "^1.2.2",
"has-strict-mode": "^1.0.1",
"nyc": "^10.3.2",
"safe-publish-latest": "^1.1.4",
"tape": "^5.0.1"
"tape": "^5.2.0"
},

@@ -56,0 +56,0 @@ "testling": {

'use strict';
var padStart = require('../');
padStart.shim();
require('../auto');

@@ -29,4 +28,4 @@ var test = require('tape');

t.test('bad string/this value', { skip: !supportsStrictMode }, function (st) {
st['throws'](function () { return padStart(undefined, 'a'); }, TypeError, 'undefined is not an object');
st['throws'](function () { return padStart(null, 'a'); }, TypeError, 'null is not an object');
st['throws'](function () { return String.prototype.padStart.call(undefined, 'a'); }, TypeError, 'undefined is not an object');
st['throws'](function () { return String.prototype.padStart.call(null, 'a'); }, TypeError, 'null is not an object');
st.end();

@@ -33,0 +32,0 @@ });