chayns-api 1.1.0-18 → 1.1.0-19

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.
@@ -31,6 +31,9 @@ const componentMap = {};
31
31
  });
32
32
  const loadModule = (scope, module, url, preventSingleton = false) => {
33
33
  if (registeredScopes[scope] !== url || preventSingleton) {
34
+ if (scope in registeredScopes) {
35
+ console.warn(`[chayns-api] call registerRemote with force for scope ${scope}. url: ${url}`);
36
+ }
34
37
  (0, _runtime.registerRemotes)([{
35
38
  name: scope,
36
39
  entry: url,
@@ -25,6 +25,9 @@ init({
25
25
  export const loadModule = function (scope, module, url) {
26
26
  let preventSingleton = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
27
27
  if (registeredScopes[scope] !== url || preventSingleton) {
28
+ if (scope in registeredScopes) {
29
+ console.warn(`[chayns-api] call registerRemote with force for scope ${scope}. url: ${url}`);
30
+ }
28
31
  registerRemotes([{
29
32
  name: scope,
30
33
  entry: url,
@@ -1,4 +1,7 @@
1
1
  /**
2
2
  * @category Hooks
3
3
  */
4
- export declare const useCurrentPage: () => any;
4
+ export declare const useCurrentPage: () => {
5
+ id: number;
6
+ siteId: string;
7
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chayns-api",
3
- "version": "1.1.0-18",
3
+ "version": "1.1.0-19",
4
4
  "description": "new chayns api",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",