Comparing version 1.0.0 to 1.1.0
@@ -6,3 +6,3 @@ 'use strict'; | ||
module.exports = string => { | ||
const djb2a = string => { | ||
let hash = MAGIC_CONSTANT; | ||
@@ -18,1 +18,4 @@ | ||
}; | ||
module.exports = djb2a; | ||
module.exports.default = djb2a; |
{ | ||
"name": "djb2a", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "DJB2a non-cryptographic hash function", | ||
@@ -16,6 +16,7 @@ "license": "MIT", | ||
"scripts": { | ||
"test": "xo && ava" | ||
"test": "xo && ava && tsd-check" | ||
}, | ||
"files": [ | ||
"index.js" | ||
"index.js", | ||
"index.d.ts" | ||
], | ||
@@ -34,5 +35,6 @@ "keywords": [ | ||
"devDependencies": { | ||
"ava": "*", | ||
"xo": "*" | ||
"ava": "^1.3.1", | ||
"tsd-check": "^0.5.0", | ||
"xo": "^0.24.0" | ||
} | ||
} |
@@ -24,3 +24,3 @@ # djb2a [![Build Status](https://travis-ci.org/sindresorhus/djb2a.svg?branch=master)](https://travis-ci.org/sindresorhus/djb2a) | ||
It returns a positive integer. | ||
It returns the hash as a positive integer. | ||
@@ -27,0 +27,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3183
5
19
3