@sylphx/cli 0.1.1 → 0.1.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/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -227,7 +227,7 @@ var api = {
|
|
|
227
227
|
},
|
|
228
228
|
/** Get current user and orgs */
|
|
229
229
|
async whoami() {
|
|
230
|
-
return request("GET", "/
|
|
230
|
+
return request("GET", "/user/me");
|
|
231
231
|
},
|
|
232
232
|
/** List projects (org is scoped to token) */
|
|
233
233
|
async listProjects() {
|
|
@@ -501,7 +501,7 @@ function formatLogEntry(raw) {
|
|
|
501
501
|
}
|
|
502
502
|
function streamLogs(url, token, opts = {}) {
|
|
503
503
|
return new Promise((resolve) => {
|
|
504
|
-
const
|
|
504
|
+
const EventSource = require("eventsource");
|
|
505
505
|
const headers = {
|
|
506
506
|
"User-Agent": "sylphx-cli/0.1.0"
|
|
507
507
|
};
|