@symbo.ls/fetch 3.4.11 → 3.5.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.
Files changed (2) hide show
  1. package/dist/iife/index.js +11 -11
  2. package/package.json +2 -2
@@ -96,11 +96,11 @@ var SmblsFetch = (() => {
96
96
  decodeNewlines: () => decodeNewlines,
97
97
  deepClone: () => deepClone,
98
98
  deepContains: () => deepContains,
99
- deepDestringify: () => deepDestringify,
99
+ deepDestringifyFunctions: () => deepDestringifyFunctions,
100
100
  deepExtend: () => deepExtend,
101
101
  deepMerge: () => deepMerge,
102
102
  deepMergeExtends: () => deepMergeExtends,
103
- deepStringify: () => deepStringify,
103
+ deepStringifyFunctions: () => deepStringifyFunctions,
104
104
  defineSetter: () => defineSetter,
105
105
  detectInfiniteLoop: () => detectInfiniteLoop,
106
106
  document: () => document2,
@@ -838,7 +838,7 @@ var SmblsFetch = (() => {
838
838
  }
839
839
  return clone2;
840
840
  };
841
- var deepStringify = (obj, stringified = {}) => {
841
+ var deepStringifyFunctions = (obj, stringified = {}) => {
842
842
  if (obj.node || obj.__ref || obj.parent || obj.__element || obj.parse) {
843
843
  ;
844
844
  (obj.__element || obj.parent?.__element).warn(
@@ -853,14 +853,14 @@ var SmblsFetch = (() => {
853
853
  stringified[prop] = objProp.toString();
854
854
  } else if (isObject(objProp)) {
855
855
  stringified[prop] = {};
856
- deepStringify(objProp, stringified[prop]);
856
+ deepStringifyFunctions(objProp, stringified[prop]);
857
857
  } else if (isArray(objProp)) {
858
858
  const arr = stringified[prop] = [];
859
859
  for (let i = 0; i < objProp.length; i++) {
860
860
  const v = objProp[i];
861
861
  if (isObject(v)) {
862
862
  arr[i] = {};
863
- deepStringify(v, arr[i]);
863
+ deepStringifyFunctions(v, arr[i]);
864
864
  } else if (isFunction(v)) {
865
865
  arr[i] = v.toString();
866
866
  } else {
@@ -962,7 +962,7 @@ var SmblsFetch = (() => {
962
962
  if (RE_JSON_LIKE.test(trimmed) && !hasArrow) return false;
963
963
  return true;
964
964
  };
965
- var deepDestringify = (obj, destringified = {}) => {
965
+ var deepDestringifyFunctions = (obj, destringified = {}) => {
966
966
  for (const prop in obj) {
967
967
  if (!Object.prototype.hasOwnProperty.call(obj, prop)) continue;
968
968
  const objProp = obj[prop];
@@ -991,13 +991,13 @@ var SmblsFetch = (() => {
991
991
  arr.push(arrProp);
992
992
  }
993
993
  } else if (isObject(arrProp)) {
994
- arr.push(deepDestringify(arrProp));
994
+ arr.push(deepDestringifyFunctions(arrProp));
995
995
  } else {
996
996
  arr.push(arrProp);
997
997
  }
998
998
  }
999
999
  } else if (isObject(objProp)) {
1000
- destringified[prop] = deepDestringify(objProp, destringified[prop]);
1000
+ destringified[prop] = deepDestringifyFunctions(objProp, destringified[prop]);
1001
1001
  } else {
1002
1002
  destringified[prop] = objProp;
1003
1003
  }
@@ -2785,7 +2785,7 @@ var SmblsFetch = (() => {
2785
2785
  };
2786
2786
 
2787
2787
  // index.js
2788
- var { window: window3, overwriteDeep: overwriteDeep2, deepDestringifyFunctions } = esm_exports;
2788
+ var { window: window3, overwriteDeep: overwriteDeep2, deepDestringifyFunctions: deepDestringifyFunctions2 } = esm_exports;
2789
2789
  var IS_DEVELOPMENT = window3 && window3.location ? window3.location.host.includes("dev.") : isDevelopment();
2790
2790
  var SERVER_URL = IS_DEVELOPMENT ? "http://localhost:8080/get" : "https://api.symbols.app/get";
2791
2791
  var defaultOptions = {
@@ -2815,7 +2815,7 @@ var SmblsFetch = (() => {
2815
2815
  const { editor } = options;
2816
2816
  if (editor && editor.remote) {
2817
2817
  const data = await fetchRemote(key, editor);
2818
- const evalData = IS_DEVELOPMENT || options.isDevelopment ? deepDestringifyFunctions(data) : deepDestringifyFunctions(data.releases[0]);
2818
+ const evalData = IS_DEVELOPMENT || options.isDevelopment ? deepDestringifyFunctions2(data) : deepDestringifyFunctions2(data.releases[0]);
2819
2819
  if (editor.serviceRoute) {
2820
2820
  if (isArray(editor.serviceRoute)) {
2821
2821
  editor.serviceRoute.forEach((route) => {
@@ -2847,7 +2847,7 @@ var SmblsFetch = (() => {
2847
2847
  const { editor } = options;
2848
2848
  if (editor && editor.remote) {
2849
2849
  const data = await fetchRemote(key, editor);
2850
- const evalData = IS_DEVELOPMENT || options.isDevelopment ? deepDestringifyFunctions(data) : deepDestringifyFunctions(data.releases[0]);
2850
+ const evalData = IS_DEVELOPMENT || options.isDevelopment ? deepDestringifyFunctions2(data) : deepDestringifyFunctions2(data.releases[0]);
2851
2851
  callback(evalData);
2852
2852
  }
2853
2853
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@symbo.ls/fetch",
3
- "version": "3.4.11",
3
+ "version": "3.5.0",
4
4
  "license": "MIT",
5
5
  "gitHead": "9fc1b79b41cdc725ca6b24aec64920a599634681",
6
6
  "type": "module",
@@ -30,7 +30,7 @@
30
30
  "prepublish": "npm run build && npm run copy:package:cjs"
31
31
  },
32
32
  "dependencies": {
33
- "@domql/utils": "^3.4.11"
33
+ "@domql/utils": "^3.5.0"
34
34
  },
35
35
  "browser": "./dist/esm/index.js",
36
36
  "sideEffects": false