@ovotech/pg-sql-migrate
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -6,3 +6,6 @@ "use strict"; | ||
const stream_1 = require("stream"); | ||
exports.nameParts = (name) => name.split('_', 2); | ||
exports.nameParts = (name) => { | ||
const [first, ...rest] = name.split('_'); | ||
return [first, rest.join('_')]; | ||
}; | ||
class MigrationsReadable extends stream_1.Readable { | ||
@@ -9,0 +12,0 @@ constructor(pg, table, directory) { |
@@ -5,3 +5,3 @@ { | ||
"repository": "git@github.com:ovotech/pg-sql-migrate.git", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"main": "dist/index.js", | ||
@@ -8,0 +8,0 @@ "source": "src/index.ts", |
@@ -7,3 +7,6 @@ import { readdirSync, readFileSync } from 'fs'; | ||
export const nameParts = (name: string): string[] => name.split('_', 2); | ||
export const nameParts = (name: string): string[] => { | ||
const [first, ...rest] = name.split('_'); | ||
return [first, rest.join('_')]; | ||
}; | ||
@@ -10,0 +13,0 @@ export class MigrationsReadable extends Readable { |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
35414
536
0