Socket
Socket
Sign inDemoInstall

sh-core

Package Overview
Dependencies
1
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.13 to 0.1.14

.travis.yml

12

package.json
{
"name": "sh-core",
"version": "0.1.13",
"version": "0.1.14",
"description": "Base SASS and React files for SuperheroUI components",
"main": "bin/sh-core.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"clean": "rm -r ./bin",
"test": "./node_modules/.bin/karma start",
"test-watch": "./node_modules/.bin/karma start --no-single-run",
"coveralls": "./node_modules/.bin/coveralls < ./bin/coverage/lcov/lcov.info",
"build": "./node_modules/.bin/webpack -d --config webpack.config.js & node-sass --output-style compressed src/main.scss bin/main.css",
"dev": "./node_modules/.bin/webpack -d --watch --config webpack.config.js",
"css": "node-sass --output-style compressed src/main.scss bin/main.css & node-sass --output-style compressed -w src/main.scss bin/main.css",
"build": "./node_modules/.bin/webpack -d --config webpack.config.js & node-sass --output-style compressed src/main.scss bin/main.css"
"css": "node-sass --output-style compressed src/main.scss bin/main.css & node-sass --output-style compressed -w src/main.scss bin/main.css"
},

@@ -33,2 +36,3 @@ "repository": {

"babel-preset-react": "^6.11.1",
"coveralls": "^2.11.12",
"css-loader": "^0.23.1",

@@ -35,0 +39,0 @@ "isparta-loader": "^2.0.0",

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

# shCore
Core module for supporting SuperheroUI Components
# SuperheroUI [![Build Status](https://travis-ci.org/SuperheroUI/shCore.svg?branch=master)](https://travis-ci.org/SuperheroUI/shCore) [![Coverage Status](https://coveralls.io/repos/github/SuperheroUI/shCore/badge.svg)](https://coveralls.io/github/SuperheroUI/shCore)
InsideSales.com React UI
## ShCore
### Website (For examples, limits, and usage)
https://superheroui.github.io/
### Installation
Use npm to install the module
```sh
npm install sh-core --save
```
Now you can import it into your project
```js
require('../node_modules/sh-core/bin/main.css');
```

@@ -16,8 +16,10 @@ import * as _ from 'lodash';

let className = _.kebabCase(key);
if (_.isBoolean(check) && check) {
classNames.push(className);
} else if (_.isFunction(check) && check()) {
classNames.push(className);
if (_.isFunction(check)) {
if (check()) {
classNames.push(className);
}
} else if (_.isString(check)) {
classNames.push(className + '-' + _.kebabCase(check));
} else if (check) {
classNames.push(className);
}

@@ -24,0 +26,0 @@ }

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