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.5.0-alpha.4 to 2.5.1

0

dist/_generated_status_codes.d.ts

@@ -0,0 +0,0 @@ /**

export * from "./opcua_status_code";

@@ -0,0 +0,0 @@ "use strict";

8

dist/opcua_status_code.d.ts

@@ -29,10 +29,10 @@ /**

abstract get description(): string;
get valueOf(): number;
valueOf(): number;
toString(): string;
checkBit(mask: number): boolean;
/**returns true if the overflow bit is set */
/** returns true if the overflow bit is set */
get hasOverflowBit(): boolean;
/**returns true if the semanticChange bit is set */
/** returns true if the semanticChange bit is set */
get hasSemanticChangedBit(): boolean;
/**returns true if the structureChange bit is set */
/** returns true if the structureChange bit is set */
get hasStructureChangedBit(): boolean;

@@ -39,0 +39,0 @@ isNot(other: StatusCode): boolean;

@@ -115,3 +115,3 @@ "use strict";

}
get valueOf() {
valueOf() {
return this.value;

@@ -125,11 +125,11 @@ }

}
/**returns true if the overflow bit is set */
/** returns true if the overflow bit is set */
get hasOverflowBit() {
return this.checkBit(exports.extraStatusCodeBits.Overflow);
}
/**returns true if the semanticChange bit is set */
/** returns true if the semanticChange bit is set */
get hasSemanticChangedBit() {
return this.checkBit(exports.extraStatusCodeBits.SemanticChanged);
}
/**returns true if the structureChange bit is set */
/** returns true if the structureChange bit is set */
get hasStructureChangedBit() {

@@ -136,0 +136,0 @@ return this.checkBit(exports.extraStatusCodeBits.StructureChanged);

@@ -0,0 +0,0 @@ module.exports = {

{
"name": "node-opcua-status-code",
"version": "2.5.0-alpha.4",
"version": "2.5.1",
"description": "pure nodejs OPCUA SDK - module -status-code",

@@ -12,3 +12,3 @@ "main": "./dist/opcua_status_code.js",

"dependencies": {
"node-opcua-assert": "^2.5.0-alpha.4",
"node-opcua-assert": "^2.5.1",
"node-opcua-constants": "^2.5.0-alpha.4",

@@ -18,4 +18,4 @@ "underscore": "^1.9.2"

"devDependencies": {
"node-opcua-binary-stream": "^2.5.0-alpha.4",
"should": "13.2.3"
"node-opcua-binary-stream": "^2.5.1",
"should": "^13.2.3"
},

@@ -37,3 +37,3 @@ "author": "Etienne Rossignon",

"homepage": "http://node-opcua.github.io/",
"gitHead": "67068530aea80ae818cd8ee05be517194e706523"
"gitHead": "4cc18f384bbdf33c5cdd2a7857e810425aa67c8b"
}
export * from "./opcua_status_code";

@@ -131,7 +131,7 @@ /**

public static makeStatusCode(
statusCode: StatusCode | string,
statusCode: StatusCode | string,
optionalBits: string | number): StatusCode {
const _base = coerceStatusCode(statusCode);
const tmp = new ModifiableStatusCode({_base});
const tmp = new ModifiableStatusCode({ _base });
if (optionalBits || typeof optionalBits === "number") {

@@ -158,3 +158,3 @@ tmp.set(optionalBits);

public get valueOf(): number {
public valueOf(): number {
return this.value;

@@ -171,3 +171,3 @@ }

/**returns true if the overflow bit is set */
/** returns true if the overflow bit is set */
public get hasOverflowBit(): boolean {

@@ -177,3 +177,3 @@ return this.checkBit(extraStatusCodeBits.Overflow);

/**returns true if the semanticChange bit is set */
/** returns true if the semanticChange bit is set */
public get hasSemanticChangedBit(): boolean {

@@ -183,3 +183,3 @@ return this.checkBit(extraStatusCodeBits.SemanticChanged);

/**returns true if the structureChange bit is set */
/** returns true if the structureChange bit is set */
public get hasStructureChangedBit(): boolean {

@@ -277,6 +277,6 @@ return this.checkBit(extraStatusCodeBits.StructureChanged);

sc = StatusCodes.Bad;
console.log("expecting a known StatusCode but got 0x" + codeWithoutInfoBits.toString(16),
" code was 0x"+ code.toString(16));
warnLog("expecting a known StatusCode but got 0x" + codeWithoutInfoBits.toString(16),
" code was 0x"+ code.toString(16));
console.log("expecting a known StatusCode but got 0x" + codeWithoutInfoBits.toString(16),
" code was 0x" + code.toString(16));
warnLog("expecting a known StatusCode but got 0x" + codeWithoutInfoBits.toString(16),
" code was 0x" + code.toString(16));
}

@@ -403,5 +403,5 @@ if (infoBits) {

}
const _StatusCodes =StatusCodes as any
const _StatusCodes = StatusCodes as any
if (!_StatusCodes[statusCode as string]) {
throw new Error("Cannot find StatusCode "+ statusCode);
throw new Error("Cannot find StatusCode " + statusCode);
}

@@ -408,0 +408,0 @@ return _StatusCodes[statusCode as string];

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 not supported yet

Sorry, the diff of this file is too big to display

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