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

spa-component-button

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-button - npm Package Compare versions

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

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