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

@qiwi/substrate-types

Package Overview
Dependencies
Maintainers
5
Versions
105
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@qiwi/substrate-types - npm Package Compare versions

Comparing version 1.14.0 to 1.15.0

lib/es5/IMiddleware.d.ts

7

CHANGELOG.md

@@ -0,1 +1,8 @@

# [@qiwi/substrate-types-v1.15.0](https://github.com/qiwi/substrate/compare/v1.14.0...v1.15.0) (2019-06-30)
### Features
* add IMiddleware ([a53f7a6](https://github.com/qiwi/substrate/commit/a53f7a6)), closes [#6](https://github.com/qiwi/substrate/issues/6)
# [@qiwi/substrate-types-v1.14.0](https://github.com/qiwi/substrate/compare/v1.13.0...v1.14.0) (2019-06-07)

@@ -2,0 +9,0 @@

1

lib/es5/index.d.ts

@@ -18,1 +18,2 @@ export { IStringMap } from './IStringMap';

export { IConfigurable } from './IConfigurable';
export { IMiddleware, IAsyncMiddleware, IErrorMiddleware, IRequestMiddleware, IRequest, IResponse, INext } from './IMiddleware';

@@ -18,1 +18,2 @@ export { IStringMap } from './IStringMap';

export { IConfigurable } from './IConfigurable';
export { IMiddleware, IAsyncMiddleware, IErrorMiddleware, IRequestMiddleware, IRequest, IResponse, INext } from './IMiddleware';

@@ -18,1 +18,2 @@ export { IStringMap } from './IStringMap'

export { IConfigurable } from './IConfigurable'
export { IMiddleware, IAsyncMiddleware, IErrorMiddleware, IRequestMiddleware, IRequest, IResponse, INext } from './IMiddleware'

21

package.json
{
"name": "@qiwi/substrate-types",
"version": "1.14.0",
"version": "1.15.0",
"main": "lib/es5/index.js",

@@ -35,22 +35,21 @@ "types": "typings/index.d.ts",

],
"dependencies": {},
"devDependencies": {
"@types/bluebird": "^3.5.27",
"@types/jest": "^24.0.13",
"@types/lodash": "^4.14.133",
"@types/node": "^12.0.4",
"@types/jest": "^24.0.15",
"@types/lodash": "^4.14.135",
"@types/node": "^12.0.10",
"@types/parsimmon": "^1.10.0",
"@types/underscore": "^1.8.18",
"@types/underscore": "^1.9.1",
"bluebird": "^3.5.5",
"dts-generator": "^3.0.0",
"dtslint": "^0.7.7",
"flowgen": "^1.8.3",
"dtslint": "^0.8.0",
"flowgen": "^1.9.0",
"lodash": "^4.17.11",
"replace-in-file": "^4.1.0",
"ts-loader": "^6.0.2",
"ts-node": "^8.2.0",
"ts-loader": "^6.0.4",
"ts-node": "^8.3.0",
"ts-to-flow": "^0.0.3",
"typescript": "3.5.1",
"typescript": "3.5.2",
"underscore": "^1.9.1"
}
}

@@ -57,2 +57,32 @@ declare module '@qiwi/substrate-types/lib/es5/IAnyMap' {

}
declare module '@qiwi/substrate-types/lib/es5/IMiddleware' {
interface IRequest {
res?: IResponse;
[key: string]: any;
}
interface IResponse {
status: (status: number) => IResponse;
send: (arg: string | object) => IResponse;
json: () => IResponse;
req?: IRequest;
[key: string]: any;
}
interface INext {
(...args: any[]): any;
}
interface IRequestMiddleware {
(req: IRequest, res: IResponse, next?: INext): void;
}
interface IErrorMiddleware {
(err: Error, req: IRequest, res: IResponse, next?: INext): void;
}
type IMiddleware = IRequestMiddleware | IErrorMiddleware;
interface IAsyncRequestMiddleware {
(req: IRequest, res: IResponse, next?: INext): Promise<void>;
}
interface IAsyncErrorMiddleware {
(err: Error, req: IRequest, res: IResponse, next?: INext): Promise<void>;
}
type IAsyncMiddleware = IAsyncRequestMiddleware | IAsyncErrorMiddleware;
}
declare module '@qiwi/substrate-types/lib/es5/IMoney' {

@@ -158,2 +188,3 @@ import { ICurrency } from '@qiwi/substrate-types/lib/es5/ICurrency';

export { IConfigurable } from '@qiwi/substrate-types/lib/es5/IConfigurable';
export { IMiddleware, IAsyncMiddleware, IErrorMiddleware, IRequestMiddleware, IRequest, IResponse, INext } from '@qiwi/substrate-types/lib/es5/IMiddleware';
}

@@ -160,0 +191,0 @@ declare module '@qiwi/substrate-types' {

/**
* Flowtype definitions for index
* Generated by Flowgen from a Typescript Definition
* Flowgen v1.8.3
* Flowgen v1.9.0
* Author: [Joar Wilk](http://twitter.com/joarwilk)

@@ -68,2 +68,34 @@ * Repo: http://github.com/joarwilk/flowgen

}
declare module "@qiwi/substrate-types/lib/es5/IMiddleware" {
declare interface IRequest {
res?: IResponse;
[key: string]: any;
}
declare interface IResponse {
status: (status: number) => IResponse;
send: (arg: string | { [key: string]: any }) => IResponse;
json: () => IResponse;
req?: IRequest;
[key: string]: any;
}
declare interface INext {
(...args: any[]): any;
}
declare interface IRequestMiddleware {
(req: IRequest, res: IResponse, next?: INext): void;
}
declare interface IErrorMiddleware {
(err: Error, req: IRequest, res: IResponse, next?: INext): void;
}
declare type IMiddleware = IRequestMiddleware | IErrorMiddleware;
declare interface IAsyncRequestMiddleware {
(req: IRequest, res: IResponse, next?: INext): Promise<void>;
}
declare interface IAsyncErrorMiddleware {
(err: Error, req: IRequest, res: IResponse, next?: INext): Promise<void>;
}
declare type IAsyncMiddleware =
| IAsyncRequestMiddleware
| IAsyncErrorMiddleware;
}
declare module "@qiwi/substrate-types/lib/es5/IMoney" {

@@ -232,2 +264,12 @@ import type { ICurrency } from "@qiwi/substrate-types/lib/es5/ICurrency";

} from "@qiwi/substrate-types/lib/es5/IConfigurable";
declare export {
IMiddleware,
IAsyncMiddleware,
IErrorMiddleware,
IRequestMiddleware,
IRequest,
IResponse,
INext
} from "@qiwi/substrate-types/lib/es5/IMiddleware";
}

@@ -234,0 +276,0 @@ declare module "@qiwi/substrate-types" {

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