mirror of https://github.com/dapr/quickstarts.git
Fixups for JS crypto
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
This commit is contained in:
parent
df00e2076c
commit
5b37e32b25
|
@ -60,7 +60,7 @@ expected_stdout_lines:
|
|||
- "== APP == Encrypting federico-di-dio-photography-Q4g0Q-eVVEg-unsplash.jpg to encrypted.out"
|
||||
- "== APP == Encrypted the message to encrypted.out"
|
||||
- "== APP == == Decrypting message using streams"
|
||||
- "== APP == Encrypting encrypted.out to decrypted.out"
|
||||
- "== APP == Decrypting encrypted.out to decrypted.out.jpg"
|
||||
- "== APP == Decrypted the message to decrypted.out.jpg"
|
||||
- "Exited App successfully"
|
||||
expected_stderr_lines:
|
||||
|
|
|
@ -72,7 +72,7 @@ async function encryptDecryptStream(client) {
|
|||
|
||||
// Decrypt the message
|
||||
console.log("== Decrypting message using streams");
|
||||
console.log("Encrypting encrypted.out to decrypted.out");
|
||||
console.log("Decrypting encrypted.out to decrypted.out.jpg");
|
||||
await pipeline(
|
||||
createReadStream("encrypted.out"),
|
||||
await client.crypto.decrypt({
|
||||
|
@ -84,4 +84,5 @@ async function encryptDecryptStream(client) {
|
|||
console.log("Decrypted the message to decrypted.out.jpg");
|
||||
}
|
||||
|
||||
// Start the code
|
||||
await start();
|
||||
|
|
|
@ -9,16 +9,17 @@
|
|||
"version": "1.0.0",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@dapr/dapr": "3.1.0"
|
||||
"@dapr/dapr": "3.1.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^18.0.0",
|
||||
"eslint": "^8.42.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@dapr/dapr": {
|
||||
"version": "3.1.0",
|
||||
"resolved": "https://registry.npmjs.org/@dapr/dapr/-/dapr-3.1.0.tgz",
|
||||
"integrity": "sha512-k3jGmbm5FIf2s5zzQYq9zeGX/mbrO4PQeRckkhB4uRiqExBmosWtFoDzwFK346c7eaO2my4lodobYYY6yUImyw==",
|
||||
"version": "3.1.1",
|
||||
"resolved": "https://registry.npmjs.org/@dapr/dapr/-/dapr-3.1.1.tgz",
|
||||
"integrity": "sha512-Fb5BpQMfN5UbrMCU6nMD8mmKPwvUcyxeN79/DdkCrdxDttpIIlSSGJ5mp3lNVYcMB8Xo2wMJHwMfKJ4QqaQBRQ==",
|
||||
"dependencies": {
|
||||
"@grpc/grpc-js": "^1.3.7",
|
||||
"@js-temporal/polyfill": "^0.3.0",
|
||||
|
@ -2270,9 +2271,9 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@dapr/dapr": {
|
||||
"version": "3.1.0",
|
||||
"resolved": "https://registry.npmjs.org/@dapr/dapr/-/dapr-3.1.0.tgz",
|
||||
"integrity": "sha512-k3jGmbm5FIf2s5zzQYq9zeGX/mbrO4PQeRckkhB4uRiqExBmosWtFoDzwFK346c7eaO2my4lodobYYY6yUImyw==",
|
||||
"version": "3.1.1",
|
||||
"resolved": "https://registry.npmjs.org/@dapr/dapr/-/dapr-3.1.1.tgz",
|
||||
"integrity": "sha512-Fb5BpQMfN5UbrMCU6nMD8mmKPwvUcyxeN79/DdkCrdxDttpIIlSSGJ5mp3lNVYcMB8Xo2wMJHwMfKJ4QqaQBRQ==",
|
||||
"requires": {
|
||||
"@grpc/grpc-js": "^1.3.7",
|
||||
"@js-temporal/polyfill": "^0.3.0",
|
||||
|
|
|
@ -12,9 +12,10 @@
|
|||
"author": "",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@dapr/dapr": "3.1.0"
|
||||
"@dapr/dapr": "3.1.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^18.0.0",
|
||||
"eslint": "^8.42.0"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue