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

@vercel/postgres

Package Overview
Dependencies
Maintainers
8
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vercel/postgres - npm Package Compare versions

Comparing version 0.1.0-canary.10 to 0.1.0-canary.11

dist/chunk-AIHLZ3MZ.cjs

14

dist/index.d.ts

@@ -1,13 +0,3 @@

import { Client, Pool } from '@neondatabase/serverless';
export { c as createClient, a as createPool, p as postgresConnectionString } from './postgres-connection-string-490cbf85.js';
export { V as VercelPostgresClientConfig, a as VercelPostgresPoolConfig } from './types-2da2e693.js';
export { Client, FieldDef, Pool, Query, QueryArrayConfig, QueryArrayResult, QueryConfig, QueryParse, QueryResult, QueryResultBase, QueryResultRow } from '@neondatabase/serverless';
import { V as VercelPostgresClientConfig, a as VercelPostgresPoolConfig } from './types-2da2e693.js';
export { V as VercelPostgresClientConfig, a as VercelPostgresPoolConfig } from './types-2da2e693.js';
declare function createClient(config?: VercelPostgresClientConfig): Client;
declare function createPool(config?: VercelPostgresPoolConfig): Pool;
declare type ConnectionStringType = 'pool' | 'direct';
declare function postgresConnectionString(type?: ConnectionStringType): string | undefined;
export { createClient, createPool, postgresConnectionString };

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

import{a as o,c as r,d as t}from"./chunk-RRELKLLB.js";export{r as createClient,t as createPool,o as postgresConnectionString};
import"./chunk-IDNRW7UP.js";import{b as a,d as b,e as c}from"./chunk-UXLVIFPJ.js";export{b as createClient,c as createPool,a as postgresConnectionString};

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

import{b as t,c as a,d as l}from"./chunk-RRELKLLB.js";import{Kysely as m,PostgresAdapter as y,PostgresIntrospector as p,PostgresQueryCompiler as u}from"kysely";var n=class{constructor(e){this.config=e}createAdapter(){return new y}createDriver(){return new s(this.config)}createQueryCompiler(){return new u}createIntrospector(e){return new p(e)}},s=class{constructor(e){this.config=e}async init(){}async acquireConnection(){return new i(this.config.pooling?l(this.config):a(this.config))}beginTransaction(e){return e.beginTransaction()}commitTransaction(e){return e.commitTransaction()}rollbackTransaction(e){return e.rollbackTransaction()}releaseConnection(e){return e.destroy()}async destroy(){}},i=class{constructor(e){this.connection=e}async executeQuery(e){await this.connection.connect();let o=await this.connection.query(e.sql,[...e.parameters]);if(o.command==="INSERT"||o.command==="UPDATE"||o.command==="DELETE"){let c=BigInt(o.rowCount);return{numUpdatedOrDeletedRows:c,numAffectedRows:c,rows:o.rows??[]}}return{rows:o.rows??[]}}async beginTransaction(){throw new t("kysely_transactions_not_supported","Transactions are not supported yet.")}async commitTransaction(){throw new t("kysely_transactions_not_supported","Transactions are not supported yet.")}async rollbackTransaction(){throw new t("kysely_transactions_not_supported","Transactions are not supported yet.")}async destroy(){await this.connection.end()}async*streamQuery(e,o){throw new t("kysely_streaming_not_supported","Streaming is not supported yet.")}};function f(r){return new m({dialect:new n({...r,pooling:!0})})}function w(r){return new m({dialect:new n({...r,pooling:!1})})}export{w as createKyselyClient,f as createKyselyPool};
import{a,b}from"./chunk-AUC5NI6H.js";import"./chunk-UXLVIFPJ.js";export{b as createKyselyClient,a as createKyselyPool};
{
"name": "@vercel/postgres",
"version": "0.1.0-canary.10",
"version": "0.1.0-canary.11",
"description": "Connect to Vercel Postgres databases on the Edge",

@@ -16,2 +16,3 @@ "homepage": "https://vercel.com",

".": {
"types": "./dist/index.d.ts",
"import": {

@@ -26,3 +27,4 @@ "edge-light": "./dist/index.js",

},
"./kysely.js": {
"./kysely": {
"types": "./dist/kysely.d.ts",
"import": {

@@ -40,9 +42,3 @@ "edge-light": "./dist/kysely.js",

"module": "./dist/index.js",
"typesVersions": {
"*": {
"*": [
"./dist/*.d.ts"
]
}
},
"types": "./dist/index.d.ts",
"files": [

@@ -96,6 +92,7 @@ "dist"

"scripts": {
"build": "tsup",
"build": "tsup && cp ./dist/*.d.ts .",
"eslint-check": "eslint --max-warnings=0 .",
"precommit": "lint-staged",
"prettier-check": "prettier --check .",
"publint": "npx publint --yes",
"release": "pnpm build && changeset publish",

@@ -102,0 +99,0 @@ "test": "jest --env @edge-runtime/jest-environment .test.ts && jest --env node .test.ts",

@@ -9,2 +9,4 @@ # @vercel/postgres 🚧

**Note:** If your project is using TypeScript >=5.0.0 and your project can support it, we recommend setting `moduleResolution: "bundler"` in your `tsconfig.json`.
```bash

@@ -11,0 +13,0 @@ pnpm install @vercel/postgres

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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