mirror of
https://gitee.com/onvia/ccc-tnt-psd2ui
synced 2025-10-14 02:56:31 +00:00
两个版本的插件
This commit is contained in:
18
ccc-tnt-psd2ui-v2.4.x/node_modules/agent-base/dist/src/promisify.js
generated
vendored
Normal file
18
ccc-tnt-psd2ui-v2.4.x/node_modules/agent-base/dist/src/promisify.js
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
function promisify(fn) {
|
||||
return function (req, opts) {
|
||||
return new Promise((resolve, reject) => {
|
||||
fn.call(this, req, opts, (err, rtn) => {
|
||||
if (err) {
|
||||
reject(err);
|
||||
}
|
||||
else {
|
||||
resolve(rtn);
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
}
|
||||
exports.default = promisify;
|
||||
//# sourceMappingURL=promisify.js.map
|
Reference in New Issue
Block a user