@lightsparkdev/core 1.1.0 → 1.2.0

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/core
2
2
 
3
+ ## 1.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - c17a851: - Update types. Non-public constructObject can return null
8
+
3
9
  ## 1.1.0
4
10
 
5
11
  ### Minor Changes
package/dist/index.d.cts CHANGED
@@ -135,7 +135,7 @@ type Query<T> = {
135
135
  * The function that will be called to construct the object from the
136
136
  * response. *
137
137
  */
138
- constructObject: (rawData: any) => T;
138
+ constructObject: (rawData: any) => T | null;
139
139
  /** The id of the node that will be used to sign the query. **/
140
140
  signingNodeId?: string;
141
141
  /** True if auth headers should be omitted for this query. **/
package/dist/index.d.ts CHANGED
@@ -135,7 +135,7 @@ type Query<T> = {
135
135
  * The function that will be called to construct the object from the
136
136
  * response. *
137
137
  */
138
- constructObject: (rawData: any) => T;
138
+ constructObject: (rawData: any) => T | null;
139
139
  /** The id of the node that will be used to sign the query. **/
140
140
  signingNodeId?: string;
141
141
  /** True if auth headers should be omitted for this query. **/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightsparkdev/core",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "Lightspark JS SDK",
5
5
  "author": "Lightspark Inc.",
6
6
  "keywords": [
@@ -11,7 +11,7 @@ type Query<T> = {
11
11
  * The function that will be called to construct the object from the
12
12
  * response. *
13
13
  */
14
- constructObject: (rawData: any) => T; // eslint-disable-line @typescript-eslint/no-explicit-any -- LIG-3400
14
+ constructObject: (rawData: any) => T | null; // eslint-disable-line @typescript-eslint/no-explicit-any -- LIG-3400
15
15
 
16
16
  /** The id of the node that will be used to sign the query. **/
17
17
  signingNodeId?: string;