string.prototype.padstart
Advanced tools
+8
-0
@@ -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 @@ ================= |
+9
-9
| { | ||
| "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": { |
+3
-4
| '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 @@ }); |
| 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 }} |
13575
-27.21%18
-25%148
-0.67%Updated
Updated