@lightsparkdev/lightspark-sdk 1.5.12 → 1.5.14
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/CHANGELOG.md +15 -0
- package/dist/index.cjs +6 -3
- package/dist/index.js +6 -3
- package/package.json +3 -3
- package/src/env.ts +3 -3
- package/src/webhooks.ts +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @lightsparkdev/lightspark-sdk
|
|
2
2
|
|
|
3
|
+
## 1.5.14
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- b855251: - Update to latest in remote signing wasm
|
|
8
|
+
- Updated dependencies [b855251]
|
|
9
|
+
- @lightsparkdev/crypto-wasm@0.1.4
|
|
10
|
+
|
|
11
|
+
## 1.5.13
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies [fda487d]
|
|
16
|
+
- @lightsparkdev/core@1.1.0
|
|
17
|
+
|
|
3
18
|
## 1.5.12
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
|
@@ -1984,7 +1984,7 @@ var import_core9 = require("@lightsparkdev/core");
|
|
|
1984
1984
|
// package.json
|
|
1985
1985
|
var package_default = {
|
|
1986
1986
|
name: "@lightsparkdev/lightspark-sdk",
|
|
1987
|
-
version: "1.5.
|
|
1987
|
+
version: "1.5.14",
|
|
1988
1988
|
description: "Lightspark JS SDK",
|
|
1989
1989
|
author: "Lightspark Inc.",
|
|
1990
1990
|
keywords: [
|
|
@@ -2069,8 +2069,8 @@ var package_default = {
|
|
|
2069
2069
|
},
|
|
2070
2070
|
license: "Apache-2.0",
|
|
2071
2071
|
dependencies: {
|
|
2072
|
-
"@lightsparkdev/core": "1.0
|
|
2073
|
-
"@lightsparkdev/crypto-wasm": "0.1.
|
|
2072
|
+
"@lightsparkdev/core": "1.1.0",
|
|
2073
|
+
"@lightsparkdev/crypto-wasm": "0.1.4",
|
|
2074
2074
|
"crypto-browserify": "^3.12.0",
|
|
2075
2075
|
dayjs: "^1.11.7",
|
|
2076
2076
|
dotenv: "^16.3.1",
|
|
@@ -14722,6 +14722,9 @@ var RemoteSigningWebhookHandler = class {
|
|
|
14722
14722
|
this.#masterSeed,
|
|
14723
14723
|
this.validator
|
|
14724
14724
|
);
|
|
14725
|
+
if (!response) {
|
|
14726
|
+
return;
|
|
14727
|
+
}
|
|
14725
14728
|
const variables = JSON.parse(response.variables);
|
|
14726
14729
|
return this.client.executeRawQuery({
|
|
14727
14730
|
queryPayload: response.query,
|
package/dist/index.js
CHANGED
|
@@ -147,7 +147,7 @@ import {
|
|
|
147
147
|
// package.json
|
|
148
148
|
var package_default = {
|
|
149
149
|
name: "@lightsparkdev/lightspark-sdk",
|
|
150
|
-
version: "1.5.
|
|
150
|
+
version: "1.5.14",
|
|
151
151
|
description: "Lightspark JS SDK",
|
|
152
152
|
author: "Lightspark Inc.",
|
|
153
153
|
keywords: [
|
|
@@ -232,8 +232,8 @@ var package_default = {
|
|
|
232
232
|
},
|
|
233
233
|
license: "Apache-2.0",
|
|
234
234
|
dependencies: {
|
|
235
|
-
"@lightsparkdev/core": "1.0
|
|
236
|
-
"@lightsparkdev/crypto-wasm": "0.1.
|
|
235
|
+
"@lightsparkdev/core": "1.1.0",
|
|
236
|
+
"@lightsparkdev/crypto-wasm": "0.1.4",
|
|
237
237
|
"crypto-browserify": "^3.12.0",
|
|
238
238
|
dayjs: "^1.11.7",
|
|
239
239
|
dotenv: "^16.3.1",
|
|
@@ -2339,6 +2339,9 @@ var RemoteSigningWebhookHandler = class {
|
|
|
2339
2339
|
this.#masterSeed,
|
|
2340
2340
|
this.validator
|
|
2341
2341
|
);
|
|
2342
|
+
if (!response) {
|
|
2343
|
+
return;
|
|
2344
|
+
}
|
|
2342
2345
|
const variables = JSON.parse(response.variables);
|
|
2343
2346
|
return this.client.executeRawQuery({
|
|
2344
2347
|
queryPayload: response.query,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lightsparkdev/lightspark-sdk",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.14",
|
|
4
4
|
"description": "Lightspark JS SDK",
|
|
5
5
|
"author": "Lightspark Inc.",
|
|
6
6
|
"keywords": [
|
|
@@ -85,8 +85,8 @@
|
|
|
85
85
|
},
|
|
86
86
|
"license": "Apache-2.0",
|
|
87
87
|
"dependencies": {
|
|
88
|
-
"@lightsparkdev/core": "1.0
|
|
89
|
-
"@lightsparkdev/crypto-wasm": "0.1.
|
|
88
|
+
"@lightsparkdev/core": "1.1.0",
|
|
89
|
+
"@lightsparkdev/crypto-wasm": "0.1.4",
|
|
90
90
|
"crypto-browserify": "^3.12.0",
|
|
91
91
|
"dayjs": "^1.11.7",
|
|
92
92
|
"dotenv": "^16.3.1",
|
package/src/env.ts
CHANGED
|
@@ -39,10 +39,10 @@ export const getCredentialsFromEnvOrThrow = (): EnvCredentials => {
|
|
|
39
39
|
);
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
const apiTokenClientId = env[RequiredCredentials.ClientId]
|
|
43
|
-
const apiTokenClientSecret = env[RequiredCredentials.ClientSecret]
|
|
42
|
+
const apiTokenClientId = env[RequiredCredentials.ClientId];
|
|
43
|
+
const apiTokenClientSecret = env[RequiredCredentials.ClientSecret];
|
|
44
44
|
const bitcoinNetwork = getBitcoinNetworkOrThrow(
|
|
45
|
-
env[RequiredCredentials.BitcoinNetwork]
|
|
45
|
+
env[RequiredCredentials.BitcoinNetwork] as BitcoinNetwork,
|
|
46
46
|
);
|
|
47
47
|
const testNodePassword = "1234!@#$";
|
|
48
48
|
const baseUrl = env["LIGHTSPARK_BASE_URL"] || "api.lightspark.com";
|
package/src/webhooks.ts
CHANGED