@symbo.ls/fetch 2.9.7 → 2.10.2

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/index.js +4 -2
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -5,7 +5,7 @@ const BACKEND_URL = window.location
5
5
  ? 'localhost:13335'
6
6
  : 'api.symbols.app'
7
7
 
8
- export const fetch = async (key, route) => {
8
+ export const fetchRemote = async (key, route) => {
9
9
  let data = {}
10
10
  await window.fetch(`https://${BACKEND_URL}/${route || ''}`, {
11
11
  method: 'GET',
@@ -14,4 +14,6 @@ export const fetch = async (key, route) => {
14
14
  return response.json().then(d => data = d)
15
15
  })
16
16
  return data
17
- }
17
+ }
18
+
19
+ export const fetch = fetchRemote
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@symbo.ls/fetch",
3
- "version": "2.9.7",
3
+ "version": "2.10.2",
4
4
  "license": "MIT",
5
- "gitHead": "1d88bf5fa75a5c44f4f2e805fd16a67dc25ad247",
5
+ "gitHead": "6bcf7d813bca3f561c2c2cd789eacb4a2a4e7ac5",
6
6
  "source": "index.js",
7
7
  "main": "index.js"
8
8
  }