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

homey-lib

Package Overview
Dependencies
Maintainers
1
Versions
235
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

homey-lib - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

13

lib/app/index.js

@@ -60,3 +60,3 @@ 'use strict';

if( !VALIDATION_LEVELS.includes(level) )
throw new Error('Invalid validation level');
throw new Error(`Invalid validation level. Allowed levels are: ${VALIDATION_LEVELS}`);

@@ -82,2 +82,5 @@ const levelPublish = ( level === 'publish' );

if( !App.isValidId(appJson.id) )
throw new Error('Invalid id');
// validate `appJson.version`

@@ -360,2 +363,10 @@ if( !semver.valid(appJson.version) )

static isValidId( appId ) {
if( typeof appId !== 'string' ) return false;
if( appId.length < 1 ) return false;
if( appId.split('.').length < 2 ) return false;
if( !(/^[a-zA-Z0-9_.-]*$/g).test(appId) ) return false;
return true;
}
static getJSONSchema() {

@@ -362,0 +373,0 @@ return require( path.join(__dirname, '..', '..', 'assets', 'app', 'schema.json' ) );

2

package.json
{
"name": "homey-lib",
"version": "2.0.0",
"version": "2.0.1",
"description": "Shared Library for Homey",

@@ -5,0 +5,0 @@ "main": "index.js",

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