kj-micro-app 1.0.3 → 3.0.0

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/lib/index.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- const version = '1.0.3';
1
+ const version = '3.0.0';
2
2
  // do not use isUndefined
3
3
  const isBrowser = typeof window !== 'undefined';
4
4
  // do not use isUndefined
@@ -256,13 +256,13 @@ function formatAppURL(url, appName = null) {
256
256
  newOrigin = protocol + '//' + host;
257
257
  }
258
258
  }
259
- console.log('newOrigin', newOrigin, origin);
259
+ logError('newOrigin', newOrigin, origin);
260
260
  /**
261
261
  * keep the original url unchanged, such as .html .node .php .net .etc, search, except hash
262
262
  * BUG FIX: Never using '/' to complete url, refer to https://github.com/jd-opensource/micro-app/issues/1147
263
263
  */
264
264
  const fullPath = `${newOrigin}${pathname}${search}`;
265
- console.log('fullPath', fullPath);
265
+ logError('fullPath', fullPath);
266
266
  return /^\w+?:\/\//.test(fullPath) ? fullPath : '';
267
267
  }
268
268
  catch (e) {