@hello.nrfcloud.com/certificate-helpers 1.0.0 → 1.0.3
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/LICENSE +1 -1
- package/README.md +16 -0
- package/dist/ca.js +1 -1
- package/dist/production.js +1 -1
- package/package.json +18 -20
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -12,3 +12,19 @@ Helper functions for creating device certificates.
|
|
|
12
12
|
## Installation
|
|
13
13
|
|
|
14
14
|
npm i --save --save-exact @hello.nrfcloud.com/certificate-helpers
|
|
15
|
+
|
|
16
|
+
## Node & NPM
|
|
17
|
+
|
|
18
|
+
This project requires Node.js `>=24.19.0 <25` and npm `>=12.0.2 <13` (enforced
|
|
19
|
+
via `check-node-version` on `npm install` and `npm ci`).
|
|
20
|
+
|
|
21
|
+
The check is skipped during `npm publish` and `npm pack`, because
|
|
22
|
+
`semantic-release` bundles its own npm (`@semantic-release/npm` depends on
|
|
23
|
+
`npm@^11.6.2`) and runs the publish with that version rather than the one
|
|
24
|
+
installed in CI.
|
|
25
|
+
|
|
26
|
+
## TypeScript 6 and 7
|
|
27
|
+
|
|
28
|
+
This repo
|
|
29
|
+
[runs TypeScript 6 and 7 side by side](https://devblogs.microsoft.com/typescript/announcing-typescript-7-0/#running-side-by-side-with-typescript-6.0),
|
|
30
|
+
[so that eslint works](https://github.com/typescript-eslint/typescript-eslint/issues/10940#issuecomment-4922812181).
|
package/dist/ca.js
CHANGED
package/dist/production.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import run from '@bifravst/run';
|
|
1
2
|
import chalk from 'chalk';
|
|
2
3
|
import { stat } from 'node:fs/promises';
|
|
3
|
-
import run from '@bifravst/run';
|
|
4
4
|
import { productionRunCALocations } from './locations.js';
|
|
5
5
|
export const ensureProductionRunCACertificate = async (dir, productionRun) => {
|
|
6
6
|
const { privateKey, certificate } = productionRunCALocations(dir, productionRun);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hello.nrfcloud.com/certificate-helpers",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Helper functions for creating device certificates.",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./*": {
|
|
@@ -12,8 +12,7 @@
|
|
|
12
12
|
},
|
|
13
13
|
"type": "module",
|
|
14
14
|
"scripts": {
|
|
15
|
-
"
|
|
16
|
-
"prepare": "husky",
|
|
15
|
+
"prepare": "husky && case \"$npm_command\" in install|ci) check-node-version --package ;; esac",
|
|
17
16
|
"prepublishOnly": "npx tsc --noEmit false --outDir ./dist -d"
|
|
18
17
|
},
|
|
19
18
|
"repository": {
|
|
@@ -32,13 +31,16 @@
|
|
|
32
31
|
"author": "Nordic Semiconductor ASA | nordicsemi.no",
|
|
33
32
|
"license": "BSD-3-Clause",
|
|
34
33
|
"devDependencies": {
|
|
35
|
-
"@bifravst/eslint-config-typescript": "
|
|
36
|
-
"@bifravst/prettier-config": "
|
|
37
|
-
"@commitlint/config-conventional": "
|
|
38
|
-
"@types/node": "
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
34
|
+
"@bifravst/eslint-config-typescript": "8.0.7",
|
|
35
|
+
"@bifravst/prettier-config": "2.0.3",
|
|
36
|
+
"@commitlint/config-conventional": "21.2.3",
|
|
37
|
+
"@types/node": "26.6.3",
|
|
38
|
+
"@typescript/native": "npm:typescript@7.0.2",
|
|
39
|
+
"aws-cdk-lib": "2.265.0",
|
|
40
|
+
"check-node-version": "4.2.1",
|
|
41
|
+
"commitlint": "21.2.3",
|
|
42
|
+
"husky": "9.1.7",
|
|
43
|
+
"typescript": "npm:@typescript/typescript6@6.0.2"
|
|
42
44
|
},
|
|
43
45
|
"lint-staged": {
|
|
44
46
|
"*.ts": [
|
|
@@ -50,16 +52,12 @@
|
|
|
50
52
|
]
|
|
51
53
|
},
|
|
52
54
|
"engines": {
|
|
53
|
-
"node": ">=
|
|
54
|
-
"npm": ">=
|
|
55
|
+
"node": ">=24.19.0 <25",
|
|
56
|
+
"npm": ">=12.0.2 <13"
|
|
55
57
|
},
|
|
56
58
|
"release": {
|
|
57
59
|
"branches": [
|
|
58
|
-
"saga"
|
|
59
|
-
{
|
|
60
|
-
"name": "!(saga)",
|
|
61
|
-
"prerelease": true
|
|
62
|
-
}
|
|
60
|
+
"saga"
|
|
63
61
|
],
|
|
64
62
|
"remoteTags": true,
|
|
65
63
|
"plugins": [
|
|
@@ -69,7 +67,7 @@
|
|
|
69
67
|
[
|
|
70
68
|
"@semantic-release/github",
|
|
71
69
|
{
|
|
72
|
-
"
|
|
70
|
+
"successCommentCondition": false,
|
|
73
71
|
"failTitle": false
|
|
74
72
|
}
|
|
75
73
|
]
|
|
@@ -79,13 +77,13 @@
|
|
|
79
77
|
"access": "public"
|
|
80
78
|
},
|
|
81
79
|
"files": [
|
|
82
|
-
"package-lock.json",
|
|
83
80
|
"dist",
|
|
84
81
|
"LICENSE",
|
|
85
82
|
"README.md"
|
|
86
83
|
],
|
|
87
84
|
"prettier": "@bifravst/prettier-config",
|
|
88
85
|
"dependencies": {
|
|
89
|
-
"@bifravst/run": "
|
|
86
|
+
"@bifravst/run": "2.0.1",
|
|
87
|
+
"chalk": "6.0.1"
|
|
90
88
|
}
|
|
91
89
|
}
|