pmoa
Version:
Easily manage your PM account through the official API using the pmoa (Perfect money official api) library
26 lines (18 loc) • 445 B
JavaScript
const { SocksProxyAgent } = require("socks-proxy-agent");
class AdapterSchema {
type = "";
agent = null;
constructor() {}
}
class SocksAdapter {
type = "SOCKS";
constructor(url = "", options) {
this.agent = new SocksProxyAgent(url, options);
}
}
class ProxyAdapter {
constructor(adapter = new AdapterSchema()) {
this.adapter = adapter;
}
}
module.exports = { ProxyAdapter, SocksAdapter };