Skip to content

Commit cd8ebb3

Browse files
authored
Update dependencies & trusted publisher (#17)
* Update uuid from 10.0 -> 13.0.0 * Update node-red-node-test-helper from 0.3.4 -> 0.3.5 * Update other dev dependencies to lastest versions
1 parent ec27ccc commit cd8ebb3

File tree

4 files changed

+49
-16
lines changed

4 files changed

+49
-16
lines changed
File renamed without changes.

README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,35 @@ Changes can be followed [here](/CHANGELOG.md).
6767

6868
## Examples
6969
Import into Node-RED instance via Node-RED -> Import -> Examples.
70+
71+
72+
# Development
73+
74+
## Setup environment
75+
76+
```
77+
npm install --save-dev
78+
```
79+
80+
### Format / Linter / Tests
81+
82+
```
83+
# Check linter
84+
npm run lint
85+
86+
# Run all tests incl. coverage check
87+
npm run coverage
88+
89+
# Run subset of tests
90+
npm run test -- -g "<filter>"
91+
92+
# Node-RED package verification
93+
npm run node-red-dev-validate
94+
```
95+
96+
### Update dependencies to latest versions
97+
98+
```
99+
# Show outdated dependencies
100+
npm outdated
101+
```

package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,21 @@
2828
"node": ">=8"
2929
},
3030
"dependencies": {
31-
"uuid": ">=10.0"
31+
"uuid": "13.0.0"
3232
},
3333
"devDependencies": {
34-
"eslint": "^8.57.0",
35-
"eslint-config-google": "^0.14.0",
36-
"eslint-plugin-html": "^8.1.1",
37-
"eslint-plugin-import": "^2.30.0",
38-
"eslint-plugin-n": "^17.10.2",
39-
"eslint-plugin-promise": "^7.1.0",
40-
"mocha": "^10.7.3",
41-
"mocha-suppress-logs": "^0.5.1",
42-
"node-red": "^4.0.2",
43-
"node-red-dev": "^0.1.6",
44-
"node-red-node-test-helper": "^0.3.4",
45-
"nyc": "^17.0.0"
34+
"eslint": "8.57.1",
35+
"eslint-config-google": "0.14.0",
36+
"eslint-plugin-html": "8.1.3",
37+
"eslint-plugin-import": "2.32.0",
38+
"eslint-plugin-n": "17.23.1",
39+
"eslint-plugin-promise": "7.2.1",
40+
"mocha": "11.7.4",
41+
"mocha-suppress-logs": "0.6.0",
42+
"node-red": "4.1.1",
43+
"node-red-dev": "0.1.6",
44+
"node-red-node-test-helper": "0.3.5",
45+
"nyc": "17.1.0"
4646
},
4747
"eslintConfig": {
4848
"env": {

test/persistent_value_spec.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -672,8 +672,8 @@ describe('persistent value node', function() {
672672
});
673673
v.receive({payload: simulatedValue});
674674
v.status.should.be.calledWithMatch({
675-
fill: 'red', shape: 'dot',
676-
text: `${simulatedValue} [str,global,file]`,
675+
fill: 'green', shape: 'dot',
676+
text: `${simulatedValue} [string,global,file]`,
677677
});
678678
});
679679
});
@@ -716,8 +716,9 @@ describe('persistent value node', function() {
716716
done(err);
717717
}
718718
});
719+
719720
v.receive({payload: pureJsonObject});
720-
v.error.callCount.should.be(0);
721+
v.error.should.have.callCount(0);
721722
});
722723
});
723724

0 commit comments

Comments
 (0)