@squiz/db-lib 1.21.1-alpha.4 → 1.21.1-alpha.40

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,37 @@
1
+ 0 verbose cli /usr/local/bin/node /usr/local/bin/npm
2
+ 1 info using npm@9.5.0
3
+ 2 info using node@v18.15.0
4
+ 3 timing npm:load:whichnode Completed in 1ms
5
+ 4 timing config:load:defaults Completed in 2ms
6
+ 5 timing config:load:file:/usr/local/lib/node_modules/npm/npmrc Completed in 0ms
7
+ 6 timing config:load:builtin Completed in 1ms
8
+ 7 timing config:load:cli Completed in 2ms
9
+ 8 timing config:load:env Completed in 1ms
10
+ 9 info found workspace root at /builds/developer-experience/cmp
11
+ 10 timing config:load:file:/builds/developer-experience/cmp/.npmrc Completed in 1ms
12
+ 11 timing config:load:project Completed in 20ms
13
+ 12 timing config:load:file:/root/.npmrc Completed in 1ms
14
+ 13 timing config:load:user Completed in 1ms
15
+ 14 timing config:load:file:/usr/local/etc/npmrc Completed in 0ms
16
+ 15 timing config:load:global Completed in 0ms
17
+ 16 timing config:load:setEnvs Completed in 1ms
18
+ 17 timing config:load Completed in 28ms
19
+ 18 timing npm:load:configload Completed in 28ms
20
+ 19 timing npm:load:mkdirpcache Completed in 1ms
21
+ 20 timing npm:load:mkdirplogs Completed in 0ms
22
+ 21 verbose title npm run compile
23
+ 22 verbose argv "run" "compile" "--"
24
+ 23 timing npm:load:setTitle Completed in 1ms
25
+ 24 timing config:load:flatten Completed in 4ms
26
+ 25 timing npm:load:display Completed in 5ms
27
+ 26 verbose logfile logs-max:10 dir:/builds/developer-experience/cmp/packages/db-lib/.npm/_logs/2023-03-24T05_02_11_116Z-
28
+ 27 verbose logfile /builds/developer-experience/cmp/packages/db-lib/.npm/_logs/2023-03-24T05_02_11_116Z-debug-0.log
29
+ 28 timing npm:load:logFile Completed in 4ms
30
+ 29 timing npm:load:timers Completed in 0ms
31
+ 30 timing npm:load:configScope Completed in 0ms
32
+ 31 timing npm:load Completed in 41ms
33
+ 32 silly logfile done cleaning log files
34
+ 33 timing command:run Completed in 2660ms
35
+ 34 verbose exit 0
36
+ 35 timing npm Completed in 2714ms
37
+ 36 info ok
package/lib/Migrator.d.ts CHANGED
@@ -1,4 +1,8 @@
1
1
  import { PoolClient } from 'pg';
2
+ import { Logger } from '@squiz/dx-logger-lib';
3
+ export type Migration = {
4
+ (db: PoolClient, logger: Logger): Promise<void>;
5
+ };
2
6
  export declare class Migrator {
3
7
  protected migrationDir: string;
4
8
  protected migrationList: string[];
package/lib/index.d.ts CHANGED
@@ -4,4 +4,4 @@ export * from './Migrator';
4
4
  export * from './Repositories';
5
5
  export * from './getConnectionInfo';
6
6
  export * from './PostgresErrorCodes';
7
- export { Pool } from 'pg';
7
+ export { Pool, PoolClient } from 'pg';