@lightsparkdev/lightspark-sdk 0.4.8 → 0.4.9

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @lightsparkdev/lightspark-sdk
2
2
 
3
+ ## 0.4.9
4
+
5
+ ### Patch Changes
6
+
7
+ - 6cd80d4: Fix an issue with json deserialization for lightning fee estimates
8
+
3
9
  ## 0.4.8
4
10
 
5
11
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -1927,7 +1927,7 @@ var import_crypto = require("crypto");
1927
1927
  // package.json
1928
1928
  var package_default = {
1929
1929
  name: "@lightsparkdev/lightspark-sdk",
1930
- version: "0.4.8",
1930
+ version: "0.4.9",
1931
1931
  description: "Lightspark JS SDK",
1932
1932
  author: "Lightspark Inc.",
1933
1933
  keywords: [
@@ -2011,7 +2011,7 @@ var package_default = {
2011
2011
  },
2012
2012
  devDependencies: {
2013
2013
  "@lightsparkdev/eslint-config": "*",
2014
- "@lightsparkdev/gql": "0.0.2",
2014
+ "@lightsparkdev/gql": "0.0.3",
2015
2015
  "@lightsparkdev/tsconfig": "0.0.0",
2016
2016
  "@types/crypto-js": "^4.1.1",
2017
2017
  "@types/jest": "^29.5.2",
@@ -7841,7 +7841,7 @@ var LightsparkClient = class {
7841
7841
  }
7842
7842
  );
7843
7843
  return CurrencyAmountFromJson(
7844
- response.lightning_fee_estimate_for_invoice.fee_estimate
7844
+ response.lightning_fee_estimate_for_invoice.lightning_fee_estimate_output_fee_estimate
7845
7845
  );
7846
7846
  }
7847
7847
  /**
@@ -7862,7 +7862,7 @@ var LightsparkClient = class {
7862
7862
  }
7863
7863
  );
7864
7864
  return CurrencyAmountFromJson(
7865
- response.lightning_fee_estimate_for_node.fee_estimate
7865
+ response.lightning_fee_estimate_for_node.lightning_fee_estimate_output_fee_estimate
7866
7866
  );
7867
7867
  }
7868
7868
  /**
package/dist/index.js CHANGED
@@ -115,7 +115,7 @@ import { createHash } from "crypto";
115
115
  // package.json
116
116
  var package_default = {
117
117
  name: "@lightsparkdev/lightspark-sdk",
118
- version: "0.4.8",
118
+ version: "0.4.9",
119
119
  description: "Lightspark JS SDK",
120
120
  author: "Lightspark Inc.",
121
121
  keywords: [
@@ -199,7 +199,7 @@ var package_default = {
199
199
  },
200
200
  devDependencies: {
201
201
  "@lightsparkdev/eslint-config": "*",
202
- "@lightsparkdev/gql": "0.0.2",
202
+ "@lightsparkdev/gql": "0.0.3",
203
203
  "@lightsparkdev/tsconfig": "0.0.0",
204
204
  "@types/crypto-js": "^4.1.1",
205
205
  "@types/jest": "^29.5.2",
@@ -1083,7 +1083,7 @@ var LightsparkClient = class {
1083
1083
  }
1084
1084
  );
1085
1085
  return CurrencyAmountFromJson(
1086
- response.lightning_fee_estimate_for_invoice.fee_estimate
1086
+ response.lightning_fee_estimate_for_invoice.lightning_fee_estimate_output_fee_estimate
1087
1087
  );
1088
1088
  }
1089
1089
  /**
@@ -1104,7 +1104,7 @@ var LightsparkClient = class {
1104
1104
  }
1105
1105
  );
1106
1106
  return CurrencyAmountFromJson(
1107
- response.lightning_fee_estimate_for_node.fee_estimate
1107
+ response.lightning_fee_estimate_for_node.lightning_fee_estimate_output_fee_estimate
1108
1108
  );
1109
1109
  }
1110
1110
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightsparkdev/lightspark-sdk",
3
- "version": "0.4.8",
3
+ "version": "0.4.9",
4
4
  "description": "Lightspark JS SDK",
5
5
  "author": "Lightspark Inc.",
6
6
  "keywords": [
@@ -84,7 +84,7 @@
84
84
  },
85
85
  "devDependencies": {
86
86
  "@lightsparkdev/eslint-config": "*",
87
- "@lightsparkdev/gql": "0.0.2",
87
+ "@lightsparkdev/gql": "0.0.3",
88
88
  "@lightsparkdev/tsconfig": "0.0.0",
89
89
  "@types/crypto-js": "^4.1.1",
90
90
  "@types/jest": "^29.5.2",
package/src/client.ts CHANGED
@@ -500,7 +500,8 @@ class LightsparkClient {
500
500
  }
501
501
  );
502
502
  return CurrencyAmountFromJson(
503
- response.lightning_fee_estimate_for_invoice.fee_estimate
503
+ response.lightning_fee_estimate_for_invoice
504
+ .lightning_fee_estimate_output_fee_estimate
504
505
  );
505
506
  }
506
507
 
@@ -526,7 +527,8 @@ class LightsparkClient {
526
527
  }
527
528
  );
528
529
  return CurrencyAmountFromJson(
529
- response.lightning_fee_estimate_for_node.fee_estimate
530
+ response.lightning_fee_estimate_for_node
531
+ .lightning_fee_estimate_output_fee_estimate
530
532
  );
531
533
  }
532
534