node-opcua-utils
Advanced tools
Comparing version 0.1.0-alpha.dc0cce4c to 0.1.1-0
"use strict"; | ||
/** | ||
* @module opcua.datamodel | ||
* @module opcua.utils | ||
*/ | ||
@@ -5,0 +5,0 @@ |
{ | ||
"name": "node-opcua-utils", | ||
"version": "0.1.0-alpha.dc0cce4c", | ||
"description": "", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "mocha test" | ||
}, | ||
"dependencies": { | ||
"node-opcua-assert": "^0.1.0-alpha.dc0cce4c", | ||
"underscore": "^1.8.3" | ||
}, | ||
"devDependencies": { | ||
"should": "^13.0.1", | ||
"sinon": "^3.2.1" | ||
}, | ||
"author": "etienne.rossignon@gadz.org", | ||
"license": "MIT" | ||
"name": "node-opcua-utils", | ||
"version": "0.1.1-0", | ||
"description": "pure nodejs OPCUA SDK - module -utils", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "mocha test" | ||
}, | ||
"dependencies": { | ||
"node-opcua-assert": "^0.1.1-0", | ||
"underscore": "^1.8.3" | ||
}, | ||
"devDependencies": { | ||
"should": "13.2.0", | ||
"sinon": "^4.1.3" | ||
}, | ||
"author": "Etienne Rossignon", | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/node-opcua/node-opcua.git" | ||
}, | ||
"keywords": [ | ||
"OPCUA", | ||
"opcua", | ||
"m2m", | ||
"iot", | ||
"opc ua", | ||
"internet of things" | ||
], | ||
"homepage": "http://node-opcua.github.io/" | ||
} |
"use strict"; | ||
exports.constructFilename = function (filename) { | ||
throw new Error("constructFilename has been deprecated ! use node-opcua-nodesets.constructNodesetFilename or ...."); | ||
throw new Error("constructFilename has been deprecated ! use node-opcua-nodesets.constructFilename or ...."); | ||
//xx var dirname = $_$.dirname; | ||
@@ -6,0 +6,0 @@ //xx var file = path.join(dirname, filename); |
@@ -18,4 +18,8 @@ "use strict"; | ||
LineFile.prototype.toString = function () { | ||
return this.__line.join("\n"); | ||
}; | ||
LineFile.prototype.save = function (filename) { | ||
fs.writeFileSync(filename, this.__line.join("\n"), "ascii"); | ||
fs.writeFileSync(filename, this.toString(), "ascii"); | ||
}; | ||
@@ -22,0 +26,0 @@ |
@@ -63,6 +63,8 @@ "use strict"; | ||
var self = this; | ||
assert(self._watchDog instanceof WatchDog); | ||
assert(_.isNumber(self._watchDogData.key)); | ||
self._watchDogData.last_seen = new Date(); | ||
if (self.onClientSeen) { | ||
self.onClientSeen(self._watchDogData .last_seen); | ||
} | ||
} | ||
@@ -110,2 +112,6 @@ | ||
if (subscriber.onClientSeen) { | ||
subscriber.onClientSeen(subscriber._watchDogData .last_seen); | ||
} | ||
subscriber.keepAlive = keepAliveFunc.bind(subscriber); | ||
@@ -112,0 +118,0 @@ |
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
19173
15
454
1
1
+ Addednode-opcua-assert@0.1.1-0(transitive)
- Removednode-opcua-assert@0.1.0-alpha.dc0cce4c(transitive)
Updatednode-opcua-assert@^0.1.1-0