zitejs 0.9.16 → 0.9.17

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.
@@ -37,13 +37,11 @@ function resolveBaseId() {
37
37
  }
38
38
  async function runSync() {
39
39
  if (!TOKEN) {
40
- console.error('Error: ZITE_DB_TOKEN is required.');
41
- process.exit(1);
40
+ throw new Error('ZITE_DB_TOKEN is required.');
42
41
  }
43
42
  const baseId = resolveBaseId();
44
43
  if (!baseId) {
45
- console.error('Error: Could not determine base ID.');
46
- process.exit(1);
44
+ throw new Error('Could not determine base ID.');
47
45
  }
48
46
  console.log(`Syncing database ${baseId}...`);
49
47
  const base = await fetchBaseMetadata(baseId);
@@ -33,13 +33,11 @@ function resolveBaseId() {
33
33
  }
34
34
  export async function runSync() {
35
35
  if (!TOKEN) {
36
- console.error('Error: ZITE_DB_TOKEN is required.');
37
- process.exit(1);
36
+ throw new Error('ZITE_DB_TOKEN is required.');
38
37
  }
39
38
  const baseId = resolveBaseId();
40
39
  if (!baseId) {
41
- console.error('Error: Could not determine base ID.');
42
- process.exit(1);
40
+ throw new Error('Could not determine base ID.');
43
41
  }
44
42
  console.log(`Syncing database ${baseId}...`);
45
43
  const base = await fetchBaseMetadata(baseId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zitejs",
3
- "version": "0.9.16",
3
+ "version": "0.9.17",
4
4
  "description": "The Zite framework — build apps on Zite Database",
5
5
  "type": "module",
6
6
  "main": "./dist/cjs/runtime/index.js",