@symbo.ls/fetch 2.11.40 → 2.11.125

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
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
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@symbo.ls/fetch",
3
- "version": "2.11.40",
3
+ "version": "2.11.125",
4
4
  "license": "MIT",
5
- "gitHead": "4c1fd78afbf237ab4af743569849a896aba7eb82",
5
+ "gitHead": "baa36f3a07d4ea577fe641432ab3ca0432fb4915",
6
6
  "type": "module",
7
7
  "module": "index.js",
8
8
  "main": "index.js",
@@ -20,7 +20,7 @@
20
20
  "build:esm": "npx esbuild ./index.js --target=es2020 --format=esm --outdir=dist/esm",
21
21
  "build:cjs": "npx esbuild ./index.js --target=node16 --format=cjs --outdir=dist/cjs",
22
22
  "build:iife": "npx esbuild ./index.js --target=es2020 --format=iife --outdir=dist/iife --bundle --minify",
23
- "build": "yarn build:cjs",
23
+ "build": "yarn build:cjs && yarn copy:package:cjs",
24
24
  "prepublish": "rimraf -I dist && yarn build && yarn copy:package:cjs"
25
25
  }
26
26
  }