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

@golemio/cli

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@golemio/cli - npm Package Compare versions

Comparing version

to
1.0.3-dev.391380756

@@ -17,3 +17,3 @@ "use strict";

let [action, migrationName] = parameters.array;
const { postgres: isPostgres, mongo: isMongo, schema } = parameters.options;
const { postgres: isPostgres, mongo: isMongo, schema: defaultSchema } = parameters.options;
const postgresConfig = {

@@ -50,3 +50,3 @@ migrationsDirPath: path_1.default.resolve(process.cwd(), (_a = process.env.POSTGRES_MIGRATIONS_DIR) !== null && _a !== void 0 ? _a : "db/migrations/postgresql"),

}
const migration = (0, migrate_db_utils_1.getPostgresMigrateInstance)({
const { migration } = (0, migrate_db_utils_1.getPostgresMigrateInstance)({
connectionString: process.env.POSTGRES_CONN,

@@ -102,6 +102,6 @@ migrationDir: postgresConfig.migrationsDirPath,

for (const dir of migrationDirs) {
const migration = (0, migrate_db_utils_1.getPostgresMigrateInstance)({
const { migration, schema } = (0, migrate_db_utils_1.getPostgresMigrateInstance)({
connectionString: process.env.POSTGRES_CONN,
migrationDir: dir,
defaultSchema: schema,
defaultSchema,
includeLocalConfig: true,

@@ -108,0 +108,0 @@ });

@@ -42,3 +42,3 @@ "use strict";

const { user, password, host, database, port, ssl } = (0, pg_connection_string_1.parse)(connectionString);
return db_migrate_1.default.getInstance(true, {
const migration = db_migrate_1.default.getInstance(true, {
config: {

@@ -56,2 +56,6 @@ postgres: Object.assign(Object.assign({}, dbmConfig), { driver: "pg", user,

});
return {
migration,
schema: dbmConfig.schema,
};
};

@@ -58,0 +62,0 @@ exports.getPostgresMigrateInstance = getPostgresMigrateInstance;

{
"name": "@golemio/cli",
"version": "1.0.3-dev.391255014",
"version": "1.0.3-dev.391380756",
"description": "Golemio CLI is a collection of executables intended to be used with Golemio projects and modules",

@@ -10,3 +10,2 @@ "main": "bin/golemio.js",

"scripts": {
"postinstall": "patch-package --patch-dir node_modules/@golemio/cli/patches",
"prepublishOnly": "node scripts/prepublish-only.js",

@@ -58,3 +57,3 @@ "build": "tsc -p tsconfig.build.json",

"db-migrate": "1.0.0-beta.16",
"db-migrate-pg": "1.2.2",
"db-migrate-pg": "npm:@golemio/db-migrate-pg@1.2.3-diversion.1",
"dotenv": "^10.0.0",

@@ -66,3 +65,2 @@ "fast-glob": "^3.2.7",

"mongoose": "^6.0.8",
"patch-package": "^6.4.7",
"pg": "^8.7.1",

@@ -69,0 +67,0 @@ "pg-connection-string": "^2.5.0",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet