promise-appenders 1.3.5 → 1.3.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.
- package/.github/workflows/github-actions.yml +18 -0
- package/.github/workflows/node.js.yml +71 -0
- package/README.md +6 -0
- package/package.json +2 -2
- package/test/package.js +2 -2
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
name: GitHub Actions
|
|
2
|
+
run-name: ${{ github.actor }} is testing out GitHub Actions 🚀
|
|
3
|
+
on: [push]
|
|
4
|
+
jobs:
|
|
5
|
+
Explore-GitHub-Actions:
|
|
6
|
+
runs-on: ubuntu-latest
|
|
7
|
+
steps:
|
|
8
|
+
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
|
|
9
|
+
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
|
|
10
|
+
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
|
|
11
|
+
- name: Check out repository code
|
|
12
|
+
uses: actions/checkout@v3
|
|
13
|
+
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
|
|
14
|
+
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
|
|
15
|
+
- name: List files in the repository
|
|
16
|
+
run: |
|
|
17
|
+
ls ${{ github.workspace }}
|
|
18
|
+
- run: echo "🍏 This job's status is ${{ job.status }}."
|
|
@@ -0,0 +1,71 @@
|
|
|
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: [16.x, 18.x]
|
|
26
|
+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
|
27
|
+
|
|
28
|
+
steps:
|
|
29
|
+
- uses: actions/checkout@v3
|
|
30
|
+
- name: Use Node.js ${{ matrix.node-version }}
|
|
31
|
+
uses: actions/setup-node@v3
|
|
32
|
+
with:
|
|
33
|
+
node-version: ${{ matrix.node-version }}
|
|
34
|
+
cache: 'npm'
|
|
35
|
+
|
|
36
|
+
- name: Configure npm
|
|
37
|
+
run: npm config set loglevel error
|
|
38
|
+
|
|
39
|
+
- name: Get npm version
|
|
40
|
+
id: npm-version
|
|
41
|
+
run: |
|
|
42
|
+
npm -v
|
|
43
|
+
npmMajorVer=$(npm -v | cut -d. -f1)
|
|
44
|
+
echo "major=$npmMajorVer" >> $GITHUB_OUTPUT
|
|
45
|
+
|
|
46
|
+
- name: Disable prettier on older Node.js (8.x, 10.x, 12.x)
|
|
47
|
+
run: |
|
|
48
|
+
sed -i '/"prettier": "prettier/d' package.json
|
|
49
|
+
if: contains(fromJson('["8.x", "10.x", "12.x"]'), matrix.node-version)
|
|
50
|
+
|
|
51
|
+
- name: Install downgraded modules ${{ matrix.npm-i }}
|
|
52
|
+
run: |
|
|
53
|
+
npm install --save-dev ${{ matrix.npm-i }}
|
|
54
|
+
if [ ${{ steps.npm-version.outputs.major }} -le 5 ]; then
|
|
55
|
+
npm install
|
|
56
|
+
fi
|
|
57
|
+
if: matrix.npm-i != ''
|
|
58
|
+
|
|
59
|
+
- run: npm install
|
|
60
|
+
if: matrix.npm-i == '' && steps.npm-version.outputs.major <= 5
|
|
61
|
+
|
|
62
|
+
- run: npm ci
|
|
63
|
+
if: matrix.npm-i == '' && steps.npm-version.outputs.major > 5
|
|
64
|
+
|
|
65
|
+
- name: List dependencies
|
|
66
|
+
run: npm ls --depth=0 --dev && npm ls --depth=0 --prod
|
|
67
|
+
|
|
68
|
+
- run: npm run build --if-present
|
|
69
|
+
- run: npm run test_files
|
|
70
|
+
- run: npm run test_all
|
|
71
|
+
- run: npm run test_json_all
|
package/README.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
[](https://www.npmjs.org/package/promise-appenders)
|
|
2
|
+
[](https://github.com/jman717/promise-appenders/blob/master/LICENSE)
|
|
3
|
+
[](https://github.com/jman717/promise-appenders/blob/main/.github/workflows/github-actions.yml)
|
|
4
|
+
[](https://github.com/jman717/promise-appenders/actions/workflows/node.js.yml)
|
|
5
|
+
|
|
6
|
+
[](https://nodei.co/npm/promise-appenders/)
|
|
1
7
|
|
|
2
8
|
Extend the functionality of promises with configurable appenders.
|
|
3
9
|
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"author": {
|
|
3
3
|
"name": "Jim Manton"
|
|
4
4
|
},
|
|
5
|
-
"version": "1.3.
|
|
5
|
+
"version": "1.3.7",
|
|
6
6
|
"bundleDependencies": [],
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"colors": "^1.4.0",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"scripts": {
|
|
16
16
|
"start": "node app.js",
|
|
17
|
-
"test": "mocha"
|
|
17
|
+
"test": "mocha"
|
|
18
18
|
},
|
|
19
19
|
"keywords": [
|
|
20
20
|
"promise",
|
package/test/package.js
CHANGED
|
@@ -6,7 +6,7 @@ const packageMock = {
|
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Jim Manton"
|
|
8
8
|
},
|
|
9
|
-
"version": "1.3.
|
|
9
|
+
"version": "1.3.7",
|
|
10
10
|
"bundleDependencies": [],
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"colors": "^1.4.0",
|
|
@@ -18,7 +18,7 @@ const packageMock = {
|
|
|
18
18
|
},
|
|
19
19
|
"scripts": {
|
|
20
20
|
"start": "node app.js",
|
|
21
|
-
"test": "mocha"
|
|
21
|
+
"test": "mocha"
|
|
22
22
|
},
|
|
23
23
|
"keywords": [
|
|
24
24
|
"promise",
|