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.
- package/dist/cjs/sync/index.js +2 -4
- package/dist/esm/sync/index.js +2 -4
- package/package.json +1 -1
package/dist/cjs/sync/index.js
CHANGED
|
@@ -37,13 +37,11 @@ function resolveBaseId() {
|
|
|
37
37
|
}
|
|
38
38
|
async function runSync() {
|
|
39
39
|
if (!TOKEN) {
|
|
40
|
-
|
|
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
|
-
|
|
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);
|
package/dist/esm/sync/index.js
CHANGED
|
@@ -33,13 +33,11 @@ function resolveBaseId() {
|
|
|
33
33
|
}
|
|
34
34
|
export async function runSync() {
|
|
35
35
|
if (!TOKEN) {
|
|
36
|
-
|
|
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
|
-
|
|
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);
|