node-opcua-status-code
Advanced tools
Comparing version 2.85.0 to 2.86.0
@@ -6,7 +6,7 @@ /// <reference types="node" /> | ||
import { StatusCode } from "./opcua_status_code"; | ||
export declare type ErrorCallback = (err?: Error) => void; | ||
export declare type Callback2<T> = (err: Error | null, result?: T) => void; | ||
export declare type CallbackT<T> = (err: Error | null, result?: T) => void; | ||
export declare type StatusCodeCallback = CallbackT<StatusCode>; | ||
export declare type CallbackWithData = CallbackT<Buffer>; | ||
export declare type Callback<T> = (err: Error | null, result?: T) => void; | ||
export type ErrorCallback = (err?: Error) => void; | ||
export type Callback2<T> = (err: Error | null, result?: T) => void; | ||
export type CallbackT<T> = (err: Error | null, result?: T) => void; | ||
export type StatusCodeCallback = CallbackT<StatusCode>; | ||
export type CallbackWithData = CallbackT<Buffer>; | ||
export type Callback<T> = (err: Error | null, result?: T) => void; |
@@ -44,2 +44,6 @@ /** | ||
toJSONFull(): any; | ||
isGood(): boolean; | ||
isNotGood(): boolean; | ||
isGoodish(): boolean; | ||
isBad(): boolean; | ||
} | ||
@@ -46,0 +50,0 @@ export declare class ConstantStatusCode extends StatusCode { |
@@ -119,3 +119,3 @@ "use strict"; | ||
toString() { | ||
return this.name + " (0x" + (this.value.toString(16)).padStart(8, "0") + ")"; | ||
return this.name + " (0x" + this.value.toString(16).padStart(8, "0") + ")"; | ||
} | ||
@@ -151,2 +151,14 @@ checkBit(mask) { | ||
} | ||
isGood() { | ||
return this.value === 0; | ||
} | ||
isNotGood() { | ||
return this.value !== 0; | ||
} | ||
isGoodish() { | ||
return this.value < 0x10000000; | ||
} | ||
isBad() { | ||
return this.value >= 0x80000000; | ||
} | ||
} | ||
@@ -153,0 +165,0 @@ exports.StatusCode = StatusCode; |
{ | ||
"name": "node-opcua-status-code", | ||
"version": "2.85.0", | ||
"version": "2.86.0", | ||
"description": "pure nodejs OPCUA SDK - module -status-code", | ||
@@ -16,3 +16,3 @@ "main": "./dist/index.js", | ||
"node-opcua-assert": "2.77.0", | ||
"node-opcua-binary-stream": "2.85.0" | ||
"node-opcua-binary-stream": "2.86.0" | ||
}, | ||
@@ -37,3 +37,3 @@ "devDependencies": { | ||
"homepage": "http://node-opcua.github.io/", | ||
"gitHead": "68498fcf7b20ea9f7bd66e8529c546221daf5d52" | ||
"gitHead": "36afc46fe2c91aa5664a8c5418f4db5a354670c3" | ||
} |
@@ -153,3 +153,3 @@ /** | ||
public toString(): string { | ||
return this.name + " (0x" + (this.value.toString(16)).padStart(8,"0") + ")"; | ||
return this.name + " (0x" + this.value.toString(16).padStart(8, "0") + ")"; | ||
} | ||
@@ -193,2 +193,18 @@ | ||
} | ||
public isGood(): boolean { | ||
return this.value === 0; | ||
} | ||
public isNotGood(): boolean { | ||
return this.value !== 0; | ||
} | ||
public isGoodish(): boolean { | ||
return this.value < 0x10000000; | ||
} | ||
public isBad(): boolean { | ||
return this.value >= 0x80000000; | ||
} | ||
} | ||
@@ -195,0 +211,0 @@ |
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
282319
4552
+ Addednode-opcua-binary-stream@2.86.0(transitive)
+ Addednode-opcua-buffer-utils@2.86.0(transitive)
- Removednode-opcua-binary-stream@2.85.0(transitive)
- Removednode-opcua-buffer-utils@2.85.0(transitive)