@bgord/bun 1.0.9 → 1.0.11
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/modules/history/event-handlers/onHistoryPopulatedEvent.js +2 -2
- package/dist/modules/history/event-handlers/onHistoryPopulatedEvent.js.map +1 -1
- package/dist/modules/history/ports/history-projection.d.ts +1 -2
- package/dist/modules/history/ports/history-projection.d.ts.map +1 -1
- package/dist/modules/history/ports/history-reader.d.ts +1 -1
- package/dist/modules/history/ports/history-reader.d.ts.map +1 -1
- package/dist/shield-auth.middleware.d.ts +0 -6
- package/dist/shield-auth.middleware.d.ts.map +1 -1
- package/dist/shield-auth.middleware.js +0 -6
- package/dist/shield-auth.middleware.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/modules/history/event-handlers/onHistoryPopulatedEvent.ts +2 -2
- package/src/modules/history/ports/history-projection.ts +1 -2
- package/src/modules/history/ports/history-reader.ts +1 -1
- package/src/shield-auth.middleware.ts +0 -7
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as VO from "../value-objects";
|
|
2
2
|
export const onHistoryPopulatedEvent = (projection) => async (event) => {
|
|
3
|
-
const data = VO.HistoryParsed.parse(event.payload);
|
|
4
|
-
await projection.append(data
|
|
3
|
+
const data = VO.HistoryParsed.parse({ ...event.payload, createdAt: event.createdAt });
|
|
4
|
+
await projection.append(data);
|
|
5
5
|
};
|
|
6
6
|
//# sourceMappingURL=onHistoryPopulatedEvent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onHistoryPopulatedEvent.js","sourceRoot":"","sources":["../../../../src/modules/history/event-handlers/onHistoryPopulatedEvent.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAEvC,MAAM,CAAC,MAAM,uBAAuB,GAClC,CAAC,UAAuC,EAAE,EAAE,CAAC,KAAK,EAAE,KAAuC,EAAE,EAAE;IAC7F,MAAM,IAAI,GAAG,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"onHistoryPopulatedEvent.js","sourceRoot":"","sources":["../../../../src/modules/history/event-handlers/onHistoryPopulatedEvent.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAEvC,MAAM,CAAC,MAAM,uBAAuB,GAClC,CAAC,UAAuC,EAAE,EAAE,CAAC,KAAK,EAAE,KAAuC,EAAE,EAAE;IAC7F,MAAM,IAAI,GAAG,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,GAAG,KAAK,CAAC,OAAO,EAAE,SAAS,EAAE,KAAK,CAAC,SAAS,EAAE,CAAC,CAAC;IAEtF,MAAM,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAChC,CAAC,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import type * as tools from "@bgord/tools";
|
|
2
1
|
import type * as VO from "../value-objects";
|
|
3
2
|
export interface HistoryProjectionPort {
|
|
4
|
-
append(data: VO.HistoryParsedType
|
|
3
|
+
append(data: VO.HistoryParsedType): Promise<void>;
|
|
5
4
|
clear(subject: VO.HistoryParsedType["subject"]): Promise<void>;
|
|
6
5
|
}
|
|
7
6
|
//# sourceMappingURL=history-projection.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"history-projection.d.ts","sourceRoot":"","sources":["../../../../src/modules/history/ports/history-projection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,
|
|
1
|
+
{"version":3,"file":"history-projection.d.ts","sourceRoot":"","sources":["../../../../src/modules/history/ports/history-projection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAE5C,MAAM,WAAW,qBAAqB;IACpC,MAAM,CAAC,IAAI,EAAE,EAAE,CAAC,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAElD,KAAK,CAAC,OAAO,EAAE,EAAE,CAAC,iBAAiB,CAAC,SAAS,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAChE"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as VO from "../value-objects";
|
|
2
2
|
export interface HistoryReaderPort {
|
|
3
|
-
read(subject: VO.HistoryParsedType["subject"]): Promise<VO.HistoryType>;
|
|
3
|
+
read(subject: VO.HistoryParsedType["subject"]): Promise<VO.HistoryType[]>;
|
|
4
4
|
}
|
|
5
5
|
//# sourceMappingURL=history-reader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"history-reader.d.ts","sourceRoot":"","sources":["../../../../src/modules/history/ports/history-reader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAE5C,MAAM,WAAW,iBAAiB;IAChC,IAAI,CAAC,OAAO,EAAE,EAAE,CAAC,iBAAiB,CAAC,SAAS,CAAC,GAAG,OAAO,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"history-reader.d.ts","sourceRoot":"","sources":["../../../../src/modules/history/ports/history-reader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAE5C,MAAM,WAAW,iBAAiB;IAChC,IAAI,CAAC,OAAO,EAAE,EAAE,CAAC,iBAAiB,CAAC,SAAS,CAAC,GAAG,OAAO,CAAC,EAAE,CAAC,WAAW,EAAE,CAAC,CAAC;CAC3E"}
|
|
@@ -4,12 +4,6 @@ import { HTTPException } from "hono/http-exception";
|
|
|
4
4
|
export declare const AccessDeniedAuthShieldError: HTTPException;
|
|
5
5
|
export declare class ShieldAuth {
|
|
6
6
|
private readonly Auth;
|
|
7
|
-
cors: {
|
|
8
|
-
origin: string[];
|
|
9
|
-
credentials: boolean;
|
|
10
|
-
allowHeaders: string[];
|
|
11
|
-
exposeHeaders: string[];
|
|
12
|
-
};
|
|
13
7
|
constructor(Auth: ReturnType<typeof betterAuth>);
|
|
14
8
|
attach: hono.MiddlewareHandler<any, any, {}, Response>;
|
|
15
9
|
verify: hono.MiddlewareHandler<any, any, {}, Response>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shield-auth.middleware.d.ts","sourceRoot":"","sources":["../src/shield-auth.middleware.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAE7B,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,eAAO,MAAM,2BAA2B,eAAmE,CAAC;AAE5G,qBAAa,UAAU;
|
|
1
|
+
{"version":3,"file":"shield-auth.middleware.d.ts","sourceRoot":"","sources":["../src/shield-auth.middleware.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAE7B,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,eAAO,MAAM,2BAA2B,eAAmE,CAAC;AAE5G,qBAAa,UAAU;IACT,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC;IAEhE,MAAM,iDAcH;IAEH,MAAM,iDAKH;IAEH,OAAO,iDAKJ;CACJ"}
|
|
@@ -4,12 +4,6 @@ import { HTTPException } from "hono/http-exception";
|
|
|
4
4
|
export const AccessDeniedAuthShieldError = new HTTPException(403, { message: "access_denied_auth_shield" });
|
|
5
5
|
export class ShieldAuth {
|
|
6
6
|
Auth;
|
|
7
|
-
cors = {
|
|
8
|
-
origin: ["http://localhost:5173", "http://localhost:3000"],
|
|
9
|
-
credentials: true,
|
|
10
|
-
allowHeaders: ["Content-Type"],
|
|
11
|
-
exposeHeaders: ["Set-Cookie"],
|
|
12
|
-
};
|
|
13
7
|
constructor(Auth) {
|
|
14
8
|
this.Auth = Auth;
|
|
15
9
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shield-auth.middleware.js","sourceRoot":"","sources":["../src/shield-auth.middleware.ts"],"names":[],"mappings":"AAAA,cAAc;AAId,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,MAAM,CAAC,MAAM,2BAA2B,GAAG,IAAI,aAAa,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,2BAA2B,EAAE,CAAC,CAAC;AAE5G,MAAM,OAAO,UAAU;
|
|
1
|
+
{"version":3,"file":"shield-auth.middleware.js","sourceRoot":"","sources":["../src/shield-auth.middleware.ts"],"names":[],"mappings":"AAAA,cAAc;AAId,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,MAAM,CAAC,MAAM,2BAA2B,GAAG,IAAI,aAAa,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,2BAA2B,EAAE,CAAC,CAAC;AAE5G,MAAM,OAAO,UAAU;IACQ;IAA7B,YAA6B,IAAmC;QAAnC,SAAI,GAAJ,IAAI,CAA+B;IAAG,CAAC;IAEpE,MAAM,GAAG,gBAAgB,CAAC,KAAK,EAAE,CAAe,EAAE,IAAe,EAAE,EAAE;QACnE,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;QAE/E,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;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