New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@types/xxhashjs

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/xxhashjs - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

6

xxhashjs/index.d.ts

@@ -1,7 +0,1 @@

// Type definitions for xxhashjs 0.2
// Project: https://github.com/pierrec/js-xxhash
// Definitions by: Dibyo Majumdar <https://github.com/mDibyo>
// Nick Zahn <https://github.com/Manc>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node" />

@@ -8,0 +2,0 @@

15

xxhashjs/package.json
{
"name": "@types/xxhashjs",
"version": "0.2.2",
"version": "0.2.3",
"description": "TypeScript definitions for xxhashjs",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/xxhashjs",
"license": "MIT",

@@ -9,9 +10,9 @@ "contributors": [

"name": "Dibyo Majumdar",
"url": "https://github.com/mDibyo",
"githubUsername": "mDibyo"
"githubUsername": "mDibyo",
"url": "https://github.com/mDibyo"
},
{
"name": "Nick Zahn",
"url": "https://github.com/Manc",
"githubUsername": "Manc"
"githubUsername": "Manc",
"url": "https://github.com/Manc"
}

@@ -30,4 +31,4 @@ ],

},
"typesPublisherContentHash": "4e7afe1b0870ed34af86d6d8e5c5f3ed5735d769d29a42a6e551a3a2ef4cbdc6",
"typeScriptVersion": "3.0"
"typesPublisherContentHash": "0f035861e0064fa467e757a23bbafee7a027bdba8d501d334e22ea8eddd6a1d0",
"typeScriptVersion": "4.5"
}

@@ -9,9 +9,36 @@ # Installation

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/xxhashjs.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/xxhashjs/index.d.ts)
````ts
/// <reference types="node" />
export as namespace XXH;
// Ideally we would have a type definition for the "cuint" package.
// The following interface `UINT` is to resolve the bare minimum.
export interface UINT {
toNumber(): number;
toString(radix?: number): string;
}
export interface HashObject {
init(seed: number): this;
update(data: string | ArrayBuffer | Buffer): this;
digest(): UINT;
}
export interface HashInterface {
(seed?: number): HashObject;
(data: string | ArrayBuffer | Buffer, seed: number): UINT;
}
export const h32: HashInterface;
export const h64: HashInterface;
````
### Additional Details
* Last updated: Fri, 15 May 2020 13:13:07 GMT
* Last updated: Wed, 18 Oct 2023 18:04:04 GMT
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)
* Global values: `XXH`
# Credits
These definitions were written by [Dibyo Majumdar](https://github.com/mDibyo), and [Nick Zahn](https://github.com/Manc).
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