Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mount-style

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mount-style - npm Package Compare versions

Comparing version 1.2.0-beta.1 to 1.2.0-beta.2

6

dist/index.esm-browser.js

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

/*!
* mount-style v1.2.0-beta.2
* A simple function for mounting css style codes
* (c) 2021-2023 saqqdy<https://github.com/saqqdy>
* Released under the MIT License.
*/
/**

@@ -2,0 +8,0 @@ * Dynamic loading of css styles

8

dist/index.esm-browser.prod.js

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

function e(e,t){if(t===void 0){t={}}if(!e)throw new Error("[mountStyle]: css string is required");var r=t.attrs,n=t.props;return new Promise((function(t){var o=document.createElement("style");var i,a;if(r){for(i in r){o[i]=r[i]}}if(n){for(a in n){o[a]=n[a]}}o.type="text/css";try{o.appendChild(document.createTextNode(e))}catch(t){o.textContent=e}document.getElementsByTagName("head")[0].appendChild(o);t(true)}))}export{e as default};
/*!
* mount-style v1.2.0-beta.2
* A simple function for mounting css style codes
* (c) 2021-2023 saqqdy<https://github.com/saqqdy>
* Released under the MIT License.
*/
function e(e,t){if(void 0===t&&(t={}),!e)throw new Error("[mountStyle]: css string is required");var n=t.attrs,r=t.props;return new Promise((function(t){var o,i,a=document.createElement("style");if(n)for(o in n)a[o]=n[o];if(r)for(i in r)a[i]=r[i];a.type="text/css";try{a.appendChild(document.createTextNode(e))}catch(t){a.textContent=e}document.getElementsByTagName("head")[0].appendChild(a),t(!0)}))}export{e as default};

4

dist/index.global.js
/*!
* mount-style v1.2.0-beta.1
* mount-style v1.2.0-beta.2
* A simple function for mounting css style codes

@@ -7,3 +7,3 @@ * (c) 2021-2023 saqqdy<https://github.com/saqqdy>

*/
this.jsCool = (function () {
this.mountStyle = (function () {
'use strict';

@@ -10,0 +10,0 @@

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

this.jsCool=function(){"use strict";function t(t,e){if(e===void 0){e={}}if(!t)throw new Error("[mountStyle]: css string is required");var r=e.attrs,n=e.props;return new Promise((function(e){var i=document.createElement("style");var o,s;if(r){for(o in r){i[o]=r[o]}}if(n){for(s in n){i[s]=n[s]}}i.type="text/css";try{i.appendChild(document.createTextNode(t))}catch(e){i.textContent=t}document.getElementsByTagName("head")[0].appendChild(i);e(true)}))}return t}();
/*!
* mount-style v1.2.0-beta.2
* A simple function for mounting css style codes
* (c) 2021-2023 saqqdy<https://github.com/saqqdy>
* Released under the MIT License.
*/
this.mountStyle=function(){"use strict";return function(t,e){if(void 0===e&&(e={}),!t)throw new Error("[mountStyle]: css string is required");var n=e.attrs,r=e.props;return new Promise((function(e){var i,o,s=document.createElement("style");if(n)for(i in n)s[i]=n[i];if(r)for(o in r)s[o]=r[o];s.type="text/css";try{s.appendChild(document.createTextNode(t))}catch(e){s.textContent=t}document.getElementsByTagName("head")[0].appendChild(s),e(!0)}))}}();
{
"name": "mount-style",
"description": "A simple function for mounting css style codes",
"version": "1.2.0-beta.1",
"packageManager": "pnpm@8.5.1",
"version": "1.2.0-beta.2",
"packageManager": "pnpm@8.6.0",
"main": "dist/index.cjs.js",

@@ -7,0 +7,0 @@ "module": "dist/index.esm-bundler.js",

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