@editframe/cli 0.11.0-beta.1 → 0.11.0-beta.2

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/VERSION.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "0.11.0-beta.1";
1
+ export declare const VERSION = "0.11.0-beta.2";
package/dist/VERSION.js CHANGED
@@ -1,4 +1,4 @@
1
- const VERSION = "0.11.0-beta.1";
1
+ const VERSION = "0.11.0-beta.2";
2
2
  export {
3
3
  VERSION
4
4
  };
@@ -5,10 +5,14 @@ let client;
5
5
  const getClient = () => {
6
6
  if (!client) {
7
7
  const programOpts = program.opts();
8
- client = new Client(
9
- programOpts.token || process.env.EF_TOKEN,
10
- programOpts.efHost || process.env.EF_HOST
11
- );
8
+ const token = programOpts.token || process.env.EF_TOKEN;
9
+ const efHost = programOpts.efHost || process.env.EF_HOST;
10
+ if (!token) {
11
+ throw new Error(
12
+ "EF_TOKEN must be set or supplied as command line argument"
13
+ );
14
+ }
15
+ client = new Client(token, efHost);
12
16
  }
13
17
  return client;
14
18
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@editframe/cli",
3
- "version": "0.11.0-beta.1",
3
+ "version": "0.11.0-beta.2",
4
4
  "description": "Command line interface for EditFrame",
5
5
  "bin": {
6
6
  "editframe": "./dist/index.js"
@@ -23,10 +23,10 @@
23
23
  "vite-tsconfig-paths": "^4.3.2"
24
24
  },
25
25
  "dependencies": {
26
- "@editframe/api": "0.11.0-beta.1",
27
- "@editframe/assets": "0.11.0-beta.1",
28
- "@editframe/elements": "0.11.0-beta.1",
29
- "@editframe/vite-plugin": "0.11.0-beta.1",
26
+ "@editframe/api": "0.11.0-beta.2",
27
+ "@editframe/assets": "0.11.0-beta.2",
28
+ "@editframe/elements": "0.11.0-beta.2",
29
+ "@editframe/vite-plugin": "0.11.0-beta.2",
30
30
  "@inquirer/prompts": "^5.3.8",
31
31
  "axios": "^1.6.8",
32
32
  "chalk": "^5.3.0",
@@ -7,10 +7,14 @@ let client: Client;
7
7
  export const getClient = () => {
8
8
  if (!client) {
9
9
  const programOpts = program.opts();
10
- client = new Client(
11
- programOpts.token || process.env.EF_TOKEN,
12
- programOpts.efHost || process.env.EF_HOST,
13
- );
10
+ const token = programOpts.token || process.env.EF_TOKEN;
11
+ const efHost = programOpts.efHost || process.env.EF_HOST;
12
+ if (!token) {
13
+ throw new Error(
14
+ "EF_TOKEN must be set or supplied as command line argument",
15
+ );
16
+ }
17
+ client = new Client(token, efHost);
14
18
  }
15
19
  return client;
16
20
  };