@xeno-js/shared 0.1.3 → 0.1.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/index.cjs +15 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -1
- package/package.json +4 -7
package/dist/index.js
CHANGED
|
@@ -1983,6 +1983,7 @@ var Command = class {
|
|
|
1983
1983
|
constructor(intent) {
|
|
1984
1984
|
this.intent = intent;
|
|
1985
1985
|
}
|
|
1986
|
+
intent;
|
|
1986
1987
|
type = REQUEST_TYPE.COMMAND;
|
|
1987
1988
|
};
|
|
1988
1989
|
|
|
@@ -1992,6 +1993,8 @@ var Query = class {
|
|
|
1992
1993
|
this.intent = intent;
|
|
1993
1994
|
this.cacheOptions = cacheOptions;
|
|
1994
1995
|
}
|
|
1996
|
+
intent;
|
|
1997
|
+
cacheOptions;
|
|
1995
1998
|
type = REQUEST_TYPE.QUERY;
|
|
1996
1999
|
};
|
|
1997
2000
|
|
|
@@ -2014,6 +2017,7 @@ var BaseLogger = class {
|
|
|
2014
2017
|
this._minLevel = config;
|
|
2015
2018
|
this._loggers = loggers;
|
|
2016
2019
|
}
|
|
2020
|
+
_requestContext;
|
|
2017
2021
|
// ─── Private Fields ─────────────────────────────────────────────────────────
|
|
2018
2022
|
_minLevel;
|
|
2019
2023
|
_loggers;
|
|
@@ -2069,6 +2073,7 @@ var UniqueId = class _UniqueId {
|
|
|
2069
2073
|
this._value = _value;
|
|
2070
2074
|
Object.freeze(this);
|
|
2071
2075
|
}
|
|
2076
|
+
_value;
|
|
2072
2077
|
/**
|
|
2073
2078
|
* Static factory method to create a new UniqueId instance with a generated UUID v4.
|
|
2074
2079
|
* @returns A new instance of UniqueId with a generated UUID v4.
|
|
@@ -2643,6 +2648,10 @@ var SupabaseAuthService = class {
|
|
|
2643
2648
|
this._sessionMapper = _sessionMapper;
|
|
2644
2649
|
this._opts = _opts;
|
|
2645
2650
|
}
|
|
2651
|
+
_supabase;
|
|
2652
|
+
_mapper;
|
|
2653
|
+
_sessionMapper;
|
|
2654
|
+
_opts;
|
|
2646
2655
|
async authenticate(token) {
|
|
2647
2656
|
const { data, error } = await this._supabase.auth.getUser(token);
|
|
2648
2657
|
if (Guards.isDefined(error) || !Guards.isDefined(data.user)) {
|
|
@@ -2730,6 +2739,7 @@ var InMemoryCache = class {
|
|
|
2730
2739
|
constructor(_cache = /* @__PURE__ */ new Map()) {
|
|
2731
2740
|
this._cache = _cache;
|
|
2732
2741
|
}
|
|
2742
|
+
_cache;
|
|
2733
2743
|
async get(key) {
|
|
2734
2744
|
const entry = this._cache.get(key);
|
|
2735
2745
|
if (!Guards.isDefined(entry)) {
|
|
@@ -2785,6 +2795,7 @@ var CacheKeyBuilder = class {
|
|
|
2785
2795
|
constructor(_identityAccessor) {
|
|
2786
2796
|
this._identityAccessor = _identityAccessor;
|
|
2787
2797
|
}
|
|
2798
|
+
_identityAccessor;
|
|
2788
2799
|
buildContextualKey(key) {
|
|
2789
2800
|
const identity = this._identityAccessor.getIdentity();
|
|
2790
2801
|
if (Guards.isDefined(identity) && !Guards.isNullOrEmpty(identity.tenantId)) {
|
|
@@ -2810,6 +2821,7 @@ var AxiosHttpClient = class {
|
|
|
2810
2821
|
constructor(_client) {
|
|
2811
2822
|
this._client = _client;
|
|
2812
2823
|
}
|
|
2824
|
+
_client;
|
|
2813
2825
|
async executInAsync(callback, opts) {
|
|
2814
2826
|
AppError.throwIfAborted(opts.signal, opts.name);
|
|
2815
2827
|
try {
|
|
@@ -2944,6 +2956,7 @@ var SupabaseSessionMapper = class {
|
|
|
2944
2956
|
constructor(_claimsMapper) {
|
|
2945
2957
|
this._claimsMapper = _claimsMapper;
|
|
2946
2958
|
}
|
|
2959
|
+
_claimsMapper;
|
|
2947
2960
|
map(source) {
|
|
2948
2961
|
const claims = this._claimsMapper.map(source.user);
|
|
2949
2962
|
return {
|
|
@@ -3012,6 +3025,8 @@ var ZodValidatorService = class _ZodValidatorService {
|
|
|
3012
3025
|
this._cache = _cache;
|
|
3013
3026
|
this._logger = _logger;
|
|
3014
3027
|
}
|
|
3028
|
+
_cache;
|
|
3029
|
+
_logger;
|
|
3015
3030
|
static formatIssue(issue) {
|
|
3016
3031
|
const issuePath = !Guards.isNullOrEmpty(issue.path) ? issue.path.map(String).join(".") : "root";
|
|
3017
3032
|
return `[${issuePath}] ${issue.message}`;
|