@powerhousedao/analytics-engine-pg 0.6.2 → 0.6.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.
@@ -0,0 +1,2 @@
1
+ export declare function reviver(k: any, v: any): any;
2
+ //# sourceMappingURL=AnalyticsSerializer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AnalyticsSerializer.d.ts","sourceRoot":"","sources":["../../src/AnalyticsSerializer.ts"],"names":[],"mappings":"AAOA,wBAAgB,OAAO,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,OAoBrC"}
@@ -0,0 +1,17 @@
1
+ import { type IAnalyticsProfiler } from "@powerhousedao/analytics-engine-core";
2
+ import { KnexAnalyticsStore, type SqlQueryLogger, type SqlResultsLogger } from "@powerhousedao/analytics-engine-knex";
3
+ import type { Knex } from "knex";
4
+ export type PostgresAnalyticsStoreOptions = {
5
+ connectionString?: string;
6
+ knex?: Knex;
7
+ queryLogger?: SqlQueryLogger;
8
+ resultsLogger?: SqlResultsLogger;
9
+ profiler?: IAnalyticsProfiler;
10
+ };
11
+ export declare class PostgresAnalyticsStore extends KnexAnalyticsStore {
12
+ private readonly _postgres;
13
+ private readonly _profiler;
14
+ constructor({ connectionString, knex, queryLogger, resultsLogger, profiler, }: PostgresAnalyticsStoreOptions);
15
+ raw(sql: string): Promise<any>;
16
+ }
17
+ //# sourceMappingURL=PostgresAnalyticsStore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PostgresAnalyticsStore.d.ts","sourceRoot":"","sources":["../../src/PostgresAnalyticsStore.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,kBAAkB,EAExB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,kBAAkB,EAElB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACtB,MAAM,sCAAsC,CAAC;AAE9C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAUjC,MAAM,MAAM,6BAA6B,GAAG;IAC1C,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,WAAW,CAAC,EAAE,cAAc,CAAC;IAC7B,aAAa,CAAC,EAAE,gBAAgB,CAAC;IACjC,QAAQ,CAAC,EAAE,kBAAkB,CAAC;CAC/B,CAAC;AAEF,qBAAa,sBAAuB,SAAQ,kBAAkB;IAC5D,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAO;IACjC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAqB;gBAEnC,EACV,gBAAgB,EAChB,IAAI,EACJ,WAAW,EACX,aAAa,EACb,QAAQ,GACT,EAAE,6BAA6B;IA6B1B,GAAG,CAAC,GAAG,EAAE,MAAM;CAStB"}
@@ -0,0 +1,4 @@
1
+ export { PostgresAnalyticsStore } from "./PostgresAnalyticsStore.js";
2
+ export type { PostgresAnalyticsStoreOptions } from "./PostgresAnalyticsStore.js";
3
+ export { reviver } from "./AnalyticsSerializer.js";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,YAAY,EAAE,6BAA6B,EAAE,MAAM,6BAA6B,CAAC;AACjF,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC"}
@@ -139941,7 +139941,7 @@ var require_knex = __commonJS((exports, module) => {
139941
139941
  module.exports = knex;
139942
139942
  });
139943
139943
 
139944
- // ../core/build/index.js
139944
+ // ../core/dist/src/index.js
139945
139945
  class PassthroughAnalyticsProfiler {
139946
139946
  get prefix() {
139947
139947
  return "";
@@ -144845,7 +144845,7 @@ class AnalyticsSubscriptionManager {
144845
144845
  }
144846
144846
  }
144847
144847
 
144848
- // ../knex/build/index.js
144848
+ // ../knex/dist/src/index.js
144849
144849
  class LuxonError2 extends Error {
144850
144850
  }
144851
144851
 
@@ -154317,6 +154317,3 @@ export {
154317
154317
  reviver,
154318
154318
  PostgresAnalyticsStore
154319
154319
  };
154320
-
154321
- //# debugId=1760C06DDDCC3E4264756E2164756E21
154322
- //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerhousedao/analytics-engine-pg",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "license": "AGPL-3.0-only",
5
5
  "repository": {
6
6
  "type": "git",
@@ -13,13 +13,11 @@
13
13
  "exports": {
14
14
  ".": {
15
15
  "types": "./dist/src/index.d.ts",
16
- "default": "./build/index.js"
16
+ "default": "./dist/src/index.js"
17
17
  }
18
18
  },
19
19
  "files": [
20
- "./build/index.js",
21
- "./build/index.js.map",
22
- "./dist/index.d.ts"
20
+ "dist/src"
23
21
  ],
24
22
  "dependencies": {
25
23
  "date-fns": "4.1.0",
@@ -33,8 +31,8 @@
33
31
  "tedious": "19.2.1",
34
32
  "pg-query-stream": "4.12.0",
35
33
  "oracledb": "6.10.0",
36
- "@powerhousedao/analytics-engine-core": "0.6.2",
37
- "@powerhousedao/analytics-engine-knex": "0.6.2"
34
+ "@powerhousedao/analytics-engine-core": "0.6.3",
35
+ "@powerhousedao/analytics-engine-knex": "0.6.3"
38
36
  },
39
37
  "devDependencies": {
40
38
  "@types/luxon": "3.7.1",