inviton-backduck 1.0.2 → 1.0.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.
package/dist/index.js CHANGED
@@ -49,6 +49,8 @@ export { IS_BUN, RUNTIME } from './runtime-detect';
49
49
  export { createServer, UniversalServer, } from './server';
50
50
  // Exceptions - Common HTTP and workflow exceptions
51
51
  export { BadRequestException, NotFoundException, NotImplementedException, UnauthorizedException, WorkflowInterceptionException, } from './exceptions';
52
+ // Interception - Workflow interception handling
53
+ export { WorkflowInterceptionResult, } from './interception';
52
54
  // Utils - Request parsing and helper utilities
53
55
  export { RuntimeUtils } from './utils';
54
56
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AAEH,0FAA0F;AAC1F,cAAc,UAAU,CAAC;AAYzB,kDAAkD;AAClD,OAAO,EACN,wBAAwB,EACxB,UAAU,IAAI,mBAAmB,EACjC,gBAAgB,EAChB,WAAW,EACX,KAAK,GACL,MAAM,cAAc,CAAC;AAEtB,wDAAwD;AACxD,OAAO,EACN,cAAc,EACd,YAAY,EAGZ,SAAS,IAAI,eAAe,EAC5B,SAAS,GACT,MAAM,UAAU,CAAC;AAElB,yDAAyD;AACzD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEnD,6CAA6C;AAC7C,OAAO,EAEN,YAAY,EAGZ,eAAe,GAEf,MAAM,UAAU,CAAC;AAElB,mDAAmD;AACnD,OAAO,EACN,mBAAmB,EAEnB,iBAAiB,EACjB,uBAAuB,EACvB,qBAAqB,EACrB,6BAA6B,GAC7B,MAAM,cAAc,CAAC;AAStB,+CAA+C;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AAEH,0FAA0F;AAC1F,cAAc,UAAU,CAAC;AAYzB,kDAAkD;AAClD,OAAO,EACN,wBAAwB,EACxB,UAAU,IAAI,mBAAmB,EACjC,gBAAgB,EAChB,WAAW,EACX,KAAK,GACL,MAAM,cAAc,CAAC;AAEtB,wDAAwD;AACxD,OAAO,EACN,cAAc,EACd,YAAY,EAGZ,SAAS,IAAI,eAAe,EAC5B,SAAS,GACT,MAAM,UAAU,CAAC;AAElB,yDAAyD;AACzD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEnD,6CAA6C;AAC7C,OAAO,EAEN,YAAY,EAGZ,eAAe,GAEf,MAAM,UAAU,CAAC;AAElB,mDAAmD;AACnD,OAAO,EACN,mBAAmB,EAEnB,iBAAiB,EACjB,uBAAuB,EACvB,qBAAqB,EACrB,6BAA6B,GAC7B,MAAM,cAAc,CAAC;AAEtB,gDAAgD;AAChD,OAAO,EAGN,0BAA0B,GAC1B,MAAM,gBAAgB,CAAC;AAExB,+CAA+C;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC"}
@@ -1,2 +1,2 @@
1
- export {};
1
+ export { WorkflowInterceptionResult } from './workflowInteceptionHandler.interface';
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/interception/index.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/interception/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,0BAA0B,EAAE,MAAM,wCAAwC,CAAC"}
@@ -16,7 +16,7 @@ export interface WorkflowInterceptionResponse<TInterception, TInterceptionType>
16
16
  * Enumeration defining the possible outcomes of an interceptor method call.
17
17
  * Used by the orchestrator to determine whether to continue or stop processing.
18
18
  */
