spa-component-button
Advanced tools
Comparing version 1.0.0 to 1.0.1
18
index.js
/** | ||
* @license The MIT License (MIT) | ||
* @copyright Stanislav Kalashnik <darkpark.main@gmail.com> | ||
* @author Stanislav Kalashnik <darkpark.main@gmail.com> | ||
*/ | ||
@@ -57,7 +57,15 @@ | ||
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.icon && typeof config.icon !== 'string' ) { throw new Error(__filename + ': wrong or empty config.icon'); } | ||
if ( config.value && typeof config.value !== 'string' ) { throw new Error(__filename + ': wrong or empty config.value'); } | ||
if ( 'className' in config && (!config.className || typeof config.className !== 'string') ) { | ||
throw new Error(__filename + ': wrong or empty config.className'); | ||
} | ||
if ( config.icon && typeof config.icon !== 'string' ) { | ||
throw new Error(__filename + ': wrong or empty config.icon'); | ||
} | ||
if ( config.value && typeof config.value !== 'string' ) { | ||
throw new Error(__filename + ': wrong or empty config.value'); | ||
} | ||
} | ||
@@ -64,0 +72,0 @@ |
{ | ||
"name": "spa-component-button", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Base button 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", |
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
11167
186
11
1
Updatedspa-component@^1.5.0
Updatedspa-keys@^1.4.1