Socket
Socket
Sign inDemoInstall

flot

Package Overview
Dependencies
Maintainers
2
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flot - npm Package Compare versions

Comparing version 3.1.0 to 3.1.1

6

package.json
{
"name": "flot",
"version": "3.1.0",
"version": "3.1.1",
"main": "dist/es5/jquery.flot.js",

@@ -22,5 +22,3 @@ "scripts": {

"devDependencies": {
"karma-browserify": "^6.0.0",
"babelify": "~10.0.0",
"vinyl-source-stream": "~2.0.0",
"browserify": "~16.2.3",

@@ -40,2 +38,3 @@ "@babel/cli": "^7.2.3",

"karma": "^1.3.0",
"karma-browserify": "^6.0.0",
"karma-chrome-launcher": "^2.0.0",

@@ -54,2 +53,3 @@ "karma-coverage": "^1.1.2",

"tmp": "0.0.33",
"vinyl-source-stream": "~2.0.0",
"webcharts-development-settings": "^1.0.9"

@@ -56,0 +56,0 @@ },

@@ -45,3 +45,3 @@ import "regenerator-runtime/runtime";

if (!promiseMap.has(link) && !isCrossOriginEnabledForLink(document, link)) {
const linkPromise = new Promise((resolve) => {
const linkPromise = new Promise((resolve, reject) => {
const newLink = document.createElement('link');

@@ -57,2 +57,5 @@ newLink.rel = 'stylesheet';

};
newLink.onerror = function() {
reject();
};
linkBundle.parentNode.insertBefore(newLink, linkBundle.node);

@@ -73,2 +76,10 @@ });

rules = document.styleSheets[i].cssRules;
if (rules === null
&& document.styleSheets[i].href
&& !document.styleSheets[i].href.includes(document.styleSheets[i].ownerNode.baseURI)
&& !document.styleSheets[i].ownerNode.crossOrigin) {
rules = [];
//On Safari, the CORS cssRule Exception will be ignored and return null, so we manually throw the exception for Safari to keep align with other browsers
throw new DOMException("Failed to read the 'cssRules' property from 'CSSStyleSheet': Cannot access rules", 'SecurityError');
}
} catch (err) {

@@ -75,0 +86,0 @@ await enableCrossOriginOnLinkAsync(document, document.styleSheets[i].href);

Sorry, the diff of this file is too big to display

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