@symbo.ls/fetch 2.11.26 → 2.11.32
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 +1 -1
- package/index.js +3 -1
- package/package.json +2 -2
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, isObject } = utils;
|
|
40
40
|
const { window } = globals;
|
|
41
|
-
const IS_DEVELOPMENT = window && window.location ? window.location.host.includes("dev") : 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
|
package/index.js
CHANGED
|
@@ -6,7 +6,9 @@ import * as globals from '@domql/globals'
|
|
|
6
6
|
const { overwriteDeep, deepDestringify, isObject } = utils
|
|
7
7
|
const { window } = globals
|
|
8
8
|
|
|
9
|
-
const IS_DEVELOPMENT = window && window.location
|
|
9
|
+
const IS_DEVELOPMENT = window && window.location
|
|
10
|
+
? window.location.host.includes('dev') || window.location.host.includes('symbo.ls')
|
|
11
|
+
: process.env.NODE_ENV === 'development'
|
|
10
12
|
|
|
11
13
|
const SERVER_URL = IS_DEVELOPMENT
|
|
12
14
|
? 'localhost:13335'
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/fetch",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.32",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"gitHead": "
|
|
5
|
+
"gitHead": "cd6537b696e8dbb935e5334947a378038bd3770e",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"module": "index.js",
|
|
8
8
|
"main": "index.js",
|