jacdac-ts
Advanced tools
Comparing version 1.0.24 to 1.0.25
@@ -5,2 +5,3 @@ import { Packet } from "./packet"; | ||
export declare function serviceName(n: number): string; | ||
export declare function deviceServiceName(pkt: Packet): string; | ||
export declare function commandName(n: number): string; | ||
@@ -7,0 +8,0 @@ export interface Options { |
{ | ||
"name": "jacdac-ts", | ||
"version": "1.0.24", | ||
"version": "1.0.25", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
@@ -121,2 +121,8 @@ import * as U from "./utils" | ||
export function deviceServiceName(pkt: Packet): string { | ||
const srv_class = pkt?.dev?.serviceClassAt(pkt.service_number); | ||
const serv_id = serviceName(srv_class); | ||
return `${pkt?.dev?.shortId || "?"}/${serv_id}:${pkt.service_number}` | ||
} | ||
export function commandName(n: number) { | ||
@@ -123,0 +129,0 @@ let pref = "" |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
510205
6818