Socket
Socket
Sign inDemoInstall

@emotion/sheet

Package Overview
Dependencies
Maintainers
2
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@emotion/sheet - npm Package Compare versions

Comparing version 0.9.0 to 0.9.1

2

dist/index.min.js

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e.emotionSheet={})}(this,function(e){"use strict";var t=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,n=(s=this,(i=document.createElement("style")).setAttribute("data-emotion",s.key),void 0!==s.nonce&&i.setAttribute("nonce",s.nonce),i.appendChild(document.createTextNode("")),i);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var s,i,o=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(o);try{var h=105===e.charCodeAt(1)&&64===e.charCodeAt(0);r.insertRule(e,h?0:r.cssRules.length)}catch(e){}}else o.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode.removeChild(e)}),this.tags=[],this.ctr=0},e}();e.StyleSheet=t,Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e.emotionSheet={})}(this,function(e){"use strict";var t=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,n=(s=this,(i=document.createElement("style")).setAttribute("data-emotion",s.key),void 0!==s.nonce&&i.setAttribute("nonce",s.nonce),i.appendChild(document.createTextNode("")),i);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var s,i,o=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(o);try{var h=105===e.charCodeAt(1)&&64===e.charCodeAt(0);r.insertRule(e,h?0:r.cssRules.length)}catch(e){}}else o.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode.removeChild(e)}),this.tags=[],this.ctr=0},e}();e.StyleSheet=t,Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=index.min.js.map

@@ -68,2 +68,3 @@ 'use strict';

this.container = options.container;
this.before = null;
}

@@ -70,0 +71,0 @@

@@ -64,2 +64,3 @@ /*

this.container = options.container;
this.before = null;
}

@@ -66,0 +67,0 @@

@@ -68,2 +68,3 @@ 'use strict';

this.container = options.container;
this.before = null;
}

@@ -70,0 +71,0 @@

@@ -25,3 +25,4 @@ "use strict";

(this.key = options.key),
(this.container = options.container);
(this.container = options.container),
(this.before = null);
}

@@ -28,0 +29,0 @@ var _proto = StyleSheet.prototype;

@@ -64,2 +64,3 @@ /*

this.container = options.container;
this.before = null;
}

@@ -66,0 +67,0 @@

{
"name": "@emotion/sheet",
"version": "0.9.0",
"version": "0.9.1",
"description": "emotion's stylesheet",

@@ -5,0 +5,0 @@ "main": "dist/sheet.cjs.js",

@@ -69,3 +69,3 @@ // @flow

nonce: string | void
before: Element | null | void
before: Element | null
constructor(options: Options) {

@@ -82,2 +82,3 @@ this.isSpeedy =

this.container = options.container
this.before = null
}

@@ -84,0 +85,0 @@ insert(rule: string) {

Sorry, the diff of this file is not supported yet

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