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

spa-component-checkbox

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spa-component-checkbox - npm Package Compare versions

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

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