aboutsummaryrefslogtreecommitdiff
path: root/node_modules/hash.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/hash.js')
-rw-r--r--node_modules/hash.js/.npmignore2
-rw-r--r--node_modules/hash.js/lib/hash.d.ts5
-rw-r--r--node_modules/hash.js/package.json8
3 files changed, 7 insertions, 8 deletions
diff --git a/node_modules/hash.js/.npmignore b/node_modules/hash.js/.npmignore
deleted file mode 100644
index 1ca957177..000000000
--- a/node_modules/hash.js/.npmignore
+++ /dev/null
@@ -1,2 +0,0 @@
-node_modules/
-npm-debug.log
diff --git a/node_modules/hash.js/lib/hash.d.ts b/node_modules/hash.js/lib/hash.d.ts
index 2994a75ed..abbb5c531 100644
--- a/node_modules/hash.js/lib/hash.d.ts
+++ b/node_modules/hash.js/lib/hash.d.ts
@@ -1,7 +1,7 @@
declare var hash: Hash;
declare module "hash.js" {
- export default hash;
+ export = hash;
}
interface BlockHash<T> {
@@ -14,7 +14,8 @@ interface MessageDigest<T> {
blockSize: number
outSize: number
update(msg: any, enc?: 'hex'): T
- digest(enc?: 'hex'): T
+ digest(): number[]
+ digest(enc: 'hex'): string
}
interface Hash {
diff --git a/node_modules/hash.js/package.json b/node_modules/hash.js/package.json
index 20524c865..b06072b14 100644
--- a/node_modules/hash.js/package.json
+++ b/node_modules/hash.js/package.json
@@ -1,6 +1,6 @@
{
"name": "hash.js",
- "version": "1.1.3",
+ "version": "1.1.5",
"description": "Various hash functions that could be run by both browser and node",
"main": "lib/hash.js",
"typings": "lib/hash.d.ts",
@@ -26,10 +26,10 @@
"homepage": "https://github.com/indutny/hash.js",
"dependencies": {
"inherits": "^2.0.3",
- "minimalistic-assert": "^1.0.0"
+ "minimalistic-assert": "^1.0.1"
},
"devDependencies": {
- "eslint": "^4.0.0",
- "mocha": "^3.4.2"
+ "eslint": "^4.19.1",
+ "mocha": "^5.2.0"
}
}