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

@dump247/storybook-state

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dump247/storybook-state - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

2

dist/index.js

@@ -75,3 +75,3 @@ 'use strict';

try {
for (var _iterator = this.handlers[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
for (var _iterator = this.handlers.entries()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
var _step$value = _slicedToArray(_step.value, 2),

@@ -78,0 +78,0 @@ index = _step$value[0],

@@ -33,3 +33,3 @@ import React from 'react';

unsubscribe(subscriptionId) {
for (const [index, { subscriptionId: handlerId }] of this.handlers) {
for (const [index, { subscriptionId: handlerId }] of this.handlers.entries()) {
if (handlerId === subscriptionId) {

@@ -36,0 +36,0 @@ this.handlers.splice(index, 1);

@@ -68,2 +68,7 @@ import React from 'react';

test('unmount state component', () => {
const stateComponent = mount(withState({ var1: 1 }, (store) => <TestComponent {...store.state}/>)());
stateComponent.unmount();
});
function expectProps(component) {

@@ -70,0 +75,0 @@ const props = component.props();

{
"name": "@dump247/storybook-state",
"version": "1.0.4",
"version": "1.0.5",
"description": "Manage component state in storybook stories.",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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