wirejs-deploy-amplify-basic 0.0.140-payments → 0.0.142-payments
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as jose from 'jose';
|
|
2
|
-
import {
|
|
2
|
+
import { Setting } from 'wirejs-resources';
|
|
3
3
|
|
|
4
4
|
type Operation = "EVENT_CONNECT" | "EVENT_SUBSCRIBE" | "EVENT_PUBLISH";
|
|
5
5
|
|
|
@@ -27,11 +27,11 @@ async function getSecret(ns: string): Promise<string> {
|
|
|
27
27
|
if (!secret) {
|
|
28
28
|
secret = new Promise(async (resolve, reject) => {
|
|
29
29
|
try {
|
|
30
|
-
const secret = new
|
|
30
|
+
const secret = new Setting(
|
|
31
31
|
process.env.SECRET_SCOPE!,
|
|
32
32
|
process.env.SECRET_ID!
|
|
33
33
|
)
|
|
34
|
-
resolve(await secret.read());
|
|
34
|
+
resolve((await secret.read())!);
|
|
35
35
|
} catch (error) {
|
|
36
36
|
console.error('Error reading secret:', error);
|
|
37
37
|
reject(error);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wirejs-deploy-amplify-basic",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.142-payments",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"recursive-copy": "^2.0.14",
|
|
43
43
|
"rimraf": "^6.0.1",
|
|
44
44
|
"wirejs-dom": "^1.0.42",
|
|
45
|
-
"wirejs-resources": "^0.1.
|
|
45
|
+
"wirejs-resources": "^0.1.110-payments"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@aws-amplify/backend": "^1.14.0",
|