Comparing version 1.8.1 to 1.8.2
var crypto = require("crypto"); | ||
var http_tls = require("https"); | ||
var http_request = require("http"); | ||
var request = require("sync-request"); | ||
var LINKHUB_API_VERSION = "2.0"; | ||
@@ -76,2 +75,3 @@ | ||
headers: headers, | ||
timeout: 180 * 1000 | ||
}; | ||
@@ -107,2 +107,3 @@ | ||
}, | ||
timeout: 180 * 1000 | ||
}; | ||
@@ -144,2 +145,3 @@ | ||
}, | ||
timeout: 180 * 1000 | ||
}; | ||
@@ -184,2 +186,3 @@ | ||
}, | ||
timeout: 180 * 1000 | ||
}; | ||
@@ -291,4 +294,7 @@ | ||
try { | ||
var response = request("GET", targetURL + "/Time"); | ||
return response.body.toString("utf8"); | ||
var XMLHttpRequest = require("xmlhttprequest").XMLHttpRequest; | ||
var xhr = new XMLHttpRequest(); | ||
xhr.open('GET', targetURL + '/Time', false); | ||
xhr.send(); | ||
return xhr.responseText | ||
} catch (err) { | ||
@@ -320,2 +326,2 @@ var errorHandler = | ||
return url; | ||
}; | ||
}; |
{ | ||
"name": "linkhub", | ||
"version": "1.8.1", | ||
"version": "1.8.2", | ||
"description": "linkhub auth modules for www.linkhub.co.kr", | ||
@@ -32,3 +32,3 @@ "author": "Kim Seongjun <pallet027@gmail.com>", | ||
"dependencies": { | ||
"sync-request": "^2.0.0" | ||
"xmlhttprequest": "^1.8.0" | ||
}, | ||
@@ -41,2 +41,2 @@ "preferGlobal": true, | ||
} | ||
} | ||
} |
# node-linkhub | ||
ë§íŦíë¸ node.js SDK v1.8.1 | ||
ë§íŦíë¸ node.js SDK v1.8.2 | ||
@@ -8,2 +8,2 @@ ## Install | ||
$ npm install linkhub | ||
``` | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16673
488
8
+ Addedxmlhttprequest@^1.8.0
+ Addedxmlhttprequest@1.8.0(transitive)
- Removedsync-request@^2.0.0
- Removedasap@2.0.6(transitive)
- Removedbuffer-from@1.1.2(transitive)
- Removedcall-bind@1.0.7(transitive)
- Removedcaseless@0.11.0(transitive)
- Removedconcat-stream@1.6.2(transitive)
- Removedcore-util-is@1.0.3(transitive)
- Removeddefine-data-property@1.1.4(transitive)
- Removedes-define-property@1.0.0(transitive)
- Removedes-errors@1.3.0(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedget-intrinsic@1.2.4(transitive)
- Removedgopd@1.0.1(transitive)
- Removedhas-property-descriptors@1.0.2(transitive)
- Removedhas-proto@1.0.3(transitive)
- Removedhas-symbols@1.0.3(transitive)
- Removedhasown@2.0.2(transitive)
- Removedhttp-basic@2.5.1(transitive)
- Removedhttp-response-object@1.1.0(transitive)
- Removedinherits@2.0.4(transitive)
- Removedisarray@1.0.0(transitive)
- Removedobject-inspect@1.13.3(transitive)
- Removedos-shim@0.1.3(transitive)
- Removedprocess-nextick-args@2.0.1(transitive)
- Removedpromise@7.3.1(transitive)
- Removedqs@6.13.1(transitive)
- Removedreadable-stream@2.3.8(transitive)
- Removedsafe-buffer@5.1.2(transitive)
- Removedset-function-length@1.2.2(transitive)
- Removedside-channel@1.0.6(transitive)
- Removedspawn-sync@1.0.15(transitive)
- Removedstring_decoder@1.1.1(transitive)
- Removedsync-request@2.2.0(transitive)
- Removedthen-request@2.2.0(transitive)
- Removedtypedarray@0.0.6(transitive)
- Removedutil-deprecate@1.0.2(transitive)