file-obj-queue 3.0.6 → 3.0.22

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,81 @@
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 chai@5.x colors@1.x compare-json-difference@0.x log4js-tagline@5.x mocha@10.x"
30
+
31
+ - node-version: 10.x
32
+ npm-i: "eslint@7.x fs-extra@9.x nyc@14.x tap@14.x chai@5.x colors@1.x compare-json-difference@0.x log4js-tagline@5.x mocha@10.x"
33
+
34
+ - node-version: 12.x
35
+ npm-i: "fs-extra@10.x nyc@14.x tap@14.x chai@5.x colors@1.x compare-json-difference@0.x log4js-tagline@5.x mocha@10.x"
36
+
37
+ - node-version: 14.x
38
+ npm-i: "nyc@14.x tap@14.x chai@5.x colors@1.x compare-json-difference@0.x log4js-tagline@5.x mocha@10.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
+ - name: Disable prettier on older Node.js (8.x, 10.x)
58
+ run: |
59
+ sed -i '/"prettier": "prettier/d' package.json
60
+ if: contains(fromJson('["8.x", "10.x"'), matrix.node-version)
61
+
62
+ - name: Install downgraded modules ${{ matrix.npm-i }}
63
+ run: |
64
+ npm install --save-dev ${{ matrix.npm-i }}
65
+ if [ ${{ steps.npm-version.outputs.major }} -le 5 ]; then
66
+ npm install
67
+ fi
68
+ if: matrix.npm-i != ''
69
+
70
+ - run: npm install
71
+ if: matrix.npm-i == '' && steps.npm-version.outputs.major <= 5
72
+
73
+ - run: npm ci
74
+ if: matrix.npm-i == '' && steps.npm-version.outputs.major > 5
75
+
76
+ - name: List dependencies
77
+ run: npm ls --depth=0 --dev && npm ls --depth=0 --prod
78
+
79
+ - run: npm run build --if-present
80
+ - run: npm test
81
+ - run: npm run test_files
@@ -0,0 +1,75 @@
1
+ name: Publish Package To NPM
2
+
3
+ on:
4
+ workflow_run:
5
+ workflows:
6
+ - Node.js CI
7
+ types:
8
+ - completed
9
+
10
+ jobs:
11
+ build:
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - name: Checkout code
15
+ uses: actions/checkout@v4
16
+
17
+ - name: Setup Node.js
18
+ uses: actions/setup-node@v4
19
+ with:
20
+ node-version: 20
21
+
22
+ - name: Install dependencies
23
+ run: npm install
24
+
25
+ - name: Run tests
26
+ run: npm test
27
+
28
+ publish-npm:
29
+ needs: build
30
+ runs-on: ubuntu-latest
31
+ steps:
32
+ - uses: actions/checkout@v3
33
+ - name: Use Node.js ${{ matrix.node-version }}
34
+ uses: actions/setup-node@v3
35
+ with:
36
+ node-version: ${{ matrix.node-version }}
37
+ cache: 'npm'
38
+
39
+ - name: Configure npm
40
+ run: npm config set loglevel error
41
+
42
+ - name: Get npm version
43
+ id: npm-version
44
+ run: |
45
+ npm -v
46
+ npmMajorVer=$(npm -v | cut -d. -f1)
47
+ echo "major=$npmMajorVer" >> $GITHUB_OUTPUT
48
+ - name: Disable prettier on older Node.js (8.x, 10.x, 12.x)
49
+ run: |
50
+ sed -i '/"prettier": "prettier/d' package.json
51
+ if: contains(fromJson('["8.x", "10.x", "12.x"]'), matrix.node-version)
52
+
53
+ - name: Install downgraded modules ${{ matrix.npm-i }}
54
+ run: |
55
+ npm install --save-dev ${{ matrix.npm-i }}
56
+ if [ ${{ steps.npm-version.outputs.major }} -le 5 ]; then
57
+ npm install
58
+ fi
59
+ if: matrix.npm-i != ''
60
+
61
+ - run: npm install
62
+ if: matrix.npm-i == '' && steps.npm-version.outputs.major <= 5
63
+
64
+ - run: npm ci
65
+ if: matrix.npm-i == '' && steps.npm-version.outputs.major > 5
66
+
67
+ - name: List dependencies
68
+ run: npm ls --depth=0 --dev && npm ls --depth=0 --prod
69
+
70
+ - run: npm run build --if-present
71
+ - run: npm test
72
+ - run: npm run test_files
73
+ #- run: npm publish
74
+ # env:
75
+ # NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
package/package.json CHANGED
@@ -2,17 +2,18 @@
2
2
  "author": {
3
3
  "name": "Jim Manton"
4
4
  },
5
- "version": "3.0.6",
5
+ "version": "3.0.22",
6
6
  "bundleDependencies": [],
7
7
  "dependencies": {
8
- "@types/node": "^18.19.127",
9
- "chai": "^4.5.0",
8
+ "@types/node": "^24.7.1",
9
+ "chai": "^6.2.0",
10
10
  "colors": "^1.4.0",
11
11
  "diffler": "^2.0.4",
12
12
  "fs": "^0.0.1-security",
13
- "mocha": "^10.8.2",
13
+ "mocha": "^11.7.4",
14
14
  "queuejson": "^10.0.0",
15
- "typescript": "^4.9.5",
15
+ "ts-node": "^10.9.2",
16
+ "typescript": "^5.9.3",
16
17
  "valid-path": "^2.1.0"
17
18
  },
18
19
  "scripts": {
package/test/package.js CHANGED
@@ -6,17 +6,18 @@ const packageMock = {
6
6
  "author": {
7
7
  "name": "Jim Manton"
8
8
  },
9
- "version": "3.0.6",
9
+ "version": "3.0.22",
10
10
  "bundleDependencies": [],
11
11
  "dependencies": {
12
- "@types/node": "^18.19.127",
13
- "chai": "^4.5.0",
12
+ "@types/node": "^24.7.1",
13
+ "chai": "^6.2.0",
14
14
  "colors": "^1.4.0",
15
15
  "diffler": "^2.0.4",
16
16
  "fs": "^0.0.1-security",
17
- "mocha": "^10.8.2",
17
+ "mocha": "^11.7.4",
18
18
  "queuejson": "^10.0.0",
19
- "typescript": "^4.9.5",
19
+ "ts-node": "^10.9.2",
20
+ "typescript": "^5.9.3",
20
21
  "valid-path": "^2.1.0"
21
22
  },
22
23
  "scripts": {