Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@types/msgpack

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/msgpack - npm Package Compare versions

Comparing version
0.0.30
to
0.0.31
+8
-8
msgpack/index.d.ts

@@ -39,3 +39,3 @@ // Type definitions for msgpack.js - MessagePack JavaScript Implementation

*/
worker?: boolean;
worker?: boolean | undefined;

@@ -45,7 +45,7 @@ /**

*/
timeout?: number;
timeout?: number | undefined;
before?: (xhr: XMLHttpRequest, option: MsgPackUploadOption) => void;
before?: ((xhr: XMLHttpRequest, option: MsgPackUploadOption) => void) | undefined;
after?: (xhr: XMLHttpRequest, option: MsgPackUploadOption, result: MsgPackCallbackResult) => void;
after?: ((xhr: XMLHttpRequest, option: MsgPackUploadOption, result: MsgPackCallbackResult) => void) | undefined;
}

@@ -61,3 +61,3 @@

*/
worker?: boolean;
worker?: boolean | undefined;

@@ -67,7 +67,7 @@ /**

*/
timeout?: number;
timeout?: number | undefined;
before?: (xhr: XMLHttpRequest, option: MsgPackDownloadOption) => void;
before?: ((xhr: XMLHttpRequest, option: MsgPackDownloadOption) => void) | undefined;
after?: (xhr: XMLHttpRequest, option: MsgPackDownloadOption, result: MsgPackCallbackResult) => void;
after?: ((xhr: XMLHttpRequest, option: MsgPackDownloadOption, result: MsgPackCallbackResult) => void) | undefined;
}

@@ -74,0 +74,0 @@

MIT License
Copyright (c) Microsoft Corporation. All rights reserved.
Copyright (c) Microsoft Corporation.

@@ -5,0 +5,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy

{
"name": "@types/msgpack",
"version": "0.0.30",
"version": "0.0.31",
"description": "TypeScript definitions for msgpack.js - MessagePack JavaScript Implementation",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/msgpack",
"license": "MIT",

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

"name": "Shinya Mochizuki",
"url": "https://github.com/enrapt-mochizuki/"
"url": "https://github.com/enrapt-mochizuki",
"githubUsername": "enrapt-mochizuki"
}
],
"main": "",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
"directory": "types/msgpack"
},
"scripts": {},
"dependencies": {},
"typesPublisherContentHash": "e4306e30c6e00ab84c99980b1a5a5b1e3841a5e0071590b2bfcc5bdcf1b7de2c",
"typeScriptVersion": "2.0"
"typesPublisherContentHash": "ce3309ed153e260b314d90cea97367e9e88736c171ce0b71b7b92387c59309d2",
"typeScriptVersion": "3.6"
}

@@ -8,10 +8,102 @@ # Installation

# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/msgpack
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/msgpack.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/msgpack/index.d.ts)
````ts
// Type definitions for msgpack.js - MessagePack JavaScript Implementation
// Project: https://github.com/uupaa/msgpack.js/
// Definitions by: Shinya Mochizuki <https://github.com/enrapt-mochizuki/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
Additional Details
* Last updated: Thu, 17 Aug 2017 18:10:34 GMT
declare namespace msgpack {
interface MsgPackStatic {
/**
* @param data string or ByteArray.
* @param toString return string value if true.
*
* @return string or ByteArray or false. pack failed if false.
*/
pack(data: any, toString?: boolean): any;
/**
* @param data string or ByteArray.
*
* @return string or ByteArray or undefined. unpack failed if undefined.
*/
unpack(data: any): any;
worker: string;
upload(url: string, option: MsgPackUploadOption, callback: MsgPackUploadCallback): void;
download(url: string, option: MsgPackDownloadOption, callback: MsgPackDownloadCallback): void;
}
interface MsgPackUploadOption {
/**
* string or ByteArray
*/
data: any;
/**
* use WebWorker if true.
*/
worker?: boolean | undefined;
/**
* timeout sec.
*/
timeout?: number | undefined;
before?: ((xhr: XMLHttpRequest, option: MsgPackUploadOption) => void) | undefined;
after?: ((xhr: XMLHttpRequest, option: MsgPackUploadOption, result: MsgPackCallbackResult) => void) | undefined;
}
interface MsgPackUploadCallback {
(data: string, option: MsgPackUploadOption, result: MsgPackCallbackResult): void;
}
interface MsgPackDownloadOption {
/**
* use WebWorker if true.
*/
worker?: boolean | undefined;
/**
* timeout sec.
*/
timeout?: number | undefined;
before?: ((xhr: XMLHttpRequest, option: MsgPackDownloadOption) => void) | undefined;
after?: ((xhr: XMLHttpRequest, option: MsgPackDownloadOption, result: MsgPackCallbackResult) => void) | undefined;
}
interface MsgPackDownloadCallback {
/**
* @param data string or ByteArray
*/
(data: any, option: MsgPackDownloadOption, result: MsgPackCallbackResult): void;
}
interface MsgPackCallbackResult {
status: number;
ok: boolean;
}
}
declare var msgpack: msgpack.MsgPackStatic;
export = msgpack;
export as namespace msgpack;
````
### Additional Details
* Last updated: Thu, 08 Jul 2021 18:51:02 GMT
* Dependencies: none
* Global values: msgpack
* Global values: `msgpack`
# Credits
These definitions were written by Shinya Mochizuki <https://github.com/enrapt-mochizuki/>.
These definitions were written by [Shinya Mochizuki](https://github.com/enrapt-mochizuki).