file-obj-queue 3.0.22 → 3.0.51
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.
|
@@ -1,75 +1,29 @@
|
|
|
1
1
|
name: Publish Package To NPM
|
|
2
2
|
|
|
3
|
-
on:
|
|
3
|
+
on:
|
|
4
4
|
workflow_run:
|
|
5
5
|
workflows:
|
|
6
6
|
- Node.js CI
|
|
7
7
|
types:
|
|
8
8
|
- completed
|
|
9
|
-
|
|
9
|
+
|
|
10
10
|
jobs:
|
|
11
11
|
build:
|
|
12
12
|
runs-on: ubuntu-latest
|
|
13
13
|
steps:
|
|
14
|
-
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
- name: Setup Node.js
|
|
18
|
-
uses: actions/setup-node@v4
|
|
14
|
+
- uses: actions/checkout@v4
|
|
15
|
+
- uses: actions/setup-node@v4
|
|
19
16
|
with:
|
|
20
17
|
node-version: 20
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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 }}
|
|
18
|
+
- run: |
|
|
19
|
+
git config --global user.email "you@example.com"
|
|
20
|
+
git config --global user.name "Your Name"
|
|
21
|
+
git checkout $CI_COMMIT_REF_NAME
|
|
22
|
+
npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN
|
|
23
|
+
npm config set scope "@tenado"
|
|
24
|
+
SPACE_CHAR=" "
|
|
25
|
+
npx standard-version --releaseCommitMessageFormat "chore(release):${SPACE_CHAR}{{currentTag}}"
|
|
26
|
+
git push --follow-tags origin $CI_COMMIT_REF_NAME
|
|
27
|
+
npm publish --access public
|
|
28
|
+
env:
|
|
29
|
+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
name: Test Variables
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_call:
|
|
5
|
+
inputs:
|
|
6
|
+
username:
|
|
7
|
+
description: 'A username passed from the caller workflow'
|
|
8
|
+
default: 'john-doe'
|
|
9
|
+
required: false
|
|
10
|
+
type: string
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
print-username:
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
|
|
16
|
+
steps:
|
|
17
|
+
- name: Print the input name to STDOUT
|
|
18
|
+
run: echo The username is ${{ inputs.username }}
|
|
19
|
+
# before_script:
|
|
20
|
+
# - echo "@products:registry=http://${CI_SERVER_HOST}:${CI_SERVER_PORT}/api/v4/projects/${CI_PROJECT_ID}/packages/npm/">.npmrc
|
|
21
|
+
# - echo "//${CI_SERVER_HOST}:${CI_SERVER_PORT}/api/v4/projects/${CI_PROJECT_ID}/packages/npm/:_authToken=${CI_JOB_TOKEN}">>.npmrc
|
package/.nvmrc
ADDED
|
Binary file
|
package/package.json
CHANGED
|
@@ -2,20 +2,23 @@
|
|
|
2
2
|
"author": {
|
|
3
3
|
"name": "Jim Manton"
|
|
4
4
|
},
|
|
5
|
-
"version": "3.0.
|
|
5
|
+
"version": "3.0.51",
|
|
6
6
|
"bundleDependencies": [],
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@types/node": "^24.7.1",
|
|
9
|
-
"chai": "^6.2.
|
|
9
|
+
"chai": "^6.2.2",
|
|
10
10
|
"colors": "^1.4.0",
|
|
11
11
|
"diffler": "^2.0.4",
|
|
12
12
|
"fs": "^0.0.1-security",
|
|
13
|
-
"mocha": "^11.7.
|
|
13
|
+
"mocha": "^11.7.5",
|
|
14
14
|
"queuejson": "^10.0.0",
|
|
15
15
|
"ts-node": "^10.9.2",
|
|
16
16
|
"typescript": "^5.9.3",
|
|
17
17
|
"valid-path": "^2.1.0"
|
|
18
18
|
},
|
|
19
|
+
"engines": {
|
|
20
|
+
"node": "22.20.0"
|
|
21
|
+
},
|
|
19
22
|
"scripts": {
|
|
20
23
|
"start": "node app.ts",
|
|
21
24
|
"test": "mocha",
|
|
@@ -44,4 +47,4 @@
|
|
|
44
47
|
"main": "app.js",
|
|
45
48
|
"name": "file-obj-queue",
|
|
46
49
|
"start": "node app.js"
|
|
47
|
-
}
|
|
50
|
+
}
|
package/test/package.js
CHANGED
|
@@ -6,20 +6,23 @@ const packageMock = {
|
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Jim Manton"
|
|
8
8
|
},
|
|
9
|
-
"version": "3.0.
|
|
9
|
+
"version": "3.0.51",
|
|
10
10
|
"bundleDependencies": [],
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@types/node": "^24.7.1",
|
|
13
|
-
"chai": "^6.2.
|
|
13
|
+
"chai": "^6.2.2",
|
|
14
14
|
"colors": "^1.4.0",
|
|
15
15
|
"diffler": "^2.0.4",
|
|
16
16
|
"fs": "^0.0.1-security",
|
|
17
|
-
"mocha": "^11.7.
|
|
17
|
+
"mocha": "^11.7.5",
|
|
18
18
|
"queuejson": "^10.0.0",
|
|
19
19
|
"ts-node": "^10.9.2",
|
|
20
20
|
"typescript": "^5.9.3",
|
|
21
21
|
"valid-path": "^2.1.0"
|
|
22
22
|
},
|
|
23
|
+
"engines": {
|
|
24
|
+
"node": "22.20.0"
|
|
25
|
+
},
|
|
23
26
|
"scripts": {
|
|
24
27
|
"start": "node app.ts",
|
|
25
28
|
"test": "mocha",
|
|
@@ -1,81 +0,0 @@
|
|
|
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
|