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

@payloadcms/db-postgres

Package Overview
Dependencies
Maintainers
7
Versions
459
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@payloadcms/db-postgres - npm Package Compare versions

Comparing version 3.0.0-alpha.52 to 3.0.0-alpha.53

3

./src/index.ts
import type { Payload } from 'payload'
import type { DatabaseAdapterObj } from 'payload/database'
export type { MigrateDownArgs, MigrateUpArgs } from './types.js'

@@ -41,3 +42,3 @@ import fs from 'fs'

export type { MigrateDownArgs, MigrateUpArgs } from './types.js'
export { sql } from 'drizzle-orm'

@@ -44,0 +45,0 @@ export function postgresAdapter(args: Args): DatabaseAdapterObj<PostgresAdapter> {

@@ -5,4 +5,3 @@ /* eslint-disable no-restricted-syntax, no-await-in-loop */ import fs from 'fs';

const require = createRequire(import.meta.url);
const migrationTemplate = (upSQL, downSQL)=>`import { MigrateUpArgs, MigrateDownArgs } from '@payloadcms/db-postgres'
import { sql } from 'drizzle-orm'
const migrationTemplate = (upSQL, downSQL)=>`import { MigrateUpArgs, MigrateDownArgs, sql } from '@payloadcms/db-postgres'

@@ -9,0 +8,0 @@ export async function up({ payload }: MigrateUpArgs): Promise<void> {

import type { DatabaseAdapterObj } from 'payload/database';
export type { MigrateDownArgs, MigrateUpArgs } from './types.js';
import type { Args, PostgresAdapter } from './types.js';
export type { MigrateDownArgs, MigrateUpArgs } from './types.js';
export { sql } from 'drizzle-orm';
export declare function postgresAdapter(args: Args): DatabaseAdapterObj<PostgresAdapter>;
//# sourceMappingURL=index.d.ts.map

@@ -34,2 +34,3 @@ import fs from 'fs';

import { updateVersion } from './updateVersion.js';
export { sql } from 'drizzle-orm';
export function postgresAdapter(args) {

@@ -36,0 +37,0 @@ function adapter({ payload }) {

{
"name": "@payloadcms/db-postgres",
"version": "3.0.0-alpha.52",
"version": "3.0.0-alpha.53",
"description": "The officially supported Postgres database adapter for Payload",

@@ -33,7 +33,7 @@ "repository": {

"@types/to-snake-case": "1.0.0",
"payload": "3.0.0-alpha.52",
"@payloadcms/eslint-config": "1.1.1"
"@payloadcms/eslint-config": "1.1.1",
"payload": "3.0.0-alpha.53"
},
"peerDependencies": {
"payload": "3.0.0-alpha.52"
"payload": "3.0.0-alpha.53"
},

@@ -40,0 +40,0 @@ "exports": {

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

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