Socket
Socket
Sign inDemoInstall

zetta-automobile-mock-driver

Package Overview
Dependencies
139
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.2 to 0.0.3

12

index.js

@@ -28,3 +28,4 @@ var Device = require('zetta-device');

.type('automobile')
.state('first')
.state('not-ready')
.when('not-ready', {allow: ['make-ready']})
.when('first', {allow: ['make-not-ready']})

@@ -38,8 +39,5 @@ .when('second', {allow: ['make-not-ready']})

.when('eigth', {allow: ['make-not-ready']})
.when('not-ready', {allow: ['make-ready']})
.map('make-not-ready', this.makeNotReady)
.map('make-ready', this.makeReady)
.monitor('vehicleSpeed');
this._startMockData();
};

@@ -49,3 +47,3 @@

this.state = 'first';
this._startMockData();
this._startMockData(cb);
cb();

@@ -56,3 +54,3 @@ }

this.state = 'not-ready'
this._stopMockData();
this._stopMockData(cb);
cb();

@@ -67,2 +65,3 @@ }

self._vehicleSpeedCounter += self._vehicleSpeedIncrement;
cb();
}, 100);

@@ -73,2 +72,3 @@ }

clearTimeout(this._vehicleSpeedTimeOut);
cb();
}

@@ -75,0 +75,0 @@

{
"name": "zetta-automobile-mock-driver",
"version": "0.0.2",
"version": "0.0.3",
"description": "Mock automobile device for Zetta that generates a sine wave.",

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc