astra-lightning 1.1.2 → 1.1.3

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.
@@ -104,8 +104,8 @@ module.exports = ({asset_id, pay_req_string, tpr}, cbk) => {
104
104
  // Add asset group if exists
105
105
  if (!!res.asset_group) {
106
106
  response.asset_group = {
107
- asset_ids: res.asset_group.asset_ids.map(id => bufferAsHex(id)),
108
- tweaked: bufferAsHex(res.asset_group.tweaked),
107
+ asset_ids: res.asset_group.asset_ids?.map(id => bufferAsHex(id)) || [],
108
+ tweaked: res.asset_group.tweaked ? bufferAsHex(res.asset_group.tweaked):null,
109
109
  };
110
110
  }
111
111
 
package/package.json CHANGED
@@ -49,5 +49,5 @@
49
49
  "directory": "test/typescript"
50
50
  },
51
51
  "types": "index.d.ts",
52
- "version": "1.1.2"
52
+ "version": "1.1.3"
53
53
  }