Socket
Socket
Sign inDemoInstall

jss-props-sort

Package Overview
Dependencies
6
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0 to 2.0.1

changelog.md

37

dist/jss-props-sort.js

@@ -14,10 +14,10 @@ (function webpackUniversalModuleDefinition(root, factory) {

/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;
/******/
/******/ // Create a new module (and put it into the cache)

@@ -29,23 +29,23 @@ /******/ var module = installedModules[moduleId] = {

/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.loaded = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/
/******/ // Load entry module and return exports

@@ -60,7 +60,7 @@ /******/ return __webpack_require__(0);

'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = jssPropsSort;
exports['default'] = jssPropsSort;
/**

@@ -76,7 +76,7 @@ * Sort props by length.

}
return function (rule) {
var style = rule.style;
var type = rule.type;
var style = rule.style,
type = rule.type;
if (!style || type !== 'regular') return;

@@ -95,2 +95,3 @@ var newStyle = {};

});
;
;
//# sourceMappingURL=jss-props-sort.js.map

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

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.jssPropsSort=t():e.jssPropsSort=t()}(this,function(){return function(e){function t(r){if(o[r])return o[r].exports;var n=o[r]={exports:{},id:r,loaded:!1};return e[r].call(n.exports,n,n.exports,t),n.loaded=!0,n.exports}var o={};return t.m=e,t.c=o,t.p="",t(0)}([function(e,t){"use strict";function o(){function e(e,t){return e.length>t.length}return function(t){var o=t.style,r=t.type;if(o&&"regular"===r){var n={},s=Object.keys(o).sort(e);for(var u in s)n[s[u]]=o[s[u]];t.style=n}}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=o}])});
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.jssPropsSort=t():e.jssPropsSort=t()}(this,function(){return function(e){function t(r){if(o[r])return o[r].exports;var n=o[r]={exports:{},id:r,loaded:!1};return e[r].call(n.exports,n,n.exports,t),n.loaded=!0,n.exports}var o={};return t.m=e,t.c=o,t.p="",t(0)}([function(e,t){"use strict";function o(){function e(e,t){return e.length>t.length}return function(t){var o=t.style,r=t.type;if(o&&"regular"===r){var n={},s=Object.keys(o).sort(e);for(var u in s)n[s[u]]=o[s[u]];t.style=n}}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o}])});
//# sourceMappingURL=jss-props-sort.min.js.map

@@ -6,3 +6,3 @@ 'use strict';

});
exports.default = jssPropsSort;
exports['default'] = jssPropsSort;
/**

@@ -20,4 +20,4 @@ * Sort props by length.

return function (rule) {
var style = rule.style;
var type = rule.type;
var style = rule.style,
type = rule.type;

@@ -24,0 +24,0 @@ if (!style || type !== 'regular') return;

{
"name": "jss-props-sort",
"description": "JSS plugin that ensures style properties extend each other instead of override",
"version": "2.0.0",
"version": "2.0.1",
"author": {

@@ -11,41 +11,65 @@ "name": "Oleg Slobodskoi",

"type": "git",
"url": "git@github.com:jsstyles/jss-props-sort.git"
"url": "git@github.com:cssinjs/jss-props-sort.git"
},
"keywords": [
"cssinjs",
"css-in-js",
"css in js",
"jss",
"plugin",
"sort",
"props",
"extend"
"props"
],
"engines": {},
"scripts": {
"all": "npm run lint && npm run build",
"test": "opener ./test/index.html",
"build": "npm run clean && npm run build:lib && npm run build:max && npm run build:min",
"clean": "rimraf ./lib/*",
"all": "npm run lint && npm run test && npm run build",
"build": "npm run clean && npm run build:lib && npm run build:tests && npm run build:dist",
"build:lib": "babel src --out-dir lib",
"build:max": "NODE_ENV=development webpack src/index.js dist/jss-props-sort.js",
"build:min": "NODE_ENV=production webpack src/index.js dist/jss-props-sort.min.js",
"build:tests": "npm run build:tests:lib && npm run build:tests:local",
"build:tests:lib": "cross-env NODE_ENV=test babel src --out-dir tests",
"build:tests:local": "cross-env NODE_ENV=test webpack src/index.test.js tmp/tests.js",
"build:dist": "npm run build:dist:max && npm run build:dist:min",
"build:dist:max": "cross-env NODE_ENV=development webpack src/index.js dist/jss-props-sort.js",
"build:dist:min": "cross-env NODE_ENV=production webpack src/index.js dist/jss-props-sort.min.js",
"clean": "rimraf {lib,dist,tests,tmp}/*",
"lint": "eslint ./src",
"prepublish": "npm run all && git push --tags"
"lint:staged": "lint-staged",
"test": "cross-env NODE_ENV=test karma start --single-run ",
"test:watch": "cross-env NODE_ENV=test karma start",
"prepublish": "npm run all"
},
"license": "MIT",
"main": "./lib/index.js",
"main": "lib/index.js",
"devDependencies": {
"babel-cli": "^6.5.1",
"babel-core": "^6.5.1",
"babel-eslint": "^6.1.2",
"babel-eslint": "^7.1.0",
"babel-loader": "^6.2.4",
"babel-plugin-transform-es3-member-expression-literals": "^6.8.0",
"babel-plugin-transform-es3-property-literals": "^6.8.0",
"babel-preset-es2015": "^6.9.0",
"babel-preset-stage-0": "^6.5.0",
"eslint": "^2.8.0",
"eslint-config-airbnb": "^8.0.0",
"eslint-config-jss": "^1.1.0",
"eslint-plugin-import": "^1.12.0",
"eslint-plugin-jsx-a11y": "^1.5.5",
"eslint-plugin-react": "^5.0.1",
"jss": "^5.2.0",
"opener": "^1.4.1",
"qunitjs": "^1.21.0",
"cross-env": "^3.1.3",
"es5-shim": "^4.5.9",
"eslint": "^3.9.1",
"eslint-config-airbnb": "^12.0.0",
"eslint-config-jss": "^2.4.0",
"eslint-plugin-import": "^2.1.0",
"eslint-plugin-jsx-a11y": "^2.2.3",
"eslint-plugin-react": "^6.5.0",
"expect.js": "^0.3.1",
"jss": "^5.5.2",
"karma": "^1.1.1",
"karma-benchmark": "^0.6.0",
"karma-benchmark-reporter": "^0.1.1",
"karma-browserstack-launcher": "^1.0.0",
"karma-chrome-launcher": "^2.0.0",
"karma-coverage": "^1.1.1",
"karma-mocha": "^1.1.1",
"karma-mocha-reporter": "^2.2.0",
"karma-sourcemap-loader": "^0.3.7",
"karma-webpack": "^1.8.0",
"lint-staged": "^3.0.3",
"mocha": "^3.0.2",
"pre-commit": "^1.1.3",
"rimraf": "^2.5.4",

@@ -55,4 +79,11 @@ "webpack": "^1.13.1"

"peerDependencies": {
"jss": "^5.2.0"
}
"jss": "^5.5.6"
},
"lint-staged": {
"./src/*.js": [
"eslint",
"git add"
]
},
"pre-commit": "lint:staged"
}
'use strict'
var webpack = require('webpack')
const webpack = require('webpack')
var plugins = [
const env = process.env.NODE_ENV
const isDev = env === 'development'
const isTest = env === 'test'
const isProd = env === 'production'
const plugins = [
new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV),
__DEV__: process.env.NODE_ENV === 'development',
__TEST__: process.env.NODE_ENV === 'test'
'process.env.NODE_ENV': JSON.stringify(env),
__DEV__: isDev,
__TEST__: isTest
})
]
if (process.env.NODE_ENV === 'production') {
plugins.push(new webpack.optimize.UglifyJsPlugin())
if (isProd) {
plugins.push(new webpack.optimize.UglifyJsPlugin({
compress: {
warnings: false
}
}))
}

@@ -22,3 +31,3 @@

},
plugins: plugins,
plugins,
module: {

@@ -32,3 +41,4 @@ loaders: [

]
}
},
devtool: 'source-map'
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc