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

@types/co-body

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/co-body - npm Package Compare versions

Comparing version 5.1.1 to 6.1.0

20

co-body/index.d.ts

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

// Type definitions for co-body 5.1
// Type definitions for co-body 6.1
// Project: https://github.com/cojs/co-body
// Definitions by: Joshua DeVinney <https://github.com/geoffreak>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
/// <reference types="node"/>
/// <reference types="qs"/>

@@ -16,10 +14,22 @@ import * as http from 'http';

export interface Parse {
interface Parse {
/**
* @async
*/
(context: Context, options?: Options): Promise<any>;
/**
* @async
*/
text: (context: Context, options?: Options) => Promise<any>;
/**
* @async
*/
form: (context: Context, options?: Options) => Promise<any>;
/**
* @async
*/
json: (context: Context, options?: Options) => Promise<any>;
}
export interface Options {
interface Options {
limit?: number | string | undefined;

@@ -26,0 +36,0 @@ strict?: boolean | undefined;

{
"name": "@types/co-body",
"version": "5.1.1",
"version": "6.1.0",
"description": "TypeScript definitions for co-body",

@@ -26,4 +26,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/co-body",

},
"typesPublisherContentHash": "69024dca97ab404e066ecf33fb38380cf72d6b5af8a2dc2c05dc143005408016",
"typesPublisherContentHash": "efda177d429b470d7e43f8f93f8ace23a7b6670df2a39dbf16fdf4334120b78a",
"typeScriptVersion": "3.6"
}

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

````ts
// Type definitions for co-body 5.1
// Type definitions for co-body 6.1
// Project: https://github.com/cojs/co-body
// Definitions by: Joshua DeVinney <https://github.com/geoffreak>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
/// <reference types="node"/>
/// <reference types="qs"/>

@@ -27,10 +25,22 @@ import * as http from 'http';

export interface Parse {
interface Parse {
/**
* @async
*/
(context: Context, options?: Options): Promise<any>;
/**
* @async
*/
text: (context: Context, options?: Options) => Promise<any>;
/**
* @async
*/
form: (context: Context, options?: Options) => Promise<any>;
/**
* @async
*/
json: (context: Context, options?: Options) => Promise<any>;
}
export interface Options {
interface Options {
limit?: number | string | undefined;

@@ -54,3 +64,3 @@ strict?: boolean | undefined;

### Additional Details
* Last updated: Tue, 06 Jul 2021 18:05:54 GMT
* Last updated: Thu, 29 Jul 2021 13:31:24 GMT
* Dependencies: [@types/qs](https://npmjs.com/package/@types/qs), [@types/node](https://npmjs.com/package/@types/node)

@@ -57,0 +67,0 @@ * Global values: none

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