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

react-cosmos-ui

Package Overview
Dependencies
Maintainers
1
Versions
259
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-cosmos-ui - npm Package Compare versions

Comparing version 6.0.3-canary.0e81f3e.0 to 6.0.3-canary.42fbd37.0

11

dist/plugins/Router/index.js

@@ -20,11 +20,12 @@ import { isEqual } from 'lodash-es';

const { getConfig, setState } = context;
setState({ urlParams: getUrlParams() });
const urlParams = getUrlParams();
setState({ urlParams });
const { initialFixtureId } = getConfig();
if (initialFixtureId) {
if (initialFixtureId && !urlParams.fixtureId) {
selectFixture(context, initialFixtureId);
}
return subscribeToLocationChanges((urlParams) => {
return subscribeToLocationChanges((nextUrlParams) => {
const { fixtureId } = context.getState().urlParams;
const fixtureChanged = !isEqual(urlParams.fixtureId, fixtureId);
setState({ urlParams }, () => {
const fixtureChanged = !isEqual(nextUrlParams.fixtureId, fixtureId);
setState({ urlParams: nextUrlParams }, () => {
if (fixtureChanged) {

@@ -31,0 +32,0 @@ emitFixtureChangeEvent(context, true);

{
"name": "react-cosmos-ui",
"version": "6.0.3-canary.0e81f3e.0+0e81f3e",
"version": "6.0.3-canary.42fbd37.0+42fbd37",
"description": "React Cosmos UI",

@@ -18,3 +18,3 @@ "repository": "https://github.com/react-cosmos/react-cosmos/tree/main/packages/react-cosmos-ui",

"lodash-es": "4.17.21",
"react-cosmos-core": "6.0.3-canary.0e81f3e.0+0e81f3e"
"react-cosmos-core": "6.0.3-canary.42fbd37.0+42fbd37"
},

@@ -27,3 +27,3 @@ "devDependencies": {

},
"gitHead": "0e81f3e63bcfea85b22d336c8bbed7efa44ab9a8"
"gitHead": "42fbd3757f9e4a3563a7cab884797019b46f4bff"
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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