@carbonorm/carbonnode 1.2.15 → 1.2.16

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carbonorm/carbonnode",
3
- "version": "1.2.15",
3
+ "version": "1.2.16",
4
4
  "main": "dist/index.cjs.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "browser": "dist/index.umd.js",
@@ -36,7 +36,7 @@ export const Get = restRequest<GetCustomAndRequiredFields, i{{TABLE_NAME_SHORT_P
36
36
  },
37
37
  responseCallback: (response, _request) => {
38
38
  const responseData = response?.data?.rest;
39
- updateRestfulObjectArrays<i{{TABLE_NAME_SHORT_PASCAL_CASE}}>("object" === typeof responseData ? [ responseData ] : responseData, "{{TABLE_NAME_SHORT}}", C6.{{TABLE_NAME_SHORT}}.PRIMARY_SHORT as (keyof i{{TABLE_NAME_SHORT_PASCAL_CASE}})[])
39
+ updateRestfulObjectArrays<i{{TABLE_NAME_SHORT_PASCAL_CASE}}>(Array.isArray(responseData) ? responseData : [responseData], "{{TABLE_NAME_SHORT}}", C6.{{TABLE_NAME_SHORT}}.PRIMARY_SHORT as (keyof i{{TABLE_NAME_SHORT_PASCAL_CASE}})[])
40
40
  }
41
41
  });
42
42