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

jss-plugin-template

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-template - npm Package Compare versions

Comparing version 10.4.0 to 10.5.0

8

dist/jss-plugin-template.bundle.js

@@ -20,2 +20,3 @@ function warning(condition, message) {

var semiWithNl = /;\n/;
/**

@@ -27,4 +28,3 @@ * Naive CSS parser.

*/
var parse = (function (cssText) {
var parse = function parse(cssText) {
var style = {};

@@ -49,7 +49,7 @@ var split = cssText.split(semiWithNl);

return style;
});
};
var onProcessRule = function onProcessRule(rule) {
if (typeof rule.style === 'string') {
// $FlowFixMe: We can safely assume that rule has the style property
// $FlowFixMe[prop-missing] We can safely assume that rule has the style property
rule.style = parse(rule.style);

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

@@ -5,7 +5,10 @@ 'use strict';

function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var warning = require('tiny-warning');
var warning = _interopDefault(require('tiny-warning'));
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var warning__default = /*#__PURE__*/_interopDefaultLegacy(warning);
var semiWithNl = /;\n/;
/**

@@ -17,4 +20,3 @@ * Naive CSS parser.

*/
var parse = (function (cssText) {
var parse = function parse(cssText) {
var style = {};

@@ -29,3 +31,3 @@ var split = cssText.split(semiWithNl);

if (colonIndex === -1) {
process.env.NODE_ENV !== "production" ? warning(false, "[JSS] Malformed CSS string \"" + decl + "\"") : void 0;
process.env.NODE_ENV !== "production" ? warning__default['default'](false, "[JSS] Malformed CSS string \"" + decl + "\"") : void 0;
continue;

@@ -40,7 +42,7 @@ }

return style;
});
};
var onProcessRule = function onProcessRule(rule) {
if (typeof rule.style === 'string') {
// $FlowFixMe: We can safely assume that rule has the style property
// $FlowFixMe[prop-missing] We can safely assume that rule has the style property
rule.style = parse(rule.style);

@@ -47,0 +49,0 @@ }

import warning from 'tiny-warning';
var semiWithNl = /;\n/;
/**

@@ -10,4 +11,3 @@ * Naive CSS parser.

*/
var parse = (function (cssText) {
var parse = function parse(cssText) {
var style = {};

@@ -32,7 +32,7 @@ var split = cssText.split(semiWithNl);

return style;
});
};
var onProcessRule = function onProcessRule(rule) {
if (typeof rule.style === 'string') {
// $FlowFixMe: We can safely assume that rule has the style property
// $FlowFixMe[prop-missing] We can safely assume that rule has the style property
rule.style = parse(rule.style);

@@ -39,0 +39,0 @@ }

(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(global = global || self, factory(global.jssPluginTemplate = {}));
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.jssPluginTemplate = {}));
}(this, (function (exports) { 'use strict';

@@ -26,2 +26,3 @@

var semiWithNl = /;\n/;
/**

@@ -33,4 +34,3 @@ * Naive CSS parser.

*/
var parse = (function (cssText) {
var parse = function parse(cssText) {
var style = {};

@@ -55,7 +55,7 @@ var split = cssText.split(semiWithNl);

return style;
});
};
var onProcessRule = function onProcessRule(rule) {
if (typeof rule.style === 'string') {
// $FlowFixMe: We can safely assume that rule has the style property
// $FlowFixMe[prop-missing] We can safely assume that rule has the style property
rule.style = parse(rule.style);

@@ -62,0 +62,0 @@ }

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

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).jssPluginTemplate={})}(this,function(e){"use strict";var t=/;\n/,n=function(e){"string"==typeof e.style&&(e.style=function(e){for(var n={},r=e.split(t),i=0;i<r.length;i++){var f=(r[i]||"").trim();if(f){var s=f.indexOf(":");if(-1!==s){var o=f.substr(0,s).trim(),u=f.substr(s+1).trim();n[o]=u}}}return n}(e.style))};e.default=function(){return{onProcessRule:n}},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="undefined"!=typeof globalThis?globalThis:e||self).jssPluginTemplate={})}(this,(function(e){"use strict";var t=/;\n/,n=function(e){"string"==typeof e.style&&(e.style=function(e){for(var n={},i=e.split(t),f=0;f<i.length;f++){var o=(i[f]||"").trim();if(o){var r=o.indexOf(":");if(-1!==r){var s=o.substr(0,r).trim(),u=o.substr(r+1).trim();n[s]=u}}}return n}(e.style))};e.default=function(){return{onProcessRule:n}},Object.defineProperty(e,"__esModule",{value:!0})}));
{
"name": "jss-plugin-template",
"description": "JSS plugin enables string templates",
"version": "10.4.0",
"version": "10.5.0",
"license": "MIT",

@@ -22,3 +22,3 @@ "homepage": "https://cssinjs.org/jss-template",

"src",
"LICENSE"
"!*.test.*"
],

@@ -39,6 +39,6 @@ "keywords": [

"@babel/runtime": "^7.3.1",
"jss": "10.4.0",
"jss": "10.5.0",
"tiny-warning": "^1.0.2"
},
"gitHead": "a864fcf08c6da3cbb7ae878c09eaf52e619ed6c3"
"gitHead": "f9d93723ea0b8748c8a89248ebb680ed07e95c48"
}

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

See our website [jss-plugin-template](https://cssinjs.org/jss-plugin-template?v=v10.4.0) for more information.
See our website [jss-plugin-template](https://cssinjs.org/jss-plugin-template?v=v10.5.0) for more information.

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

@@ -7,3 +7,3 @@ // @flow

if (typeof rule.style === 'string') {
// $FlowFixMe: We can safely assume that rule has the style property
// $FlowFixMe[prop-missing] We can safely assume that rule has the style property
rule.style = parse(rule.style)

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

// @flow
import warning from 'tiny-warning'
import type {JssStyle} from 'jss'
const semiWithNl = /;\n/
type Parse = string => JssStyle
/**

@@ -12,3 +15,3 @@ * Naive CSS parser.

*/
export default (cssText: string) => {
const parse: Parse = cssText => {
const style = {}

@@ -31,1 +34,3 @@ const split = cssText.split(semiWithNl)

}
export default parse

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