@dump247/storybook-state
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -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", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
196239
5382
0