Skip to content

Commit 0574a26

Browse files
committed
[Dev Deps] update eslint, @ljharb/eslint-config, @es-shims/api, aud, has-strict-mode, object-inspect, tape
1 parent dc9c1b3 commit 0574a26

8 files changed

Lines changed: 42 additions & 49 deletions

File tree

.github/workflows/node-4+.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,11 @@ jobs:
2424

2525
steps:
2626
- uses: actions/checkout@v2
27-
- uses: ljharb/actions/node/install@main
28-
name: 'nvm install ${{ matrix.node-version }} && npm install'
27+
- uses: ljharb/actions/node/run@main
28+
name: 'npm install && npm run tests-only'
2929
with:
3030
node-version: ${{ matrix.node-version }}
31-
- run: npm run tests-only
32-
- uses: codecov/codecov-action@v1
33-
31+
command: 'tests-only'
3432
minors:
3533
needs: [matrix, latest]
3634
name: 'non-latest minors'
@@ -43,12 +41,10 @@ jobs:
4341

4442
steps:
4543
- uses: actions/checkout@v2
46-
- uses: ljharb/actions/node/install@main
47-
name: 'nvm install ${{ matrix.node-version }} && npm install'
44+
- uses: ljharb/actions/node/run@main
4845
with:
4946
node-version: ${{ matrix.node-version }}
50-
- run: npm run tests-only
51-
- uses: codecov/codecov-action@v1
47+
command: 'tests-only'
5248

5349
node:
5450
name: 'node 4+'

.github/workflows/node-iojs.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,12 @@ jobs:
2424

2525
steps:
2626
- uses: actions/checkout@v2
27-
- uses: ljharb/actions/node/install@main
28-
name: 'nvm install ${{ matrix.node-version }} && npm install'
27+
- uses: ljharb/actions/node/run@main
28+
name: 'npm install && npm run tests-only'
2929
with:
3030
node-version: ${{ matrix.node-version }}
31+
command: 'tests-only'
3132
skip-ls-check: true
32-
- run: npm run tests-only
33-
- uses: codecov/codecov-action@v1
3433

3534
minors:
3635
needs: [matrix, latest]
@@ -44,13 +43,12 @@ jobs:
4443

4544
steps:
4645
- uses: actions/checkout@v2
47-
- uses: ljharb/actions/node/install@main
48-
name: 'nvm install ${{ matrix.node-version }} && npm install'
46+
- uses: ljharb/actions/node/run@main
47+
name: 'npm install && npm run tests-only'
4948
with:
5049
node-version: ${{ matrix.node-version }}
50+
command: 'tests-only'
5151
skip-ls-check: true
52-
- run: npm run tests-only
53-
- uses: codecov/codecov-action@v1
5452

5553
node:
5654
name: 'io.js'

.github/workflows/node-pretest.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@ jobs:
88

99
steps:
1010
- uses: actions/checkout@v2
11-
- uses: ljharb/actions/node/install@main
12-
name: 'nvm install lts/* && npm install'
11+
- uses: ljharb/actions/node/run@main
12+
name: 'npm install && npm run pretest'
1313
with:
1414
node-version: 'lts/*'
15-
- run: npm run pretest
15+
command: 'pretest'
1616

1717
posttest:
1818
runs-on: ubuntu-latest
1919

2020
steps:
2121
- uses: actions/checkout@v2
22-
- uses: ljharb/actions/node/install@main
23-
name: 'nvm install lts/* && npm install'
22+
- uses: ljharb/actions/node/run@main
23+
name: 'npm install && npm run posttest'
2424
with:
2525
node-version: 'lts/*'
26-
- run: npm run posttest
26+
command: 'posttest'

.github/workflows/node-zero.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,12 @@ jobs:
2424

2525
steps:
2626
- uses: actions/checkout@v2
27-
- uses: ljharb/actions/node/install@main
28-
name: 'nvm install ${{ matrix.node-version }} && npm install'
27+
- uses: ljharb/actions/node/run@main
2928
with:
3029
node-version: ${{ matrix.node-version }}
30+
command: 'tests-only'
3131
cache-node-modules-key: node_modules-${{ github.workflow }}-${{ github.action }}-${{ github.run_id }}
3232
skip-ls-check: true
33-
- run: npm run tests-only
34-
- uses: codecov/codecov-action@v1
3533

3634
unstable:
3735
needs: [matrix, stable]
@@ -45,14 +43,12 @@ jobs:
4543

4644
steps:
4745
- uses: actions/checkout@v2
48-
- uses: ljharb/actions/node/install@main
49-
name: 'nvm install ${{ matrix.node-version }} && npm install'
46+
- uses: ljharb/actions/node/run@main
5047
with:
5148
node-version: ${{ matrix.node-version }}
49+
command: 'tests-only'
5250
cache-node-modules-key: node_modules-${{ github.workflow }}-${{ github.action }}-${{ github.run_id }}
5351
skip-ls-check: true
54-
- run: npm run tests-only
55-
- uses: codecov/codecov-action@v1
5652

