Skip to content

Commit

Permalink
fix typescript issues raised with new ts version
Browse files Browse the repository at this point in the history
  • Loading branch information
erossignon committed Jun 3, 2023
1 parent 408db1d commit 186bbd1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,13 @@ describe("testing Server resilience to DDOS attacks", function () {
if (err) {
nbError++;
}
callback && callback();
callback = null;
if(callback) {
const _callback = callback;
callback = null;
_callback();
} else {
console.log("warning callback already called !!!!!! CHECK Channel implementationc");
}
});
},
callback
Expand Down
3 changes: 2 additions & 1 deletion packages/node-opcua/source/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ export {
NodeClass,
NodeClassMask,
AttributeIds,
BrowseDirection
BrowseDirection,
WriteMask
} from "node-opcua-data-model";

// basic_types
Expand Down
1 change: 1 addition & 0 deletions packages/node-opcua/test/test_node-opcua.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const should = require("should");
const opcua = require("..");
describe("module 'node-opcua' module sanity test", function () {
it("module 'node-opcua' should not export any null properties", function () {
// console.log(Object.keys(opcua).join(" "));
Object.keys(opcua).forEach(function (x) {
should.exist(opcua[x], x + " should be defined");
});
Expand Down

0 comments on commit 186bbd1

Please sign in to comment.