mirror of
https://github.com/Instadapp/Swap-Aggregator-Subgraph.git
synced 2024-07-29 21:57:12 +00:00
24 lines
649 B
JavaScript
24 lines
649 B
JavaScript
'use strict';
|
|
|
|
const promisify = require('es6-promisify');
|
|
const jayson = require('../../../');
|
|
const promiseUtils = require('../utils');
|
|
|
|
/**
|
|
* Constructor for a Jayson Promise Client Tls
|
|
* @see Client
|
|
* @class PromiseClientTls
|
|
* @extends ClientTls
|
|
* @return {PromiseClientTls}
|
|
*/
|
|
const PromiseClientTls = function(options) {
|
|
if(!(this instanceof PromiseClientTls)) {
|
|
return new PromiseClientTls(options);
|
|
}
|
|
jayson.Client.tls.apply(this, arguments);
|
|
this.request = promiseUtils.wrapClientRequestMethod(this.request.bind(this));
|
|
};
|
|
require('util').inherits(PromiseClientTls, jayson.Client.tls);
|
|
|
|
module.exports = PromiseClientTls;
|