Comparing version 1.0.0 to 1.1.0
var containers = []; // will store container HTMLElement references | ||
var styleElements = []; // will store {prepend: HTMLElement, append: HTMLElement} | ||
module.exports = function (css, options) { | ||
function insertCss(css, options) { | ||
options = options || {}; | ||
@@ -32,2 +32,5 @@ | ||
// strip potential UTF-8 BOM if css was read from a file | ||
if (css.charCodeAt(0) === 0xFEFF) { css = css.substr(1, css.length); } | ||
// actually add the stylesheet | ||
@@ -48,1 +51,4 @@ if (styleElement.styleSheet) { | ||
} | ||
module.exports = insertCss; | ||
module.exports.insertCss = insertCss; |
{ | ||
"name": "insert-css", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "insert a string of css into the <head>", | ||
@@ -23,5 +23,5 @@ "main": "index.js", | ||
}, | ||
"testling" : { | ||
"files" : "test.js", | ||
"browsers" : [ | ||
"testling": { | ||
"files": "test.js", | ||
"browsers": [ | ||
"ie/6..latest", | ||
@@ -32,3 +32,4 @@ "chrome/20..latest", | ||
"opera/11.0..latest", | ||
"iphone/6", "ipad/6" | ||
"iphone/6", | ||
"ipad/6" | ||
] | ||
@@ -35,0 +36,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
8225
107
0