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

storybook-addon-outline

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

storybook-addon-outline - npm Package Compare versions

Comparing version 1.3.1 to 1.3.2

12

CHANGELOG.md

@@ -0,1 +1,13 @@

# v1.3.2 (Wed Jun 02 2021)
#### ⚠️ Pushed to `main`
- remove globals reference in helpers ([@winkerVSbecks](https://github.com/winkerVSbecks))
#### Authors: 1
- Varun Vachhar ([@winkerVSbecks](https://github.com/winkerVSbecks))
---
# v1.3.1 (Tue Jun 01 2021)

@@ -2,0 +14,0 @@

12

dist/helpers.js

@@ -8,4 +8,2 @@ "use strict";

var _global = require("global");
var clearStyles = function clearStyles(selector) {

@@ -19,3 +17,3 @@ var selectors = Array.isArray(selector) ? selector : [selector];

var clearStyle = function clearStyle(selector) {
var element = _global.document.getElementById(selector);
var element = document.getElementById(selector);

@@ -28,3 +26,3 @@ if (element && element.parentElement) {

var addOutlineStyles = function addOutlineStyles(selector, css) {
var existingStyle = _global.document.getElementById(selector);
var existingStyle = document.getElementById(selector);

@@ -36,8 +34,6 @@ if (existingStyle) {

} else {
var style = _global.document.createElement('style');
var style = document.createElement('style');
style.setAttribute('id', selector);
style.innerHTML = css;
_global.document.head.appendChild(style);
document.head.appendChild(style);
}

@@ -44,0 +40,0 @@ };

{
"name": "storybook-addon-outline",
"version": "1.3.1",
"version": "1.3.2",
"description": "Outline all elements with CSS to help with layout placement and alignment",

@@ -5,0 +5,0 @@ "repository": {

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