@dcl/pg-component 0.1.0 → 0.1.1
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../src/component.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAA;AAOtG,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAwC,MAAM,SAAS,CAAA;AAExG,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AAEzB,wBAAsB,+BAA+B,CAAC,CAAC,EACrD,UAAU,EAAE;IAAE,OAAO,EAAE,iBAAiB,CAAA;CAAE,EAC1C,cAAc,EAAE,MAAM,EACtB,aAAa,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAC9B,OAAO,CAAC,CAAC,CAAC,CAcZ;AAED;;;;GAIG;AACH,wBAAsB,iBAAiB,CACrC,UAAU,EAAE;IAAE,IAAI,EAAE,gBAAgB,CAAC;IAAC,MAAM,EAAE,gBAAgB,CAAC;IAAC,OAAO,CAAC,EAAE,iBAAiB,CAAA;CAAE,EAC7F,OAAO,GAAE,OAAY,GACpB,OAAO,CAAC,YAAY,GAAG,cAAc,CAAC,
|
|
1
|
+
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../src/component.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAA;AAOtG,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAwC,MAAM,SAAS,CAAA;AAExG,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AAEzB,wBAAsB,+BAA+B,CAAC,CAAC,EACrD,UAAU,EAAE;IAAE,OAAO,EAAE,iBAAiB,CAAA;CAAE,EAC1C,cAAc,EAAE,MAAM,EACtB,aAAa,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAC9B,OAAO,CAAC,CAAC,CAAC,CAcZ;AAED;;;;GAIG;AACH,wBAAsB,iBAAiB,CACrC,UAAU,EAAE;IAAE,IAAI,EAAE,gBAAgB,CAAC;IAAC,MAAM,EAAE,gBAAgB,CAAC;IAAC,OAAO,CAAC,EAAE,iBAAiB,CAAA;CAAE,EAC7F,OAAO,GAAE,OAAY,GACpB,OAAO,CAAC,YAAY,GAAG,cAAc,CAAC,CAsOxC"}
|
package/dist/src/component.js
CHANGED
|
@@ -73,9 +73,6 @@ async function createPgComponent(components, options = {}) {
|
|
|
73
73
|
const STREAM_QUERY_TIMEOUT = await config.getNumber('PG_COMPONENT_STREAM_QUERY_TIMEOUT');
|
|
74
74
|
const GRACE_PERIODS = (await config.getNumber('PG_COMPONENT_GRACE_PERIODS')) || 10;
|
|
75
75
|
const finalOptions = { ...defaultOptions, ...options.pool };
|
|
76
|
-
if (!finalOptions.log) {
|
|
77
|
-
finalOptions.log = logger.debug.bind(logger);
|
|
78
|
-
}
|
|
79
76
|
// Config
|
|
80
77
|
const pool = new pg_1.Pool(finalOptions);
|
|
81
78
|
// Async context for transaction client
|