fix(structure): change conflicting ending .json.ts to .jsonrest.ts
This commit is contained in:
parent
d7a9d173b8
commit
8eca91145b
4
dist/index.d.ts
vendored
Normal file
4
dist/index.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
export { request, extendedIncomingMessage } from './smartrequest.request';
|
||||||
|
export { ISmartRequestOptions } from './smartrequest.interfaces';
|
||||||
|
export * from './smartrequest.jsonrest';
|
||||||
|
export * from './smartrequest.binaryrest';
|
10
dist/index.js
vendored
Normal file
10
dist/index.js
vendored
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
"use strict";
|
||||||
|
function __export(m) {
|
||||||
|
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
||||||
|
}
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
var smartrequest_request_1 = require("./smartrequest.request");
|
||||||
|
exports.request = smartrequest_request_1.request;
|
||||||
|
__export(require("./smartrequest.jsonrest"));
|
||||||
|
__export(require("./smartrequest.binaryrest"));
|
||||||
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLCtEQUEwRTtBQUFqRSx5Q0FBQSxPQUFPLENBQUE7QUFHaEIsNkNBQXdDO0FBQ3hDLCtDQUEwQyJ9
|
2
dist/smartrequest.binaryrest.d.ts
vendored
Normal file
2
dist/smartrequest.binaryrest.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
import * as interfaces from './smartrequest.interfaces';
|
||||||
|
export declare const getBinary: (domainArg: string, optionsArg?: interfaces.ISmartRequestOptions) => Promise<import("./smartrequest.request").extendedIncomingMessage>;
|
30
dist/smartrequest.binaryrest.js
vendored
Normal file
30
dist/smartrequest.binaryrest.js
vendored
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
"use strict";
|
||||||
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||||
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||||
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||||
|
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
|
||||||
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||||
|
});
|
||||||
|
};
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
const smartrequest_request_1 = require("./smartrequest.request");
|
||||||
|
const plugins = require("./smartrequest.plugins");
|
||||||
|
exports.getBinary = (domainArg, optionsArg = {}) => __awaiter(this, void 0, void 0, function* () {
|
||||||
|
const done = plugins.smartq.defer();
|
||||||
|
const response = yield smartrequest_request_1.request(domainArg, optionsArg, true);
|
||||||
|
const data = [];
|
||||||
|
response.on('data', function (chunk) {
|
||||||
|
data.push(chunk);
|
||||||
|
}).on('end', function () {
|
||||||
|
//at this point data is an array of Buffers
|
||||||
|
//so Buffer.concat() can make us a new Buffer
|
||||||
|
//of all of them together
|
||||||
|
const buffer = Buffer.concat(data);
|
||||||
|
response.body = buffer.toString('binary');
|
||||||
|
done.resolve();
|
||||||
|
});
|
||||||
|
yield done.promise;
|
||||||
|
return response;
|
||||||
|
});
|
||||||
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRyZXF1ZXN0LmJpbmFyeXJlc3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9zbWFydHJlcXVlc3QuYmluYXJ5cmVzdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBRUEsaUVBQWlEO0FBRWpELGtEQUFrRDtBQUVyQyxRQUFBLFNBQVMsR0FBRyxDQUFPLFNBQWlCLEVBQUUsYUFBOEMsRUFBRSxFQUFFLEVBQUU7SUFDckcsTUFBTSxJQUFJLEdBQUcsT0FBTyxDQUFDLE1BQU0sQ0FBQyxLQUFLLEVBQUUsQ0FBQztJQUNwQyxNQUFNLFFBQVEsR0FBRyxNQUFNLDhCQUFPLENBQUMsU0FBUyxFQUFFLFVBQVUsRUFBRSxJQUFJLENBQUMsQ0FBQztJQUM1RCxNQUFNLElBQUksR0FBRyxFQUFFLENBQUM7SUFFaEIsUUFBUSxDQUFDLEVBQUUsQ0FBQyxNQUFNLEVBQUUsVUFBUyxLQUFLO1FBQzlCLElBQUksQ0FBQyxJQUFJLENBQUMsS0FBSyxDQUFDLENBQUM7SUFDckIsQ0FBQyxDQUFDLENBQUMsRUFBRSxDQUFDLEtBQUssRUFBRTtRQUNULDJDQUEyQztRQUMzQyw2Q0FBNkM7UUFDN0MseUJBQXlCO1FBQ3pCLE1BQU0sTUFBTSxHQUFHLE1BQU0sQ0FBQyxNQUFNLENBQUMsSUFBSSxDQUFDLENBQUM7UUFDbkMsUUFBUSxDQUFDLElBQUksR0FBRyxNQUFNLENBQUMsUUFBUSxDQUFDLFFBQVEsQ0FBQyxDQUFDO1FBQzFDLElBQUksQ0FBQyxPQUFPLEVBQUUsQ0FBQztJQUNuQixDQUFDLENBQUMsQ0FBQztJQUNILE1BQU0sSUFBSSxDQUFDLE9BQU8sQ0FBQztJQUNuQixPQUFPLFFBQVEsQ0FBQztBQUNsQixDQUFDLENBQUEsQ0FBQSJ9
|
5
dist/smartrequest.interfaces.d.ts
vendored
Normal file
5
dist/smartrequest.interfaces.d.ts
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
/// <reference types="node" />
|
||||||
|
import * as https from 'https';
|
||||||
|
export interface ISmartRequestOptions extends https.RequestOptions {
|
||||||
|
requestBody?: any;
|
||||||
|
}
|
3
dist/smartrequest.interfaces.js
vendored
Normal file
3
dist/smartrequest.interfaces.js
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
"use strict";
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRyZXF1ZXN0LmludGVyZmFjZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9zbWFydHJlcXVlc3QuaW50ZXJmYWNlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=
|
10
dist/smartrequest.jsonrest.d.ts
vendored
Normal file
10
dist/smartrequest.jsonrest.d.ts
vendored
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
import * as interfaces from './smartrequest.interfaces';
|
||||||
|
/**
|
||||||
|
* gets Json and puts the right headers + handles response aggregation
|
||||||
|
* @param domainArg
|
||||||
|
* @param optionsArg
|
||||||
|
*/
|
||||||
|
export declare const getJson: (domainArg: string, optionsArg?: interfaces.ISmartRequestOptions) => Promise<import("./smartrequest.request").extendedIncomingMessage>;
|
||||||
|
export declare const postJson: (domainArg: string, optionsArg?: interfaces.ISmartRequestOptions) => Promise<import("./smartrequest.request").extendedIncomingMessage>;
|
||||||
|
export declare const putJson: (domainArg: string, optionsArg?: interfaces.ISmartRequestOptions) => Promise<import("./smartrequest.request").extendedIncomingMessage>;
|
||||||
|
export declare const delJson: (domainArg: string, optionsArg?: interfaces.ISmartRequestOptions) => Promise<import("./smartrequest.request").extendedIncomingMessage>;
|
48
dist/smartrequest.jsonrest.js
vendored
Normal file
48
dist/smartrequest.jsonrest.js
vendored
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
"use strict";
|
||||||
|
// This file implements methods to get and post JSON in a simple manner.
|
||||||
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||||
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||||
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||||
|
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
|
||||||
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||||
|
});
|
||||||
|
};
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
const smartrequest_request_1 = require("./smartrequest.request");
|
||||||
|
/**
|
||||||
|
* gets Json and puts the right headers + handles response aggregation
|
||||||
|
* @param domainArg
|
||||||
|
* @param optionsArg
|
||||||
|
*/
|
||||||
|
exports.getJson = (domainArg, optionsArg = {}) => __awaiter(this, void 0, void 0, function* () {
|
||||||
|
optionsArg.method = 'GET';
|
||||||
|
optionsArg.headers = Object.assign({}, optionsArg.headers);
|
||||||
|
let response = yield smartrequest_request_1.request(domainArg, optionsArg);
|
||||||
|
return response;
|
||||||
|
});
|
||||||
|
exports.postJson = (domainArg, optionsArg = {}) => __awaiter(this, void 0, void 0, function* () {
|
||||||
|
optionsArg.method = 'POST';
|
||||||
|
if (typeof optionsArg.requestBody === 'object' &&
|
||||||
|
(!optionsArg.headers || !optionsArg.headers['Content-Type'])) {
|
||||||
|
// make sure headers exist
|
||||||
|
if (!optionsArg.headers) {
|
||||||
|
optionsArg.headers = {};
|
||||||
|
}
|
||||||
|
// assign the right Content-Type, leaving all other headers in place
|
||||||
|
optionsArg.headers = Object.assign({}, optionsArg.headers, { 'Content-Type': 'application/json' });
|
||||||
|
}
|
||||||
|
let response = yield smartrequest_request_1.request(domainArg, optionsArg);
|
||||||
|
return response;
|
||||||
|
});
|
||||||
|
exports.putJson = (domainArg, optionsArg = {}) => __awaiter(this, void 0, void 0, function* () {
|
||||||
|
optionsArg.method = 'PUT';
|
||||||
|
let response = yield smartrequest_request_1.request(domainArg, optionsArg);
|
||||||
|
return response;
|
||||||
|
});
|
||||||
|
exports.delJson = (domainArg, optionsArg = {}) => __awaiter(this, void 0, void 0, function* () {
|
||||||
|
optionsArg.method = 'DELETE';
|
||||||
|
let response = yield smartrequest_request_1.request(domainArg, optionsArg);
|
||||||
|
return response;
|
||||||
|
});
|
||||||
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRyZXF1ZXN0Lmpzb25yZXN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvc21hcnRyZXF1ZXN0Lmpzb25yZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSx3RUFBd0U7Ozs7Ozs7Ozs7QUFHeEUsaUVBQWlEO0FBRWpEOzs7O0dBSUc7QUFDVSxRQUFBLE9BQU8sR0FBRyxDQUFPLFNBQWlCLEVBQUUsYUFBOEMsRUFBRSxFQUFFLEVBQUU7SUFDbkcsVUFBVSxDQUFDLE1BQU0sR0FBRyxLQUFLLENBQUM7SUFDMUIsVUFBVSxDQUFDLE9BQU8scUJBQ2IsVUFBVSxDQUFDLE9BQU8sQ0FFdEIsQ0FBQTtJQUNELElBQUksUUFBUSxHQUFHLE1BQU0sOEJBQU8sQ0FBQyxTQUFTLEVBQUUsVUFBVSxDQUFDLENBQUM7SUFDcEQsT0FBTyxRQUFRLENBQUM7QUFDbEIsQ0FBQyxDQUFBLENBQUM7QUFFVyxRQUFBLFFBQVEsR0FBRyxDQUFPLFNBQWlCLEVBQUUsYUFBOEMsRUFBRSxFQUFFLEVBQUU7SUFDcEcsVUFBVSxDQUFDLE1BQU0sR0FBRyxNQUFNLENBQUM7SUFDM0IsSUFDRSxPQUFPLFVBQVUsQ0FBQyxXQUFXLEtBQUssUUFBUTtRQUMxQyxDQUFDLENBQUMsVUFBVSxDQUFDLE9BQU8sSUFBSSxDQUFDLFVBQVUsQ0FBQyxPQUFPLENBQUMsY0FBYyxDQUFDLENBQUMsRUFDNUQ7UUFDQSwwQkFBMEI7UUFDMUIsSUFBSSxDQUFDLFVBQVUsQ0FBQyxPQUFPLEVBQUU7WUFDdkIsVUFBVSxDQUFDLE9BQU8sR0FBRyxFQUFFLENBQUM7U0FDekI7UUFFRCxvRUFBb0U7UUFDcEUsVUFBVSxDQUFDLE9BQU8scUJBQ2IsVUFBVSxDQUFDLE9BQU8sSUFDckIsY0FBYyxFQUFFLGtCQUFrQixHQUNuQyxDQUFDO0tBQ0g7SUFDRCxJQUFJLFFBQVEsR0FBRyxNQUFNLDhCQUFPLENBQUMsU0FBUyxFQUFFLFVBQVUsQ0FBQyxDQUFDO0lBQ3BELE9BQU8sUUFBUSxDQUFDO0FBQ2xCLENBQUMsQ0FBQSxDQUFDO0FBRVcsUUFBQSxPQUFPLEdBQUcsQ0FBTyxTQUFpQixFQUFFLGFBQThDLEVBQUUsRUFBRSxFQUFFO0lBQ25HLFVBQVUsQ0FBQyxNQUFNLEdBQUcsS0FBSyxDQUFDO0lBQzFCLElBQUksUUFBUSxHQUFHLE1BQU0sOEJBQU8sQ0FBQyxTQUFTLEVBQUUsVUFBVSxDQUFDLENBQUM7SUFDcEQsT0FBTyxRQUFRLENBQUM7QUFDbEIsQ0FBQyxDQUFBLENBQUM7QUFFVyxRQUFBLE9BQU8sR0FBRyxDQUFPLFNBQWlCLEVBQUUsYUFBOEMsRUFBRSxFQUFFLEVBQUU7SUFDbkcsVUFBVSxDQUFDLE1BQU0sR0FBRyxRQUFRLENBQUM7SUFDN0IsSUFBSSxRQUFRLEdBQUcsTUFBTSw4QkFBTyxDQUFDLFNBQVMsRUFBRSxVQUFVLENBQUMsQ0FBQztJQUNwRCxPQUFPLFFBQVEsQ0FBQztBQUNsQixDQUFDLENBQUEsQ0FBQyJ9
|
5
dist/smartrequest.plugins.d.ts
vendored
Normal file
5
dist/smartrequest.plugins.d.ts
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
import * as url from 'url';
|
||||||
|
import * as http from 'http';
|
||||||
|
import * as https from 'https';
|
||||||
|
import * as smartq from 'smartq';
|
||||||
|
export { url, http, https, smartq };
|
11
dist/smartrequest.plugins.js
vendored
Normal file
11
dist/smartrequest.plugins.js
vendored
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
"use strict";
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
const url = require("url");
|
||||||
|
exports.url = url;
|
||||||
|
const http = require("http");
|
||||||
|
exports.http = http;
|
||||||
|
const https = require("https");
|
||||||
|
exports.https = https;
|
||||||
|
const smartq = require("smartq");
|
||||||
|
exports.smartq = smartq;
|
||||||
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRyZXF1ZXN0LnBsdWdpbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9zbWFydHJlcXVlc3QucGx1Z2lucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDJCQUEyQjtBQU1sQixrQkFBRztBQUxaLDZCQUE2QjtBQUtmLG9CQUFJO0FBSmxCLCtCQUErQjtBQUlYLHNCQUFLO0FBRnpCLGlDQUFpQztBQUVOLHdCQUFNIn0=
|
7
dist/smartrequest.request.d.ts
vendored
Normal file
7
dist/smartrequest.request.d.ts
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
/// <reference types="node" />
|
||||||
|
import * as interfaces from './smartrequest.interfaces';
|
||||||
|
import { IncomingMessage } from 'http';
|
||||||
|
export interface extendedIncomingMessage extends IncomingMessage {
|
||||||
|
body: any;
|
||||||
|
}
|
||||||
|
export declare let request: (domainArg: string, optionsArg?: interfaces.ISmartRequestOptions, streamArg?: boolean) => Promise<extendedIncomingMessage>;
|
87
dist/smartrequest.request.js
vendored
Normal file
87
dist/smartrequest.request.js
vendored
Normal file
@ -0,0 +1,87 @@
|
|||||||
|
"use strict";
|
||||||
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||||
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||||
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||||
|
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
|
||||||
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||||
|
});
|
||||||
|
};
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
const plugins = require("./smartrequest.plugins");
|
||||||
|
;
|
||||||
|
let buildResponse = (incomingMessageArg) => {
|
||||||
|
let done = plugins.smartq.defer();
|
||||||
|
// Continuously update stream with data
|
||||||
|
let body = '';
|
||||||
|
incomingMessageArg.on('data', function (chunkArg) {
|
||||||
|
body += chunkArg;
|
||||||
|
});
|
||||||
|
incomingMessageArg.on('end', function () {
|
||||||
|
try {
|
||||||
|
incomingMessageArg.body = JSON.parse(body);
|
||||||
|
}
|
||||||
|
catch (err) {
|
||||||
|
incomingMessageArg.body = body;
|
||||||
|
}
|
||||||
|
done.resolve(incomingMessageArg);
|
||||||
|
});
|
||||||
|
return done.promise;
|
||||||
|
};
|
||||||
|
exports.request = (domainArg, optionsArg = {}, streamArg = false) => __awaiter(this, void 0, void 0, function* () {
|
||||||
|
let done = plugins.smartq.defer();
|
||||||
|
let parsedUrl;
|
||||||
|
if (domainArg) {
|
||||||
|
parsedUrl = plugins.url.parse(domainArg);
|
||||||
|
optionsArg.hostname = parsedUrl.hostname;
|
||||||
|
if (parsedUrl.port) {
|
||||||
|
optionsArg.port = parseInt(parsedUrl.port);
|
||||||
|
}
|
||||||
|
optionsArg.path = parsedUrl.path;
|
||||||
|
}
|
||||||
|
if (!parsedUrl || parsedUrl.protocol === 'https:') {
|
||||||
|
let request = plugins.https.request(optionsArg, response => {
|
||||||
|
if (streamArg) {
|
||||||
|
done.resolve(response);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
buildResponse(response).then(done.resolve);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
if (optionsArg.requestBody) {
|
||||||
|
if (typeof optionsArg.requestBody !== 'string') {
|
||||||
|
optionsArg.requestBody = JSON.stringify(optionsArg.requestBody);
|
||||||
|
}
|
||||||
|
request.write(optionsArg.requestBody);
|
||||||
|
}
|
||||||
|
request.on('error', e => {
|
||||||
|
console.error(e);
|
||||||
|
});
|
||||||
|
request.end();
|
||||||
|
}
|
||||||
|
else if (parsedUrl.protocol === 'http:') {
|
||||||
|
let request = plugins.http.request(optionsArg, response => {
|
||||||
|
if (streamArg) {
|
||||||
|
done.resolve(response);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
buildResponse(response).then(done.resolve);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
if (optionsArg.requestBody) {
|
||||||
|
if (typeof optionsArg.requestBody !== 'string') {
|
||||||
|
optionsArg.requestBody = JSON.stringify(optionsArg.requestBody);
|
||||||
|
}
|
||||||
|
request.write(optionsArg.requestBody);
|
||||||
|
}
|
||||||
|
request.on('error', e => {
|
||||||
|
console.error(e);
|
||||||
|
});
|
||||||
|
request.end();
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
throw new Error(`unsupported protocol: ${parsedUrl.protocol}`);
|
||||||
|
}
|
||||||
|
return done.promise;
|
||||||
|
});
|
||||||
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRyZXF1ZXN0LnJlcXVlc3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9zbWFydHJlcXVlc3QucmVxdWVzdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQ0Esa0RBQWtEO0FBT2pELENBQUM7QUFFRixJQUFJLGFBQWEsR0FBRyxDQUFDLGtCQUFtQyxFQUFvQyxFQUFFO0lBQzVGLElBQUksSUFBSSxHQUFHLE9BQU8sQ0FBQyxNQUFNLENBQUMsS0FBSyxFQUEyQixDQUFDO0lBQzNELHVDQUF1QztJQUN2QyxJQUFJLElBQUksR0FBRyxFQUFFLENBQUM7SUFDZCx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UFFO1lBQ3hELElBQUksU0FBUyxFQUFFO2dCQUNiLElBQUksQ0FBQyxPQUFPLENBQUMsUUFBUSxDQUFDLENBQUM7YUFDeEI7aUJBQU07Z0JBQ0wsYUFBYSxDQUFDLFFBQVEsQ0FBQyxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDLENBQUM7YUFDNUM7UUFDSCxDQUFDLENBQUMsQ0FBQztRQUNILElBQUksVUFBVSxDQUFDLFdBQVcsRUFBRTtZQUMxQixJQUFJLE9BQU8sVUFBVSxDQUFDLFdBQVcsS0FBSyxRQUFRLEVBQUU7Z0JBQzlDLFVBQVUsQ0FBQyxXQUFXLEdBQUcsSUFBSSxDQUFDLFNBQVMsQ0FBQyxVQUFVLENBQUMsV0FBVyxDQUFDLENBQUM7YUFDakU7WUFDRCxPQUFPLENBQUMsS0FBSyxDQUFDLFVBQVUsQ0FBQyxXQUFXLENBQUMsQ0FBQztTQUN2QztRQUNELE9BQU8sQ0FBQyxFQUFFLENBQUMsT0FBTyxFQUFFLENBQUMsQ0FBQyxFQUFFO1lBQ3RCLE9BQU8sQ0FBQyxLQUFLLENBQUMsQ0FBQyxDQUFDLENBQUM7UUFDbkIsQ0FBQyxDQUFDLENBQUM7UUFDSCxPQUFPLENBQUMsR0FBRyxFQUFFLENBQUM7S0FDZjtTQUFNO1FBQ0wsTUFBTSxJQUFJLEtBQUssQ0FBQyx5QkFBeUIsU0FBUyxDQUFDLFFBQVEsRUFBRSxDQUFDLENBQUM7S0FDaEU7SUFDRCxPQUFPLElBQUksQ0FBQyxPQUFPLENBQUM7QUFDdEIsQ0FBQyxDQUFBLENBQUMifQ==
|
@ -1,5 +1,5 @@
|
|||||||
export { request, extendedIncomingMessage } from './smartrequest.request';
|
export { request, extendedIncomingMessage } from './smartrequest.request';
|
||||||
export { ISmartRequestOptions } from './smartrequest.interfaces';
|
export { ISmartRequestOptions } from './smartrequest.interfaces';
|
||||||
|
|
||||||
export * from './smartrequest.json';
|
export * from './smartrequest.jsonrest';
|
||||||
export * from './smartrequest.binary';
|
export * from './smartrequest.binaryrest';
|
||||||
|
Loading…
Reference in New Issue
Block a user