@contentful/experience-design-system-types 2.37.1-dev-build-dbc9f30e.0 → 2.37.1-dev-build-8b126ca1.0
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/package.json +1 -1
- package/dist/src/handoff/index.js +5 -5
- package/package.json +1 -1
package/dist/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as z from 'zod/mini';
|
|
2
|
-
// What the
|
|
3
|
-
//
|
|
2
|
+
// What the CLI's earlier import stages produced, as the later ones receive it: paths, ids and statuses only, no
|
|
3
|
+
// credentials. The CLI now runs every stage in one process and passes this in memory; the environment variable name is
|
|
4
|
+
// kept because the legacy `import` command, which is still shipped, reads the same document from it.
|
|
4
5
|
//
|
|
5
|
-
//
|
|
6
|
-
// stops producing them itself. When the wizard is deleted, so is this file.
|
|
6
|
+
// When the legacy `import` command is removed, so is the environment variable.
|
|
7
7
|
export const HANDOFF_ENV = 'EDS_IMPORT_HANDOFF';
|
|
8
8
|
const NonEmpty = z.string().check(z.minLength(1));
|
|
9
9
|
const TokensSchema = z.object({
|
|
@@ -62,7 +62,7 @@ export function serializeHandoff(handoff) {
|
|
|
62
62
|
/** Reads the handoff from the variable's value. Never throws: a bad handoff comes back as an error to show. */
|
|
63
63
|
export function parseHandoff(raw) {
|
|
64
64
|
if (!raw)
|
|
65
|
-
return { ok: false, error: `${HANDOFF_ENV} is not set. The
|
|
65
|
+
return { ok: false, error: `${HANDOFF_ENV} is not set. The import flow must be started by the CLI.` };
|
|
66
66
|
let json;
|
|
67
67
|
try {
|
|
68
68
|
json = JSON.parse(raw);
|