@kadira/storybook-addons
Advanced tools
Comparing version 1.1.1 to 1.2.0
@@ -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 @@ } |
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
4320
4
70