Socket
Socket
Sign inDemoInstall

jss-camel-case

Package Overview
Dependencies
6
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.1 to 2.0.2

karma.conf.js

4

changelog.md

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

## 2.0.2 / 2016-11-05
- migrate tests, update deps
## 2.0.1 / 2016-10-26

@@ -2,0 +6,0 @@

8

dist/jss-camel-case.js

@@ -101,3 +101,3 @@ (function webpackUniversalModuleDefinition(root, factory) {

exports.default = function () {
exports["default"] = function () {
return function (rule) {

@@ -107,2 +107,3 @@ var style = rule.style;

if (!style) return;
if (Array.isArray(style)) {

@@ -113,5 +114,6 @@ // Handle rules like @font-face, which can have multiple styles in an array

}
} else if (style) {
rule.style = convertCase(style);
return;
}
rule.style = convertCase(style);
};

@@ -118,0 +120,0 @@ };

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

!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define([],r):"object"==typeof exports?exports.jssCamelCase=r():e.jssCamelCase=r()}(this,function(){return function(e){function r(a){if(t[a])return t[a].exports;var o=t[a]={exports:{},id:a,loaded:!1};return e[a].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}var t={};return r.m=e,r.c=t,r.p="",r(0)}([function(e,r){"use strict";function t(e){return"-"+e.toLowerCase()}function a(e){var r={};for(var n in e){var s=e[n];n=n.replace(o,t),r[n]=s}return e.fallbacks&&(Array.isArray(e.fallbacks)?r.fallbacks=e.fallbacks.map(a):r.fallbacks=a(e.fallbacks)),r}Object.defineProperty(r,"__esModule",{value:!0});var o=/([A-Z])/g;r["default"]=function(){return function(e){var r=e.style;if(r)if(Array.isArray(r))for(var t=0;t<r.length;t++)r[t]=a(r[t]);else r&&(e.style=a(r))}}}])});
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define([],r):"object"==typeof exports?exports.jssCamelCase=r():e.jssCamelCase=r()}(this,function(){return function(e){function r(a){if(t[a])return t[a].exports;var o=t[a]={exports:{},id:a,loaded:!1};return e[a].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}var t={};return r.m=e,r.c=t,r.p="",r(0)}([function(e,r){"use strict";function t(e){return"-"+e.toLowerCase()}function a(e){var r={};for(var n in e){var s=e[n];n=n.replace(o,t),r[n]=s}return e.fallbacks&&(Array.isArray(e.fallbacks)?r.fallbacks=e.fallbacks.map(a):r.fallbacks=a(e.fallbacks)),r}Object.defineProperty(r,"__esModule",{value:!0});var o=/([A-Z])/g;r.default=function(){return function(e){var r=e.style;if(r)if(Array.isArray(r))for(var t=0;t<r.length;t++)r[t]=a(r[t]);else e.style=a(r)}}}])});

@@ -45,3 +45,3 @@ "use strict";

exports.default = function () {
exports["default"] = function () {
return function (rule) {

@@ -51,2 +51,3 @@ var style = rule.style;

if (!style) return;
if (Array.isArray(style)) {

@@ -57,6 +58,7 @@ // Handle rules like @font-face, which can have multiple styles in an array

}
} else if (style) {
rule.style = convertCase(style);
return;
}
rule.style = convertCase(style);
};
};
{
"name": "jss-camel-case",
"description": "JSS plugin that allows to write camel cased rule properties",
"version": "2.0.1",
"version": "2.0.2",
"author": {

@@ -14,2 +14,5 @@ "name": "Oleg Slobodskoi",

"keywords": [
"cssinjs",
"css-in-js",
"css in js",
"jss",

@@ -21,30 +24,52 @@ "plugin",

"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-camel-case.js",
"build:min": "NODE_ENV=production webpack src/index.js dist/jss-camel-case.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-camel-case.js",
"build:dist:min": "cross-env NODE_ENV=production webpack src/index.js dist/jss-camel-case.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",

@@ -54,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"
}

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