file-obj-queue 1.0.5 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,82 @@
1
+ # This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2
+ # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3
+
4
+ name: Node.js CI
5
+
6
+ on:
7
+ push:
8
+ branches: [ "master" ]
9
+ pull_request:
10
+ branches: [ "master" ]
11
+ workflow_dispatch: {}
12
+
13
+ jobs:
14
+ build:
15
+
16
+ runs-on: ${{ matrix.os }}
17
+
18
+ defaults:
19
+ run:
20
+ shell: bash
21
+
22
+ strategy:
23
+ matrix:
24
+ os: [ubuntu-latest, windows-latest]
25
+ node-version: [8.x, 10.x, 12.x, 14.x, 16.x, 18.x]
26
+ # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
27
+ include:
28
+ - node-version: 8.x
29
+ npm-i: "eslint@6.x eslint-config-airbnb-base@14.x eslint-config-prettier@6.x eslint-plugin-prettier@3.x fs-extra@8.x nyc@14.x tap@14.x"
30
+
31
+ - node-version: 10.x
32
+ npm-i: "eslint@7.x fs-extra@9.x nyc@14.x tap@14.x"
33
+
34
+ - node-version: 12.x
35
+ npm-i: "nyc@14.x tap@14.x"
36
+
37
+ - node-version: 14.x
38
+ npm-i: "nyc@14.x tap@14.x"
39
+
40
+ steps:
41
+ - uses: actions/checkout@v3
42
+ - name: Use Node.js ${{ matrix.node-version }}
43
+ uses: actions/setup-node@v3
44
+ with:
45
+ node-version: ${{ matrix.node-version }}
46
+ cache: 'npm'
47
+
48
+ - name: Configure npm
49
+ run: npm config set loglevel error
50
+
51
+ - name: Get npm version
52
+ id: npm-version
53
+ run: |
54
+ npm -v
55
+ npmMajorVer=$(npm -v | cut -d. -f1)
56
+ echo "major=$npmMajorVer" >> $GITHUB_OUTPUT
57
+
58
+ - name: Disable prettier on older Node.js (8.x, 10.x, 12.x)
59
+ run: |
60
+ sed -i '/"prettier": "prettier/d' package.json
61
+ if: contains(fromJson('["8.x", "10.x", "12.x"]'), matrix.node-version)
62
+
63
+ - name: Install downgraded modules ${{ matrix.npm-i }}
64
+ run: |
65
+ npm install --save-dev ${{ matrix.npm-i }}
66
+ if [ ${{ steps.npm-version.outputs.major }} -le 5 ]; then
67
+ npm install
68
+ fi
69
+ if: matrix.npm-i != ''
70
+
71
+ - run: npm install
72
+ if: matrix.npm-i == '' && steps.npm-version.outputs.major <= 5
73
+
74
+ - run: npm ci
75
+ if: matrix.npm-i == '' && steps.npm-version.outputs.major > 5
76
+
77
+ - name: List dependencies
78
+ run: npm ls --depth=0 --dev && npm ls --depth=0 --prod
79
+
80
+ - run: npm run build --if-present
81
+ - run: npm test
82
+ - run: npm run typings
package/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  [![npm Package](https://img.shields.io/npm/v/file-obj-queue.svg)](https://www.npmjs.org/package/file-obj-queue)
2
2
  [![License](https://img.shields.io/npm/l/file-obj-queue.svg)](https://github.com/jman717/file-obj-queue/blob/master/LICENSE)
3
3
  [![CodeQL](https://github.com/jman717/file-obj-queue/actions/workflows/github-actions-demo.yml/badge.svg)](https://github.com/jman717/file-obj-queue/actions/workflows/github-actions-demo.yml)
4
+ [![Node.js CI](https://github.com/jman717/file-obj-queue/actions/workflows/node.js.yml/badge.svg)](https://github.com/jman717/file-obj-queue/actions/workflows/node.js.yml)
4
5
 
5
6
  [![NPM](https://nodei.co/npm/file-obj-queue.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/file-obj-queue/)
6
7
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "author": {
3
3
  "name": "Jim Manton"
4
4
  },
5
- "version": "1.0.5",
5
+ "version": "1.0.7",
6
6
  "bundleDependencies": [],
7
7
  "dependencies": {
8
8
  "chai": "^4.3.7",
package/test/package.js CHANGED
@@ -6,7 +6,7 @@ const packageMock = {
6
6
  "author": {
7
7
  "name": "Jim Manton"
8
8
  },
9
- "version": "1.0.5",
9
+ "version": "1.0.7",
10
10
  "bundleDependencies": [],
11
11
  "dependencies": {
12
12
  "chai": "^4.3.7",