Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jss-extend

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jss-extend - npm Package Compare versions

Comparing version 2.0.3 to 2.0.4

changelog.md

10

lib/index.js

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

var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
var warn = console.warn.bind(console); // eslint-disable-line no-console
var _warning = require('warning');
var _warning2 = _interopRequireDefault(_warning);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function isObject(obj) {

@@ -24,3 +28,3 @@ return obj && (typeof obj === 'undefined' ? 'undefined' : _typeof(obj)) === 'object' && !Array.isArray(obj);

if (refRule) {
if (refRule === rule) warn('[JSS] A rule tries to extend itself \r\n' + rule.toString());else extend(rule, newStyle, refRule.originalStyle);
if (refRule === rule) (0, _warning2.default)(false, '[JSS] A rule tries to extend itself \r\n%s', rule);else extend(rule, newStyle, refRule.originalStyle);
}

@@ -27,0 +31,0 @@ }

{
"name": "jss-extend",
"description": "JSS plugin that enables inheritance",
"version": "2.0.3",
"version": "2.0.4",
"author": {

@@ -17,17 +17,22 @@ "name": "Oleg Slobodskoi",

"extend",
"inheritance",
"css-in-js",
"cssinjs"
"cssinjs",
"css in js"
],
"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-extend.js",
"build:min": "NODE_ENV=production webpack src/index.js dist/jss-extend.min.js",
"lint": "eslint ./src",
"prepublish": "npm run all && git push --tags"
"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-nested.js",
"build:dist:min": "cross-env NODE_ENV=production webpack src/index.js dist/jss-nested.min.js",
"clean": "rimraf '{lib,dist,tests,tmp}/*'",
"lint": "eslint ./src ./benchmark",
"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"
},

@@ -41,4 +46,6 @@ "license": "MIT",

"babel-loader": "^6.2.4",
"babel-plugin-rewire": "^1.0.0",
"babel-preset-es2015": "^6.9.0",
"babel-preset-stage-0": "^6.5.0",
"cross-env": "^3.1.3",
"eslint": "^2.8.0",

@@ -50,13 +57,38 @@ "eslint-config-airbnb": "^8.0.0",

"eslint-plugin-react": "^5.0.1",
"expect.js": "^0.3.1",
"json-loader": "^0.5.4",
"jss": "^5.5.0",
"jss-expand": "^1.5.1",
"jss-nested": "^2.4.2",
"opener": "^1.4.1",
"qunitjs": "^1.21.0",
"jss-expand": "^1.5.2",
"jss-nested": "^2.4.3",
"karma": "^1.1.1",
"karma-benchmark": "^0.6.0",
"karma-benchmark-reporter": "^0.1.1",
"karma-browserstack-launcher": "^1.0.0",
"karma-chrome-launcher": "^1.0.1",
"karma-coverage": "^1.1.0",
"karma-firefox-launcher": "^1.0.0",
"karma-mocha": "^1.0.1",
"karma-mocha-reporter": "^2.0.2",
"karma-safari-launcher": "^1.0.0",
"karma-sourcemap-loader": "^0.3.5",
"karma-webpack": "^1.7.0",
"lint-staged": "^3.0.1",
"mocha": "^3.0.2",
"pre-commit": "^1.1.3",
"rimraf": "^2.5.4",
"webpack": "^1.13.1"
"webpack": "^1.12.2"
},
"peerDependencies": {
"jss": "^5.5.0"
},
"lint-staged": {
"./src/*.js": [
"eslint",
"git add"
]
},
"pre-commit": "lint:staged",
"dependencies": {
"warning": "^3.0.0"
}
}

@@ -1,6 +0,4 @@

'use strict'
const webpack = require('webpack')
var webpack = require('webpack')
var plugins = [
const plugins = [
new webpack.DefinePlugin({

@@ -14,3 +12,7 @@ 'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV),

if (process.env.NODE_ENV === 'production') {
plugins.push(new webpack.optimize.UglifyJsPlugin())
plugins.push(new webpack.optimize.UglifyJsPlugin({
compress: {
warnings: false
}
}))
}

@@ -23,3 +25,3 @@

},
plugins: plugins,
plugins,
module: {

@@ -33,3 +35,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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc