New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@types/md5

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/md5 - npm Package Compare versions

Comparing version
2.3.0
to
2.3.1
+3
-3
md5/index.d.ts

@@ -24,5 +24,5 @@ // Type definitions for md5 2.3

interface Options {
asBytes?: boolean;
asString?: boolean;
encoding?: 'binary' | string;
asBytes?: boolean | undefined;
asString?: boolean | undefined;
encoding?: 'binary' | string | undefined;
}

@@ -29,0 +29,0 @@ }

{
"name": "@types/md5",
"version": "2.3.0",
"version": "2.3.1",
"description": "TypeScript definitions for md5",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/md5",
"license": "MIT",

@@ -39,4 +40,4 @@ "contributors": [

},
"typesPublisherContentHash": "299895b3432d3adb1d46e1739ff95903a45b00c37240bf6eeacf2d9c29c26382",
"typeScriptVersion": "3.4"
"typesPublisherContentHash": "56dc6dd2a4c8d45844cec11b895fffd678d0f8e8af834c163202ab09fac7f225",
"typeScriptVersion": "3.6"
}

@@ -9,5 +9,39 @@ # Installation

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/md5.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/md5/index.d.ts)
````ts
// Type definitions for md5 2.3
// Project: https://github.com/pvorb/node-md5
// Definitions by: Bill Sourour <https://github.com/arcdev1>
// Cameron Crothers <https://github.com/jprogrammer>
// Piotr Błażejewicz <https://github.com/peterblazejewicz>
// Ruslan Arkhipau <https://github.com/DethAriel>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node" />
/**
* js function for hashing messages with MD5
*
* @param message - a string or buffer to hash
* @param options
* @returns the resultant MD5 hash of the given message
*/
declare function md5(message: string | Buffer | number[] | Uint8Array, options: md5.Options & { asBytes: true }): number[];
declare function md5(message: string | Buffer | number[] | Uint8Array, options?: Pick<md5.Options, 'asString' | 'encoding'>): string;
declare function md5(message: string | Buffer | number[] | Uint8Array, options?: md5.Options): string | number[];
declare namespace md5 {
interface Options {
asBytes?: boolean | undefined;
asString?: boolean | undefined;
encoding?: 'binary' | string | undefined;
}
}
export = md5;
````
### Additional Details
* Last updated: Mon, 08 Feb 2021 08:22:47 GMT
* Last updated: Tue, 06 Jul 2021 22:03:02 GMT
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)

@@ -14,0 +48,0 @@ * Global values: none