Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-opcua-status-code

Package Overview
Dependencies
Maintainers
1
Versions
121
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-opcua-status-code - npm Package Compare versions

Comparing version 2.85.0 to 2.86.0

12

dist/callbacks.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc