@squide/msw 2.0.7 → 2.0.8
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isMswStarted, addMswStateChangedListener, removeMswStateChangedListener } from './chunk-4FYK3XXP.js';
|
|
2
|
-
import {
|
|
2
|
+
import { useLogOnceLogger } from '@squide/core';
|
|
3
3
|
import { useSyncExternalStore, useEffect } from 'react';
|
|
4
4
|
|
|
5
5
|
function subscribe(callback) {
|
|
@@ -8,10 +8,10 @@ function subscribe(callback) {
|
|
|
8
8
|
}
|
|
9
9
|
function useIsMswStarted(enabled) {
|
|
10
10
|
const isStarted = useSyncExternalStore(subscribe, isMswStarted);
|
|
11
|
-
const logger =
|
|
11
|
+
const logger = useLogOnceLogger();
|
|
12
12
|
useEffect(() => {
|
|
13
13
|
if (isStarted) {
|
|
14
|
-
logger.
|
|
14
|
+
logger.debugOnce("msw-is-started", "[squide] %cMSW is ready%c.", "color: white; background-color: green;", "");
|
|
15
15
|
}
|
|
16
16
|
}, [isStarted, logger]);
|
|
17
17
|
return isStarted || !enabled;
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { MswPlugin, getMswPlugin } from './chunk-BH5GURQ4.js';
|
|
2
2
|
export { RequestHandlerRegistry } from './chunk-UJ4YM7IF.js';
|
|
3
|
-
export { useIsMswStarted } from './chunk-
|
|
3
|
+
export { useIsMswStarted } from './chunk-67NM4MII.js';
|
|
4
4
|
export { MswState, __resetMswStatus, addMswStateChangedListener, isMswStarted, removeMswStateChangedListener, setMswAsStarted } from './chunk-4FYK3XXP.js';
|
package/dist/useIsMswStarted.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { useIsMswStarted } from './chunk-
|
|
1
|
+
export { useIsMswStarted } from './chunk-67NM4MII.js';
|
|
2
2
|
import './chunk-4FYK3XXP.js';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@squide/msw",
|
|
3
3
|
"author": "Workleap",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.8",
|
|
5
5
|
"description": "Add support for MSW to @squide federated application shell.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"repository": {
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"typescript": "5.2.2"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@squide/core": "3.
|
|
52
|
+
"@squide/core": "3.2.0"
|
|
53
53
|
},
|
|
54
54
|
"sideEffects": false,
|
|
55
55
|
"engines": {
|