node-pg-migrate
Advanced tools
Comparing version 7.2.3-alpha.0 to 7.3.0
@@ -20,2 +20,3 @@ export { Migration } from './migration'; | ||
export type { AlterView, AlterViewColumn, AlterViewColumnOptions, AlterViewOptions, CreateView, CreateViewFn, CreateViewOptions, DropView, DropViewOptions, RenameView, RenameViewFn, ViewOptions, } from './operations/views'; | ||
export { runner as default, runner } from './runner'; | ||
export { PgType } from './types'; | ||
@@ -25,3 +26,1 @@ export type { MigrationBuilder, RunnerOption } from './types'; | ||
export type { PgLiteralValue } from './utils'; | ||
import runner from './runner'; | ||
export default runner; |
"use strict"; | ||
var __create = Object.create; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __getProtoOf = Object.getPrototypeOf; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
@@ -20,10 +18,2 @@ var __export = (target, all) => { | ||
}; | ||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( | ||
// If the importer is in node compatibility mode or this is not an ESM | ||
// file that has been converted to a CommonJS file using a Babel- | ||
// compatible transform (i.e. "__esModule" has not been set), then set | ||
// "default" to the CommonJS "module.exports" for node compatibility. | ||
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, | ||
mod | ||
)); | ||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); | ||
@@ -35,11 +25,11 @@ var src_exports = {}; | ||
PgType: () => import_types.PgType, | ||
default: () => src_default, | ||
isPgLiteral: () => import_utils.isPgLiteral | ||
default: () => import_runner.runner, | ||
isPgLiteral: () => import_utils.isPgLiteral, | ||
runner: () => import_runner.runner | ||
}); | ||
module.exports = __toCommonJS(src_exports); | ||
var import_migration = require("./migration"); | ||
var import_runner = require("./runner"); | ||
var import_types = require("./types"); | ||
var import_utils = require("./utils"); | ||
var import_runner = __toESM(require("./runner")); | ||
var src_default = import_runner.default; | ||
// Annotate the CommonJS export names for ESM import in node: | ||
@@ -50,3 +40,4 @@ 0 && (module.exports = { | ||
PgType, | ||
isPgLiteral | ||
isPgLiteral, | ||
runner | ||
}); |
import type { RunMigration } from './migration'; | ||
import type { RunnerOption } from './types'; | ||
declare function runner(options: RunnerOption): Promise<RunMigration[]>; | ||
export declare function runner(options: RunnerOption): Promise<RunMigration[]>; | ||
export default runner; |
@@ -31,3 +31,4 @@ "use strict"; | ||
__export(runner_exports, { | ||
default: () => runner_default | ||
default: () => runner_default, | ||
runner: () => runner | ||
}); | ||
@@ -287,1 +288,5 @@ module.exports = __toCommonJS(runner_exports); | ||
var runner_default = runner; | ||
// Annotate the CommonJS export names for ESM import in node: | ||
0 && (module.exports = { | ||
runner | ||
}); |
{ | ||
"name": "node-pg-migrate", | ||
"version": "7.2.3-alpha.0", | ||
"version": "7.3.0", | ||
"description": "PostgreSQL database migration management tool for node.js", | ||
"scripts": { | ||
"clean": "rimraf .eslintcache dist pnpm-lock.yaml node_modules", | ||
"build:bin": "tsup-node --config tsup-bin.config.ts", | ||
"build:clean": "rimraf dist", | ||
"build:code": "tsup-node", | ||
"build:types": "tsc --project tsconfig.build.json", | ||
"build": "run-s build:clean build:code build:types build:bin", | ||
"format": "prettier --cache --write .", | ||
"lint": "eslint --cache --cache-strategy content --report-unused-disable-directives .", | ||
"ts-check": "tsc", | ||
"test": "vitest", | ||
"test:update-snapshots": "vitest run -u", | ||
"test:coverage": "vitest --coverage", | ||
"docs:dev": "vitepress dev docs", | ||
"docs:build": "vitepress build docs", | ||
"docs:preview": "vitepress preview docs", | ||
"premigrate": "run-s build:bin", | ||
"migrate": "node bin/node-pg-migrate.js", | ||
"prepublishOnly": "pnpm run clean && pnpm install && pnpm run build", | ||
"preflight": "pnpm install && run-s format build lint test:update-snapshots ts-check" | ||
}, | ||
"bin": { | ||
@@ -95,3 +74,3 @@ "node-pg-migrate": "bin/node-pg-migrate.js" | ||
"type": "git", | ||
"url": "https://github.com/salsita/node-pg-migrate.git" | ||
"url": "git+https://github.com/salsita/node-pg-migrate.git" | ||
}, | ||
@@ -107,8 +86,8 @@ "dependencies": { | ||
"@types/node": "18.19.31", | ||
"@types/pg": "8.11.5", | ||
"@types/pg": "8.11.6", | ||
"@types/yargs": "17.0.32", | ||
"@typescript-eslint/eslint-plugin": "7.8.0", | ||
"@typescript-eslint/parser": "7.8.0", | ||
"@vitest/coverage-v8": "1.5.3", | ||
"@vitest/ui": "1.5.3", | ||
"@vitest/coverage-v8": "1.6.0", | ||
"@vitest/ui": "1.6.0", | ||
"config": "3.3.11", | ||
@@ -135,3 +114,3 @@ "cross-env": "7.0.3", | ||
"vitepress": "1.1.4", | ||
"vitest": "1.5.3" | ||
"vitest": "1.6.0" | ||
}, | ||
@@ -147,11 +126,25 @@ "peerDependencies": { | ||
}, | ||
"packageManager": "pnpm@9.0.6", | ||
"engines": { | ||
"node": ">=16.18.0" | ||
}, | ||
"pnpm": { | ||
"patchedDependencies": { | ||
"@types/pg@8.11.5": "patches/@types__pg@8.11.5.patch" | ||
} | ||
"scripts": { | ||
"clean": "rimraf .eslintcache dist pnpm-lock.yaml node_modules", | ||
"build:bin": "tsup-node --config tsup-bin.config.ts", | ||
"build:clean": "rimraf dist", | ||
"build:code": "tsup-node", | ||
"build:types": "tsc --project tsconfig.build.json", | ||
"build": "run-s build:clean build:code build:types build:bin", | ||
"format": "prettier --cache --write .", | ||
"lint": "eslint --cache --cache-strategy content --report-unused-disable-directives .", | ||
"ts-check": "tsc", | ||
"test": "vitest", | ||
"test:update-snapshots": "vitest run -u", | ||
"test:coverage": "vitest --coverage", | ||
"docs:dev": "vitepress dev docs", | ||
"docs:build": "vitepress build docs", | ||
"docs:preview": "vitepress preview docs", | ||
"premigrate": "run-s build:bin", | ||
"migrate": "node bin/node-pg-migrate.js", | ||
"preflight": "pnpm install && run-s format build lint test:update-snapshots ts-check" | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
522258
12911