@signageos/lib 10.0.0-master.1529 → 10.1.0
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/CHANGELOG.md +5 -1
- package/package.json +1 -1
- package/tools/check-deps.js +13 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,7 +4,11 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
|
5
5
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
|
-
## [
|
|
7
|
+
## [10.1.0] - 2022-07-18
|
|
8
|
+
### Added
|
|
9
|
+
- check-deps tool ignore file `.check-depsignore`
|
|
10
|
+
|
|
11
|
+
## [10.0.0] - 2022-06-28
|
|
8
12
|
### Changed
|
|
9
13
|
- AMQP event queue `bindRejectedDetached` and `prepareRejectedDetached` accepts new options for automatic redelivering of rejected messages
|
|
10
14
|
- AMQP event queue `bindRejectedMany` and `prepareRejectedMany` accepts new options for automatic redelivering of rejected messages
|
package/package.json
CHANGED
package/tools/check-deps.js
CHANGED
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
const semver = require('semver');
|
|
4
|
+
const fs = require('fs');
|
|
4
5
|
|
|
5
6
|
const packagePath = process.cwd() + '/package.json';
|
|
6
7
|
const package = require(packagePath);
|
|
7
8
|
|
|
9
|
+
const ignorePath = process.cwd() + '/.check-depsignore';
|
|
10
|
+
let = ignore = [];
|
|
11
|
+
try {
|
|
12
|
+
ignore = fs.readFileSync(ignorePath).toString().split('\n');
|
|
13
|
+
console.log(`Ignoring packages from ${ignorePath}`);
|
|
14
|
+
} catch (_error) {
|
|
15
|
+
console.log('No ignore file found');
|
|
16
|
+
}
|
|
17
|
+
|
|
8
18
|
const includeRegExp = new RegExp(process.argv[2] || '.+');
|
|
9
19
|
const excludeRegExp = new RegExp(process.argv[3] || '^$');
|
|
10
20
|
|
|
@@ -18,6 +28,9 @@ const prereleaseDepNames = [];
|
|
|
18
28
|
const inexactDepNames = [];
|
|
19
29
|
|
|
20
30
|
for (const depName of matchedDepNames) {
|
|
31
|
+
if (ignore.includes(depName)) {
|
|
32
|
+
continue;
|
|
33
|
+
}
|
|
21
34
|
const depVersion = deps[depName];
|
|
22
35
|
if (semver.prerelease(depVersion) !== null) {
|
|
23
36
|
prereleaseDepNames.push(depName);
|