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

react-cosmos-shared2

Package Overview
Dependencies
Maintainers
1
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-cosmos-shared2 - npm Package Compare versions

Comparing version 5.0.0-alpha.10 to 5.0.0-alpha.12

4

dist/fixtureState/classState.d.ts

@@ -8,6 +8,8 @@ import { FixtureDecoratorId, FixtureStateValues, FixtureElementId, FixtureStateClassState, FixtureState } from './shared';

values: FixtureStateValues;
componentName: string;
};
export declare function createFixtureStateClassState({ fixtureState, elementId, values }: CreateFixtureStateClassStateArgs): {
export declare function createFixtureStateClassState({ fixtureState, elementId, values, componentName }: CreateFixtureStateClassStateArgs): {
elementId: FixtureElementId;
values: Record<string, import("./shared").FixtureStateValue>;
componentName: string;
}[];

@@ -14,0 +16,0 @@ declare type UpdateFixtureStateClassStateArgs = {

@@ -18,7 +18,8 @@ "use strict";

function createFixtureStateClassState(_a) {
var fixtureState = _a.fixtureState, elementId = _a.elementId, values = _a.values;
var fixtureState = _a.fixtureState, elementId = _a.elementId, values = _a.values, componentName = _a.componentName;
var _b = fixtureState.classState, classState = _b === void 0 ? [] : _b;
return util_1.replaceOrAddItem(classState, createClassStateMatcher(elementId), {
elementId: elementId,
values: values
values: values,
componentName: componentName
});

@@ -25,0 +26,0 @@ }

@@ -37,2 +37,3 @@ import { StateUpdater } from '../util';

values: FixtureStateValues;
componentName: string;
};

@@ -39,0 +40,0 @@ export declare type FixtureState = {

{
"name": "react-cosmos-shared2",
"version": "5.0.0-alpha.10",
"version": "5.0.0-alpha.12",
"description": "Code shared between Cosmos packages",

@@ -12,3 +12,3 @@ "repository": "https://github.com/react-cosmos/react-cosmos/tree/master/packages/react-cosmos-shared2",

},
"gitHead": "81263ac7c8d8f3f6e8789bc75e388f76c9dbc6e3"
"gitHead": "20174a15e87193d10cc42c66bdb5d154c2f3bf2e"
}
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