Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

Commit

Permalink
remove request dependency ('request')
Browse files Browse the repository at this point in the history
  • Loading branch information
taylordowns2000 committed Jan 25, 2021
1 parent 10cd11d commit 90c2458
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 452 deletions.
26 changes: 6 additions & 20 deletions lib/Adaptor.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ exports.put = put;
exports.patch = patch;
exports.del = del;
exports.parseXML = parseXML;
exports.request = request;
exports.parseCSV = parseCSV;
Object.defineProperty(exports, "alterState", {
enumerable: true,
Expand Down Expand Up @@ -48,6 +47,12 @@ Object.defineProperty(exports, "fields", {
return _languageCommon.fields;
}
});
Object.defineProperty(exports, "http", {
enumerable: true,
get: function () {
return _languageCommon.http;
}
});
Object.defineProperty(exports, "lastReferenceValue", {
enumerable: true,
get: function () {
Expand All @@ -67,8 +72,6 @@ Object.defineProperty(exports, "sourceValue", {
}
});

var _Client = require("./Client");

var _Utils = require("./Utils");

var _languageCommon = require("@openfn/language-common");
Expand Down Expand Up @@ -397,23 +400,6 @@ function parseXML(body, script) {
}
};
}
/**
* Make a request using the 'request' node module.
* @public
* @example
* request(params);
* @function
* @param {object} params - Query, Headers and Authentication parameters
* @returns {Operation}
*/


function request(params) {
return state => {
const expanded = typeof params === 'string' ? params : (0, _languageCommon.expandReferences)(params)(state);
return (0, _Client.rawRequest)(expanded);
};
}
/**
* CSV-Parse for CSV conversion to JSON
* @public
Expand Down
73 changes: 0 additions & 73 deletions lib/Client.js

This file was deleted.

Loading

0 comments on commit 90c2458

Please sign in to comment.