equipped 5.1.1 → 5.1.2

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/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [5.1.2](https://github.com/kevinand11/equipped/compare/v5.1.1...v5.1.2) (2025-11-11)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * type export ([4af5503](https://github.com/kevinand11/equipped/commit/4af55034020e44e66cb569873bf1fc841c7686fa))
11
+
5
12
  ### [5.1.1](https://github.com/kevinand11/equipped/compare/v5.1.0...v5.1.1) (2025-11-11)
6
13
 
7
14
 
@@ -1,6 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _eventscjs = require('./events.cjs');
2
-
3
-
4
-
5
- exports.EventAudit = _eventscjs.EventAudit; exports.EventDefinition = _eventscjs.EventDefinition;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _createStarExport(obj) { Object.keys(obj) .filter((key) => key !== "default" && key !== "__esModule") .forEach((key) => { if (exports.hasOwnProperty(key)) { return; } Object.defineProperty(exports, key, {enumerable: true, configurable: true, get: () => obj[key]}); }); }var _eventscjs = require('./events.cjs'); _createStarExport(_eventscjs);
6
2
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/audit/index.ts","/home/runner/work/equipped/equipped/dist/cjs/audit/index.cjs"],"names":[],"mappings":"AAAA,kHAA4C;ACC5C;AACE;AACA;AACF,iGAAC","file":"/home/runner/work/equipped/equipped/dist/cjs/audit/index.cjs","sourcesContent":["export { EventAudit, EventDefinition } from './events'\n",null]}
1
+ {"version":3,"sources":["../../../src/audit/index.ts"],"names":[],"mappings":"AAAA,yaAAc","file":"/home/runner/work/equipped/equipped/dist/cjs/audit/index.cjs","sourcesContent":["export * from './events'\n"]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _eventsmincjs = require('./events.min.cjs');exports.EventAudit = _eventsmincjs.EventAudit; exports.EventDefinition = _eventsmincjs.EventDefinition;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _createStarExport(obj) { Object.keys(obj) .filter((key) => key !== "default" && key !== "__esModule") .forEach((key) => { if (exports.hasOwnProperty(key)) { return; } Object.defineProperty(exports, key, {enumerable: true, configurable: true, get: () => obj[key]}); }); }var _eventsmincjs = require('./events.min.cjs'); _createStarExport(_eventsmincjs);
2
2
  //# sourceMappingURL=index.min.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/audit/index.ts"],"names":[],"mappings":"AAAA,yHAA4C,uGAAA","file":"/home/runner/work/equipped/equipped/dist/cjs/audit/index.min.cjs","sourcesContent":["export { EventAudit, EventDefinition } from './events'\n"]}
1
+ {"version":3,"sources":["../../../src/audit/index.ts"],"names":[],"mappings":"AAAA,mbAAc","file":"/home/runner/work/equipped/equipped/dist/cjs/audit/index.min.cjs","sourcesContent":["export * from './events'\n"]}
@@ -1,2 +1,2 @@
1
- import{EventAudit as i,EventDefinition as n}from "./events.min.mjs";export{i as EventAudit,n as EventDefinition};
1
+ export*from "./events.min.mjs";
2
2
  //# sourceMappingURL=index.min.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/audit/index.ts"],"sourcesContent":["export { EventAudit, EventDefinition } from './events'\n"],"mappings":"AAAA,OAAS,cAAAA,EAAY,mBAAAC,MAAuB","names":["EventAudit","EventDefinition"]}
1
+ {"version":3,"sources":["../../../src/audit/index.ts"],"sourcesContent":["export * from './events'\n"],"mappings":"AAAA,WAAc","names":[]}
@@ -1,6 +1,2 @@
1
- import { EventAudit, EventDefinition } from "./events.mjs";
2
- export {
3
- EventAudit,
4
- EventDefinition
5
- };
1
+ export * from "./events.mjs";
6
2
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/audit/index.ts"],"sourcesContent":["export { EventAudit, EventDefinition } from './events'\n"],"mappings":"AAAA,SAAS,YAAY,uBAAuB;","names":[]}
1
+ {"version":3,"sources":["../../../src/audit/index.ts"],"sourcesContent":["export * from './events'\n"],"mappings":"AAAA,cAAc;","names":[]}
@@ -17,6 +17,18 @@ type EventContext = {
17
17
  by: string | undefined;
18
18
  date: Date;
19
19
  };
20
+ type EventDoc = {
21
+ key: string;
22
+ name: string;
23
+ ts: number;
24
+ body: unknown;
25
+ steps: {
26
+ status: 'start' | 'sync' | 'async' | 'error';
27
+ ts: number;
28
+ error?: string;
29
+ }[];
30
+ by?: string;
31
+ };
20
32
  type Context = {
21
33
  by?: string;
22
34
  at?: Date;
@@ -33,4 +45,4 @@ declare class EventAudit {
33
45
  register<P extends Pipe<any, any>, R>(name: string, def: EventDefinition<P, R>): (payload: PipeInput<P>, context: Context) => Promise<R>;
34
46
  }
35
47
 
36
- export { EventAudit, type EventDefinition };
48
+ export { EventAudit, type EventContext, type EventDefinition, type EventDoc };
@@ -1,5 +1 @@
1
- import { EventAudit, EventDefinition } from "./events.js";
2
- export {
3
- EventAudit,
4
- EventDefinition
5
- };
1
+ export * from "./events.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "equipped",
3
- "version": "5.1.1",
3
+ "version": "5.1.2",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "type": "module",