@playwright-orchestrator/pg 1.1.1 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  export interface CreateArgs {
2
2
  connectionString: string;
3
3
  tableNamePrefix: string;
4
- sslCa?: string;
5
- sslCert?: string;
6
- sslKey?: string;
4
+ sslCa?: string | Buffer;
5
+ sslCert?: string | Buffer;
6
+ sslKey?: string | Buffer;
7
7
  }
package/dist/index.js CHANGED
@@ -1,6 +1,16 @@
1
1
  import { Option } from '@commander-js/extra-typings';
2
2
  import { PostgreSQLAdapter } from './postgresql-adapter.js';
3
+ import { readFile } from 'node:fs/promises';
3
4
  export async function factory(args) {
5
+ if (args.sslCa) {
6
+ args.sslCa = await readFile(args.sslCa);
7
+ }
8
+ if (args.sslCert) {
9
+ args.sslCert = await readFile(args.sslCert);
10
+ }
11
+ if (args.sslKey) {
12
+ args.sslKey = await readFile(args.sslKey);
13
+ }
4
14
  return new PostgreSQLAdapter(args);
5
15
  }
6
16
  export function createOptions(command) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@playwright-orchestrator/pg",
3
- "version": "1.1.1",
3
+ "version": "1.1.3",
4
4
  "keywords": [],
5
5
  "author": "Rostyslav Kudrevatykh",
6
6
  "license": "Apache-2.0",