@symbo.ls/fetch 2.11.312 → 2.11.313
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 +3 -3
- package/index.js +4 -3
- package/package.json +2 -2
package/dist/cjs/index.js
CHANGED
|
@@ -63,11 +63,11 @@ const fetchRemote = async (key, options = defaultOptions) => {
|
|
|
63
63
|
};
|
|
64
64
|
const fetchProject = async (key, options) => {
|
|
65
65
|
const { editor } = options;
|
|
66
|
-
console.log(
|
|
66
|
+
console.log("proj");
|
|
67
|
+
console.log(options);
|
|
67
68
|
if (editor && editor.remote) {
|
|
68
69
|
const data = await fetchRemote(key, editor);
|
|
69
|
-
|
|
70
|
-
const evalData = IS_DEVELOPMENT ? deepDestringify(data) : deepDestringify(data.releases[0]);
|
|
70
|
+
const evalData = IS_DEVELOPMENT || options.isDevelopment ? deepDestringify(data) : deepDestringify(data.releases[0]);
|
|
71
71
|
if (editor.serviceRoute) {
|
|
72
72
|
if (utils.isArray(editor.serviceRoute)) {
|
|
73
73
|
editor.serviceRoute.forEach((route) => {
|
package/index.js
CHANGED
|
@@ -45,11 +45,12 @@ export const fetchRemote = async (key, options = defaultOptions) => {
|
|
|
45
45
|
export const fetchProject = async (key, options) => {
|
|
46
46
|
const { editor } = options
|
|
47
47
|
|
|
48
|
-
console.log(
|
|
48
|
+
console.log('proj')
|
|
49
|
+
console.log(options)
|
|
50
|
+
|
|
49
51
|
if (editor && editor.remote) {
|
|
50
52
|
const data = await fetchRemote(key, editor)
|
|
51
|
-
|
|
52
|
-
const evalData = IS_DEVELOPMENT
|
|
53
|
+
const evalData = (IS_DEVELOPMENT || options.isDevelopment)
|
|
53
54
|
? deepDestringify(data)
|
|
54
55
|
: deepDestringify(data.releases[0])
|
|
55
56
|
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/fetch",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.313",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"gitHead": "
|
|
5
|
+
"gitHead": "f29a5ff15ace269eb77f40080dbfddf5b43978ba",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"module": "index.js",
|
|
8
8
|
"main": "index.js",
|