react-cosmos-dom
Advanced tools
Comparing version 6.0.0-beta.5 to 6.0.0-beta.6
@@ -5,2 +5,3 @@ 'use client'; | ||
import { createNoopRendererConnect, createPostMessageConnect, createWebSocketsConnect, } from 'react-cosmos-renderer'; | ||
import { createWebSocketsUrl } from './createWebSocketsUrl.js'; | ||
export function useDomRendererConnect(playgroundUrl) { | ||
@@ -17,7 +18,4 @@ return React.useMemo(() => createDomRendererConnect(playgroundUrl), [playgroundUrl]); | ||
? createPostMessageConnect() | ||
: createWebSocketsConnect(getWebSocketsUrl(playgroundUrl)); | ||
: createWebSocketsConnect(createWebSocketsUrl(playgroundUrl)); | ||
} | ||
} | ||
function getWebSocketsUrl(playgroundUrl) { | ||
return playgroundUrl.replace(/^https?:/, 'ws:'); | ||
} |
{ | ||
"name": "react-cosmos-dom", | ||
"version": "6.0.0-beta.5", | ||
"version": "6.0.0-beta.6", | ||
"description": "React Cosmos DOM", | ||
@@ -14,3 +14,3 @@ "repository": "https://github.com/react-cosmos/react-cosmos/tree/main/packages/react-cosmos-dom", | ||
}, | ||
"gitHead": "43919661a2ceb070ebc958bb7f6e52d5422ddc65" | ||
"gitHead": "472a60c4d2113cb4ae6777d76fc33b13ce76c0af" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12349
26
264
72