cozy-keys-lib 7.1.0 → 7.1.2
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/README.md +15 -0
- package/package.json +6 -13
package/README.md
CHANGED
|
@@ -26,6 +26,21 @@ yarn build:jslib
|
|
|
26
26
|
yarn build:keys
|
|
27
27
|
```
|
|
28
28
|
|
|
29
|
+
## Publishing
|
|
30
|
+
|
|
31
|
+
The CI publishes the package: each push to master runs
|
|
32
|
+
[semantic-release](https://semantic-release.gitbook.io) in the `Publish` job of
|
|
33
|
+
`.github/workflows/ci-cd.yml`, which releases a version when the commits since
|
|
34
|
+
the last one contain a `fix` or a `feat`.
|
|
35
|
+
|
|
36
|
+
The job authenticates to npm with
|
|
37
|
+
[trusted publishing](https://docs.npmjs.com/trusted-publishers) (OIDC): there is
|
|
38
|
+
no npm token. It publishes the folders built by the `build` job and does not
|
|
39
|
+
build anything itself.
|
|
40
|
+
|
|
41
|
+
semantic-release has its own `package.json` and lockfile in `.github/release`:
|
|
42
|
+
it needs a recent Node.js, while the library still builds on Node.js 14.
|
|
43
|
+
|
|
29
44
|
## Testing in an app
|
|
30
45
|
|
|
31
46
|
cozy-keys-lib relies on cryptographic APIs that are only enabled on secure locations, such as pages served with https or `localhost`. This means that running it on `http://cozy.tools:8080` will not work.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-keys-lib",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.2",
|
|
4
4
|
"description": "Interactions between cozy-keys and a bitwarden server",
|
|
5
5
|
"browser": "transpiled/index.js",
|
|
6
6
|
"main": "transpiled/index.node.js",
|
|
@@ -17,12 +17,11 @@
|
|
|
17
17
|
"watch": "yarn watch:keys",
|
|
18
18
|
"watch:keys": "yarn build:keys --watch",
|
|
19
19
|
"lint": "eslint 'src/**/*.{js,jsx}' 'playgrounds/src/**/*.{js,jsx}'",
|
|
20
|
-
"test": "NODE_OPTIONS=\"--max-old-space-size=8192\" jest"
|
|
21
|
-
"semantic-release": "semantic-release"
|
|
20
|
+
"test": "NODE_OPTIONS=\"--max-old-space-size=8192\" jest"
|
|
22
21
|
},
|
|
23
22
|
"repository": {
|
|
24
23
|
"type": "git",
|
|
25
|
-
"url": "https://github.com/cozy/cozy-keys-lib.git"
|
|
24
|
+
"url": "git+https://github.com/cozy/cozy-keys-lib.git"
|
|
26
25
|
},
|
|
27
26
|
"author": "Cozy",
|
|
28
27
|
"license": "GPL-3.0",
|
|
@@ -39,9 +38,6 @@
|
|
|
39
38
|
"@babel/preset-env": "7.16.11",
|
|
40
39
|
"@babel/runtime": "7.17.8",
|
|
41
40
|
"@material-ui/core": "3.9.4",
|
|
42
|
-
"@semantic-release/changelog": "3.0.6",
|
|
43
|
-
"@semantic-release/git": "7.0.18",
|
|
44
|
-
"@semantic-release/npm": "5.3.5",
|
|
45
41
|
"@testing-library/react": "11.2.7",
|
|
46
42
|
"@testing-library/react-hooks": "8.0.1",
|
|
47
43
|
"babel-loader": "8.2.4",
|
|
@@ -58,8 +54,7 @@
|
|
|
58
54
|
"jest": "26.2.2",
|
|
59
55
|
"react": "16.14.0",
|
|
60
56
|
"react-dom": "16.14.0",
|
|
61
|
-
"react-test-renderer": "16.14.0"
|
|
62
|
-
"semantic-release": "^15.13.24"
|
|
57
|
+
"react-test-renderer": "16.14.0"
|
|
63
58
|
},
|
|
64
59
|
"files": [
|
|
65
60
|
"src",
|
|
@@ -67,17 +62,15 @@
|
|
|
67
62
|
"transpiled"
|
|
68
63
|
],
|
|
69
64
|
"dependencies": {
|
|
70
|
-
"@aspnet/signalr": "^1.1.4",
|
|
71
|
-
"@aspnet/signalr-protocol-msgpack": "^1.1.0",
|
|
72
65
|
"@cozy/minilog": "^1.0.0",
|
|
73
66
|
"big-integer": "^1.6.44",
|
|
74
67
|
"classnames": "^2.2.6",
|
|
75
68
|
"cozy-device-helper": "^2.1.0",
|
|
76
69
|
"cozy-logger": "^1.10.1",
|
|
77
|
-
"lodash": "^4.
|
|
70
|
+
"lodash": "^4.18.1",
|
|
78
71
|
"lunr": "^2.3.6",
|
|
79
72
|
"microee": "^0.0.6",
|
|
80
|
-
"node-forge": "^1.
|
|
73
|
+
"node-forge": "^1.4.2",
|
|
81
74
|
"papaparse": "^5.1.1",
|
|
82
75
|
"prop-types": "^15.7.2",
|
|
83
76
|
"sweetalert": "^2.1.2",
|