5753
node:
5854
name: 'node 0.x'

.github/workflows/rebase.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v1
1313
- uses: ljharb/rebase@master
1414
env:
1515
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# array.prototype.flatmap <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
22

3+
[![Build Status][travis-svg]][travis-url]
34
[![dependency status][deps-svg]][deps-url]
45
[![dev dependency status][dev-deps-svg]][dev-deps-url]
56
[![License][license-image]][license-url]
@@ -64,13 +65,15 @@ assert.deepEqual(arr.flatMap(mapper), flatMap(arr, mapper));
6465
Simply clone the repo, `npm install`, and run `npm test`
6566

6667
[package-url]: https://npmjs.org/package/array.prototype.flatmap
67-
[npm-version-svg]: https://versionbadg.es/es-shims/Array.prototype.flatMap.svg
68+
[npm-version-svg]: http://versionbadg.es/es-shims/Array.prototype.flatMap.svg
69+
[travis-svg]: https://travis-ci.org/es-shims/Array.prototype.flatMap.svg
70+
[travis-url]: https://travis-ci.org/es-shims/Array.prototype.flatMap
6871
[deps-svg]: https://david-dm.org/es-shims/Array.prototype.flatMap.svg
6972
[deps-url]: https://david-dm.org/es-shims/Array.prototype.flatMap
7073
[dev-deps-svg]: https://david-dm.org/es-shims/Array.prototype.flatMap/dev-status.svg
7174
[dev-deps-url]: https://david-dm.org/es-shims/Array.prototype.flatMap#info=devDependencies
7275
[npm-badge-png]: https://nodei.co/npm/array.prototype.flatmap.png?downloads=true&stars=true
73-
[license-image]: https://img.shields.io/npm/l/array.prototype.flatmap.svg
76+
[license-image]: http://img.shields.io/npm/l/array.prototype.flatmap.svg
7477
[license-url]: LICENSE
75-
[downloads-image]: https://img.shields.io/npm/dm/array.prototype.flatmap.svg
76-
[downloads-url]: https://npm-stat.com/charts.html?package=array.prototype.flatmap
78+
[downloads-image]: http://img.shields.io/npm/dm/array.prototype.flatmap.svg
79+
[downloads-url]: http://npm-stat.com/charts.html?package=array.prototype.flatmap

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
"license": "MIT",
2121
"main": "index",
2222
"scripts": {
23-
"prepublish": "not-in-publish || npm run prepublishOnly",
24-
"prepublishOnly": "safe-publish-latest",
23+
"prepublish": "safe-publish-latest",
2524
"pretest": "npm run --silent lint && evalmd README.md",
2625
"test": "npm run tests-only",
2726
"posttest": "aud --production",
@@ -45,23 +44,24 @@
4544
"es-shim API"
4645
],
4746
"dependencies": {
48-
"call-bind": "^1.0.2",
47+
"call-bind": "^1.0.0",
4948
"define-properties": "^1.1.3",
50-
"es-abstract": "^1.18.0"
49+
"es-abstract": "^1.18.0-next.1",
50+
"function-bind": "^1.1.1"
5151
},
5252
"devDependencies": {
53-
"@es-shims/api": "^2.1.2",
54-
"@ljharb/eslint-config": "^17.5.1",
55-
"aud": "^1.1.4",
53+
"@es-shims/api": "^2.2.1",
54+
"@ljharb/eslint-config": "^18.0.0",
55+
"aud": "^1.1.5",
5656
"covert": "^1.1.1",
57-
"eslint": "^7.23.0",
57+
"eslint": "^7.32.0",
5858
"evalmd": "0.0.19",
5959
"foreach": "^2.0.5",
6060
"has-strict-mode": "^1.0.1",
6161
"nyc": "^10.3.2",
62-
"object-inspect": "^1.9.0",
62+
"object-inspect": "^1.11.0",
6363
"safe-publish-latest": "^1.1.4",
64-
"tape": "^5.2.2"
64+
"tape": "^5.3.1"
6565
},
6666
"testling": {
6767
"files": [

test/shimmed.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
'use strict';
22

3-
require('../auto');
3+
require('../shim')();
44

55
var test = require('tape');
66
var defineProperties = require('define-properties');
7-
var callBind = require('call-bind');
7+
var bind = require('function-bind');
88
var isEnumerable = Object.prototype.propertyIsEnumerable;
99
var functionsHaveNames = function f() {}.name === 'f';
1010

@@ -30,7 +30,7 @@ test('shimmed', function (t) {
3030
st.end();
3131
});
3232

33-
runTests(callBind(Array.prototype.flatMap), t);
33+
runTests(bind.call(Function.call, Array.prototype.flatMap), t);
3434

3535
t.end();
3636
});

0 commit comments

Comments
 (0)