New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

storybook-chromatic

Package Overview
Dependencies
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

storybook-chromatic - npm Package Compare versions

Comparing version

to
1.0.1

6

CHANGELOG.md

@@ -0,1 +1,7 @@

# 1.0.1 - 2018-07-26
* We now set the `CHROMATIC_APP_CODE` variable for you, with explicit instructions to remove it (and set via CI) in less secure applications.
* Some small bugfixes to support unusual usages.
# 1.0.0 - 2018-07-02

@@ -2,0 +8,0 @@

20

dist/assets/storybook-addon.js

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

if (!location.pathname.match('/iframe.html')) {
if (!location.pathname.match('/iframe.html') && typeof jest === 'undefined') {
console.error('storybook-chromatic should be installed in your `.storybook/config.js`');

@@ -23,7 +23,2 @@ } /* eslint-env browser */

var _window = window,
__STORYBOOK_CLIENT_API__ = _window.__STORYBOOK_CLIENT_API__,
__STORYBOOK_ADDONS_CHANNEL__ = _window.__STORYBOOK_ADDONS_CHANNEL__;
var runtime = 'storybook';

@@ -35,3 +30,11 @@ (0, _client2.default)({

input = _ref.input;
var _window = window,
__STORYBOOK_CLIENT_API__ = _window.__STORYBOOK_CLIENT_API__,
__STORYBOOK_ADDONS_CHANNEL__ = _window.__STORYBOOK_ADDONS_CHANNEL__;
if (!__STORYBOOK_CLIENT_API__ || !__STORYBOOK_ADDONS_CHANNEL__) {
throw new Error('Chromatic requires Storybook version at least 3.4. Please update your storybook!');
}
if (specRuntime !== runtime) {

@@ -59,2 +62,7 @@ throw new Error('Storybook plugin cannot handle ' + specRuntime + ' specs');

specs: function specs() {
var _window2 = window,
__STORYBOOK_CLIENT_API__ = _window2.__STORYBOOK_CLIENT_API__,
__STORYBOOK_ADDONS_CHANNEL__ = _window2.__STORYBOOK_ADDONS_CHANNEL__;
if (!__STORYBOOK_CLIENT_API__ || !__STORYBOOK_ADDONS_CHANNEL__) {

@@ -61,0 +69,0 @@ throw new Error('Chromatic requires Storybook version at least 3.4. Please update your storybook!');

@@ -64,2 +64,3 @@ #!/usr/bin/env node

exports.findOption = findOption;
exports.parseArgv = parseArgv;

@@ -88,4 +89,5 @@

// This is not exactly clever but it works most of the time
function findOption(storybookScript, shortName, longName) {
var parts = storybookScript.split(/[\s+|=]/);
var parts = storybookScript.split(/[\s='"]+/);
var index = parts.indexOf(longName);

@@ -92,0 +94,0 @@ if (index === -1) {

{
"name": "storybook-chromatic",
"version": "1.0.0",
"version": "1.0.1",
"description": "Visual Testing for Storybook",

@@ -5,0 +5,0 @@ "browser": "./dist/assets/storybook-addon.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet