PHP 8.2.30
Preview: promisify.js Size: 495 B
//opt/alt/alt-nodejs19/root/lib/node_modules/npm/node_modules/agent-base/dist/src/promisify.js

"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

Directory Contents

Dirs: 0 × Files: 2

Name Size Perms Modified Actions
7.72 KB lrw-r--r-- 2023-12-06 18:07:50
Edit Download
495 B lrw-r--r-- 2023-12-06 18:07:50
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).