@pgflow/edge-worker 0.0.10-prealpha.2 → 0.0.10-prealpha.4

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.
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pgflow/edge-worker",
3
- "version": "0.0.10-prealpha.2",
3
+ "version": "0.0.10-prealpha.4",
4
4
  "license": "AGPL-3.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1 +1 @@
1
- {"version":3,"file":"DenoAdapter.d.ts","sourceRoot":"","sources":["../../src/platform/DenoAdapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,MAAM,EACN,eAAe,EACf,mBAAmB,EACpB,MAAM,YAAY,CAAC;AACpB,OAAO,iBAAiB,CAAC;AAEzB;;GAEG;AACH,qBAAa,WAAY,YAAW,eAAe;IACjD,OAAO,CAAC,GAAG,CAAoC;IAC/C,OAAO,CAAC,gBAAgB,CAAuB;IAC/C,OAAO,CAAC,MAAM,CAAiC;;IAazC,UAAU,CAAC,cAAc,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IA2BzD,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;IAOhC,MAAM,IAAI,mBAAmB;IAK7B,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM;IA4CpC,SAAS,CAAC,MAAM,EAAE;QAAE,IAAI,IAAI,IAAI,CAAA;KAAE,GAAG,IAAI;IAInC,oBAAoB,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IA+B/D,OAAO,CAAC,iBAAiB;IAsBzB,OAAO,CAAC,mBAAmB;IAI3B,oBAAoB,IAAI,IAAI;CAY7B"}
1
+ {"version":3,"file":"DenoAdapter.d.ts","sourceRoot":"","sources":["../../src/platform/DenoAdapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,MAAM,EACN,eAAe,EACf,mBAAmB,EACpB,MAAM,YAAY,CAAC;AACpB,OAAO,iBAAiB,CAAC;AAEzB;;GAEG;AACH,qBAAa,WAAY,YAAW,eAAe;IACjD,OAAO,CAAC,GAAG,CAAsB;IACjC,OAAO,CAAC,gBAAgB,CAAuB;IAC/C,OAAO,CAAC,MAAM,CAAiC;;IAezC,UAAU,CAAC,cAAc,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IAwBzD,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;IAOhC,MAAM,IAAI,mBAAmB;IAI7B,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM;IA6CpC,SAAS,CAAC,MAAM,EAAE;QAAE,IAAI,IAAI,IAAI,CAAA;KAAE,GAAG,IAAI;IAInC,oBAAoB,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IA+B/D,OAAO,CAAC,iBAAiB;IAsBzB,OAAO,CAAC,mBAAmB;IAI3B,oBAAoB,IAAI,IAAI;CAY7B"}
@@ -3,7 +3,7 @@ import './deno-types.js';
3
3
  * Adapter for Deno runtime environment
4
4
  */
5
5
  export class DenoAdapter {
6
- env = null;
6
+ env;
7
7
  edgeFunctionName = null;
8
8
  worker = null;
9
9
  constructor() {
@@ -13,10 +13,9 @@ export class DenoAdapter {
13
13
  if (typeof Deno === 'undefined' || typeof EdgeRuntime === 'undefined') {
14
14
  throw new Error('DenoAdapter created in non-Deno environment - this is expected during build only');
15
15
  }
16
+ this.env = this.detectEnvironment();
16
17
  }
17
18
  async initialize(createWorkerFn) {
18
- // Get environment information
19
- this.env = this.detectEnvironment();
20
19
  // Set up HTTP listener for Deno
21
20
  Deno.serve({}, (req) => {
22
21
  if (!this.worker) {
@@ -42,13 +41,12 @@ export class DenoAdapter {
42
41
  }
43
42
  }
44
43
  getEnv() {
45
- if (!this.env)
46
- throw new Error('Adapter not initialized');
47
44
  return this.env;
48
45
  }
49
46
  createLogger(module) {
50
47
  const workerId = this.env?.executionId || 'unknown';
51
- const logLevel = this.env?.logLevel || 'info';
48
+ const logLevel = 'debug';
49
+ // const logLevel = this.env?.logLevel || 'info';
52
50
  // Simple level filtering
53
51
  const levels = { error: 0, warn: 1, info: 2, debug: 3 };
54
52
  const levelValue = levels[logLevel] ?? levels.info;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pgflow/edge-worker",
3
- "version": "0.0.10-prealpha.2",
3
+ "version": "0.0.10-prealpha.4",
4
4
  "license": "AGPL-3.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",