@signageos/lib 10.19.2 → 10.19.3-master.1923
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 +0 -3
- package/README.md +5 -1
- package/package.json +4 -4
- package/tools/check-forbidden-dependencies.js +17 -0
package/CHANGELOG.md
CHANGED
|
@@ -16,9 +16,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
|
16
16
|
### Added
|
|
17
17
|
- New extension pack of typescript type: `NullableFromPartial`
|
|
18
18
|
|
|
19
|
-
### Fixed
|
|
20
|
-
- Replaced `isDefinedForEnvironment` with `isValidForEnvironment`
|
|
21
|
-
|
|
22
19
|
## [10.18.1] - 2023-05-23
|
|
23
20
|
### Security
|
|
24
21
|
- Fixed potential NPM vulnerabilities
|
package/README.md
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
# General Library
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
This repository contains all sets of generic TypeScript tools and utils for different technologies, like databases: 'MongoDB, AMQP (RabbitMQ), Redis, PostgreSQL, InfluxDB', monitoring in Prometheus, wrappers and helpers for Azure SDK, Browser Storage, time management, observables, async iterators and a lot more.
|
|
4
|
+
|
|
5
|
+
It's published as an npm library @signageos/lib that can be used in any project that requires and is using those technologies to simplify the business logic.
|
|
6
|
+
|
|
7
|
+
The library could be potentially separated into more libraries with a single purpose in the future. Currently, keeping the library in one package is still more practical than maintaining it separately.
|
|
4
8
|
|
|
5
9
|
1) execute `docker-compose up -d`
|
|
6
10
|
2) fill following file `config/env.test.json`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@signageos/lib",
|
|
3
|
-
"version": "10.19.
|
|
3
|
+
"version": "10.19.3-master.1923",
|
|
4
4
|
"main": "./dist",
|
|
5
5
|
"files": [
|
|
6
6
|
"tools",
|
|
@@ -27,7 +27,8 @@
|
|
|
27
27
|
"test-rabbit-connection": "DEBUG=@signageos/lib:Events:genericGracefulExit NODE_ENV=test node_modules/.bin/mocha --require should --require should-sinon --require ts-node/register --ui bdd --watch-extensions ts --timeout 120000 tests/**/rabbitmqGracefulExit.connection-spec.ts",
|
|
28
28
|
"watch": "tsc --watch",
|
|
29
29
|
"check": "npm run depcheck && tools/check-deps.js",
|
|
30
|
-
"depcheck": "depcheck --config .depcheckrc.json"
|
|
30
|
+
"depcheck": "depcheck --config .depcheckrc.json",
|
|
31
|
+
"check:forbidden-dependencies": "node tools/check-forbidden-dependencies.js"
|
|
31
32
|
},
|
|
32
33
|
"author": "Michael Zabka <zabka.michael@gmail.com>",
|
|
33
34
|
"license": "MIT",
|
|
@@ -61,8 +62,7 @@
|
|
|
61
62
|
"devDependencies": {
|
|
62
63
|
"@influxdata/influxdb-client": "1.16.0",
|
|
63
64
|
"@istanbuljs/nyc-config-typescript": "1.0.2",
|
|
64
|
-
"@signageos/codestyle": "0.0.
|
|
65
|
-
"@signageos/common-types": "2.18.0",
|
|
65
|
+
"@signageos/codestyle": "0.0.23",
|
|
66
66
|
"@types/amqplib": "0.5.13",
|
|
67
67
|
"@types/async-lock": "1.1.1",
|
|
68
68
|
"@types/debug": "0.0.29",
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const packageJson = require('../package.json');
|
|
2
|
+
const dependencies = packageJson.dependencies || {};
|
|
3
|
+
const devDependencies = packageJson.devDependencies || {};
|
|
4
|
+
|
|
5
|
+
const whitelist = ['@signageos/codestyle'];
|
|
6
|
+
const packages = Object.keys(dependencies).concat(Object.keys(devDependencies));
|
|
7
|
+
|
|
8
|
+
let forbiddenPackages = packages.filter((package) => package.match('@signageos/*'));
|
|
9
|
+
forbiddenPackages = forbiddenPackages.filter((package) => !whitelist.includes(package));
|
|
10
|
+
|
|
11
|
+
if (forbiddenPackages.length > 0) {
|
|
12
|
+
console.error(` Forbidden packages ${forbiddenPackages.join(', ')} found in package.json.
|
|
13
|
+
@signageos/* modules can't be used as dependencies because they are private while this module is public and may only use public dependencies.
|
|
14
|
+
Only exceptions are whitelisted dependencies: ${whitelist.join(', ')}
|
|
15
|
+
`);
|
|
16
|
+
process.exit(1);
|
|
17
|
+
}
|