chore: fix indentation and semi in files

This commit is contained in:
Wesley F. Young committed 2024-08-09 10:37:09 +08:00
1 parent 024faa2561
commit db4c5bc3a3
27 files changed
+1326 -1330

No files matched your search

+8 -8
View File
@@ -4,7 +4,7 @@ const CurrentPath = path.dirname(__filename);
let Process = require('process');
let os = require('os');
Process.dlopenOrig = Process.dlopen
Process.dlopenOrig = Process.dlopen;
let proxyHandler = {
get(target, prop, receiver) {
@@ -22,22 +22,22 @@ let WrapperNodeApi = undefined;//NativeNpdeApi
let WrapperLoginService = undefined;
Process.dlopen = function (module, filename, flags = os.constants.dlopen.RTLD_LAZY) {
let dlopenRet = this.dlopenOrig(module, filename, flags)
let dlopenRet = this.dlopenOrig(module, filename, flags);
for (let export_name in module.exports) {
module.exports[export_name] = new Proxy(module.exports[export_name], {
construct: (target, args, _newTarget) => {
let ret = new target(...args)
if (export_name === 'NodeIQQNTWrapperSession') WrapperSession = ret
if (export_name === 'NodeIKernelLoginService') WrapperLoginService = ret
return ret
let ret = new target(...args);
if (export_name === 'NodeIQQNTWrapperSession') WrapperSession = ret;
if (export_name === 'NodeIKernelLoginService') WrapperLoginService = ret;
return ret;
},
})
});
}
if (filename.toLowerCase().indexOf('wrapper.node') != -1) {
WrapperNodeApi = module.exports;
}
return dlopenRet;
}
};
function getWrapperSession() {
return WrapperSession;
}