19
- export declare const enum WorkflowInterceptionResult {
19
+ export declare enum WorkflowInterceptionResult {
20
20
  /** Continue processing normally - no interception occurred */
21
21
  OK = 0,
22
22
  /** Stop processing - workflow has been intercepted */
@@ -1 +1 @@
1
- {"version":3,"file":"workflowInteceptionHandler.interface.d.ts","sourceRoot":"","sources":["../../src/interception/workflowInteceptionHandler.interface.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,WAAW,4BAA4B,CAAC,aAAa,EAAE,iBAAiB;IAC7E,2EAA2E;IAC3E,MAAM,EAAE,0BAA0B,CAAC;IAEnC,sDAAsD;IACtD,KAAK,CAAC,EAAE,GAAG,CAAC;IAEZ,+DAA+D;IAC/D,YAAY,CAAC,EAAE,oBAAoB,CAAC,aAAa,EAAE,iBAAiB,CAAC,CAAC;CACtE;AAED;;;GAGG;AACH,0BAAkB,0BAA0B;IAC3C,8DAA8D;IAC9D,EAAE,IAAI;IAEN,sDAAsD;IACtD,WAAW,IAAI;IAEf,+DAA+D;IAC/D,gBAAgB,IAAI;IAEpB,6EAA6E;IAC7E,KAAK,IAAI;CACT;AAED;;;;;GAKG;AACH,MAAM,WAAW,oBAAoB,CAAC,iBAAiB,EAAE,iBAAiB;IACzE,sEAAsE;IACtE,OAAO,EAAE,MAAM,CAAC;IAEhB,oEAAoE;IACpE,IAAI,EAAE,iBAAiB,CAAC;IAExB,yDAAyD;IACzD,IAAI,EAAE,iBAAiB,CAAC;CACxB"}
1
+ {"version":3,"file":"workflowInteceptionHandler.interface.d.ts","sourceRoot":"","sources":["../../src/interception/workflowInteceptionHandler.interface.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,WAAW,4BAA4B,CAAC,aAAa,EAAE,iBAAiB;IAC7E,2EAA2E;IAC3E,MAAM,EAAE,0BAA0B,CAAC;IAEnC,sDAAsD;IACtD,KAAK,CAAC,EAAE,GAAG,CAAC;IAEZ,+DAA+D;IAC/D,YAAY,CAAC,EAAE,oBAAoB,CAAC,aAAa,EAAE,iBAAiB,CAAC,CAAC;CACtE;AAED;;;GAGG;AACH,oBAAY,0BAA0B;IACrC,8DAA8D;IAC9D,EAAE,IAAI;IAEN,sDAAsD;IACtD,WAAW,IAAI;IAEf,+DAA+D;IAC/D,gBAAgB,IAAI;IAEpB,6EAA6E;IAC7E,KAAK,IAAI;CACT;AAED;;;;;GAKG;AACH,MAAM,WAAW,oBAAoB,CAAC,iBAAiB,EAAE,iBAAiB;IACzE,sEAAsE;IACtE,OAAO,EAAE,MAAM,CAAC;IAEhB,oEAAoE;IACpE,IAAI,EAAE,iBAAiB,CAAC;IAExB,yDAAyD;IACzD,IAAI,EAAE,iBAAiB,CAAC;CACxB"}
@@ -1,2 +1,16 @@
1
- export {};
1
+ /**
2
+ * Enumeration defining the possible outcomes of an interceptor method call.
3
+ * Used by the orchestrator to determine whether to continue or stop processing.
4
+ */
5
+ export var WorkflowInterceptionResult;
6
+ (function (WorkflowInterceptionResult) {
7
+ /** Continue processing normally - no interception occurred */
8
+ WorkflowInterceptionResult[WorkflowInterceptionResult["OK"] = 0] = "OK";
9
+ /** Stop processing - workflow has been intercepted */
10
+ WorkflowInterceptionResult[WorkflowInterceptionResult["INTERCEPTED"] = 1] = "INTERCEPTED";
11
+ /** Soft interception - processing may continue with caution */
12
+ WorkflowInterceptionResult[WorkflowInterceptionResult["WEAK_INTERCEPTED"] = 2] = "WEAK_INTERCEPTED";
13
+ /** Error occurred during interception - TODO: determine if this is needed */
14
+ WorkflowInterceptionResult[WorkflowInterceptionResult["ERROR"] = 3] = "ERROR";
15
+ })(WorkflowInterceptionResult || (WorkflowInterceptionResult = {}));
2
16
  //# sourceMappingURL=workflowInteceptionHandler.interface.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"workflowInteceptionHandler.interface.js","sourceRoot":"","sources":["../../src/interception/workflowInteceptionHandler.interface.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"workflowInteceptionHandler.interface.js","sourceRoot":"","sources":["../../src/interception/workflowInteceptionHandler.interface.ts"],"names":[],"mappings":"AAiBA;;;GAGG;AACH,MAAM,CAAN,IAAY,0BAYX;AAZD,WAAY,0BAA0B;IACrC,8DAA8D;IAC9D,uEAAM,CAAA;IAEN,sDAAsD;IACtD,yFAAe,CAAA;IAEf,+DAA+D;IAC/D,mGAAoB,CAAA;IAEpB,6EAA6E;IAC7E,6EAAS,CAAA;AACV,CAAC,EAZW,0BAA0B,KAA1B,0BAA0B,QAYrC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "inviton-backduck",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Runtime-agnostic utilities for building web servers with Express and Bun support",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",