Socket
Socket
Sign inDemoInstall

string.prototype.trimstart

Package Overview
Dependencies
14
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.3 to 1.0.4

13

CHANGELOG.md

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

## [v1.0.4](https://github.com/es-shims/String.prototype.trimStart/compare/v1.0.3...v1.0.4) - 2021-02-23
### Commits
- [meta] do not publish github action workflow files [`9c434ec`](https://github.com/es-shims/String.prototype.trimStart/commit/9c434eceb50141cf36e8e65f514226b0b547b568)
- [readme] remove travis badge [`7843160`](https://github.com/es-shims/String.prototype.trimStart/commit/7843160a3e8feaa2213feb0da9c5ad7d9bf21b59)
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `functions-have-names`, `has-strict-mode`, `tape` [`8b52646`](https://github.com/es-shims/String.prototype.trimStart/commit/8b52646510aea20473da5491fe0876117a2251b1)
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `tape` [`badeda2`](https://github.com/es-shims/String.prototype.trimStart/commit/badeda2b01d2e266e4d1c2e7dc0e4fca0f066f3e)
- [Tests] increase coverage [`bf8777d`](https://github.com/es-shims/String.prototype.trimStart/commit/bf8777d54c4b05c093559021cfaf0670306120f8)
- [actions] update workflows [`61be1c6`](https://github.com/es-shims/String.prototype.trimStart/commit/61be1c649ae859faa40286e57fa22cef65ae1229)
- [meta] gitignore coverage output [`c9c98d7`](https://github.com/es-shims/String.prototype.trimStart/commit/c9c98d75d7708e8906a39b55a0ad7a0ed6a9e4b0)
- [Deps] update `call-bind` [`c8645e8`](https://github.com/es-shims/String.prototype.trimStart/commit/c8645e89f9ace7681660ba66c724cf00c798f3d4)
## [v1.0.3](https://github.com/es-shims/String.prototype.trimStart/compare/v1.0.2...v1.0.3) - 2020-11-21

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

16

package.json
{
"name": "string.prototype.trimstart",
"version": "1.0.3",
"version": "1.0.4",
"author": "Jordan Harband <ljharb@gmail.com>",

@@ -47,11 +47,11 @@ "contributors": [

"@es-shims/api": "^2.1.2",
"@ljharb/eslint-config": "^17.2.0",
"aud": "^1.1.3",
"@ljharb/eslint-config": "^17.5.1",
"aud": "^1.1.4",
"auto-changelog": "^2.2.1",
"eslint": "^7.14.0",
"functions-have-names": "^1.2.1",
"has-strict-mode": "^1.0.0",
"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"
},

@@ -67,5 +67,5 @@ "auto-changelog": {

"dependencies": {
"call-bind": "^1.0.0",
"call-bind": "^1.0.2",
"define-properties": "^1.1.3"
}
}

@@ -1,4 +0,3 @@

String.prototype.trimStart <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
# String.prototype.trimStart <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
[![Build Status][travis-svg]][travis-url]
[![dependency status][deps-svg]][deps-url]

@@ -11,7 +10,5 @@ [![dev dependency status][dev-deps-svg]][dev-deps-url]

[![browser support][testling-svg]][testling-url]
An ES2019-spec-compliant `String.prototype.trimStart` shim. Invoke its "shim" method to shim `String.prototype.trimStart` if it is unavailable.
This package implements the [es-shim API](https://github.com/es-shims/api) interface. It works in an ES3-supported environment and complies with the [spec](http://www.ecma-international.org/ecma-262/6.0/#sec-object.assign). In an ES6 environment, it will also work properly with `Symbol`s.
This package implements the [es-shim API](https://github.com/es-shims/api) interface. It works in an ES3-supported environment and complies with the [spec](https://www.ecma-international.org/ecma-262/6.0/#sec-object.assign). In an ES6 environment, it will also work properly with `Symbol`s.

@@ -35,5 +32,3 @@ Most common usage:

[package-url]: https://npmjs.com/package/string.prototype.trimstart
[npm-version-svg]: http://vb.teelaun.ch/es-shims/String.prototype.trimStart.svg
[travis-svg]: https://travis-ci.org/es-shims/String.prototype.trimStart.svg
[travis-url]: https://travis-ci.org/es-shims/String.prototype.trimStart
[npm-version-svg]: https://vb.teelaun.ch/es-shims/String.prototype.trimStart.svg
[deps-svg]: https://david-dm.org/es-shims/String.prototype.trimStart.svg

@@ -43,8 +38,6 @@ [deps-url]: https://david-dm.org/es-shims/String.prototype.trimStart

[dev-deps-url]: https://david-dm.org/es-shims/String.prototype.trimStart#info=devDependencies
[testling-svg]: https://ci.testling.com/es-shims/String.prototype.trimStart.png
[testling-url]: https://ci.testling.com/es-shims/String.prototype.trimStart
[npm-badge-png]: https://nodei.co/npm/string.prototype.trimstart.png?downloads=true&stars=true
[license-image]: http://img.shields.io/npm/l/string.prototype.trimstart.svg
[license-image]: https://img.shields.io/npm/l/string.prototype.trimstart.svg
[license-url]: LICENSE
[downloads-image]: http://img.shields.io/npm/dm/string.prototype.trimstart.svg
[downloads-url]: http://npm-stat.com/charts.html?package=string.prototype.trimstart
[downloads-image]: https://img.shields.io/npm/dm/string.prototype.trimstart.svg
[downloads-url]: https://npm-stat.com/charts.html?package=string.prototype.trimstart
'use strict';
var trimStart = require('../');
trimStart.shim();
require('../auto');

@@ -29,4 +28,4 @@ var runTests = require('./tests');

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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc