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

@types/pg

Package Overview
Dependencies
Maintainers
1
Versions
99
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/pg - npm Package Compare versions

Comparing version 7.4.9 to 7.4.10

51

pg/index.d.ts

@@ -20,2 +20,3 @@ // Type definitions for pg 7.4

keepAlive?: boolean;
stream?: stream.Duplex;
}

@@ -54,2 +55,6 @@

export interface Submittable {
submit: (connection: Connection) => void;
}
export interface QueryArrayConfig extends QueryConfig {

@@ -94,2 +99,44 @@ rowMode: 'array';

export interface QueryParse {
name: string;
text: string;
types: string[];
}
export interface BindConfig {
portal?: string;
statement?: string;
binary?: string;
values?: Array<(Buffer | null | undefined | string)>;
}
export interface ExecuteConfig {
portal?: string;
rows?: string;
}
export interface MessageConfig {
type: string;
name?: string;
}
export class Connection extends events.EventEmitter {
readonly stream: stream.Duplex;
constructor(config?: ConnectionConfig);
bind(config: BindConfig | null, more: boolean): void;
execute(config: ExecuteConfig | null, more: boolean): void;
parse(query: QueryParse, more: boolean): void;
query(text: string): void;
describe(msg: MessageConfig, more: boolean): void;
close(msg: MessageConfig, more: boolean): void;
flush(): void;
sync(): void;
end(): void;
}
export class Pool extends events.EventEmitter {

@@ -111,3 +158,3 @@ // `new Pool('pg://user@localhost/mydb')` is not allowed.

query(queryStream: QueryConfig & stream.Readable): stream.Readable;
query<T extends Submittable>(queryStream: T): T;
query(queryConfig: QueryArrayConfig): Promise<QueryArrayResult>;

@@ -130,3 +177,3 @@ query(queryConfig: QueryConfig): Promise<QueryResult>;

query(queryStream: QueryConfig & stream.Readable): stream.Readable;
query<T extends Submittable>(queryStream: T): T;
query(queryConfig: QueryArrayConfig): Promise<QueryArrayResult>;

@@ -133,0 +180,0 @@ query(queryConfig: QueryConfig): Promise<QueryResult>;

6

pg/package.json
{
"name": "@types/pg",
"version": "7.4.9",
"version": "7.4.10",
"description": "TypeScript definitions for pg",

@@ -16,3 +16,3 @@ "license": "MIT",

"type": "git",
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git.git"
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git"
},

@@ -25,4 +25,4 @@ "scripts": {},

},
"typesPublisherContentHash": "89b60b34580da16d0e975ce76e545396f961aced4821fcb1ab63dcd29c06d5d5",
"typesPublisherContentHash": "3cbe9db6a8a1725403483f7ac74f2cf5d8bfd326debbe96a0d7be93fae263b9b",
"typeScriptVersion": "2.0"
}

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

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped.git/tree/master/types/pg
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pg
Additional Details
* Last updated: Tue, 15 May 2018 17:48:31 GMT
* Last updated: Thu, 28 Jun 2018 00:13:40 GMT
* Dependencies: events, stream, pg-types, tls, node

@@ -14,0 +14,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