node-opcua-crypto
Advanced tools
Comparing version 1.4.7 to 1.4.8
@@ -1,28 +0,3 @@ | ||
function isElectron() { | ||
// Renderer process | ||
if (typeof window !== "undefined" && typeof window.process === "object" && window.process.type === "renderer") { | ||
return true; | ||
} | ||
// Main process | ||
if (typeof process !== "undefined" && typeof process.versions === "object" && !!process.versions.electron) { | ||
return true; | ||
} | ||
// Detect the user agent when the `nodeIntegration` option is set to true | ||
if (typeof navigator === "object" && typeof navigator.userAgent === "string" && navigator.userAgent.indexOf("Electron") >= 0) { | ||
return true; | ||
} | ||
return false; | ||
} | ||
if (isElectron()) { | ||
module.exports = { | ||
...require("./dist/source"), | ||
...require("./dist/source_nodejs"), | ||
}; | ||
} else { | ||
module.exports = { | ||
...require("./dist/source"), | ||
}; | ||
} | ||
module.exports = { | ||
...require("./dist/source"), | ||
}; |
module.exports = { | ||
...require("./dist/source"), | ||
...require("./dist/source_nodejs") | ||
...require("./dist/source_nodejs"), | ||
}; |
{ | ||
"name": "node-opcua-crypto", | ||
"version": "1.4.7", | ||
"version": "1.4.8", | ||
"description": "Crypto tools for Node-OPCUA", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
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
473905
7202