Socket
Socket
Sign inDemoInstall

storybook-addon-cookie

Package Overview
Dependencies
56
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.6 to 1.1.0

0

dist/cookieDecorator.d.ts

@@ -0,0 +0,0 @@ import { DecoratorFunction, StoryContext } from '@storybook/addons';

2

dist/cookieDecorator.js

@@ -11,3 +11,3 @@ "use strict";

var _a = entries_1[_i], key = _a[0], value = _a[1];
document.cookie = "".concat(key, "=").concat(value);
document.cookie = "".concat(key, "=").concat(JSON.stringify(value));
}

@@ -14,0 +14,0 @@ }

export * from './cookieDecorator';

@@ -0,0 +0,0 @@ "use strict";

{
"name": "storybook-addon-cookie",
"version": "1.0.6",
"version": "1.1.0",
"description": "Storybook addon for setting document.cookie",

@@ -31,3 +31,3 @@ "author": "hwookim <gusdn9754@gmail.com>",

},
"gitHead": "95bcc68421954dcc167f5d3e376c7ad6aca054ee"
"gitHead": "20a8d0eaff8b82beecfc588b5a9241192cf57e5f"
}

@@ -0,0 +0,0 @@ <h1 align="center">Storybook Addon Cookie</h1>

@@ -21,3 +21,3 @@ import { DecoratorFunction, StoryContext } from '@storybook/addons';

for (const [key, value] of entries) {
document.cookie = `${key}=${value}`;
document.cookie = `${key}=${JSON.stringify(value)}`;
}

@@ -24,0 +24,0 @@ }

export * from './cookieDecorator';

@@ -0,0 +0,0 @@ {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc