Skip to content

Commit 04ea8bb

Browse files
committed
fix(deps): missing uuid from plugins #529
Adds the missing dependency "uuid" to the packages where applicable. Also updates the import syntax in packages/cactus-plugin-consortium-manual/src/main/typescript/consortium/get-node-jws-endpoint-v1.ts which appears to make a difference? Fixes #529 Signed-off-by: Peter Somogyvari <[email protected]>
1 parent febc06f commit 04ea8bb

File tree

5 files changed

+32
-6
lines changed

5 files changed

+32
-6
lines changed

packages/cactus-plugin-consortium-manual/package-lock.json

+11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/cactus-plugin-consortium-manual/package.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,16 @@
9090
"json-stable-stringify": "1.0.1",
9191
"lodash": "4.17.19",
9292
"secp256k1": "4.0.1",
93-
"typescript-optional": "2.0.1"
93+
"typescript-optional": "2.0.1",
94+
"uuid": "8.3.2"
9495
},
9596
"devDependencies": {
9697
"@types/express": "4.17.8",
9798
"@types/joi": "14.3.4",
9899
"@types/json-stable-stringify": "1.0.32",
99100
"@types/lodash": "4.14.158",
100101
"@types/multer": "1.4.3",
101-
"@types/secp256k1": "4.0.1"
102+
"@types/secp256k1": "4.0.1",
103+
"@types/uuid": "8.3.0"
102104
}
103105
}

packages/cactus-plugin-consortium-manual/src/main/typescript/consortium/get-node-jws-endpoint-v1.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import uuid from "uuid";
1+
import { v4 as uuidv4 } from "uuid";
22
import { Express, Request, Response } from "express";
33
import { JWS, JWK } from "jose";
44
import jsonStableStringify from "json-stable-stringify";
@@ -100,7 +100,7 @@ export class GetNodeJwsEndpoint implements IWebServiceEndpoint {
100100
const payloadJson = jsonStableStringify(payloadObject);
101101
const _protected = {
102102
iat: Date.now(),
103-
jti: uuid.v4(),
103+
jti: uuidv4(),
104104
iss: "Hyperledger Cactus",
105105
};
106106
// TODO: double check if this casting is safe (it is supposed to be)

packages/cactus-plugin-keychain-memory/package-lock.json

+11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/cactus-plugin-keychain-memory/package.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,11 @@
8181
"@hyperledger/cactus-common": "0.3.0",
8282
"@hyperledger/cactus-core-api": "0.3.0",
8383
"joi": "14.3.1",
84-
"typescript-optional": "2.0.1"
84+
"typescript-optional": "2.0.1",
85+
"uuid": "8.3.2"
8586
},
8687
"devDependencies": {
87-
"@types/joi": "14.3.4"
88+
"@types/joi": "14.3.4",
89+
"@types/uuid": "8.3.0"
8890
}
8991
}

0 commit comments

Comments
 (0)