prostgles-server 2.0.312 → 2.0.313

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/dist/utils.js CHANGED
@@ -4,7 +4,7 @@ exports.clone = exports.get = void 0;
4
4
  var prostgles_types_1 = require("prostgles-types");
5
5
  Object.defineProperty(exports, "get", { enumerable: true, get: function () { return prostgles_types_1.get; } });
6
6
  const clone = (obj) => {
7
- if (structuredClone !== undefined) {
7
+ if (typeof structuredClone !== "undefined") {
8
8
  return structuredClone(obj);
9
9
  }
10
10
  return JSON.parse(JSON.stringify(obj));
package/dist/utils.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../lib/utils.ts"],"names":[],"mappings":";;;AAAA,mDAAsC;AAA7B,sGAAA,GAAG,OAAA;AACL,MAAM,KAAK,GAAG,CAAwC,GAAM,EAAK,EAAE;IACxE,IAAG,eAAe,KAAK,SAAS,EAAC;QAC/B,OAAO,eAAe,CAAC,GAAG,CAAC,CAAC;KAC7B;IAED,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;AACzC,CAAC,CAAA;AANY,QAAA,KAAK,SAMjB"}
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../lib/utils.ts"],"names":[],"mappings":";;;AAAA,mDAAsC;AAA7B,sGAAA,GAAG,OAAA;AACL,MAAM,KAAK,GAAG,CAAwC,GAAM,EAAK,EAAE;IACxE,IAAG,OAAO,eAAe,KAAK,WAAW,EAAC;QACxC,OAAO,eAAe,CAAC,GAAG,CAAC,CAAC;KAC7B;IAED,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;AACzC,CAAC,CAAA;AANY,QAAA,KAAK,SAMjB"}
package/lib/utils.js CHANGED
@@ -4,7 +4,7 @@ exports.clone = exports.get = void 0;
4
4
  var prostgles_types_1 = require("prostgles-types");
5
5
  Object.defineProperty(exports, "get", { enumerable: true, get: function () { return prostgles_types_1.get; } });
6
6
  const clone = (obj) => {
7
- if (structuredClone !== undefined) {
7
+ if (typeof structuredClone !== "undefined") {
8
8
  return structuredClone(obj);
9
9
  }
10
10
  return JSON.parse(JSON.stringify(obj));
package/lib/utils.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { get } from "prostgles-types";
2
2
  export const clone = <T extends any[] | Record<string, any>>(obj: T): T => {
3
- if(structuredClone !== undefined){
3
+ if(typeof structuredClone !== "undefined"){
4
4
  return structuredClone(obj);
5
5
  }
6
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prostgles-server",
3
- "version": "2.0.312",
3
+ "version": "2.0.313",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1 +1 @@
1
- 2891
1
+ 4132
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "../..": {
23
23
  "name": "prostgles-server",
24
- "version": "2.0.311",
24
+ "version": "2.0.312",
25
25
  "license": "MIT",
26
26
  "dependencies": {
27
27
  "@aws-sdk/client-s3": "^3.121.0",