@aooth/arbac-moost 0.1.71 → 0.1.73
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/atscript/index.d.mts +3 -5
- package/dist/atscript/index.mjs +1 -6
- package/dist/{user.provider-CYiwr7y3.mjs → decorateMetadata-CU_mqYGT.mjs} +6 -1
- package/dist/index.d.mts +709 -210
- package/dist/index.mjs +2122 -576
- package/dist/{user.provider-C5BrFNxg.d.mts → user.provider-NMSzynGK.d.mts} +264 -51
- package/package.json +19 -19
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as AoothArbacClaims, t as ArbacUserProvider } from "../user.provider-
|
|
1
|
+
import { r as AoothArbacClaims, t as ArbacUserProvider } from "../user.provider-NMSzynGK.mjs";
|
|
2
2
|
import { TAtscriptAnnotatedType, TAtscriptTypeObject, TMetadataMap, TValidatorOptions, Validator } from "@atscript/typescript/utils";
|
|
3
3
|
import { AoothUserCredentials } from "@aooth/user/atscript-db/model.as";
|
|
4
4
|
//#region src/atscript/auto-provider.d.ts
|
|
@@ -36,10 +36,8 @@ interface ArbacUserTable<T extends object> {
|
|
|
36
36
|
* `@Injectable()` (SINGLETON) — moost@0.6.x's `Injectable` metadata is NOT
|
|
37
37
|
* inherited from the base `ArbacUserProvider` by infact, so the decorator
|
|
38
38
|
* must be re-applied here. SINGLETON is the right scope: there is no
|
|
39
|
-
* per-instance state worth scoping per event
|
|
40
|
-
*
|
|
41
|
-
* multi-adapter app (HTTP + WF). Per-event memoization is provided via
|
|
42
|
-
* a wooks-slot cache keyed by `this` — see `useFetchCache` above.
|
|
39
|
+
* per-instance state worth scoping per event. Per-event memoization is
|
|
40
|
+
* provided via a wooks-slot cache keyed by `this` — see `useFetchCache` above.
|
|
43
41
|
*
|
|
44
42
|
* Consumers extend this class, implement `getUserId()` (typically reading
|
|
45
43
|
* the JWT subject from the auth composable), inject their atscript-db
|
package/dist/atscript/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as __decorate, n as ArbacUserProvider, t as __decorateMetadata } from "../decorateMetadata-CU_mqYGT.mjs";
|
|
2
2
|
import { defineWook, key } from "@wooksjs/event-core";
|
|
3
3
|
import { Injectable } from "moost";
|
|
4
4
|
import { defineAnnotatedType, throwFeatureDisabled } from "@atscript/typescript/utils";
|
|
@@ -22,11 +22,6 @@ function uniqueStrings(values) {
|
|
|
22
22
|
return out;
|
|
23
23
|
}
|
|
24
24
|
//#endregion
|
|
25
|
-
//#region \0@oxc-project+runtime@0.140.0/helpers/esm/decorateMetadata.js
|
|
26
|
-
function __decorateMetadata(k, v) {
|
|
27
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
28
|
-
}
|
|
29
|
-
//#endregion
|
|
30
25
|
//#region src/atscript/auto-provider.ts
|
|
31
26
|
const specCache$3 = /* @__PURE__ */ new WeakMap();
|
|
32
27
|
/**
|
|
@@ -28,4 +28,9 @@ var ArbacUserProvider = class {};
|
|
|
28
28
|
*/
|
|
29
29
|
const ArbacUserProviderToken = ArbacUserProvider;
|
|
30
30
|
//#endregion
|
|
31
|
-
|
|
31
|
+
//#region \0@oxc-project+runtime@0.140.0/helpers/esm/decorateMetadata.js
|
|
32
|
+
function __decorateMetadata(k, v) {
|
|
33
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
34
|
+
}
|
|
35
|
+
//#endregion
|
|
36
|
+
export { __decorate as i, ArbacUserProvider as n, ArbacUserProviderToken as r, __decorateMetadata as t };
|