vtb-appit 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/appit.js +4 -0
- package/package.json +1 -1
package/appit.js
CHANGED
|
@@ -231,6 +231,9 @@ class Appit {
|
|
|
231
231
|
const payload = (data) ? JSON.stringify(data) : false;
|
|
232
232
|
|
|
233
233
|
return new Promise((resolve, reject) => {
|
|
234
|
+
console.log(this.hostname);
|
|
235
|
+
console.log(path);
|
|
236
|
+
console.log(data);
|
|
234
237
|
const options = {
|
|
235
238
|
hostname: this.hostname,
|
|
236
239
|
path: pth.join(this.pathPrefix, path),
|
|
@@ -255,6 +258,7 @@ class Appit {
|
|
|
255
258
|
})
|
|
256
259
|
|
|
257
260
|
res.on('end', () => {
|
|
261
|
+
console.log(result);
|
|
258
262
|
resolve(JSON.parse(result))
|
|
259
263
|
})
|
|
260
264
|
});
|