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

@kadira/storybook-addons

Package Overview
Dependencies
Maintainers
6
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kadira/storybook-addons - npm Package Compare versions

Comparing version 1.1.1 to 1.2.0

.scripts/npm-prepublish.js

17

dist/index.js

@@ -17,16 +17,5 @@ "use strict";

this._panels = {};
this._channel = null;
}
_createClass(AddonStore, [{
key: "getChannel",
value: function getChannel() {
return this._channel;
}
}, {
key: "setChannel",
value: function setChannel(channel) {
this._channel = channel;
}
}, {
key: "getPanels",

@@ -51,6 +40,10 @@ value: function getPanels() {

for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
Object.keys(this._loaders).map(function (name) {
return _this._loaders[name];
}).forEach(function (loader) {
return loader();
return loader.apply(undefined, args);
});

@@ -57,0 +50,0 @@ }

{
"name": "@kadira/storybook-addons",
"version": "1.1.1",
"version": "1.2.0",
"description": "Storybook addons store",
"main": "dist/index.js",
"scripts": {
"prepublish": "bash .scripts/npm-prepublish.sh",
"prepublish": "node .scripts/npm-prepublish.js",
"test": "mocha"

@@ -25,4 +25,5 @@ },

"babel-preset-es2015": "^6.9.0",
"babel-preset-stage-0": "^6.5.0"
"babel-preset-stage-0": "^6.5.0",
"shelljs": "^0.7.3"
}
}

@@ -5,13 +5,4 @@ export class AddonStore {

this._panels = {};
this._channel = null;
}
getChannel() {
return this._channel;
}
setChannel(channel) {
this._channel = channel;
}
getPanels() {

@@ -29,6 +20,6 @@ return this._panels;

loadAddons() {
loadAddons(...args) {
Object.keys(this._loaders)
.map(name => this._loaders[name])
.forEach(loader => loader());
.forEach(loader => loader(...args));
}

@@ -35,0 +26,0 @@ }

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