@nextera.one/axis-server-sdk 2.3.16 → 2.3.17
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-CQGfX-P_.d.mts → index-D4Oz7vc1.d.mts} +2 -1
- package/dist/{index-DBEYhMJc.d.ts → index-DwBRLF9t.d.ts} +2 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +8 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -7
- package/dist/index.mjs.map +1 -1
- package/dist/sensors/index.d.mts +1 -1
- package/dist/sensors/index.d.ts +1 -1
- package/dist/sensors/index.js +8 -6
- package/dist/sensors/index.js.map +1 -1
- package/dist/sensors/index.mjs +12 -7
- package/dist/sensors/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -141,10 +141,7 @@ function appendRequiredProof(target, propertyKey, proof) {
|
|
|
141
141
|
REQUIRED_PROOF_METADATA_KEY,
|
|
142
142
|
target,
|
|
143
143
|
propertyKey
|
|
144
|
-
) ?? [] : Reflect.getMetadata(
|
|
145
|
-
REQUIRED_PROOF_METADATA_KEY,
|
|
146
|
-
target
|
|
147
|
-
) ?? [];
|
|
144
|
+
) ?? [] : Reflect.getMetadata(REQUIRED_PROOF_METADATA_KEY, target) ?? [];
|
|
148
145
|
const merged = existing.includes(proof) ? existing : [...existing, proof];
|
|
149
146
|
if (propertyKey !== void 0) {
|
|
150
147
|
Reflect.defineMetadata(
|
|
@@ -2530,7 +2527,10 @@ var intent_router_exports = {};
|
|
|
2530
2527
|
__export(intent_router_exports, {
|
|
2531
2528
|
IntentRouter: () => IntentRouter
|
|
2532
2529
|
});
|
|
2533
|
-
import {
|
|
2530
|
+
import {
|
|
2531
|
+
decodeChainEnvelope,
|
|
2532
|
+
decodeChainRequest
|
|
2533
|
+
} from "@nextera.one/axis-protocol";
|
|
2534
2534
|
function observerRefKey(ref) {
|
|
2535
2535
|
return typeof ref === "string" ? ref : ref.name;
|
|
2536
2536
|
}
|
|
@@ -2722,7 +2722,9 @@ var init_intent_router = __esm({
|
|
|
2722
2722
|
*/
|
|
2723
2723
|
register(intent, handler) {
|
|
2724
2724
|
if (this.handlers.has(intent)) {
|
|
2725
|
-
this.logger.warn(
|
|
2725
|
+
this.logger.warn(
|
|
2726
|
+
`Intent ${intent} is already registered; replacing handler`
|
|
2727
|
+
);
|
|
2726
2728
|
}
|
|
2727
2729
|
this.handlers.set(intent, handler);
|
|
2728
2730
|
if (typeof handler === "function" && handler.name) {
|
|
@@ -2993,7 +2995,9 @@ var init_intent_router = __esm({
|
|
|
2993
2995
|
body: bodyRes
|
|
2994
2996
|
};
|
|
2995
2997
|
}
|
|
2996
|
-
throw new Error(
|
|
2998
|
+
throw new Error(
|
|
2999
|
+
`Handler for ${intent} does not implement handle or execute`
|
|
3000
|
+
);
|
|
2997
3001
|
}
|
|
2998
3002
|
logIntent(intent, start, ok, error) {
|
|
2999
3003
|
const diff = process.hrtime(start);
|
|
@@ -3701,6 +3705,7 @@ var init_intent_router = __esm({
|
|
|
3701
3705
|
intent: meta.intent,
|
|
3702
3706
|
version: 1,
|
|
3703
3707
|
bodyProfile: meta.bodyProfile || "TLV_MAP",
|
|
3708
|
+
dtoName: meta.dto.name || void 0,
|
|
3704
3709
|
fields: extracted.fields.map((f) => ({
|
|
3705
3710
|
name: f.name,
|
|
3706
3711
|
tlv: f.tag,
|