Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-cosmos-dom

Package Overview
Dependencies
Maintainers
1
Versions
256
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-cosmos-dom - npm Package Compare versions

Comparing version 6.0.0-beta.5 to 6.0.0-beta.6

dist/createWebSocketsUrl.d.ts

6

dist/useDomRendererConnect.js

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc