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

@types/koa-json-error

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/koa-json-error - npm Package Compare versions

Comparing version
3.1.2
to
3.1.3
+1
-1
koa-json-error/index.d.ts
// Type definitions for koa-json-error 3.1
// Project: https://github.com/koajs/json-error
// Definitions by: Mudkip <https://github.com/mudkipme>
// Definitions: https://github.com/mudkipme/DefinitelyTyped
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3

@@ -6,0 +6,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/koa-json-error",
"version": "3.1.2",
"version": "3.1.3",
"description": "TypeScript definitions for koa-json-error",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/koa-json-error",
"license": "MIT",

@@ -14,5 +15,7 @@ "contributors": [

"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/koa-json-error"
},

@@ -23,4 +26,4 @@ "scripts": {},

},
"typesPublisherContentHash": "1f1753638273fdff4089f9e5cb1ce5c945cbb37612c9224fda77cd7137ffe61f",
"typeScriptVersion": "2.3"
"typesPublisherContentHash": "fbb96c08fbe041a87cc179912bf317a28c348d1b917bc829c363ef3cb5328ce6",
"typeScriptVersion": "3.6"
}

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

# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/koa-json-error
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/koa-json-error.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/koa-json-error/index.d.ts)
````ts
// Type definitions for koa-json-error 3.1
// Project: https://github.com/koajs/json-error
// Definitions by: Mudkip <https://github.com/mudkipme>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
Additional Details
* Last updated: Thu, 09 Nov 2017 09:38:00 GMT
* Dependencies: koa
import * as Koa from "koa";
interface JSONErrorOptions {
/**
* Perform some task before calling `options.format`. Must be a function with the original err as its only argument.
*/
preFormat?(err: Error): any;
/**
* Runs inmediatly after `options.preFormat`. It receives two arguments: the original `err` and the output of `options.preFormat`. It should `return` a newly formatted error.
*/
format?(err: Error, obj: any): any;
/**
* Runs inmediatly after `options.format`. It receives two arguments: the original `err` and the output of `options.format`. It should `return` a newly formatted error.
*/
postFormat?(err: Error, obj: any): any;
}
/**
* Error handler for pure Koa 2.0.0+ JSON apps
*/
declare function jsonError(options?: JSONErrorOptions): Koa.Middleware;
declare namespace jsonError {}
export = jsonError;
````
### Additional Details
* Last updated: Fri, 09 Jul 2021 02:32:32 GMT
* Dependencies: [@types/koa](https://npmjs.com/package/@types/koa)
* Global values: none
# Credits
These definitions were written by Mudkip <https://github.com/mudkipme>.
These definitions were written by [Mudkip](https://github.com/mudkipme).