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

jss-plugin-global

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jss-plugin-global - npm Package Compare versions

Comparing version 10.1.1 to 10.2.0

108

dist/jss-plugin-global.bundle.js

@@ -116,3 +116,3 @@ function _extends() {

if (name[0] === '@') {
warning(false, "[JSS] Unknown rule " + name);
warning(false, "[JSS] Unknown rule " + name) ;
}

@@ -307,3 +307,3 @@

if (sheet && sheet.attached) {
warning(false, '[JSS] Rule is not linked. Missing sheet option "link: true".');
warning(false, '[JSS] Rule is not linked. Missing sheet option "link: true".') ;
}

@@ -558,3 +558,3 @@

this.name = 'noname';
warning(false, "[JSS] Bad keyframes name " + key);
warning(false, "[JSS] Bad keyframes name " + key) ;
}

@@ -617,3 +617,3 @@

warning(false, "[JSS] Referenced keyframes rule \"" + name + "\" is not defined.");
warning(false, "[JSS] Referenced keyframes rule \"" + name + "\" is not defined.") ;
return match;

@@ -965,6 +965,6 @@ });

_proto.process = function process() {
var plugins$$1 = this.options.jss.plugins; // We need to clone array because if we modify the index somewhere else during a loop
var plugins = this.options.jss.plugins; // We need to clone array because if we modify the index somewhere else during a loop
// we end up with very hard-to-track-down side effects.
this.index.slice(0).forEach(plugins$$1.onProcessRule, plugins$$1);
this.index.slice(0).forEach(plugins.onProcessRule, plugins);
}

