New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

@payloadcms/db-postgres

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@payloadcms/db-postgres - npm Package Compare versions

Comparing version

to
3.28.0

@@ -72,3 +72,4 @@ import { pushDevSchema } from '@payloadcms/drizzle';

}
} catch (err) {
} catch (error) {
const err = error instanceof Error ? error : new Error(String(error));
if (err.message?.match(/database .* does not exist/i) && !this.disableCreateDatabase) {

@@ -78,3 +79,3 @@ // capitalize first char of the err msg

const isCreated = await this.createDatabase();
if (isCreated) {
if (isCreated && this.connect) {
await this.connect(options);

@@ -81,0 +82,0 @@ return;

@@ -23,2 +23,3 @@ import { beginTransaction, buildCreateMigration, commitTransaction, count, countGlobalVersions, countVersions, create, createGlobal, createGlobalVersion, createSchemaGenerator, createVersion, deleteMany, deleteOne, deleteVersions, destroy, find, findGlobal, findGlobalVersions, findMigrationDir, findOne, findVersions, migrate, migrateDown, migrateFresh, migrateRefresh, migrateReset, migrateStatus, operatorMap, queryDrafts, rollbackTransaction, updateGlobal, updateGlobalVersion, updateMany, updateOne, updateVersion } from '@payloadcms/drizzle';

} else {
// @ts-expect-error - vestiges of when tsconfig was not strict. Feel free to improve
adapterSchema = {

@@ -48,2 +49,3 @@ enum: pgEnum,

disableCreateDatabase: args.disableCreateDatabase ?? false,
// @ts-expect-error - vestiges of when tsconfig was not strict. Feel free to improve
drizzle: undefined,

@@ -70,5 +72,7 @@ enums: {},

pgSchema: adapterSchema,
// @ts-expect-error - vestiges of when tsconfig was not strict. Feel free to improve
pool: undefined,
poolOptions: args.pool,
prodMigrations: args.prodMigrations,
// @ts-expect-error - vestiges of when tsconfig was not strict. Feel free to improve
push: args.push,

@@ -109,2 +113,3 @@ relations: {},

findGlobalVersions,
// @ts-expect-error - vestiges of when tsconfig was not strict. Feel free to improve
findOne,

@@ -127,4 +132,6 @@ findVersions,

rawTables: {},
// @ts-expect-error - vestiges of when tsconfig was not strict. Feel free to improve
rejectInitializing,
requireDrizzleKit,
// @ts-expect-error - vestiges of when tsconfig was not strict. Feel free to improve
resolveInitializing,

@@ -131,0 +138,0 @@ rollbackTransaction,

{
"name": "@payloadcms/db-postgres",
"version": "3.28.0-internal.c4e1bed",
"version": "3.28.0",
"description": "The officially supported Postgres database adapter for Payload",

@@ -73,3 +73,3 @@ "homepage": "https://payloadcms.com",

"uuid": "10.0.0",
"@payloadcms/drizzle": "3.28.0-internal.c4e1bed"
"@payloadcms/drizzle": "3.28.0"
},

@@ -81,6 +81,6 @@ "devDependencies": {

"@payloadcms/eslint-config": "3.9.0",
"payload": "3.28.0-internal.c4e1bed"
"payload": "3.28.0"
},
"peerDependencies": {
"payload": "3.28.0-internal.c4e1bed"
"payload": "3.28.0"
},

@@ -87,0 +87,0 @@ "scripts": {

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