Socket
Socket
Sign inDemoInstall

djb2a

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

djb2a - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

index.d.ts

5

index.js

@@ -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;

12

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc