spa-component-checkbox
Advanced tools
Comparing version 1.0.0 to 1.0.1
21
index.js
/** | ||
* @license The MIT License (MIT) | ||
* @copyright Stanislav Kalashnik <darkpark.main@gmail.com> | ||
* @author Stanislav Kalashnik <darkpark.main@gmail.com> | ||
*/ | ||
@@ -12,3 +12,4 @@ | ||
keys = require('spa-keys'), | ||
groups = {}; // set of groups with linked components; | ||
// set of groups with linked components; | ||
groups = {}; | ||
@@ -40,6 +41,12 @@ | ||
if ( DEVELOP ) { | ||
if ( typeof config !== 'object' ) { throw new Error(__filename + ': wrong config type'); } | ||
if ( typeof config !== 'object' ) { | ||
throw new Error(__filename + ': wrong config type'); | ||
} | ||
// init parameters checks | ||
if ( config.className && typeof config.className !== 'string' ) { throw new Error(__filename + ': wrong or empty config.className'); } | ||
if ( config.group && typeof config.group !== 'string' ) { throw new Error(__filename + ': wrong or empty config.group'); } | ||
if ( 'className' in config && (!config.className || typeof config.className !== 'string') ) { | ||
throw new Error(__filename + ': wrong or empty config.className'); | ||
} | ||
if ( config.group && typeof config.group !== 'string' ) { | ||
throw new Error(__filename + ': wrong or empty config.group'); | ||
} | ||
} | ||
@@ -131,3 +138,5 @@ | ||
if ( DEVELOP ) { | ||
if ( arguments.length !== 1 ) { throw new Error(__filename + ': wrong arguments number'); } | ||
if ( arguments.length !== 1 ) { | ||
throw new Error(__filename + ': wrong arguments number'); | ||
} | ||
} | ||
@@ -134,0 +143,0 @@ |
{ | ||
"name": "spa-component-checkbox", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Base checkbox input implementation.", | ||
@@ -15,16 +15,17 @@ "author": { | ||
"sass": "node-sass --indent-width 4 --include-path ../../.. sass/develop.scss css/develop.css && node-sass --indent-width 4 --include-path ../../.. sass/release.scss css/release.css", | ||
"lint": "eslint .", | ||
"lint": "eslint --ignore-pattern '/docs/' .", | ||
"test": "npm run lint", | ||
"jsdoc": "jsdoc --destination doc *.js readme.md" | ||
"jsdoc": "jsdoc --destination docs *.js readme.md" | ||
}, | ||
"dependencies": { | ||
"spa-component": "1.*.*", | ||
"spa-keys": "1.*.*" | ||
"spa-component": "^1.5.0", | ||
"spa-keys": "^1.4.1" | ||
}, | ||
"devDependencies": { | ||
"eslint": "3.*.*", | ||
"spa-eslint-config": "1.*.*" | ||
"jsdoc": "^3.5.5", | ||
"spa-eslint": "^1.0.0" | ||
}, | ||
"keywords": [ | ||
"spa", | ||
"sdk", | ||
"spasdk", | ||
@@ -31,0 +32,0 @@ "framework", |
@@ -37,4 +37,4 @@ Checkbox component | ||
If you have any problem or suggestion please open an issue [here](https://github.com/spasdk/component-checkbox/issues). | ||
Pull requests are welcomed with respect to the [JavaScript Code Style](https://github.com/DarkPark/jscs). | ||
If you have any problems or suggestions please open an [issue](https://github.com/spasdk/component-checkbox/issues) | ||
according to the contribution [rules](.github/contributing.md). | ||
@@ -41,0 +41,0 @@ |
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
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10451
182
11
1
Updatedspa-component@^1.5.0
Updatedspa-keys@^1.4.1