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

@databases/pg-config

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@databases/pg-config - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

6

lib/__tests__/index.test.js

@@ -33,2 +33,4 @@ "use strict";

schemaTypeName: 'DatabaseSchema',
serializeValueFileName: 'index.ts',
serializeValueTypeName: 'serializeValue',
tableFileName: '{{ TABLE_NAME }}.ts',

@@ -67,2 +69,4 @@ tableInsertParametersFileName: '{{ TABLE_NAME }}.ts',

schemaTypeName: 'DatabaseSchema',
serializeValueFileName: 'index.ts',
serializeValueTypeName: 'serializeValue',
tableFileName: '{{ TABLE_NAME }}.ts',

@@ -99,2 +103,4 @@ tableInsertParametersFileName: '{{ TABLE_NAME }}.ts',

schemaTypeName: 'DatabaseSchema',
serializeValueFileName: 'index.ts',
serializeValueTypeName: 'serializeValue',
tableFileName: '{{ TABLE_NAME }}.ts',

@@ -101,0 +107,0 @@ tableInsertParametersFileName: '{{ TABLE_NAME }}.ts',

@@ -157,2 +157,14 @@ export interface TestConfig {

/**
* What should the generated "serializeValue" function be called
*
* @default "serializeValue"
*/
serializeValueTypeName: string;
/**
* What filename do you want to use for the generated "serializeValue" function
*
* @default "index.ts"
*/
serializeValueFileName: string;
/**
* Override column types for some columns. The name can be either:

@@ -159,0 +171,0 @@ *

@@ -140,2 +140,12 @@ import Ajv = require('ajv');

};
serializeValueFileName: {
default: string;
description: string;
type: string;
};
serializeValueTypeName: {
default: string;
description: string;
type: string;
};
tableFileName: {

@@ -142,0 +152,0 @@ default: string;

12

lib/PgConfig.validator.js

@@ -155,2 +155,12 @@ "use strict";

},
serializeValueFileName: {
default: 'index.ts',
description: 'What filename do you want to use for the generated "serializeValue" function',
type: 'string'
},
serializeValueTypeName: {
default: 'serializeValue',
description: 'What should the generated "serializeValue" function be called',
type: 'string'
},
tableFileName: {

@@ -186,3 +196,3 @@ default: '{{ TABLE_NAME }}.ts',

},
required: ['columnTypeOverrides', 'directory', 'domainFileName', 'domainTypeMode', 'domainTypeName', 'enumFileName', 'enumTypeMode', 'enumTypeName', 'primaryKeyFileName', 'primaryKeyTypeMode', 'primaryKeyTypeName', 'schemaFileName', 'schemaTypeName', 'tableFileName', 'tableInsertParametersFileName', 'tableInsertParametersTypeName', 'tableTypeName', 'typeOverrides'],
required: ['columnTypeOverrides', 'directory', 'domainFileName', 'domainTypeMode', 'domainTypeName', 'enumFileName', 'enumTypeMode', 'enumTypeName', 'primaryKeyFileName', 'primaryKeyTypeMode', 'primaryKeyTypeName', 'schemaFileName', 'schemaTypeName', 'serializeValueFileName', 'serializeValueTypeName', 'tableFileName', 'tableInsertParametersFileName', 'tableInsertParametersTypeName', 'tableTypeName', 'typeOverrides'],
type: 'object'

@@ -189,0 +199,0 @@ }

2

package.json
{
"name": "@databases/pg-config",
"version": "2.0.0",
"version": "2.1.0",
"description": "",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

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