@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.
Files changed (2) hide show
  1. package/dist/index.js +2 -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", "/users/me");
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 { EventSource } = require("eventsource");
504
+ const EventSource = require("eventsource");
505
505
  const headers = {
506
506
  "User-Agent": "sylphx-cli/0.1.0"
507
507
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sylphx/cli",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Sylphx Platform CLI — deploy, manage logs, env vars, and more",
5
5
  "type": "commonjs",
6
6
  "bin": {