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

slonik

Package Overview
Dependencies
Maintainers
1
Versions
396
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

slonik - npm Package Compare versions

Comparing version 43.0.1 to 43.0.2

34

dist/index.d.ts

@@ -1,35 +0,3 @@

/// <reference types="node" />
export { createDriverFactory, type Driver, type DriverClient, type DriverClientEventEmitter, type DriverClientState, type DriverCommand, type DriverConfiguration, type DriverEventEmitter, type DriverFactory, type DriverNotice, type DriverQueryResult, type DriverStreamResult, } from './factories/createDriverFactory';
export declare const sql: {
array: (values: readonly import("@slonik/sql-tag").PrimitiveValueExpression[], memberType: string | import("@slonik/sql-tag").SqlToken) => import("@slonik/sql-tag").ArraySqlToken;
binary: (data: Buffer) => import("@slonik/sql-tag").BinarySqlToken;
date: (date: Date) => import("@slonik/sql-tag/dist/types").DateSqlToken;
fragment: (parts: readonly string[], ...args: readonly import("@slonik/sql-tag").ValueExpression[]) => import("@slonik/sql-tag").FragmentSqlToken;
identifier: (names: readonly string[]) => import("@slonik/sql-tag").IdentifierSqlToken;
interval: (interval: import("@slonik/sql-tag/dist/types").IntervalInput) => import("@slonik/sql-tag/dist/types").IntervalSqlToken;
join: (members: readonly import("@slonik/sql-tag").ValueExpression[], glue: import("@slonik/sql-tag").SqlFragment) => import("@slonik/sql-tag").ListSqlToken;
json: (value: import("@slonik/sql-tag").SerializableValue) => import("@slonik/sql-tag").JsonSqlToken;
jsonb: (value: import("@slonik/sql-tag").SerializableValue) => import("@slonik/sql-tag").JsonBinarySqlToken;
literalValue: (value: string) => import("@slonik/sql-tag").SqlFragment;
timestamp: (date: Date) => import("@slonik/sql-tag/dist/types").TimestampSqlToken;
type: <T extends import("zod").ZodTypeAny>(parser: T) => (parts: readonly string[], ...args: readonly import("@slonik/sql-tag").ValueExpression[]) => Readonly<{
parser: T;
type: "SLONIK_TOKEN_QUERY";
sql: string;
values: import("@slonik/sql-tag").PrimitiveValueExpression[];
}>;
typeAlias: <Y extends PropertyKey>(parserAlias: Y) => (parts: readonly string[], ...args: readonly import("@slonik/sql-tag").ValueExpression[]) => Readonly<{
parser: Record<PropertyKey, import("zod").ZodTypeAny>[Y];
type: "SLONIK_TOKEN_QUERY";
sql: string;
values: import("@slonik/sql-tag").PrimitiveValueExpression[];
}>;
unnest: (tuples: readonly (readonly import("@slonik/sql-tag").PrimitiveValueExpression[])[], columnTypes: [...string[], string][] | (string | import("@slonik/sql-tag").SqlFragment)[]) => import("@slonik/sql-tag").UnnestSqlToken;
unsafe: (parts: readonly string[], ...args: readonly import("@slonik/sql-tag").ValueExpression[]) => Readonly<{
parser: import("zod").ZodAny;
type: "SLONIK_TOKEN_QUERY";
sql: string;
values: import("@slonik/sql-tag").PrimitiveValueExpression[];
}>;
};
export declare const sql: import("@slonik/sql-tag").SqlTag<Record<PropertyKey, import("zod").ZodTypeAny>>;
export { createPool } from './factories/createPool';

@@ -36,0 +4,0 @@ export { createTypeParserPreset } from './factories/createTypeParserPreset';

6

package.json

@@ -8,4 +8,4 @@ {

"dependencies": {
"@slonik/errors": "^43.0.1",
"@slonik/sql-tag": "^43.0.1",
"@slonik/errors": "^43.0.2",
"@slonik/sql-tag": "^43.0.2",
"@types/pg": "^8.11.6",

@@ -90,3 +90,3 @@ "get-stack-trace": "^3.1.1",

"types": "./dist/index.d.ts",
"version": "43.0.1"
"version": "43.0.2"
}

Sorry, the diff of this file is not supported yet

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