@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/sensors/index.mjs
CHANGED
|
@@ -462,10 +462,7 @@ function appendRequiredProof(target, propertyKey, proof) {
|
|
|
462
462
|
REQUIRED_PROOF_METADATA_KEY,
|
|
463
463
|
target,
|
|
464
464
|
propertyKey
|
|
465
|
-
) ?? [] : Reflect.getMetadata(
|
|
466
|
-
REQUIRED_PROOF_METADATA_KEY,
|
|
467
|
-
target
|
|
468
|
-
) ?? [];
|
|
465
|
+
) ?? [] : Reflect.getMetadata(REQUIRED_PROOF_METADATA_KEY, target) ?? [];
|
|
469
466
|
const merged = existing.includes(proof) ? existing : [...existing, proof];
|
|
470
467
|
if (propertyKey !== void 0) {
|
|
471
468
|
Reflect.defineMetadata(
|
|
@@ -2674,7 +2671,10 @@ var intent_router_exports = {};
|
|
|
2674
2671
|
__export(intent_router_exports, {
|
|
2675
2672
|
IntentRouter: () => IntentRouter
|
|
2676
2673
|
});
|
|
2677
|
-
import {
|
|
2674
|
+
import {
|
|
2675
|
+
decodeChainEnvelope,
|
|
2676
|
+
decodeChainRequest
|
|
2677
|
+
} from "@nextera.one/axis-protocol";
|
|
2678
2678
|
function observerRefKey(ref) {
|
|
2679
2679
|
return typeof ref === "string" ? ref : ref.name;
|
|
2680
2680
|
}
|
|
@@ -2866,7 +2866,9 @@ var init_intent_router = __esm({
|
|
|
2866
2866
|
*/
|
|
2867
2867
|
register(intent, handler) {
|
|
2868
2868
|
if (this.handlers.has(intent)) {
|
|
2869
|
-
this.logger.warn(
|
|
2869
|
+
this.logger.warn(
|
|
2870
|
+
`Intent ${intent} is already registered; replacing handler`
|
|
2871
|
+
);
|
|
2870
2872
|
}
|
|
2871
2873
|
this.handlers.set(intent, handler);
|
|
2872
2874
|
if (typeof handler === "function" && handler.name) {
|
|
@@ -3137,7 +3139,9 @@ var init_intent_router = __esm({
|
|
|
3137
3139
|
body: bodyRes
|
|
3138
3140
|
};
|
|
3139
3141
|
}
|
|
3140
|
-
throw new Error(
|
|
3142
|
+
throw new Error(
|
|
3143
|
+
`Handler for ${intent} does not implement handle or execute`
|
|
3144
|
+
);
|
|
3141
3145
|
}
|
|
3142
3146
|
logIntent(intent, start, ok, error) {
|
|
3143
3147
|
const diff = process.hrtime(start);
|
|
@@ -3845,6 +3849,7 @@ var init_intent_router = __esm({
|
|
|
3845
3849
|
intent: meta.intent,
|
|
3846
3850
|
version: 1,
|
|
3847
3851
|
bodyProfile: meta.bodyProfile || "TLV_MAP",
|
|
3852
|
+
dtoName: meta.dto.name || void 0,
|
|
3848
3853
|
fields: extracted.fields.map((f) => ({
|
|
3849
3854
|
name: f.name,
|
|
3850
3855
|
tlv: f.tag,
|