@symbo.ls/fetch 2.11.310 → 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 CHANGED
@@ -63,9 +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("proj");
67
+ console.log(options);
66
68
  if (editor && editor.remote) {
67
69
  const data = await fetchRemote(key, editor);
68
- const evalData = IS_DEVELOPMENT ? deepDestringify(data) : deepDestringify(data.releases[0]);
70
+ const evalData = IS_DEVELOPMENT || options.isDevelopment ? deepDestringify(data) : deepDestringify(data.releases[0]);
69
71
  if (editor.serviceRoute) {
70
72
  if (utils.isArray(editor.serviceRoute)) {
71
73
  editor.serviceRoute.forEach((route) => {
@@ -94,7 +96,8 @@ const fetchProjectAsync = async (key, options, callback) => {
94
96
  const { editor } = options;
95
97
  if (editor && editor.remote) {
96
98
  const data = await fetchRemote(key, editor);
97
- const evalData = IS_DEVELOPMENT ? deepDestringify(data) : deepDestringify(data.releases[0]);
99
+ console.log(data);
100
+ const evalData = IS_DEVELOPMENT || options.isDevelopment ? deepDestringify(data) : deepDestringify(data.releases[0]);
98
101
  callback(evalData);
99
102
  }
100
103
  };
package/index.js CHANGED
@@ -45,9 +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('proj')
49
+ console.log(options)
50
+
48
51
  if (editor && editor.remote) {
49
52
  const data = await fetchRemote(key, editor)
50
- const evalData = IS_DEVELOPMENT
53
+ const evalData = (IS_DEVELOPMENT || options.isDevelopment)
51
54
  ? deepDestringify(data)
52
55
  : deepDestringify(data.releases[0])
53
56
 
@@ -82,7 +85,8 @@ export const fetchProjectAsync = async (key, options, callback) => {
82
85
 
83
86
  if (editor && editor.remote) {
84
87
  const data = await fetchRemote(key, editor)
85
- const evalData = IS_DEVELOPMENT
88
+ console.log(data)
89
+ const evalData = (IS_DEVELOPMENT || options.isDevelopment)
86
90
  ? deepDestringify(data)
87
91
  : deepDestringify(data.releases[0])
88
92
  callback(evalData)
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@symbo.ls/fetch",
3
- "version": "2.11.310",
3
+ "version": "2.11.313",
4
4
  "license": "MIT",
5
- "gitHead": "3e774509842b471eda7cd8d34ea79bd8c70c79a9",
5
+ "gitHead": "f29a5ff15ace269eb77f40080dbfddf5b43978ba",
6
6
  "type": "module",
7
7
  "module": "index.js",
8
8
  "main": "index.js",