Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/spark-md5

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/spark-md5 - npm Package Compare versions

Comparing version 3.0.1 to 3.0.2

59

spark-md5/index.d.ts
// Type definitions for spark-md5 3.0
// Project: https://github.com/satazor/js-spark-md5#readme
// Definitions by: Bastien Moulia <https://github.com/bastienmoulia>
// Florian Keller <https://github.com/ffflorian>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
interface State {
buff: Uint8Array;
length: number;
hash: number[];
}
// copy of ArrayBuffer because of a conflict with the class SparkMD5.ArrayBuffer
interface ArrayBufferCopy extends ArrayBuffer {}
type JsArrayBuffer = ArrayBuffer;
declare class SparkMD5 {
constructor();
append(str: string): SparkMD5;
appendBinary(contents: string): SparkMD5;
end(raw?: boolean): string;
reset(): SparkMD5;
getState(): State;
setState(state: State): State;
destroy(): void;
static hash(str: string, raw?: boolean): string;
static hashBinary(content: string, raw?: boolean): string;
constructor();
static hash(str: string, raw?: boolean): string;
static hashBinary(content: string, raw?: boolean): string;
append(str: string): SparkMD5;
appendBinary(contents: string): SparkMD5;
destroy(): void;
end(raw?: boolean): string;
getState(): SparkMD5.State;
reset(): SparkMD5;
setState(state: SparkMD5.State): SparkMD5.State;
}
declare namespace SparkMD5 {
class ArrayBuffer {
constructor();
append(str: ArrayBufferCopy): ArrayBuffer;
end(raw?: boolean): string;
reset(): ArrayBuffer;
getState(): State;
setState(state: State): State;
destroy(): void;
static hash(arr: ArrayBufferCopy, raw?: boolean): string;
}
interface State {
buff: Uint8Array;
hash: number[];
length: number;
}
class ArrayBuffer {
constructor();
static hash(arr: JsArrayBuffer, raw?: boolean): string;
append(str: JsArrayBuffer): ArrayBuffer;
destroy(): void;
end(raw?: boolean): string;
getState(): State;
reset(): ArrayBuffer;
setState(state: State): State;
}
}
export = SparkMD5;
{
"name": "@types/spark-md5",
"version": "3.0.1",
"version": "3.0.2",
"description": "TypeScript definitions for spark-md5",

@@ -11,13 +11,20 @@ "license": "MIT",

"githubUsername": "bastienmoulia"
},
{
"name": "Florian Keller",
"url": "https://github.com/ffflorian",
"githubUsername": "ffflorian"
}
],
"main": "",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git"
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
"directory": "types/spark-md5"
},
"scripts": {},
"dependencies": {},
"typesPublisherContentHash": "2a43caed2d990f7e42f104d1ba1b29d2fd582cf68e20828026785d2fc0774a6b",
"typeScriptVersion": "2.3"
"typesPublisherContentHash": "b9d6e6849151ba1a51a2686b409155eab11889142c8d31f367b5194d8c8398e7",
"typeScriptVersion": "2.8"
}

@@ -8,6 +8,6 @@ # Installation

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/spark-md5
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/spark-md5.
Additional Details
* Last updated: Fri, 24 Aug 2018 18:22:08 GMT
### Additional Details
* Last updated: Mon, 18 Nov 2019 21:57:37 GMT
* Dependencies: none

@@ -17,2 +17,2 @@ * Global values: none

# Credits
These definitions were written by Bastien Moulia <https://github.com/bastienmoulia>.
These definitions were written by Bastien Moulia (https://github.com/bastienmoulia), and Florian Keller (https://github.com/ffflorian).

Sorry, the diff of this file is not supported yet

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