@symbo.ls/fetch 2.11.39 → 2.11.112

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/cjs/index.js CHANGED
@@ -38,7 +38,7 @@ var utils = __toESM(require("@domql/utils"), 1);
38
38
  var globals = __toESM(require("@domql/globals"), 1);
39
39
  const { overwriteDeep, deepDestringify } = utils;
40
40
  const { window } = globals;
41
- const IS_DEVELOPMENT = window && window.location ? window.location.host.includes("dev") || window.location.host.includes("symbo.ls") : true;
41
+ const IS_DEVELOPMENT = window && window.location ? window.location.host.includes("dev.") || window.location.host.includes("symbo.ls") : true;
42
42
  const SERVER_URL = IS_DEVELOPMENT ? "localhost:13335" : "https://api.symbols.dev";
43
43
  const defaultOptions = {
44
44
  endpoint: SERVER_URL
@@ -86,10 +86,7 @@ const fetchProjectAsync = async (key, options, callback) => {
86
86
  const { editor } = options;
87
87
  if (editor && editor.remote) {
88
88
  const data = await fetchRemote(key, editor);
89
- console.log(IS_DEVELOPMENT, data);
90
- console.log(options);
91
89
  const evalData = IS_DEVELOPMENT ? deepDestringify(data) : deepDestringify(data.releases[0]);
92
- console.log(evalData);
93
90
  callback(evalData);
94
91
  }
95
92
  };
package/index.js CHANGED
@@ -7,7 +7,7 @@ const { overwriteDeep, deepDestringify } = utils
7
7
  const { window } = globals
8
8
 
9
9
  const IS_DEVELOPMENT = window && window.location
10
- ? window.location.host.includes('dev') || window.location.host.includes('symbo.ls')
10
+ ? window.location.host.includes('dev.') || window.location.host.includes('symbo.ls')
11
11
  : process.env.NODE_ENV === 'development'
12
12
 
13
13
  const SERVER_URL = IS_DEVELOPMENT
@@ -80,12 +80,9 @@ export const fetchProjectAsync = async (key, options, callback) => {
80
80
 
81
81
  if (editor && editor.remote) {
82
82
  const data = await fetchRemote(key, editor)
83
- console.log(IS_DEVELOPMENT, data)
84
- console.log(options)
85
83
  const evalData = IS_DEVELOPMENT
86
84
  ? deepDestringify(data)
87
85
  : deepDestringify(data.releases[0])
88
- console.log(evalData)
89
86
  callback(evalData)
90
87
  }
91
88
  }
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@symbo.ls/fetch",
3
- "version": "2.11.39",
3
+ "version": "2.11.112",
4
4
  "license": "MIT",
5
- "gitHead": "2f40754c45ab3e9132e5335d3f01fcf7d2ac977b",
5
+ "gitHead": "f063b0bb9f6d0cb6399bb79c7dc3f9e8ddfc374b",
6
6
  "type": "module",
7
7
  "module": "index.js",
8
8
  "main": "index.js",