From 78df4f4d8424ba6beef4343ad8e42f51e53f7f5c Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Fri, 29 Dec 2017 15:45:35 -0800 Subject: [PATCH] pkg: update deps. --- lib/utils/util.js | 9 +++++++++ package.json | 38 +++++++++++++++++++------------------- test/data/README.md | 24 ++++++++++++++++++++++++ 3 files changed, 52 insertions(+), 19 deletions(-) create mode 100644 test/data/README.md diff --git a/lib/utils/util.js b/lib/utils/util.js index bed8f375..a43ce46a 100644 --- a/lib/utils/util.js +++ b/lib/utils/util.js @@ -59,6 +59,15 @@ util.now = function now() { return Math.floor(Date.now() / 1000); }; +/** + * Get current time in unix time (milliseconds). + * @returns {Number} + */ + +util.ms = function ms() { + return Date.now(); +}; + /** * Create a Date ISO string from time in unix time (seconds). * @param {Number?} time - Seconds in unix time. diff --git a/package.json b/package.json index fbd8c710..8af4e944 100644 --- a/package.json +++ b/package.json @@ -23,26 +23,26 @@ "node": ">=7.6.0" }, "dependencies": { - "bcfg": "~0.0.0", - "bclient": "~0.0.0", - "bcrypto": "~0.0.0", - "bdb": "~0.0.0", - "bdns": "~0.0.0", - "bevent": "~0.0.0", - "bfile": "~0.0.0", - "bfilter": "~0.0.0", - "binet": "~0.0.0", - "blgr": "~0.0.0", - "bmutex": "~0.0.0", + "bcfg": "~0.0.1", + "bclient": "~0.0.1", + "bcrypto": "~0.0.1", + "bdb": "~0.0.1", + "bdns": "~0.0.1", + "bevent": "~0.0.1", + "bfile": "~0.0.1", + "bfilter": "~0.0.1", + "binet": "~0.0.1", + "blgr": "~0.0.1", + "bmutex": "~0.0.1", "bn.js": "~4.11.8", - "bsock": "~0.0.0", - "bsocks": "~0.0.0", - "bstring": "~0.0.0", - "btcp": "~0.0.0", - "bufio": "~0.0.0", - "bupnp": "~0.0.0", - "bval": "~0.0.0", - "bweb": "~0.0.0", + "bsock": "~0.0.1", + "bsocks": "~0.0.1", + "bstring": "~0.0.1", + "btcp": "~0.0.1", + "bufio": "~0.0.1", + "bupnp": "~0.0.1", + "bval": "~0.0.1", + "bweb": "~0.0.1", "n64": "~0.1.0" }, "devDependencies": { diff --git a/test/data/README.md b/test/data/README.md new file mode 100644 index 00000000..11073ab8 --- /dev/null +++ b/test/data/README.md @@ -0,0 +1,24 @@ +Multiple test vectors are based on Bitcoin Core. + +The MIT License (MIT) + +Copyright (c) 2009-2017 The Bitcoin Core developers +Copyright (c) 2009-2017 Bitcoin Developers + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE.