require -> import

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3904 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2022-06-18 17:39:08 +00:00
parent ed6550a4cd
commit 2d8a956c14
8 changed files with 43 additions and 45 deletions

View File

@ -31,7 +31,7 @@ function parseResponse(data) {
return {body: data};
}
function get(url) {
export function get(url) {
var parsed = parseUrl(url);
return new Promise(function(resolve, reject) {
var socket = new Socket();
@ -57,5 +57,3 @@ function get(url) {
});
});
}
exports.get = get;