@@ -1043,3 +1043,3 @@ /**

var _this$options2 = this.options,
plugins$$1 = _this$options2.jss.plugins,
plugins = _this$options2.jss.plugins,
sheet = _this$options2.sheet; // It is a rules container like for e.g. ConditionalRule.

@@ -1054,7 +1054,7 @@

var style = styleRule.style;
plugins$$1.onUpdate(data, rule, sheet, options); // We rely on a new `style` ref in case it was mutated during onUpdate hook.
plugins.onUpdate(data, rule, sheet, options); // We rely on a new `style` ref in case it was mutated during onUpdate hook.
if (options.process && style && style !== styleRule.style) {
// We need to run the plugins in case new `style` relies on syntax plugins.
plugins$$1.onProcessStyle(styleRule.style, styleRule, sheet); // Update and add props.
plugins.onProcessStyle(styleRule.style, styleRule, sheet); // Update and add props.

@@ -1416,3 +1416,3 @@ for (var prop in styleRule.style) {

} else {
warning(false, "[JSS] Unknown hook \"" + name + "\".");
warning(false, "[JSS] Unknown hook \"" + name + "\".") ;
}

@@ -1562,3 +1562,3 @@ }

if (ruleCounter > maxRules) {
warning(false, "[JSS] You might have a memory leak. Rule counter is at " + ruleCounter + ".");
warning(false, "[JSS] You might have a memory leak. Rule counter is at " + ruleCounter + ".") ;
}

@@ -1662,3 +1662,3 @@

} catch (err) {
warning(false, "[JSS] DOMException \"" + err.message + "\" was thrown. Tried to remove property \"" + prop + "\".");
warning(false, "[JSS] DOMException \"" + err.message + "\" was thrown. Tried to remove property \"" + prop + "\".") ;
}

@@ -1780,3 +1780,3 @@ }

warning(false, "[JSS] Insertion point \"" + insertionPoint + "\" not found.");
warning(false, "[JSS] Insertion point \"" + insertionPoint + "\" not found.") ;
}

@@ -1805,3 +1805,3 @@

var parentNode = insertionPointElement.parentNode;
if (parentNode) parentNode.insertBefore(style, insertionPointElement.nextSibling);else warning(false, '[JSS] Insertion point is not in the DOM.');
if (parentNode) parentNode.insertBefore(style, insertionPointElement.nextSibling);else warning(false, '[JSS] Insertion point is not in the DOM.') ;
return;

@@ -1841,3 +1841,3 @@ }

} catch (err) {
warning(false, "[JSS] " + err.message);
warning(false, "[JSS] " + err.message) ;
return false;

@@ -2048,3 +2048,3 @@ }

this.id = instanceCounter++;
this.version = "10.1.1";
this.version = "10.2.0";
this.plugins = new PluginsRegistry();

@@ -2150,3 +2150,3 @@ this.options = {

_proto.createRule = function createRule$$1(name, style, options) {
_proto.createRule = function createRule$1(name, style, options) {
if (style === void 0) {

@@ -2186,7 +2186,7 @@ style = {};

for (var _len = arguments.length, plugins$$1 = new Array(_len), _key = 0; _key < _len; _key++) {
plugins$$1[_key] = arguments[_key];
for (var _len = arguments.length, plugins = new Array(_len), _key = 0; _key < _len; _key++) {
plugins[_key] = arguments[_key];
}
plugins$$1.forEach(function (plugin) {
plugins.forEach(function (plugin) {
_this.plugins.use(plugin);

@@ -2200,70 +2200,2 @@ });

/**
* SheetsManager is like a WeakMap which is designed to count StyleSheet
* instances and attach/detach automatically.
*/
var SheetsManager =
/*#__PURE__*/
function () {
function SheetsManager() {
this.length = 0;
this.sheets = new WeakMap();
}
var _proto = SheetsManager.prototype;
_proto.get = function get(key) {
var entry = this.sheets.get(key);
return entry && entry.sheet;
};
_proto.add = function add(key, sheet) {
if (this.sheets.has(key)) return;
this.length++;
this.sheets.set(key, {
sheet: sheet,
refs: 0
});
};
_proto.manage = function manage(key) {
var entry = this.sheets.get(key);
if (entry) {
if (entry.refs === 0) {
entry.sheet.attach();
}
entry.refs++;
return entry.sheet;
}
warning(false, "[JSS] SheetsManager: can't find sheet to manage");
return undefined;
};
_proto.unmanage = function unmanage(key) {
var entry = this.sheets.get(key);
if (entry) {
if (entry.refs > 0) {
entry.refs--;
if (entry.refs === 0) entry.sheet.detach();
}
} else {
warning(false, "SheetsManager: can't find sheet to unmanage");
}
};
_createClass(SheetsManager, [{
key: "size",
get: function get() {
return this.length;
}
}]);
return SheetsManager;
}();
/**
* Creates a new instance of Jss.

@@ -2270,0 +2202,0 @@ */

4

dist/jss-plugin-global.js

@@ -5,3 +5,3 @@ (function (global, factory) {

(global = global || self, factory(global.jssPluginGlobal = {}, global.jss));
}(this, function (exports, jss) { 'use strict';
}(this, (function (exports, jss) { 'use strict';

@@ -211,3 +211,3 @@ function _extends() {

}));
})));
//# sourceMappingURL=jss-plugin-global.js.map
{
"name": "jss-plugin-global",
"description": "Global styles for JSS",
"version": "10.1.1",
"version": "10.2.0",
"license": "MIT",

@@ -38,9 +38,9 @@ "homepage": "https://cssinjs.org/jss-global",

"devDependencies": {
"jss-plugin-nested": "10.1.1"
"jss-plugin-nested": "10.2.0"
},
"dependencies": {
"@babel/runtime": "^7.3.1",
"jss": "10.1.1"
"jss": "10.2.0"
},
"gitHead": "2ed79e0139cfc06922ef74a6e5745f219d23ee80"
"gitHead": "671c03fabb07b1a750e1b949fa89b1415654e077"
}

@@ -12,3 +12,3 @@ # jss-plugin-global

See our website [jss-plugin-global](https://cssinjs.org/jss-plugin-global?v=v10.1.1) for more information.
See our website [jss-plugin-global](https://cssinjs.org/jss-plugin-global?v=v10.2.0) for more information.

@@ -15,0 +15,0 @@ ## Install

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