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 == Encrypting federico-di-dio-photography-Q4g0Q-eVVEg-unsplash.jpg to encrypted.out"
|
||||||
- "== APP == Encrypted the message to encrypted.out"
|
- "== APP == Encrypted the message to encrypted.out"
|
||||||
- "== APP == == Decrypting message using streams"
|
- "== 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"
|
- "== APP == Decrypted the message to decrypted.out.jpg"
|
||||||
- "Exited App successfully"
|
- "Exited App successfully"
|
||||||
expected_stderr_lines:
|
expected_stderr_lines:
|
||||||
|
|
|
@ -72,7 +72,7 @@ async function encryptDecryptStream(client) {
|
||||||
|
|
||||||
// Decrypt the message
|
// Decrypt the message
|
||||||
console.log("== Decrypting message using streams");
|
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(
|
await pipeline(
|
||||||
createReadStream("encrypted.out"),
|
createReadStream("encrypted.out"),
|
||||||
await client.crypto.decrypt({
|
await client.crypto.decrypt({
|
||||||
|
@ -84,4 +84,5 @@ async function encryptDecryptStream(client) {
|
||||||
console.log("Decrypted the message to decrypted.out.jpg");
|
console.log("Decrypted the message to decrypted.out.jpg");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Start the code
|
||||||
await start();
|
await start();
|
||||||
|
|
|
@ -9,16 +9,17 @@
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@dapr/dapr": "3.1.0"
|
"@dapr/dapr": "3.1.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@types/node": "^18.0.0",
|
||||||
"eslint": "^8.42.0"
|
"eslint": "^8.42.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@dapr/dapr": {
|
"node_modules/@dapr/dapr": {
|
||||||
"version": "3.1.0",
|
"version": "3.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/@dapr/dapr/-/dapr-3.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/@dapr/dapr/-/dapr-3.1.1.tgz",
|
||||||
"integrity": "sha512-k3jGmbm5FIf2s5zzQYq9zeGX/mbrO4PQeRckkhB4uRiqExBmosWtFoDzwFK346c7eaO2my4lodobYYY6yUImyw==",
|
"integrity": "sha512-Fb5BpQMfN5UbrMCU6nMD8mmKPwvUcyxeN79/DdkCrdxDttpIIlSSGJ5mp3lNVYcMB8Xo2wMJHwMfKJ4QqaQBRQ==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@grpc/grpc-js": "^1.3.7",
|
"@grpc/grpc-js": "^1.3.7",
|
||||||
"@js-temporal/polyfill": "^0.3.0",
|
"@js-temporal/polyfill": "^0.3.0",
|
||||||
|
@ -2270,9 +2271,9 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@dapr/dapr": {
|
"@dapr/dapr": {
|
||||||
"version": "3.1.0",
|
"version": "3.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/@dapr/dapr/-/dapr-3.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/@dapr/dapr/-/dapr-3.1.1.tgz",
|
||||||
"integrity": "sha512-k3jGmbm5FIf2s5zzQYq9zeGX/mbrO4PQeRckkhB4uRiqExBmosWtFoDzwFK346c7eaO2my4lodobYYY6yUImyw==",
|
"integrity": "sha512-Fb5BpQMfN5UbrMCU6nMD8mmKPwvUcyxeN79/DdkCrdxDttpIIlSSGJ5mp3lNVYcMB8Xo2wMJHwMfKJ4QqaQBRQ==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@grpc/grpc-js": "^1.3.7",
|
"@grpc/grpc-js": "^1.3.7",
|
||||||
"@js-temporal/polyfill": "^0.3.0",
|
"@js-temporal/polyfill": "^0.3.0",
|
||||||
|
|
|
@ -12,9 +12,10 @@
|
||||||
"author": "",
|
"author": "",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@dapr/dapr": "3.1.0"
|
"@dapr/dapr": "3.1.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@types/node": "^18.0.0",
|
||||||
"eslint": "^8.42.0"
|
"eslint": "^8.42.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue