From 332399cfd7784ed61eb420bb125b4e389fee6068 Mon Sep 17 00:00:00 2001 From: mmcwilliams Date: Mon, 18 Sep 2017 20:46:18 -0400 Subject: [PATCH] Document intval lib --- lib/intval/Readme.md | 24 + lib/intval/index.js | 37 +- package-lock.json | 1131 +++++++++++++++++++++++++++++++++++++++++- package.json | 2 +- 4 files changed, 1171 insertions(+), 23 deletions(-) diff --git a/lib/intval/Readme.md b/lib/intval/Readme.md index 176e2b7..ebb5f4c 100644 --- a/lib/intval/Readme.md +++ b/lib/intval/Readme.md @@ -8,6 +8,9 @@ Class representing the intval3 features * [Intval](#Intval) * [._declarePins()](#Intval+_declarePins) * [._undeclarePins()](#Intval+_undeclarePins) + * [._startFwd()](#Intval+_startFwd) + * [._startBwd()](#Intval+_startBwd) + * [._stop()](#Intval+_stop) * [.frame(dir, time, delay)](#Intval+frame) @@ -24,6 +27,27 @@ Intval._undeclarePins() - (internal function) Undeclares all Gpio in event of uncaught error that interupts the node process +**Kind**: instance method of [Intval](#Intval) + + +### intval._startFwd() +Intval._startFwd() - +Start motor in forward direction by setting correct pins in h-bridge + +**Kind**: instance method of [Intval](#Intval) + + +### intval._startBwd() +Intval._startBwd() - +Start motor in backward direction by setting correct pins in h-bridge + +**Kind**: instance method of [Intval](#Intval) + + +### intval._stop() +Intval._stop() - +Stop motor by setting both motor pins to 0 (LOW) + **Kind**: instance method of [Intval](#Intval) diff --git a/lib/intval/index.js b/lib/intval/index.js index 5450bc8..3edb38e 100644 --- a/lib/intval/index.js +++ b/lib/intval/index.js @@ -79,15 +79,41 @@ class Intval { this._pin.micro.unexport() this._pin.release.unexport() } + /** + * Intval._startFwd() - + * Start motor in forward direction by setting correct pins in h-bridge + * + */ _startFwd () { this._pin.fwd.set(1) this._pin.bwd.set(0) //start high-cpu watch } + /** + * Intval._startBwd() - + * Start motor in backward direction by setting correct pins in h-bridge + * + */ _startBwd () { this._pin.fwd.set(0) this._pin.bwd.set(1) } + /** + * Intval._stop() - + * Stop motor by setting both motor pins to 0 (LOW) + * + */ + _stop () { + this._pin.fwd.set(0) + this._pin.bwd.set(0) + + let len = (+new Date()) - this._state.frame.start + + console.log(`Frame stopped ${len}ms`) + + this._pin.micro.unwatch() + this._state.frame.active = false + } _watchMicro (err, val) { /* Microswitch + 10K ohm resistor */ /* 1 = open */ @@ -186,17 +212,6 @@ class Intval { sequence () { console.log(`Started sequence`) } - _stop () { - this._pin.fwd.set(0) - this._pin.bwd.set(0) - - let len = (+new Date()) - this._state.frame.start - - console.log(`Frame stopped ${len}ms`) - - this._pin.micro.unwatch() - this._state.frame.active = false - } status () { return this._state } diff --git a/package-lock.json b/package-lock.json index d134ef3..bf33259 100644 --- a/package-lock.json +++ b/package-lock.json @@ -94,9 +94,9 @@ "resolved": "https://registry.npmjs.org/bleno/-/bleno-0.4.2.tgz", "integrity": "sha1-IesK10O850eU45L0ph4TsHOT26o=", "requires": { + "bluetooth-hci-socket": "0.5.1", "bplist-parser": "0.0.6", - "debug": "2.6.8", - "xpc-connection": "0.1.4" + "debug": "2.6.8" } }, "bluebird": { @@ -105,6 +105,17 @@ "integrity": "sha1-9y12C+Cbf3bQjtj66Ysomo0F+rM=", "dev": true }, + "bluetooth-hci-socket": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/bluetooth-hci-socket/-/bluetooth-hci-socket-0.5.1.tgz", + "integrity": "sha1-774hUk/Bz10/rl1RNl1WHUq77Qs=", + "optional": true, + "requires": { + "debug": "2.6.8", + "nan": "2.6.2", + "usb": "1.2.0" + } + }, "bplist-parser": { "version": "0.0.6", "resolved": "https://registry.npmjs.org/bplist-parser/-/bplist-parser-0.0.6.tgz", @@ -1350,6 +1361,1113 @@ } } }, + "usb": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/usb/-/usb-1.2.0.tgz", + "integrity": "sha1-q3LZeGoEcGiRmgJNCMehxbHmD0c=", + "optional": true, + "requires": { + "nan": "2.6.2", + "node-pre-gyp": "0.6.30" + }, + "dependencies": { + "node-pre-gyp": { + "version": "0.6.30", + "bundled": true, + "optional": true, + "requires": { + "mkdirp": "0.5.1", + "nopt": "3.0.6", + "npmlog": "4.0.0", + "rc": "1.1.6", + "request": "2.74.0", + "rimraf": "2.5.4", + "semver": "5.3.0", + "tar": "2.2.1", + "tar-pack": "3.1.4" + }, + "dependencies": { + "mkdirp": { + "version": "0.5.1", + "bundled": true, + "requires": { + "minimist": "0.0.8" + }, + "dependencies": { + "minimist": { + "version": "0.0.8", + "bundled": true + } + } + }, + "nopt": { + "version": "3.0.6", + "bundled": true, + "optional": true, + "requires": { + "abbrev": "1.0.9" + }, + "dependencies": { + "abbrev": { + "version": "1.0.9", + "bundled": true, + "optional": true + } + } + }, + "npmlog": { + "version": "4.0.0", + "bundled": true, + "optional": true, + "requires": { + "are-we-there-yet": "1.1.2", + "console-control-strings": "1.1.0", + "gauge": "2.6.0", + "set-blocking": "2.0.0" + }, + "dependencies": { + "are-we-there-yet": { + "version": "1.1.2", + "bundled": true, + "optional": true, + "requires": { + "delegates": "1.0.0", + "readable-stream": "2.1.5" + }, + "dependencies": { + "delegates": { + "version": "1.0.0", + "bundled": true, + "optional": true + }, + "readable-stream": { + "version": "2.1.5", + "bundled": true, + "optional": true, + "requires": { + "buffer-shims": "1.0.0", + "core-util-is": "1.0.2", + "inherits": "2.0.1", + "isarray": "1.0.0", + "process-nextick-args": "1.0.7", + "string_decoder": "0.10.31", + "util-deprecate": "1.0.2" + }, + "dependencies": { + "buffer-shims": { + "version": "1.0.0", + "bundled": true, + "optional": true + }, + "core-util-is": { + "version": "1.0.2", + "bundled": true, + "optional": true + }, + "inherits": { + "version": "2.0.1", + "bundled": true, + "optional": true + }, + "isarray": { + "version": "1.0.0", + "bundled": true, + "optional": true + }, + "process-nextick-args": { + "version": "1.0.7", + "bundled": true, + "optional": true + }, + "string_decoder": { + "version": "0.10.31", + "bundled": true, + "optional": true + }, + "util-deprecate": { + "version": "1.0.2", + "bundled": true, + "optional": true + } + } + } + } + }, + "console-control-strings": { + "version": "1.1.0", + "bundled": true + }, + "gauge": { + "version": "2.6.0", + "bundled": true, + "optional": true, + "requires": { + "aproba": "1.0.4", + "console-control-strings": "1.1.0", + "has-color": "0.1.7", + "has-unicode": "2.0.1", + "object-assign": "4.1.0", + "signal-exit": "3.0.0", + "string-width": "1.0.2", + "strip-ansi": "3.0.1", + "wide-align": "1.1.0" + }, + "dependencies": { + "aproba": { + "version": "1.0.4", + "bundled": true, + "optional": true + }, + "has-color": { + "version": "0.1.7", + "bundled": true, + "optional": true + }, + "has-unicode": { + "version": "2.0.1", + "bundled": true, + "optional": true + }, + "object-assign": { + "version": "4.1.0", + "bundled": true, + "optional": true + }, + "signal-exit": { + "version": "3.0.0", + "bundled": true, + "optional": true + }, + "string-width": { + "version": "1.0.2", + "bundled": true, + "requires": { + "code-point-at": "1.0.0", + "is-fullwidth-code-point": "1.0.0", + "strip-ansi": "3.0.1" + }, + "dependencies": { + "code-point-at": { + "version": "1.0.0", + "bundled": true, + "requires": { + "number-is-nan": "1.0.0" + }, + "dependencies": { + "number-is-nan": { + "version": "1.0.0", + "bundled": true + } + } + }, + "is-fullwidth-code-point": { + "version": "1.0.0", + "bundled": true, + "requires": { + "number-is-nan": "1.0.0" + }, + "dependencies": { + "number-is-nan": { + "version": "1.0.0", + "bundled": true + } + } + } + } + }, + "strip-ansi": { + "version": "3.0.1", + "bundled": true, + "requires": { + "ansi-regex": "2.0.0" + }, + "dependencies": { + "ansi-regex": { + "version": "2.0.0", + "bundled": true + } + } + }, + "wide-align": { + "version": "1.1.0", + "bundled": true, + "optional": true, + "requires": { + "string-width": "1.0.2" + } + } + } + }, + "set-blocking": { + "version": "2.0.0", + "bundled": true, + "optional": true + } + } + }, + "rc": { + "version": "1.1.6", + "bundled": true, + "optional": true, + "requires": { + "deep-extend": "0.4.1", + "ini": "1.3.4", + "minimist": "1.2.0", + "strip-json-comments": "1.0.4" + }, + "dependencies": { + "deep-extend": { + "version": "0.4.1", + "bundled": true, + "optional": true + }, + "ini": { + "version": "1.3.4", + "bundled": true, + "optional": true + }, + "minimist": { + "version": "1.2.0", + "bundled": true, + "optional": true + }, + "strip-json-comments": { + "version": "1.0.4", + "bundled": true, + "optional": true + } + } + }, + "request": { + "version": "2.74.0", + "bundled": true, + "optional": true, + "requires": { + "aws-sign2": "0.6.0", + "aws4": "1.4.1", + "bl": "1.1.2", + "caseless": "0.11.0", + "combined-stream": "1.0.5", + "extend": "3.0.0", + "forever-agent": "0.6.1", + "form-data": "1.0.1", + "har-validator": "2.0.6", + "hawk": "3.1.3", + "http-signature": "1.1.1", + "is-typedarray": "1.0.0", + "isstream": "0.1.2", + "json-stringify-safe": "5.0.1", + "mime-types": "2.1.11", + "node-uuid": "1.4.7", + "oauth-sign": "0.8.2", + "qs": "6.2.1", + "stringstream": "0.0.5", + "tough-cookie": "2.3.1", + "tunnel-agent": "0.4.3" + }, + "dependencies": { + "aws-sign2": { + "version": "0.6.0", + "bundled": true, + "optional": true + }, + "aws4": { + "version": "1.4.1", + "bundled": true, + "optional": true + }, + "bl": { + "version": "1.1.2", + "bundled": true, + "optional": true, + "requires": { + "readable-stream": "2.0.6" + }, + "dependencies": { + "readable-stream": { + "version": "2.0.6", + "bundled": true, + "optional": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.1", + "isarray": "1.0.0", + "process-nextick-args": "1.0.7", + "string_decoder": "0.10.31", + "util-deprecate": "1.0.2" + }, + "dependencies": { + "core-util-is": { + "version": "1.0.2", + "bundled": true, + "optional": true + }, + "inherits": { + "version": "2.0.1", + "bundled": true, + "optional": true + }, + "isarray": { + "version": "1.0.0", + "bundled": true, + "optional": true + }, + "process-nextick-args": { + "version": "1.0.7", + "bundled": true, + "optional": true + }, + "string_decoder": { + "version": "0.10.31", + "bundled": true, + "optional": true + }, + "util-deprecate": { + "version": "1.0.2", + "bundled": true, + "optional": true + } + } + } + } + }, + "caseless": { + "version": "0.11.0", + "bundled": true, + "optional": true + }, + "combined-stream": { + "version": "1.0.5", + "bundled": true, + "requires": { + "delayed-stream": "1.0.0" + }, + "dependencies": { + "delayed-stream": { + "version": "1.0.0", + "bundled": true + } + } + }, + "extend": { + "version": "3.0.0", + "bundled": true, + "optional": true + }, + "forever-agent": { + "version": "0.6.1", + "bundled": true, + "optional": true + }, + "form-data": { + "version": "1.0.1", + "bundled": true, + "optional": true, + "requires": { + "async": "2.0.1", + "combined-stream": "1.0.5", + "mime-types": "2.1.11" + }, + "dependencies": { + "async": { + "version": "2.0.1", + "bundled": true, + "optional": true, + "requires": { + "lodash": "4.15.0" + }, + "dependencies": { + "lodash": { + "version": "4.15.0", + "bundled": true, + "optional": true + } + } + } + } + }, + "har-validator": { + "version": "2.0.6", + "bundled": true, + "optional": true, + "requires": { + "chalk": "1.1.3", + "commander": "2.9.0", + "is-my-json-valid": "2.13.1", + "pinkie-promise": "2.0.1" + }, + "dependencies": { + "chalk": { + "version": "1.1.3", + "bundled": true, + "optional": true, + "requires": { + "ansi-styles": "2.2.1", + "escape-string-regexp": "1.0.5", + "has-ansi": "2.0.0", + "strip-ansi": "3.0.1", + "supports-color": "2.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "2.2.1", + "bundled": true, + "optional": true + }, + "escape-string-regexp": { + "version": "1.0.5", + "bundled": true, + "optional": true + }, + "has-ansi": { + "version": "2.0.0", + "bundled": true, + "optional": true, + "requires": { + "ansi-regex": "2.0.0" + }, + "dependencies": { + "ansi-regex": { + "version": "2.0.0", + "bundled": true, + "optional": true + } + } + }, + "strip-ansi": { + "version": "3.0.1", + "bundled": true, + "optional": true, + "requires": { + "ansi-regex": "2.0.0" + }, + "dependencies": { + "ansi-regex": { + "version": "2.0.0", + "bundled": true, + "optional": true + } + } + }, + "supports-color": { + "version": "2.0.0", + "bundled": true, + "optional": true + } + } + }, + "commander": { + "version": "2.9.0", + "bundled": true, + "optional": true, + "requires": { + "graceful-readlink": "1.0.1" + }, + "dependencies": { + "graceful-readlink": { + "version": "1.0.1", + "bundled": true, + "optional": true + } + } + }, + "is-my-json-valid": { + "version": "2.13.1", + "bundled": true, + "optional": true, + "requires": { + "generate-function": "2.0.0", + "generate-object-property": "1.2.0", + "jsonpointer": "2.0.0", + "xtend": "4.0.1" + }, + "dependencies": { + "generate-function": { + "version": "2.0.0", + "bundled": true, + "optional": true + }, + "generate-object-property": { + "version": "1.2.0", + "bundled": true, + "optional": true, + "requires": { + "is-property": "1.0.2" + }, + "dependencies": { + "is-property": { + "version": "1.0.2", + "bundled": true, + "optional": true + } + } + }, + "jsonpointer": { + "version": "2.0.0", + "bundled": true, + "optional": true + }, + "xtend": { + "version": "4.0.1", + "bundled": true, + "optional": true + } + } + }, + "pinkie-promise": { + "version": "2.0.1", + "bundled": true, + "optional": true, + "requires": { + "pinkie": "2.0.4" + }, + "dependencies": { + "pinkie": { + "version": "2.0.4", + "bundled": true, + "optional": true + } + } + } + } + }, + "hawk": { + "version": "3.1.3", + "bundled": true, + "optional": true, + "requires": { + "boom": "2.10.1", + "cryptiles": "2.0.5", + "hoek": "2.16.3", + "sntp": "1.0.9" + }, + "dependencies": { + "boom": { + "version": "2.10.1", + "bundled": true, + "requires": { + "hoek": "2.16.3" + } + }, + "cryptiles": { + "version": "2.0.5", + "bundled": true, + "optional": true, + "requires": { + "boom": "2.10.1" + } + }, + "hoek": { + "version": "2.16.3", + "bundled": true + }, + "sntp": { + "version": "1.0.9", + "bundled": true, + "optional": true, + "requires": { + "hoek": "2.16.3" + } + } + } + }, + "http-signature": { + "version": "1.1.1", + "bundled": true, + "optional": true, + "requires": { + "assert-plus": "0.2.0", + "jsprim": "1.3.0", + "sshpk": "1.10.0" + }, + "dependencies": { + "assert-plus": { + "version": "0.2.0", + "bundled": true, + "optional": true + }, + "jsprim": { + "version": "1.3.0", + "bundled": true, + "optional": true, + "requires": { + "extsprintf": "1.0.2", + "json-schema": "0.2.2", + "verror": "1.3.6" + }, + "dependencies": { + "extsprintf": { + "version": "1.0.2", + "bundled": true + }, + "json-schema": { + "version": "0.2.2", + "bundled": true, + "optional": true + }, + "verror": { + "version": "1.3.6", + "bundled": true, + "optional": true, + "requires": { + "extsprintf": "1.0.2" + } + } + } + }, + "sshpk": { + "version": "1.10.0", + "bundled": true, + "optional": true, + "requires": { + "asn1": "0.2.3", + "assert-plus": "1.0.0", + "bcrypt-pbkdf": "1.0.0", + "dashdash": "1.14.0", + "ecc-jsbn": "0.1.1", + "getpass": "0.1.6", + "jodid25519": "1.0.2", + "jsbn": "0.1.0", + "tweetnacl": "0.13.3" + }, + "dependencies": { + "asn1": { + "version": "0.2.3", + "bundled": true, + "optional": true + }, + "assert-plus": { + "version": "1.0.0", + "bundled": true + }, + "bcrypt-pbkdf": { + "version": "1.0.0", + "bundled": true, + "optional": true, + "requires": { + "tweetnacl": "0.14.3" + }, + "dependencies": { + "tweetnacl": { + "version": "0.14.3", + "bundled": true, + "optional": true + } + } + }, + "dashdash": { + "version": "1.14.0", + "bundled": true, + "optional": true, + "requires": { + "assert-plus": "1.0.0" + } + }, + "ecc-jsbn": { + "version": "0.1.1", + "bundled": true, + "optional": true, + "requires": { + "jsbn": "0.1.0" + } + }, + "getpass": { + "version": "0.1.6", + "bundled": true, + "optional": true, + "requires": { + "assert-plus": "1.0.0" + } + }, + "jodid25519": { + "version": "1.0.2", + "bundled": true, + "optional": true, + "requires": { + "jsbn": "0.1.0" + } + }, + "jsbn": { + "version": "0.1.0", + "bundled": true, + "optional": true + }, + "tweetnacl": { + "version": "0.13.3", + "bundled": true, + "optional": true + } + } + } + } + }, + "is-typedarray": { + "version": "1.0.0", + "bundled": true, + "optional": true + }, + "isstream": { + "version": "0.1.2", + "bundled": true, + "optional": true + }, + "json-stringify-safe": { + "version": "5.0.1", + "bundled": true, + "optional": true + }, + "mime-types": { + "version": "2.1.11", + "bundled": true, + "requires": { + "mime-db": "1.23.0" + }, + "dependencies": { + "mime-db": { + "version": "1.23.0", + "bundled": true + } + } + }, + "node-uuid": { + "version": "1.4.7", + "bundled": true, + "optional": true + }, + "oauth-sign": { + "version": "0.8.2", + "bundled": true, + "optional": true + }, + "qs": { + "version": "6.2.1", + "bundled": true, + "optional": true + }, + "stringstream": { + "version": "0.0.5", + "bundled": true, + "optional": true + }, + "tough-cookie": { + "version": "2.3.1", + "bundled": true, + "optional": true + }, + "tunnel-agent": { + "version": "0.4.3", + "bundled": true, + "optional": true + } + } + }, + "rimraf": { + "version": "2.5.4", + "bundled": true, + "requires": { + "glob": "7.0.6" + }, + "dependencies": { + "glob": { + "version": "7.0.6", + "bundled": true, + "requires": { + "fs.realpath": "1.0.0", + "inflight": "1.0.5", + "inherits": "2.0.1", + "minimatch": "3.0.3", + "once": "1.3.3", + "path-is-absolute": "1.0.0" + }, + "dependencies": { + "fs.realpath": { + "version": "1.0.0", + "bundled": true + }, + "inflight": { + "version": "1.0.5", + "bundled": true, + "requires": { + "once": "1.3.3", + "wrappy": "1.0.2" + }, + "dependencies": { + "wrappy": { + "version": "1.0.2", + "bundled": true + } + } + }, + "inherits": { + "version": "2.0.1", + "bundled": true + }, + "minimatch": { + "version": "3.0.3", + "bundled": true, + "requires": { + "brace-expansion": "1.1.6" + }, + "dependencies": { + "brace-expansion": { + "version": "1.1.6", + "bundled": true, + "requires": { + "balanced-match": "0.4.2", + "concat-map": "0.0.1" + }, + "dependencies": { + "balanced-match": { + "version": "0.4.2", + "bundled": true + }, + "concat-map": { + "version": "0.0.1", + "bundled": true + } + } + } + } + }, + "once": { + "version": "1.3.3", + "bundled": true, + "requires": { + "wrappy": "1.0.2" + }, + "dependencies": { + "wrappy": { + "version": "1.0.2", + "bundled": true + } + } + }, + "path-is-absolute": { + "version": "1.0.0", + "bundled": true + } + } + } + } + }, + "semver": { + "version": "5.3.0", + "bundled": true, + "optional": true + }, + "tar": { + "version": "2.2.1", + "bundled": true, + "requires": { + "block-stream": "0.0.9", + "fstream": "1.0.10", + "inherits": "2.0.1" + }, + "dependencies": { + "block-stream": { + "version": "0.0.9", + "bundled": true, + "requires": { + "inherits": "2.0.1" + } + }, + "fstream": { + "version": "1.0.10", + "bundled": true, + "requires": { + "graceful-fs": "4.1.6", + "inherits": "2.0.1", + "mkdirp": "0.5.1", + "rimraf": "2.5.4" + }, + "dependencies": { + "graceful-fs": { + "version": "4.1.6", + "bundled": true + } + } + }, + "inherits": { + "version": "2.0.1", + "bundled": true + } + } + }, + "tar-pack": { + "version": "3.1.4", + "bundled": true, + "optional": true, + "requires": { + "debug": "2.2.0", + "fstream": "1.0.10", + "fstream-ignore": "1.0.5", + "once": "1.3.3", + "readable-stream": "2.1.5", + "rimraf": "2.5.4", + "tar": "2.2.1", + "uid-number": "0.0.6" + }, + "dependencies": { + "debug": { + "version": "2.2.0", + "bundled": true, + "optional": true, + "requires": { + "ms": "0.7.1" + }, + "dependencies": { + "ms": { + "version": "0.7.1", + "bundled": true, + "optional": true + } + } + }, + "fstream": { + "version": "1.0.10", + "bundled": true, + "requires": { + "graceful-fs": "4.1.6", + "inherits": "2.0.1", + "mkdirp": "0.5.1", + "rimraf": "2.5.4" + }, + "dependencies": { + "graceful-fs": { + "version": "4.1.6", + "bundled": true + }, + "inherits": { + "version": "2.0.1", + "bundled": true + } + } + }, + "fstream-ignore": { + "version": "1.0.5", + "bundled": true, + "optional": true, + "requires": { + "fstream": "1.0.10", + "inherits": "2.0.1", + "minimatch": "3.0.3" + }, + "dependencies": { + "inherits": { + "version": "2.0.1", + "bundled": true, + "optional": true + }, + "minimatch": { + "version": "3.0.3", + "bundled": true, + "optional": true, + "requires": { + "brace-expansion": "1.1.6" + }, + "dependencies": { + "brace-expansion": { + "version": "1.1.6", + "bundled": true, + "optional": true, + "requires": { + "balanced-match": "0.4.2", + "concat-map": "0.0.1" + }, + "dependencies": { + "balanced-match": { + "version": "0.4.2", + "bundled": true, + "optional": true + }, + "concat-map": { + "version": "0.0.1", + "bundled": true, + "optional": true + } + } + } + } + } + } + }, + "once": { + "version": "1.3.3", + "bundled": true, + "optional": true, + "requires": { + "wrappy": "1.0.2" + }, + "dependencies": { + "wrappy": { + "version": "1.0.2", + "bundled": true, + "optional": true + } + } + }, + "readable-stream": { + "version": "2.1.5", + "bundled": true, + "optional": true, + "requires": { + "buffer-shims": "1.0.0", + "core-util-is": "1.0.2", + "inherits": "2.0.1", + "isarray": "1.0.0", + "process-nextick-args": "1.0.7", + "string_decoder": "0.10.31", + "util-deprecate": "1.0.2" + }, + "dependencies": { + "buffer-shims": { + "version": "1.0.0", + "bundled": true, + "optional": true + }, + "core-util-is": { + "version": "1.0.2", + "bundled": true, + "optional": true + }, + "inherits": { + "version": "2.0.1", + "bundled": true, + "optional": true + }, + "isarray": { + "version": "1.0.0", + "bundled": true, + "optional": true + }, + "process-nextick-args": { + "version": "1.0.7", + "bundled": true, + "optional": true + }, + "string_decoder": { + "version": "0.10.31", + "bundled": true, + "optional": true + }, + "util-deprecate": { + "version": "1.0.2", + "bundled": true, + "optional": true + } + } + }, + "uid-number": { + "version": "0.0.6", + "bundled": true, + "optional": true + } + } + } + } + } + } + }, "util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", @@ -1441,15 +2559,6 @@ "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" }, - "xpc-connection": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/xpc-connection/-/xpc-connection-0.1.4.tgz", - "integrity": "sha1-3Nf6oq7Gt6bhjMXdrQQvejTHcVY=", - "optional": true, - "requires": { - "nan": "2.6.2" - } - }, "yallist": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", diff --git a/package.json b/package.json index d895785..d1b2e33 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "main": "index.js", "scripts": { "test": "mocha tests", - "docs" : "sh docs.sh" + "docs": "sh docs.sh" }, "repository": { "type": "git",