string.prototype.trimstart
Advanced tools
+13
-0
@@ -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 @@ |
+8
-8
| { | ||
| "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" | ||
| } | ||
| } |
+6
-13
@@ -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 |
+3
-4
| '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 @@ }); |
| name: 'Tests: node.js' | ||
| on: [pull_request, push] | ||
| jobs: | ||
| matrix: | ||
| runs-on: ubuntu-latest | ||
| outputs: | ||
| latest: ${{ steps.set-matrix.outputs.requireds }} | ||
| minors: ${{ steps.set-matrix.outputs.optionals }} | ||
| steps: | ||
| - uses: ljharb/actions/node/matrix@main | ||
| id: set-matrix | ||
| with: | ||
| preset: '>=4' | ||
| latest: | ||
| needs: [matrix] | ||
| name: 'latest minors' | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: ${{ fromJson(needs.matrix.outputs.latest) }} | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - uses: ljharb/actions/node/run@main | ||
| name: 'npm install && npm run tests-only' | ||
| with: | ||
| node-version: ${{ matrix.node-version }} | ||
| command: 'tests-only' | ||
| minors: | ||
| needs: [matrix, latest] | ||
| name: 'non-latest minors' | ||
| continue-on-error: true | ||
| if: ${{ !github.head_ref || !startsWith(github.head_ref, 'renovate') }} | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: ${{ fromJson(needs.matrix.outputs.minors) }} | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - uses: ljharb/actions/node/run@main | ||
| with: | ||
| node-version: ${{ matrix.node-version }} | ||
| command: 'tests-only' | ||
| node: | ||
| name: 'node 4+' | ||
| needs: [latest, minors] | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - run: 'echo tests completed' |
| name: 'Tests: node.js (io.js)' | ||
| on: [pull_request, push] | ||
| jobs: | ||
| matrix: | ||
| runs-on: ubuntu-latest | ||
| outputs: | ||
| latest: ${{ steps.set-matrix.outputs.requireds }} | ||
| minors: ${{ steps.set-matrix.outputs.optionals }} | ||
| steps: | ||
| - uses: ljharb/actions/node/matrix@main | ||
| id: set-matrix | ||
| with: | ||
| preset: 'iojs' | ||
| latest: | ||
| needs: [matrix] | ||
| name: 'latest minors' | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: ${{ fromJson(needs.matrix.outputs.latest) }} | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - uses: ljharb/actions/node/run@main | ||
| name: 'npm install && npm run tests-only' | ||
| with: | ||
| node-version: ${{ matrix.node-version }} | ||
| command: 'tests-only' | ||
| skip-ls-check: true | ||
| minors: | ||
| needs: [matrix, latest] | ||
| name: 'non-latest minors' | ||
| continue-on-error: true | ||
| if: ${{ !github.head_ref || !startsWith(github.head_ref, 'renovate') }} | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: ${{ fromJson(needs.matrix.outputs.minors) }} | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - uses: ljharb/actions/node/run@main | ||
| name: 'npm install && npm run tests-only' | ||
| with: | ||
| node-version: ${{ matrix.node-version }} | ||
| command: 'tests-only' | ||
| skip-ls-check: true | ||
| node: | ||
| name: 'io.js' | ||
| needs: [latest, minors] | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - run: 'echo tests completed' |
| name: 'Tests: pretest/posttest' | ||
| on: [pull_request, push] | ||
| jobs: | ||
| pretest: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - uses: ljharb/actions/node/run@main | ||
| name: 'npm install && npm run pretest' | ||
| with: | ||
| node-version: 'lts/*' | ||
| command: 'pretest' | ||
| posttest: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - uses: ljharb/actions/node/run@main | ||
| name: 'npm install && npm run posttest' | ||
| with: | ||
| node-version: 'lts/*' | ||
| command: 'posttest' |
| name: 'Tests: node.js (0.x)' | ||
| on: [pull_request, push] | ||
| jobs: | ||
| matrix: | ||
| runs-on: ubuntu-latest | ||
| outputs: | ||
| stable: ${{ steps.set-matrix.outputs.requireds }} | ||
| unstable: ${{ steps.set-matrix.outputs.optionals }} | ||
| steps: | ||
| - uses: ljharb/actions/node/matrix@main | ||
| id: set-matrix | ||
| with: | ||
| preset: '0.x' | ||
| stable: | ||
| needs: [matrix] | ||
| name: 'stable minors' | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: ${{ fromJson(needs.matrix.outputs.stable) }} | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - uses: ljharb/actions/node/run@main | ||
| with: | ||
| node-version: ${{ matrix.node-version }} | ||
| command: 'tests-only' | ||
| cache-node-modules-key: node_modules-${{ github.workflow }}-${{ github.action }}-${{ github.run_id }} | ||
| skip-ls-check: true | ||
| unstable: | ||
| needs: [matrix, stable] | ||
| name: 'unstable minors' | ||
| continue-on-error: true | ||
| if: ${{ !github.head_ref || !startsWith(github.head_ref, 'renovate') }} | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: ${{ fromJson(needs.matrix.outputs.unstable) }} | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - uses: ljharb/actions/node/run@main | ||
| with: | ||
| node-version: ${{ matrix.node-version }} | ||
| command: 'tests-only' | ||
| cache-node-modules-key: node_modules-${{ github.workflow }}-${{ github.action }}-${{ github.run_id }} | ||
| skip-ls-check: true | ||
| node: | ||
| name: 'node 0.x' | ||
| needs: [stable, unstable] | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - run: 'echo tests completed' |
| name: Automatic Rebase | ||
| on: [pull_request_target] | ||
| jobs: | ||
| _: | ||
| name: "Automatic Rebase" | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v1 | ||
| - uses: ljharb/rebase@master | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| name: Require “Allow Edits” | ||
| on: [pull_request_target] | ||
| jobs: | ||
| _: | ||
| name: "Require “Allow Edits”" | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: ljharb/require-allow-edits@main | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
16904
-20.48%17
-26.09%126
-0.79%41
-14.58%Updated