Push dev work to master #2

Merged
sixteenmillimeter merged 416 commits from dev into master 2018-07-19 15:29:02 +00:00
7 changed files with 360 additions and 236 deletions
Showing only changes of commit 9eac1e0193 - Show all commits

View File

@ -1,16 +1,16 @@
'use strict' 'use strict'
const ble = require('./lib/blootstrap')
const intval = require('./lib/intval')
const restify = require('restify') const restify = require('restify')
const logger = require('winston') const logger = require('winston')
const fs = require('fs') const fs = require('fs')
const pin = {}
const ble = require('./lib/blootstrap')
const intval = require('./lib/intval')
const PACKAGE = require('./package.json') const PACKAGE = require('./package.json')
const PORT = process.env.PORT || 6699 const PORT = process.env.PORT || 6699
const APPNAME = PACKAGE.name const APPNAME = PACKAGE.name
const INDEX = fs.readFileSync('./app/www/index.html', 'utf8') const INDEXPATH = './app/www/index.html'
let app = restify.createServer({ let app = restify.createServer({
name: APPNAME, name: APPNAME,
@ -41,8 +41,13 @@ function rStatus (req, res, next) {
} }
function index (req, res, next) { function index (req, res, next) {
res.end(INDEX) fs.readFile(INDEXPATH, (err, data) => {
return next() if (err) {
return next(err)
}
res.end(data)
next()
}, 'utf8')
} }

View File

@ -1,6 +1,13 @@
'use strict' 'use strict'
const Gpio = require('onoff').Gpio let Gpio
try {
Gpio = require('onoff').Gpio
} catch (e) {
console.warn('Failed including Gpio, using sim')
Gpio = require('../../lib/onoffsim').Gpio
}
const PINS = { const PINS = {
fwd : { fwd : {
@ -34,15 +41,23 @@ class Intval {
this._pin.bwd = Gpio(5, 'out') this._pin.bwd = Gpio(5, 'out')
this._pin.micro = Gpio(6, 'in', 'rising') this._pin.micro = Gpio(6, 'in', 'rising')
this._pin.release = Gpio(7, 'in', 'both') this._pin.release = Gpio(7, 'in', 'both')
this._pin.release.watch(this._watchRelease)
} }
_startFwd () { _startFwd () {
this._pin.fwd.set(1) this._pin.fwd.set(1)
this._pin.bwd.set(0) this._pin.bwd.set(0)
//start high-cpu watch
} }
_startBwd () { _startBwd () {
this._pin.fwd.set(0) this._pin.fwd.set(0)
this._pin.bwd.set(1) this._pin.bwd.set(1)
} }
_watchRelease (err, val) {
if (err) {
console.error(err);
}
}
frame (dir = true, time = 0, delay = 0) { frame (dir = true, time = 0, delay = 0) {
if (delay !== 0) { if (delay !== 0) {
setTimeout(function () { setTimeout(function () {

25
lib/onoffsim/index.js Normal file
View File

@ -0,0 +1,25 @@
'use strict'
const onoffsim = {
Gpio : function (no, dir = 'in', additional = 'none') {
//
return {
no : no,
dir : dir,
additional : additional,
val : null,
watchFunc : null,
set : function (val) {
console.log(`onoffsim set ${this.no} to ${val}`)
},
get : function () {
return this.val
},
watch : function (cb) {
this.watchFunc = cb
}
}
}
}
module.exports = onoffsim

531
package-lock.json generated
View File

@ -5,11 +5,13 @@
"requires": true, "requires": true,
"dependencies": { "dependencies": {
"asn1": { "asn1": {
"version": "https://registry.npmjs.org/asn1/-/asn1-0.2.3.tgz", "version": "0.2.3",
"resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.3.tgz",
"integrity": "sha1-2sh4dxPJlmhJ/IGAd36+nB3fO4Y=" "integrity": "sha1-2sh4dxPJlmhJ/IGAd36+nB3fO4Y="
}, },
"assert-plus": { "assert-plus": {
"version": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", "version": "1.0.0",
"resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz",
"integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=" "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU="
}, },
"async": { "async": {
@ -18,16 +20,18 @@
"integrity": "sha1-+PwEyjoTeErenhZBr5hXjPvWR6k=" "integrity": "sha1-+PwEyjoTeErenhZBr5hXjPvWR6k="
}, },
"balanced-match": { "balanced-match": {
"version": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", "version": "1.0.0",
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz",
"integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=",
"optional": true "optional": true
}, },
"bcrypt-pbkdf": { "bcrypt-pbkdf": {
"version": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.1.tgz", "version": "1.0.1",
"resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.1.tgz",
"integrity": "sha1-Y7xdy2EzG5K8Bf1SiVPDNGKgb40=", "integrity": "sha1-Y7xdy2EzG5K8Bf1SiVPDNGKgb40=",
"optional": true, "optional": true,
"requires": { "requires": {
"tweetnacl": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz" "tweetnacl": "0.14.5"
} }
}, },
"bindings": { "bindings": {
@ -36,44 +40,49 @@
"integrity": "sha1-FK1hE4EtLTfXLme0ystLtyZQXxE=" "integrity": "sha1-FK1hE4EtLTfXLme0ystLtyZQXxE="
}, },
"bleno": { "bleno": {
"version": "https://registry.npmjs.org/bleno/-/bleno-0.4.2.tgz", "version": "0.4.2",
"resolved": "https://registry.npmjs.org/bleno/-/bleno-0.4.2.tgz",
"integrity": "sha1-IesK10O850eU45L0ph4TsHOT26o=", "integrity": "sha1-IesK10O850eU45L0ph4TsHOT26o=",
"requires": { "requires": {
"bplist-parser": "https://registry.npmjs.org/bplist-parser/-/bplist-parser-0.0.6.tgz", "bplist-parser": "0.0.6",
"debug": "https://registry.npmjs.org/debug/-/debug-2.6.8.tgz", "debug": "2.6.8",
"xpc-connection": "https://registry.npmjs.org/xpc-connection/-/xpc-connection-0.1.4.tgz" "xpc-connection": "0.1.4"
} }
}, },
"bplist-parser": { "bplist-parser": {
"version": "https://registry.npmjs.org/bplist-parser/-/bplist-parser-0.0.6.tgz", "version": "0.0.6",
"resolved": "https://registry.npmjs.org/bplist-parser/-/bplist-parser-0.0.6.tgz",
"integrity": "sha1-ONo0cYF9+dRKs4kuJ3B7u9daEbk=", "integrity": "sha1-ONo0cYF9+dRKs4kuJ3B7u9daEbk=",
"optional": true "optional": true
}, },
"brace-expansion": { "brace-expansion": {
"version": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.8.tgz", "version": "1.1.8",
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.8.tgz",
"integrity": "sha1-wHshHHyVLsH479Uad+8NHTmQopI=", "integrity": "sha1-wHshHHyVLsH479Uad+8NHTmQopI=",
"optional": true, "optional": true,
"requires": { "requires": {
"balanced-match": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", "balanced-match": "1.0.0",
"concat-map": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz" "concat-map": "0.0.1"
} }
}, },
"bunyan": { "bunyan": {
"version": "https://registry.npmjs.org/bunyan/-/bunyan-1.8.12.tgz", "version": "1.8.12",
"resolved": "https://registry.npmjs.org/bunyan/-/bunyan-1.8.12.tgz",
"integrity": "sha1-8VDw9nSKvdcq6uhPBEA74u8RN5c=", "integrity": "sha1-8VDw9nSKvdcq6uhPBEA74u8RN5c=",
"requires": { "requires": {
"dtrace-provider": "https://registry.npmjs.org/dtrace-provider/-/dtrace-provider-0.8.5.tgz", "dtrace-provider": "0.8.5",
"moment": "https://registry.npmjs.org/moment/-/moment-2.18.1.tgz", "moment": "2.18.1",
"mv": "https://registry.npmjs.org/mv/-/mv-2.1.1.tgz", "mv": "2.1.1",
"safe-json-stringify": "https://registry.npmjs.org/safe-json-stringify/-/safe-json-stringify-1.0.4.tgz" "safe-json-stringify": "1.0.4"
} }
}, },
"clone-regexp": { "clone-regexp": {
"version": "https://registry.npmjs.org/clone-regexp/-/clone-regexp-1.0.0.tgz", "version": "1.0.0",
"resolved": "https://registry.npmjs.org/clone-regexp/-/clone-regexp-1.0.0.tgz",
"integrity": "sha1-6uCiQT9VwJQvgYwin+/OhF1/Oxw=", "integrity": "sha1-6uCiQT9VwJQvgYwin+/OhF1/Oxw=",
"requires": { "requires": {
"is-regexp": "https://registry.npmjs.org/is-regexp/-/is-regexp-1.0.0.tgz", "is-regexp": "1.0.0",
"is-supported-regexp-flag": "https://registry.npmjs.org/is-supported-regexp-flag/-/is-supported-regexp-flag-1.0.0.tgz" "is-supported-regexp-flag": "1.0.0"
} }
}, },
"colors": { "colors": {
@ -82,12 +91,14 @@
"integrity": "sha1-BDP0TYCWgP3rYO0mDxsMJi6CpAs=" "integrity": "sha1-BDP0TYCWgP3rYO0mDxsMJi6CpAs="
}, },
"concat-map": { "concat-map": {
"version": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", "version": "0.0.1",
"resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
"integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=",
"optional": true "optional": true
}, },
"core-util-is": { "core-util-is": {
"version": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", "version": "1.0.2",
"resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",
"integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac="
}, },
"cron": { "cron": {
@ -99,28 +110,32 @@
} }
}, },
"csv": { "csv": {
"version": "https://registry.npmjs.org/csv/-/csv-1.1.1.tgz", "version": "1.1.1",
"resolved": "https://registry.npmjs.org/csv/-/csv-1.1.1.tgz",
"integrity": "sha1-2ZUtWbH5ZKevvN2ATWgYpzGZpHc=", "integrity": "sha1-2ZUtWbH5ZKevvN2ATWgYpzGZpHc=",
"requires": { "requires": {
"csv-generate": "https://registry.npmjs.org/csv-generate/-/csv-generate-1.0.0.tgz", "csv-generate": "1.0.0",
"csv-parse": "https://registry.npmjs.org/csv-parse/-/csv-parse-1.2.1.tgz", "csv-parse": "1.2.1",
"csv-stringify": "https://registry.npmjs.org/csv-stringify/-/csv-stringify-1.0.4.tgz", "csv-stringify": "1.0.4",
"stream-transform": "https://registry.npmjs.org/stream-transform/-/stream-transform-0.1.2.tgz" "stream-transform": "0.1.2"
} }
}, },
"csv-generate": { "csv-generate": {
"version": "https://registry.npmjs.org/csv-generate/-/csv-generate-1.0.0.tgz", "version": "1.0.0",
"resolved": "https://registry.npmjs.org/csv-generate/-/csv-generate-1.0.0.tgz",
"integrity": "sha1-vVKIaFnQySXz5R9g86vtJi+hXK8=" "integrity": "sha1-vVKIaFnQySXz5R9g86vtJi+hXK8="
}, },
"csv-parse": { "csv-parse": {
"version": "https://registry.npmjs.org/csv-parse/-/csv-parse-1.2.1.tgz", "version": "1.2.1",
"resolved": "https://registry.npmjs.org/csv-parse/-/csv-parse-1.2.1.tgz",
"integrity": "sha1-kZnCPySQ2YxNmrKgFnsGknSYyd8=" "integrity": "sha1-kZnCPySQ2YxNmrKgFnsGknSYyd8="
}, },
"csv-stringify": { "csv-stringify": {
"version": "https://registry.npmjs.org/csv-stringify/-/csv-stringify-1.0.4.tgz", "version": "1.0.4",
"resolved": "https://registry.npmjs.org/csv-stringify/-/csv-stringify-1.0.4.tgz",
"integrity": "sha1-vBi6ua1M7zGV/SV5gLWLR5xC0+U=", "integrity": "sha1-vBi6ua1M7zGV/SV5gLWLR5xC0+U=",
"requires": { "requires": {
"lodash.get": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz" "lodash.get": "4.4.2"
} }
}, },
"cycle": { "cycle": {
@ -129,41 +144,47 @@
"integrity": "sha1-IegLK+hYD5i0aPN5QwZisEbDStI=" "integrity": "sha1-IegLK+hYD5i0aPN5QwZisEbDStI="
}, },
"dashdash": { "dashdash": {
"version": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", "version": "1.14.1",
"resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz",
"integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=",
"requires": { "requires": {
"assert-plus": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz" "assert-plus": "1.0.0"
} }
}, },
"debug": { "debug": {
"version": "https://registry.npmjs.org/debug/-/debug-2.6.8.tgz", "version": "2.6.8",
"resolved": "https://registry.npmjs.org/debug/-/debug-2.6.8.tgz",
"integrity": "sha1-5zFTHKLt4n0YgiJCfaF4IdaP9Pw=", "integrity": "sha1-5zFTHKLt4n0YgiJCfaF4IdaP9Pw=",
"requires": { "requires": {
"ms": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz" "ms": "2.0.0"
} }
}, },
"detect-node": { "detect-node": {
"version": "https://registry.npmjs.org/detect-node/-/detect-node-2.0.3.tgz", "version": "2.0.3",
"resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.0.3.tgz",
"integrity": "sha1-ogM8CcyOFY03dI+951B4Mr1s4Sc=" "integrity": "sha1-ogM8CcyOFY03dI+951B4Mr1s4Sc="
}, },
"dtrace-provider": { "dtrace-provider": {
"version": "https://registry.npmjs.org/dtrace-provider/-/dtrace-provider-0.8.5.tgz", "version": "0.8.5",
"resolved": "https://registry.npmjs.org/dtrace-provider/-/dtrace-provider-0.8.5.tgz",
"integrity": "sha1-mOu6Ihr6xG4cOf02hY2Pk2dSS5I=", "integrity": "sha1-mOu6Ihr6xG4cOf02hY2Pk2dSS5I=",
"optional": true, "optional": true,
"requires": { "requires": {
"nan": "https://registry.npmjs.org/nan/-/nan-2.6.2.tgz" "nan": "2.6.2"
} }
}, },
"easy-stack": { "easy-stack": {
"version": "https://registry.npmjs.org/easy-stack/-/easy-stack-1.0.0.tgz", "version": "1.0.0",
"resolved": "https://registry.npmjs.org/easy-stack/-/easy-stack-1.0.0.tgz",
"integrity": "sha1-EskbMIWjfwuqM26UhurEv5Tj54g=" "integrity": "sha1-EskbMIWjfwuqM26UhurEv5Tj54g="
}, },
"ecc-jsbn": { "ecc-jsbn": {
"version": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz", "version": "0.1.1",
"resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz",
"integrity": "sha1-D8c6ntXw1Tw4GTOYUj735UN3dQU=", "integrity": "sha1-D8c6ntXw1Tw4GTOYUj735UN3dQU=",
"optional": true, "optional": true,
"requires": { "requires": {
"jsbn": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz" "jsbn": "0.1.1"
} }
}, },
"epoll": { "epoll": {
@ -172,19 +193,22 @@
"integrity": "sha1-GrmmN8/xGiCXDIiLHKIXi2TPUpE=", "integrity": "sha1-GrmmN8/xGiCXDIiLHKIXi2TPUpE=",
"requires": { "requires": {
"bindings": "1.2.1", "bindings": "1.2.1",
"nan": "https://registry.npmjs.org/nan/-/nan-2.6.2.tgz" "nan": "2.6.2"
} }
}, },
"escape-regexp-component": { "escape-regexp-component": {
"version": "https://registry.npmjs.org/escape-regexp-component/-/escape-regexp-component-1.0.2.tgz", "version": "1.0.2",
"resolved": "https://registry.npmjs.org/escape-regexp-component/-/escape-regexp-component-1.0.2.tgz",
"integrity": "sha1-nGO20LJf8qiMOtvRjFthrMO5+qI=" "integrity": "sha1-nGO20LJf8qiMOtvRjFthrMO5+qI="
}, },
"event-pubsub": { "event-pubsub": {
"version": "https://registry.npmjs.org/event-pubsub/-/event-pubsub-4.2.4.tgz", "version": "4.3.0",
"integrity": "sha1-Y0+2l/5AFNxQBHIthZQyuqISMlc=" "resolved": "https://registry.npmjs.org/event-pubsub/-/event-pubsub-4.3.0.tgz",
"integrity": "sha512-z7IyloorXvKbFx9Bpie2+vMJKKx1fH1EN5yiTfp8CiLOTptSYy1g8H4yDpGlEdshL1PBiFtBHepF2cNsqeEeFQ=="
}, },
"extsprintf": { "extsprintf": {
"version": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", "version": "1.3.0",
"resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz",
"integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=" "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU="
}, },
"eyes": { "eyes": {
@ -193,88 +217,95 @@
"integrity": "sha1-Ys8SAjTGg3hdkCNIqADvPgzCC8A=" "integrity": "sha1-Ys8SAjTGg3hdkCNIqADvPgzCC8A="
}, },
"formidable": { "formidable": {
"version": "https://registry.npmjs.org/formidable/-/formidable-1.1.1.tgz", "version": "1.1.1",
"resolved": "https://registry.npmjs.org/formidable/-/formidable-1.1.1.tgz",
"integrity": "sha1-lriIb3w8NQi5Mta9cMTTqI818ak=" "integrity": "sha1-lriIb3w8NQi5Mta9cMTTqI818ak="
}, },
"getpass": { "getpass": {
"version": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", "version": "0.1.7",
"resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz",
"integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=",
"requires": { "requires": {
"assert-plus": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz" "assert-plus": "1.0.0"
} }
}, },
"glob": { "glob": {
"version": "https://registry.npmjs.org/glob/-/glob-6.0.4.tgz", "version": "6.0.4",
"resolved": "https://registry.npmjs.org/glob/-/glob-6.0.4.tgz",
"integrity": "sha1-DwiGD2oVUSey+t1PnOJLGqtuTSI=", "integrity": "sha1-DwiGD2oVUSey+t1PnOJLGqtuTSI=",
"optional": true, "optional": true,
"requires": { "requires": {
"inflight": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "inflight": "1.0.6",
"inherits": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", "inherits": "2.0.3",
"minimatch": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", "minimatch": "3.0.4",
"once": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "once": "1.4.0",
"path-is-absolute": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz" "path-is-absolute": "1.0.1"
} }
}, },
"gpio": { "gpio": {
"version": "https://registry.npmjs.org/gpio/-/gpio-0.2.7.tgz", "version": "0.2.7",
"resolved": "https://registry.npmjs.org/gpio/-/gpio-0.2.7.tgz",
"integrity": "sha1-vzhsiJYe/QpPag/3FnrA/zmX6rk=" "integrity": "sha1-vzhsiJYe/QpPag/3FnrA/zmX6rk="
}, },
"handle-thing": { "handle-thing": {
"version": "https://registry.npmjs.org/handle-thing/-/handle-thing-1.2.5.tgz", "version": "1.2.5",
"resolved": "https://registry.npmjs.org/handle-thing/-/handle-thing-1.2.5.tgz",
"integrity": "sha1-/Xqtcmvxpf0W38KbL3pmAdJxOcQ=" "integrity": "sha1-/Xqtcmvxpf0W38KbL3pmAdJxOcQ="
}, },
"hpack.js": { "hpack.js": {
"version": "https://registry.npmjs.org/hpack.js/-/hpack.js-2.1.6.tgz", "version": "2.1.6",
"resolved": "https://registry.npmjs.org/hpack.js/-/hpack.js-2.1.6.tgz",
"integrity": "sha1-h3dMCUnlE/QuhFdbPEVoH63ioLI=", "integrity": "sha1-h3dMCUnlE/QuhFdbPEVoH63ioLI=",
"requires": { "requires": {
"inherits": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", "inherits": "2.0.3",
"obuf": "https://registry.npmjs.org/obuf/-/obuf-1.1.1.tgz", "obuf": "1.1.1",
"readable-stream": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz", "readable-stream": "2.3.3",
"wbuf": "https://registry.npmjs.org/wbuf/-/wbuf-1.7.2.tgz" "wbuf": "1.7.2"
} }
}, },
"http-deceiver": { "http-deceiver": {
"version": "https://registry.npmjs.org/http-deceiver/-/http-deceiver-1.2.7.tgz", "version": "1.2.7",
"resolved": "https://registry.npmjs.org/http-deceiver/-/http-deceiver-1.2.7.tgz",
"integrity": "sha1-+nFolEq5pRnTN8sL7HKE3D5yPYc=" "integrity": "sha1-+nFolEq5pRnTN8sL7HKE3D5yPYc="
}, },
"http-signature": { "http-signature": {
"version": "https://registry.npmjs.org/http-signature/-/http-signature-1.1.1.tgz", "version": "1.2.0",
"integrity": "sha1-33LiZwZs0Kxn+3at+OE0qPvPkb8=", "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz",
"integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=",
"requires": { "requires": {
"assert-plus": "https://registry.npmjs.org/assert-plus/-/assert-plus-0.2.0.tgz", "assert-plus": "1.0.0",
"jsprim": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", "jsprim": "1.4.1",
"sshpk": "https://registry.npmjs.org/sshpk/-/sshpk-1.13.1.tgz" "sshpk": "1.13.1"
},
"dependencies": {
"assert-plus": {
"version": "https://registry.npmjs.org/assert-plus/-/assert-plus-0.2.0.tgz",
"integrity": "sha1-104bh+ev/A24qttwIfP+SBAasjQ="
}
} }
}, },
"inflight": { "inflight": {
"version": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "version": "1.0.6",
"resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
"integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=",
"optional": true, "optional": true,
"requires": { "requires": {
"once": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "once": "1.4.0",
"wrappy": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz" "wrappy": "1.0.2"
} }
}, },
"inherits": { "inherits": {
"version": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", "version": "2.0.3",
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz",
"integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4="
}, },
"is-regexp": { "is-regexp": {
"version": "https://registry.npmjs.org/is-regexp/-/is-regexp-1.0.0.tgz", "version": "1.0.0",
"resolved": "https://registry.npmjs.org/is-regexp/-/is-regexp-1.0.0.tgz",
"integrity": "sha1-/S2INUXEa6xaYz57mgnof6LLUGk=" "integrity": "sha1-/S2INUXEa6xaYz57mgnof6LLUGk="
}, },
"is-supported-regexp-flag": { "is-supported-regexp-flag": {
"version": "https://registry.npmjs.org/is-supported-regexp-flag/-/is-supported-regexp-flag-1.0.0.tgz", "version": "1.0.0",
"resolved": "https://registry.npmjs.org/is-supported-regexp-flag/-/is-supported-regexp-flag-1.0.0.tgz",
"integrity": "sha1-i1IMhfrnolM4LUsCZS4EVXbhO7g=" "integrity": "sha1-i1IMhfrnolM4LUsCZS4EVXbhO7g="
}, },
"isarray": { "isarray": {
"version": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", "version": "1.0.0",
"resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
"integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=" "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE="
}, },
"isstream": { "isstream": {
@ -283,82 +314,96 @@
"integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=" "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo="
}, },
"js-message": { "js-message": {
"version": "https://registry.npmjs.org/js-message/-/js-message-1.0.5.tgz", "version": "1.0.5",
"resolved": "https://registry.npmjs.org/js-message/-/js-message-1.0.5.tgz",
"integrity": "sha1-IwDSSxrwjondCVvBpMnJz8uJLRU=" "integrity": "sha1-IwDSSxrwjondCVvBpMnJz8uJLRU="
}, },
"js-queue": { "js-queue": {
"version": "https://registry.npmjs.org/js-queue/-/js-queue-2.0.0.tgz", "version": "2.0.0",
"resolved": "https://registry.npmjs.org/js-queue/-/js-queue-2.0.0.tgz",
"integrity": "sha1-NiITz4YPRo8BJfxslqvBdCUx+Ug=", "integrity": "sha1-NiITz4YPRo8BJfxslqvBdCUx+Ug=",
"requires": { "requires": {
"easy-stack": "https://registry.npmjs.org/easy-stack/-/easy-stack-1.0.0.tgz" "easy-stack": "1.0.0"
} }
}, },
"jsbn": { "jsbn": {
"version": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", "version": "0.1.1",
"resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz",
"integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=",
"optional": true "optional": true
}, },
"json-schema": { "json-schema": {
"version": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", "version": "0.2.3",
"resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz",
"integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=" "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM="
}, },
"jsprim": { "jsprim": {
"version": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", "version": "1.4.1",
"resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz",
"integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=",
"requires": { "requires": {
"assert-plus": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", "assert-plus": "1.0.0",
"extsprintf": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", "extsprintf": "1.3.0",
"json-schema": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", "json-schema": "0.2.3",
"verror": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz" "verror": "1.10.0"
} }
}, },
"lodash": { "lodash": {
"version": "https://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz", "version": "4.17.4",
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz",
"integrity": "sha1-eCA6TRwyiuHYbcpkYONptX9AVa4=" "integrity": "sha1-eCA6TRwyiuHYbcpkYONptX9AVa4="
}, },
"lodash.get": { "lodash.get": {
"version": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz", "version": "4.4.2",
"resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz",
"integrity": "sha1-LRd/ZS+jHpObRDjVNBSZ36OCXpk=" "integrity": "sha1-LRd/ZS+jHpObRDjVNBSZ36OCXpk="
}, },
"lru-cache": { "lru-cache": {
"version": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.1.tgz", "version": "4.1.1",
"integrity": "sha1-Yi4y6CSItJJ5EUpPns9F581rulU=", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.1.tgz",
"integrity": "sha512-q4spe4KTfsAS1SUHLO0wz8Qiyf1+vMIAgpRYioFYDMNqKfHQbg+AVDH3i4fvpl71/P1L0dBl+fQi+P37UYf0ew==",
"requires": { "requires": {
"pseudomap": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", "pseudomap": "1.0.2",
"yallist": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz" "yallist": "2.1.2"
} }
}, },
"mime": { "mime": {
"version": "https://registry.npmjs.org/mime/-/mime-1.3.6.tgz", "version": "1.3.6",
"resolved": "https://registry.npmjs.org/mime/-/mime-1.3.6.tgz",
"integrity": "sha1-WR2E02U6awtKO5343lqoEI5y5eA=" "integrity": "sha1-WR2E02U6awtKO5343lqoEI5y5eA="
}, },
"minimalistic-assert": { "minimalistic-assert": {
"version": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.0.tgz", "version": "1.0.0",
"resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.0.tgz",
"integrity": "sha1-cCvi3aazf0g2vLP121ZkG2Sh09M=" "integrity": "sha1-cCvi3aazf0g2vLP121ZkG2Sh09M="
}, },
"minimatch": { "minimatch": {
"version": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", "version": "3.0.4",
"integrity": "sha1-UWbihkV/AzBgZL5Ul+jbsMPTIIM=", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz",
"integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==",
"optional": true, "optional": true,
"requires": { "requires": {
"brace-expansion": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.8.tgz" "brace-expansion": "1.1.8"
} }
}, },
"minimist": { "minimist": {
"version": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", "version": "0.0.8",
"resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz",
"integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=",
"optional": true "optional": true
}, },
"mkdirp": { "mkdirp": {
"version": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", "version": "0.5.1",
"resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz",
"integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=",
"optional": true, "optional": true,
"requires": { "requires": {
"minimist": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz" "minimist": "0.0.8"
} }
}, },
"moment": { "moment": {
"version": "https://registry.npmjs.org/moment/-/moment-2.18.1.tgz", "version": "2.18.1",
"resolved": "https://registry.npmjs.org/moment/-/moment-2.18.1.tgz",
"integrity": "sha1-w2GT3Tzhwu7SrbfIAtu8d6gbHA8=" "integrity": "sha1-w2GT3Tzhwu7SrbfIAtu8d6gbHA8="
}, },
"moment-timezone": { "moment-timezone": {
@ -366,198 +411,215 @@
"resolved": "https://registry.npmjs.org/moment-timezone/-/moment-timezone-0.5.13.tgz", "resolved": "https://registry.npmjs.org/moment-timezone/-/moment-timezone-0.5.13.tgz",
"integrity": "sha1-mc5cfYJyYusPH3AgRBd/YHRde5A=", "integrity": "sha1-mc5cfYJyYusPH3AgRBd/YHRde5A=",
"requires": { "requires": {
"moment": "https://registry.npmjs.org/moment/-/moment-2.18.1.tgz" "moment": "2.18.1"
} }
}, },
"ms": { "ms": {
"version": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", "version": "2.0.0",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
"integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="
}, },
"mv": { "mv": {
"version": "https://registry.npmjs.org/mv/-/mv-2.1.1.tgz", "version": "2.1.1",
"resolved": "https://registry.npmjs.org/mv/-/mv-2.1.1.tgz",
"integrity": "sha1-rmzg1vbV4KT32JN5jQPB6pVZtqI=", "integrity": "sha1-rmzg1vbV4KT32JN5jQPB6pVZtqI=",
"optional": true, "optional": true,
"requires": { "requires": {
"mkdirp": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", "mkdirp": "0.5.1",
"ncp": "https://registry.npmjs.org/ncp/-/ncp-2.0.0.tgz", "ncp": "2.0.0",
"rimraf": "https://registry.npmjs.org/rimraf/-/rimraf-2.4.5.tgz" "rimraf": "2.4.5"
} }
}, },
"nan": { "nan": {
"version": "https://registry.npmjs.org/nan/-/nan-2.6.2.tgz", "version": "2.6.2",
"resolved": "https://registry.npmjs.org/nan/-/nan-2.6.2.tgz",
"integrity": "sha1-5P805slf37WuzAjeZZb0NgWn20U=" "integrity": "sha1-5P805slf37WuzAjeZZb0NgWn20U="
}, },
"ncp": { "ncp": {
"version": "https://registry.npmjs.org/ncp/-/ncp-2.0.0.tgz", "version": "2.0.0",
"resolved": "https://registry.npmjs.org/ncp/-/ncp-2.0.0.tgz",
"integrity": "sha1-GVoh1sRuNh0vsSgbo4uR6d9727M=", "integrity": "sha1-GVoh1sRuNh0vsSgbo4uR6d9727M=",
"optional": true "optional": true
}, },
"negotiator": { "negotiator": {
"version": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.1.tgz", "version": "0.6.1",
"resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.1.tgz",
"integrity": "sha1-KzJxhOiZIQEXeyhWP7XnECrNDKk=" "integrity": "sha1-KzJxhOiZIQEXeyhWP7XnECrNDKk="
}, },
"node-ipc": { "node-ipc": {
"version": "https://registry.npmjs.org/node-ipc/-/node-ipc-9.1.0.tgz", "version": "9.1.1",
"integrity": "sha1-rZd4NmcWX1lE6kHPBmGPHEvheSo=", "resolved": "https://registry.npmjs.org/node-ipc/-/node-ipc-9.1.1.tgz",
"integrity": "sha512-FAyICv0sIRJxVp3GW5fzgaf9jwwRQxAKDJlmNFUL5hOy+W4X/I5AypyHoq0DXXbo9o/gt79gj++4cMr4jVWE/w==",
"requires": { "requires": {
"event-pubsub": "https://registry.npmjs.org/event-pubsub/-/event-pubsub-4.2.4.tgz", "event-pubsub": "4.3.0",
"js-message": "https://registry.npmjs.org/js-message/-/js-message-1.0.5.tgz", "js-message": "1.0.5",
"js-queue": "https://registry.npmjs.org/js-queue/-/js-queue-2.0.0.tgz" "js-queue": "2.0.0"
} }
}, },
"obuf": { "obuf": {
"version": "https://registry.npmjs.org/obuf/-/obuf-1.1.1.tgz", "version": "1.1.1",
"resolved": "https://registry.npmjs.org/obuf/-/obuf-1.1.1.tgz",
"integrity": "sha1-EEEktsYCxnlogaBCVB0220OlJk4=" "integrity": "sha1-EEEktsYCxnlogaBCVB0220OlJk4="
}, },
"once": { "once": {
"version": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "version": "1.4.0",
"resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
"integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
"requires": { "requires": {
"wrappy": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz" "wrappy": "1.0.2"
} }
}, },
"onoff": { "onoff": {
"version": "1.1.5", "version": "1.1.7",
"resolved": "https://registry.npmjs.org/onoff/-/onoff-1.1.5.tgz", "resolved": "https://registry.npmjs.org/onoff/-/onoff-1.1.7.tgz",
"integrity": "sha1-tkT9pSe4eJ60ZDwD9YIqqVclCu4=", "integrity": "sha1-kZKHlby16QL+dVG9e7JVHZunZII=",
"requires": { "requires": {
"epoll": "0.1.22" "epoll": "0.1.22"
} }
}, },
"path-is-absolute": { "path-is-absolute": {
"version": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", "version": "1.0.1",
"resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
"integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=",
"optional": true "optional": true
}, },
"process-nextick-args": { "process-nextick-args": {
"version": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-1.0.7.tgz", "version": "1.0.7",
"resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-1.0.7.tgz",
"integrity": "sha1-FQ4gt1ZZCtP5EJPyWk8q2L/zC6M=" "integrity": "sha1-FQ4gt1ZZCtP5EJPyWk8q2L/zC6M="
}, },
"pseudomap": { "pseudomap": {
"version": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", "version": "1.0.2",
"resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz",
"integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM=" "integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM="
}, },
"qs": { "qs": {
"version": "https://registry.npmjs.org/qs/-/qs-6.5.0.tgz", "version": "6.5.0",
"integrity": "sha1-jQSVTTZN7z78VbWgeT4eLIsebkk=" "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.0.tgz",
"integrity": "sha512-fjVFjW9yhqMhVGwRExCXLhJKrLlkYSaxNWdyc9rmHlrVZbk35YHH312dFd7191uQeXkI3mKLZTIbSvIeFwFemg=="
}, },
"readable-stream": { "readable-stream": {
"version": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz", "version": "2.3.3",
"integrity": "sha1-No8lEtefnUb9/HE0mueHi7weuVw=", "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz",
"integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==",
"requires": { "requires": {
"core-util-is": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", "core-util-is": "1.0.2",
"inherits": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", "inherits": "2.0.3",
"isarray": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", "isarray": "1.0.0",
"process-nextick-args": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-1.0.7.tgz", "process-nextick-args": "1.0.7",
"safe-buffer": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.1.tgz", "safe-buffer": "5.1.1",
"string_decoder": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", "string_decoder": "1.0.3",
"util-deprecate": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz" "util-deprecate": "1.0.2"
} }
}, },
"restify": { "restify": {
"version": "https://registry.npmjs.org/restify/-/restify-5.2.0.tgz", "version": "5.2.0",
"resolved": "https://registry.npmjs.org/restify/-/restify-5.2.0.tgz",
"integrity": "sha1-9xMxAu85WKVtpC92BBURKnigGCI=", "integrity": "sha1-9xMxAu85WKVtpC92BBURKnigGCI=",
"requires": { "requires": {
"assert-plus": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", "assert-plus": "1.0.0",
"bunyan": "https://registry.npmjs.org/bunyan/-/bunyan-1.8.12.tgz", "bunyan": "1.8.12",
"clone-regexp": "https://registry.npmjs.org/clone-regexp/-/clone-regexp-1.0.0.tgz", "clone-regexp": "1.0.0",
"csv": "https://registry.npmjs.org/csv/-/csv-1.1.1.tgz", "csv": "1.1.1",
"dtrace-provider": "https://registry.npmjs.org/dtrace-provider/-/dtrace-provider-0.8.5.tgz", "dtrace-provider": "0.8.5",
"escape-regexp-component": "https://registry.npmjs.org/escape-regexp-component/-/escape-regexp-component-1.0.2.tgz", "escape-regexp-component": "1.0.2",
"formidable": "https://registry.npmjs.org/formidable/-/formidable-1.1.1.tgz", "formidable": "1.1.1",
"http-signature": "https://registry.npmjs.org/http-signature/-/http-signature-1.1.1.tgz", "http-signature": "1.2.0",
"lodash": "https://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz", "lodash": "4.17.4",
"lru-cache": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.1.tgz", "lru-cache": "4.1.1",
"mime": "https://registry.npmjs.org/mime/-/mime-1.3.6.tgz", "mime": "1.3.6",
"negotiator": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.1.tgz", "negotiator": "0.6.1",
"once": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "once": "1.4.0",
"qs": "https://registry.npmjs.org/qs/-/qs-6.5.0.tgz", "qs": "6.5.0",
"restify-errors": "https://registry.npmjs.org/restify-errors/-/restify-errors-4.3.0.tgz", "restify-errors": "4.3.0",
"semver": "https://registry.npmjs.org/semver/-/semver-5.4.1.tgz", "semver": "5.4.1",
"spdy": "https://registry.npmjs.org/spdy/-/spdy-3.4.7.tgz", "spdy": "3.4.7",
"uuid": "https://registry.npmjs.org/uuid/-/uuid-3.1.0.tgz", "uuid": "3.1.0",
"vasync": "https://registry.npmjs.org/vasync/-/vasync-1.6.4.tgz", "vasync": "1.6.4",
"verror": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz" "verror": "1.10.0"
},
"dependencies": {
"uuid": {
"version": "https://registry.npmjs.org/uuid/-/uuid-3.1.0.tgz",
"integrity": "sha1-PdPT55Crwk17DToDT/q6vijrvAQ="
}
} }
}, },
"restify-errors": { "restify-errors": {
"version": "https://registry.npmjs.org/restify-errors/-/restify-errors-4.3.0.tgz", "version": "4.3.0",
"resolved": "https://registry.npmjs.org/restify-errors/-/restify-errors-4.3.0.tgz",
"integrity": "sha1-7JDzCTTX8xGRNRgd/DA+ML5gGr4=", "integrity": "sha1-7JDzCTTX8xGRNRgd/DA+ML5gGr4=",
"requires": { "requires": {
"assert-plus": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", "assert-plus": "1.0.0",
"lodash": "https://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz", "lodash": "4.17.4",
"safe-json-stringify": "https://registry.npmjs.org/safe-json-stringify/-/safe-json-stringify-1.0.4.tgz", "safe-json-stringify": "1.0.4",
"verror": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz" "verror": "1.10.0"
} }
}, },
"rimraf": { "rimraf": {
"version": "https://registry.npmjs.org/rimraf/-/rimraf-2.4.5.tgz", "version": "2.4.5",
"resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.4.5.tgz",
"integrity": "sha1-7nEM5dk6j9uFb7Xqj/Di11k0sto=", "integrity": "sha1-7nEM5dk6j9uFb7Xqj/Di11k0sto=",
"optional": true, "optional": true,
"requires": { "requires": {
"glob": "https://registry.npmjs.org/glob/-/glob-6.0.4.tgz" "glob": "6.0.4"
} }
}, },
"safe-buffer": { "safe-buffer": {
"version": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.1.tgz", "version": "5.1.1",
"integrity": "sha1-iTMSr2myEj3vcfV4iQAWce6yyFM=" "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.1.tgz",
"integrity": "sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg=="
}, },
"safe-json-stringify": { "safe-json-stringify": {
"version": "https://registry.npmjs.org/safe-json-stringify/-/safe-json-stringify-1.0.4.tgz", "version": "1.0.4",
"resolved": "https://registry.npmjs.org/safe-json-stringify/-/safe-json-stringify-1.0.4.tgz",
"integrity": "sha1-gaCY9Efku8P/MxKiQ1IbwGDvWRE=", "integrity": "sha1-gaCY9Efku8P/MxKiQ1IbwGDvWRE=",
"optional": true "optional": true
}, },
"select-hose": { "select-hose": {
"version": "https://registry.npmjs.org/select-hose/-/select-hose-2.0.0.tgz", "version": "2.0.0",
"resolved": "https://registry.npmjs.org/select-hose/-/select-hose-2.0.0.tgz",
"integrity": "sha1-Yl2GWPhlr0Psliv8N2o3NZpJlMo=" "integrity": "sha1-Yl2GWPhlr0Psliv8N2o3NZpJlMo="
}, },
"semver": { "semver": {
"version": "https://registry.npmjs.org/semver/-/semver-5.4.1.tgz", "version": "5.4.1",
"integrity": "sha1-4FnAnYVx8FQII3M0M1BdOi8AsY4=" "resolved": "https://registry.npmjs.org/semver/-/semver-5.4.1.tgz",
"integrity": "sha512-WfG/X9+oATh81XtllIo/I8gOiY9EXRdv1cQdyykeXK17YcUW3EXUAi2To4pcH6nZtJPr7ZOpM5OMyWJZm+8Rsg=="
}, },
"spdy": { "spdy": {
"version": "https://registry.npmjs.org/spdy/-/spdy-3.4.7.tgz", "version": "3.4.7",
"resolved": "https://registry.npmjs.org/spdy/-/spdy-3.4.7.tgz",
"integrity": "sha1-Qv9B7OXMD5mjpsKKq7c/XDsDrLw=", "integrity": "sha1-Qv9B7OXMD5mjpsKKq7c/XDsDrLw=",
"requires": { "requires": {
"debug": "https://registry.npmjs.org/debug/-/debug-2.6.8.tgz", "debug": "2.6.8",
"handle-thing": "https://registry.npmjs.org/handle-thing/-/handle-thing-1.2.5.tgz", "handle-thing": "1.2.5",
"http-deceiver": "https://registry.npmjs.org/http-deceiver/-/http-deceiver-1.2.7.tgz", "http-deceiver": "1.2.7",
"safe-buffer": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.1.tgz", "safe-buffer": "5.1.1",
"select-hose": "https://registry.npmjs.org/select-hose/-/select-hose-2.0.0.tgz", "select-hose": "2.0.0",
"spdy-transport": "https://registry.npmjs.org/spdy-transport/-/spdy-transport-2.0.20.tgz" "spdy-transport": "2.0.20"
} }
}, },
"spdy-transport": { "spdy-transport": {
"version": "https://registry.npmjs.org/spdy-transport/-/spdy-transport-2.0.20.tgz", "version": "2.0.20",
"resolved": "https://registry.npmjs.org/spdy-transport/-/spdy-transport-2.0.20.tgz",
"integrity": "sha1-c15yBUxIayNU/onnAiVgBKOazk0=", "integrity": "sha1-c15yBUxIayNU/onnAiVgBKOazk0=",
"requires": { "requires": {
"debug": "https://registry.npmjs.org/debug/-/debug-2.6.8.tgz", "debug": "2.6.8",
"detect-node": "https://registry.npmjs.org/detect-node/-/detect-node-2.0.3.tgz", "detect-node": "2.0.3",
"hpack.js": "https://registry.npmjs.org/hpack.js/-/hpack.js-2.1.6.tgz", "hpack.js": "2.1.6",
"obuf": "https://registry.npmjs.org/obuf/-/obuf-1.1.1.tgz", "obuf": "1.1.1",
"readable-stream": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz", "readable-stream": "2.3.3",
"safe-buffer": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.1.tgz", "safe-buffer": "5.1.1",
"wbuf": "https://registry.npmjs.org/wbuf/-/wbuf-1.7.2.tgz" "wbuf": "1.7.2"
} }
}, },
"sshpk": { "sshpk": {
"version": "https://registry.npmjs.org/sshpk/-/sshpk-1.13.1.tgz", "version": "1.13.1",
"resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.13.1.tgz",
"integrity": "sha1-US322mKHFEMW3EwY/hzx2UBzm+M=", "integrity": "sha1-US322mKHFEMW3EwY/hzx2UBzm+M=",
"requires": { "requires": {
"asn1": "https://registry.npmjs.org/asn1/-/asn1-0.2.3.tgz", "asn1": "0.2.3",
"assert-plus": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", "assert-plus": "1.0.0",
"bcrypt-pbkdf": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.1.tgz", "bcrypt-pbkdf": "1.0.1",
"dashdash": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", "dashdash": "1.14.1",
"ecc-jsbn": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz", "ecc-jsbn": "0.1.1",
"getpass": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", "getpass": "0.1.7",
"jsbn": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", "jsbn": "0.1.1",
"tweetnacl": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz" "tweetnacl": "0.14.5"
} }
}, },
"stack-trace": { "stack-trace": {
@ -566,63 +628,73 @@
"integrity": "sha1-VHxws0fo0ytOEI6hoqFZ5f3eGcA=" "integrity": "sha1-VHxws0fo0ytOEI6hoqFZ5f3eGcA="
}, },
"stream-transform": { "stream-transform": {
"version": "https://registry.npmjs.org/stream-transform/-/stream-transform-0.1.2.tgz", "version": "0.1.2",
"resolved": "https://registry.npmjs.org/stream-transform/-/stream-transform-0.1.2.tgz",
"integrity": "sha1-fY5rTgOsR4F3j4x5UXUBv7B2Kp8=" "integrity": "sha1-fY5rTgOsR4F3j4x5UXUBv7B2Kp8="
}, },
"string_decoder": { "string_decoder": {
"version": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", "version": "1.0.3",
"integrity": "sha1-D8Z9fBQYJd6UKC3VNr7GubzoYKs=", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz",
"integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==",
"requires": { "requires": {
"safe-buffer": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.1.tgz" "safe-buffer": "5.1.1"
} }
}, },
"tweetnacl": { "tweetnacl": {
"version": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", "version": "0.14.5",
"resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz",
"integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=",
"optional": true "optional": true
}, },
"util-deprecate": { "util-deprecate": {
"version": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", "version": "1.0.2",
"resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
"integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8="
}, },
"uuid": { "uuid": {
"version": "https://registry.npmjs.org/uuid/-/uuid-3.1.0.tgz", "version": "3.1.0",
"integrity": "sha1-PdPT55Crwk17DToDT/q6vijrvAQ=" "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.1.0.tgz",
"integrity": "sha512-DIWtzUkw04M4k3bf1IcpS2tngXEL26YUD2M0tMDUpnUrz2hgzUBlD55a4FjdLGPvfHxS6uluGWvaVEqgBcVa+g=="
}, },
"vasync": { "vasync": {
"version": "https://registry.npmjs.org/vasync/-/vasync-1.6.4.tgz", "version": "1.6.4",
"resolved": "https://registry.npmjs.org/vasync/-/vasync-1.6.4.tgz",
"integrity": "sha1-3+k2Fq0OeugBszKp2Iv8XNyOHR8=", "integrity": "sha1-3+k2Fq0OeugBszKp2Iv8XNyOHR8=",
"requires": { "requires": {
"verror": "https://registry.npmjs.org/verror/-/verror-1.6.0.tgz" "verror": "1.6.0"
}, },
"dependencies": { "dependencies": {
"extsprintf": { "extsprintf": {
"version": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.2.0.tgz", "version": "1.2.0",
"resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.2.0.tgz",
"integrity": "sha1-WtlGwi9bMrp/jNdCZxHG6KP8JSk=" "integrity": "sha1-WtlGwi9bMrp/jNdCZxHG6KP8JSk="
}, },
"verror": { "verror": {
"version": "https://registry.npmjs.org/verror/-/verror-1.6.0.tgz", "version": "1.6.0",
"resolved": "https://registry.npmjs.org/verror/-/verror-1.6.0.tgz",
"integrity": "sha1-fROyex+swuLakEBetepuW90lLqU=", "integrity": "sha1-fROyex+swuLakEBetepuW90lLqU=",
"requires": { "requires": {
"extsprintf": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.2.0.tgz" "extsprintf": "1.2.0"
} }
} }
} }
}, },
"verror": { "verror": {
"version": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", "version": "1.10.0",
"resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz",
"integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=",
"requires": { "requires": {
"assert-plus": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", "assert-plus": "1.0.0",
"core-util-is": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", "core-util-is": "1.0.2",
"extsprintf": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz" "extsprintf": "1.3.0"
} }
}, },
"wbuf": { "wbuf": {
"version": "https://registry.npmjs.org/wbuf/-/wbuf-1.7.2.tgz", "version": "1.7.2",
"resolved": "https://registry.npmjs.org/wbuf/-/wbuf-1.7.2.tgz",
"integrity": "sha1-1pe5nx9ZUS3ydRvkJ2nBWAtYAf4=", "integrity": "sha1-1pe5nx9ZUS3ydRvkJ2nBWAtYAf4=",
"requires": { "requires": {
"minimalistic-assert": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.0.tgz" "minimalistic-assert": "1.0.0"
} }
}, },
"winston": { "winston": {
@ -639,19 +711,22 @@
} }
}, },
"wrappy": { "wrappy": {
"version": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", "version": "1.0.2",
"resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
"integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8="
}, },
"xpc-connection": { "xpc-connection": {
"version": "https://registry.npmjs.org/xpc-connection/-/xpc-connection-0.1.4.tgz", "version": "0.1.4",
"resolved": "https://registry.npmjs.org/xpc-connection/-/xpc-connection-0.1.4.tgz",
"integrity": "sha1-3Nf6oq7Gt6bhjMXdrQQvejTHcVY=", "integrity": "sha1-3Nf6oq7Gt6bhjMXdrQQvejTHcVY=",
"optional": true, "optional": true,
"requires": { "requires": {
"nan": "https://registry.npmjs.org/nan/-/nan-2.6.2.tgz" "nan": "2.6.2"
} }
}, },
"yallist": { "yallist": {
"version": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", "version": "2.1.2",
"resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz",
"integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=" "integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI="
} }
} }

View File

@ -4,7 +4,7 @@
"description": "Intervalometer for the Bolex", "description": "Intervalometer for the Bolex",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1" "test": "mocha tests"
}, },
"repository": { "repository": {
"type": "git", "type": "git",

View File

@ -4,6 +4,7 @@ const ipc = require('node-ipc')
const os = require('os') const os = require('os')
const bleno = require('bleno') const bleno = require('bleno')
const util = require('util') const util = require('util')
const wifi = require('../../lib/wifi') const wifi = require('../../lib/wifi')
const BLENO_DEVICE_NAME = process.env.BLENO_DEVICE_NAME || 'my_project' const BLENO_DEVICE_NAME = process.env.BLENO_DEVICE_NAME || 'my_project'

3
tests/index.js Normal file
View File

@ -0,0 +1,3 @@
'use strict'
const intval = require('../lib/intval')