@veryfront/ext-content-mdx 0.1.1262-rc.19921 → 0.1.1262-rc.19926
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/esm/deno.js +1 -1
- package/esm/src/errors/error-registry/deploy.d.ts +14 -0
- package/esm/src/errors/error-registry/deploy.d.ts.map +1 -1
- package/esm/src/errors/error-registry/deploy.js +29 -0
- package/esm/src/errors/error-registry.d.ts +1 -0
- package/esm/src/errors/error-registry.d.ts.map +1 -1
- package/esm/src/utils/version-constant.d.ts +1 -1
- package/esm/src/utils/version-constant.js +1 -1
- package/package.json +4 -4
package/esm/deno.js
CHANGED
|
@@ -18,6 +18,19 @@ export declare const SYNC_STATE_INVALID: import("../types.js").RegisteredError;
|
|
|
18
18
|
export declare const SOURCE_DIGEST_MISMATCH: import("../types.js").RegisteredError;
|
|
19
19
|
export declare const PREVIEW_HOSTNAME_TOO_LONG: import("../types.js").RegisteredError;
|
|
20
20
|
export declare const BRANCH_NOT_FOUND: import("../types.js").RegisteredError;
|
|
21
|
+
/**
|
|
22
|
+
* The local link in `.veryfront/project.json` names a project the control
|
|
23
|
+
* plane will not hand back. The link records no owning account, so a deleted
|
|
24
|
+
* project and one owned by a different account are indistinguishable here, so
|
|
25
|
+
* the CLI's detail names both. Reserved for the local link: any other project
|
|
26
|
+
* reference is misdirected by a suggestion to delete this file.
|
|
27
|
+
*
|
|
28
|
+
* This classifies the dead-end; it does not recover from it. Teaching
|
|
29
|
+
* `veryfront up` to re-link or create a project for the signed-in account, and
|
|
30
|
+
* adding `veryfront link <slug>` so the remedy is not "delete a dotfile", is
|
|
31
|
+
* veryfront-issue-inbox#1551.
|
|
32
|
+
*/
|
|
33
|
+
export declare const PROJECT_LINK_STALE: import("../types.js").RegisteredError;
|
|
21
34
|
/**
|
|
22
35
|
* The project's configuration file uses a construct Veryfront Cloud's
|
|
23
36
|
* configuration evaluator can never accept, so the release would answer 500 to
|
|
@@ -45,5 +58,6 @@ export declare const DEPLOY_REGISTRY: {
|
|
|
45
58
|
readonly "source-digest-mismatch": import("../types.js").RegisteredError;
|
|
46
59
|
readonly "preview-hostname-too-long": import("../types.js").RegisteredError;
|
|
47
60
|
readonly "branch-not-found": import("../types.js").RegisteredError;
|
|
61
|
+
readonly "project-link-stale": import("../types.js").RegisteredError;
|
|
48
62
|
};
|
|
49
63
|
//# sourceMappingURL=deploy.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../../../src/src/errors/error-registry/deploy.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,uCAM3B,CAAC;AAEH,eAAO,MAAM,cAAc,uCAMzB,CAAC;AAEH,eAAO,MAAM,eAAe,uCAM1B,CAAC;AAEH,eAAO,MAAM,yBAAyB,uCAMpC,CAAC;AAEH,eAAO,MAAM,qBAAqB,uCAMhC,CAAC;AAEH,eAAO,MAAM,wBAAwB,uCAOnC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,8BAA8B,uCAOzC,CAAC;AAEH,eAAO,MAAM,uBAAuB,uCAMlC,CAAC;AAEH,eAAO,MAAM,qBAAqB,uCAMhC,CAAC;AAEH,eAAO,MAAM,+BAA+B,uCAM1C,CAAC;AAEH,eAAO,MAAM,oBAAoB,uCAM/B,CAAC;AAEH,eAAO,MAAM,aAAa,uCAOxB,CAAC;AAEH,eAAO,MAAM,kBAAkB,uCAM7B,CAAC;AAEH,eAAO,MAAM,sBAAsB,uCAMjC,CAAC;AAEH,eAAO,MAAM,yBAAyB,uCAMpC,CAAC;AAEH,eAAO,MAAM,gBAAgB,uCAM3B,CAAC;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,uCAQhC,CAAC;AAEH,+DAA+D;AAC/D,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../../../src/src/errors/error-registry/deploy.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,uCAM3B,CAAC;AAEH,eAAO,MAAM,cAAc,uCAMzB,CAAC;AAEH,eAAO,MAAM,eAAe,uCAM1B,CAAC;AAEH,eAAO,MAAM,yBAAyB,uCAMpC,CAAC;AAEH,eAAO,MAAM,qBAAqB,uCAMhC,CAAC;AAEH,eAAO,MAAM,wBAAwB,uCAOnC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,8BAA8B,uCAOzC,CAAC;AAEH,eAAO,MAAM,uBAAuB,uCAMlC,CAAC;AAEH,eAAO,MAAM,qBAAqB,uCAMhC,CAAC;AAEH,eAAO,MAAM,+BAA+B,uCAM1C,CAAC;AAEH,eAAO,MAAM,oBAAoB,uCAM/B,CAAC;AAEH,eAAO,MAAM,aAAa,uCAOxB,CAAC;AAEH,eAAO,MAAM,kBAAkB,uCAM7B,CAAC;AAEH,eAAO,MAAM,sBAAsB,uCAMjC,CAAC;AAEH,eAAO,MAAM,yBAAyB,uCAMpC,CAAC;AAEH,eAAO,MAAM,gBAAgB,uCAM3B,CAAC;AAEH;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,kBAAkB,uCAgB7B,CAAC;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,uCAQhC,CAAC;AAEH,+DAA+D;AAC/D,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;CAmBlB,CAAC"}
|
|
@@ -115,6 +115,34 @@ export const BRANCH_NOT_FOUND = defineError({
|
|
|
115
115
|
title: "Branch not found",
|
|
116
116
|
suggestion: "List branches in Studio or push a new one with: veryfront push --branch <name>",
|
|
117
117
|
});
|
|
118
|
+
/**
|
|
119
|
+
* The local link in `.veryfront/project.json` names a project the control
|
|
120
|
+
* plane will not hand back. The link records no owning account, so a deleted
|
|
121
|
+
* project and one owned by a different account are indistinguishable here, so
|
|
122
|
+
* the CLI's detail names both. Reserved for the local link: any other project
|
|
123
|
+
* reference is misdirected by a suggestion to delete this file.
|
|
124
|
+
*
|
|
125
|
+
* This classifies the dead-end; it does not recover from it. Teaching
|
|
126
|
+
* `veryfront up` to re-link or create a project for the signed-in account, and
|
|
127
|
+
* adding `veryfront link <slug>` so the remedy is not "delete a dotfile", is
|
|
128
|
+
* veryfront-issue-inbox#1551.
|
|
129
|
+
*/
|
|
130
|
+
export const PROJECT_LINK_STALE = defineError({
|
|
131
|
+
slug: "project-link-stale",
|
|
132
|
+
category: "DEPLOY",
|
|
133
|
+
status: 404,
|
|
134
|
+
title: "Linked project not found",
|
|
135
|
+
// The remedy must not name `veryfront up`. Both `up` and `push` raise this,
|
|
136
|
+
// and `up` is not a re-link: it creates the project and then publishes a
|
|
137
|
+
// live Preview deployment (cli/commands/up/command.ts, publish:
|
|
138
|
+
// "live-source"), so prescribing it to a push or CI user performs a deploy
|
|
139
|
+
// they never asked for. `ErrorCreateOptions` carries no suggestion override,
|
|
140
|
+
// so one static string serves every raise site; unlinking is what is true at
|
|
141
|
+
// all of them, and `push` completes the remedy on its own
|
|
142
|
+
// (createMissingReference: true, then shouldPersistProjectLink re-links).
|
|
143
|
+
suggestion: "Run veryfront whoami to check which account is signed in, or remove .veryfront/project.json to unlink this directory and let veryfront push create and link a project for the signed-in account",
|
|
144
|
+
exitCode: 1,
|
|
145
|
+
});
|
|
118
146
|
/**
|
|
119
147
|
* The project's configuration file uses a construct Veryfront Cloud's
|
|
120
148
|
* configuration evaluator can never accept, so the release would answer 500 to
|
|
@@ -149,4 +177,5 @@ export const DEPLOY_REGISTRY = {
|
|
|
149
177
|
"source-digest-mismatch": SOURCE_DIGEST_MISMATCH,
|
|
150
178
|
"preview-hostname-too-long": PREVIEW_HOSTNAME_TOO_LONG,
|
|
151
179
|
"branch-not-found": BRANCH_NOT_FOUND,
|
|
180
|
+
"project-link-stale": PROJECT_LINK_STALE,
|
|
152
181
|
};
|
|
@@ -140,6 +140,7 @@ export declare const ERROR_REGISTRY: Readonly<{
|
|
|
140
140
|
readonly "source-digest-mismatch": import("./types.js").RegisteredError;
|
|
141
141
|
readonly "preview-hostname-too-long": import("./types.js").RegisteredError;
|
|
142
142
|
readonly "branch-not-found": import("./types.js").RegisteredError;
|
|
143
|
+
readonly "project-link-stale": import("./types.js").RegisteredError;
|
|
143
144
|
} & {
|
|
144
145
|
readonly "agent-error": import("./types.js").RegisteredError;
|
|
145
146
|
readonly "agent-not-found": import("./types.js").RegisteredError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-registry.d.ts","sourceRoot":"","sources":["../../../src/src/errors/error-registry.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAgBhD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAE5C;;;GAGG;AACH,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"error-registry.d.ts","sourceRoot":"","sources":["../../../src/src/errors/error-registry.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAgBhD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAE5C;;;GAGG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAY1B,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,MAAM,OAAO,cAAc,CAAC;AAEpD;;GAEG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,SAAS,wCAE7C;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,aAAa,0CAE1D;AAED;;GAEG;AACH,wBAAgB,WAAW,IAAI,SAAS,EAAE,CAEzC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veryfront/ext-content-mdx",
|
|
3
|
-
"version": "0.1.1262-rc.
|
|
3
|
+
"version": "0.1.1262-rc.19926",
|
|
4
4
|
"description": "Veryfront first-party extension package for ext-content-mdx",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"veryfront",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@types/hast": "3.0.3",
|
|
54
54
|
"@types/mdast": "4.0.3",
|
|
55
55
|
"@types/unist": "3.0.2",
|
|
56
|
-
"@veryfront/ext-parser-babel": "0.1.1262-rc.
|
|
56
|
+
"@veryfront/ext-parser-babel": "0.1.1262-rc.19926",
|
|
57
57
|
"acorn": "8.17.0",
|
|
58
58
|
"acorn-jsx": "5.3.2",
|
|
59
59
|
"github-slugger": "2.0.0",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"vfile": "6.0.3"
|
|
83
83
|
},
|
|
84
84
|
"peerDependencies": {
|
|
85
|
-
"veryfront": "^0.1.1262-rc.
|
|
85
|
+
"veryfront": "^0.1.1262-rc.19926"
|
|
86
86
|
},
|
|
87
87
|
"type": "module",
|
|
88
88
|
"types": "./esm/extensions/ext-content-mdx/src/index.d.ts",
|
|
@@ -92,5 +92,5 @@
|
|
|
92
92
|
"NOTICE",
|
|
93
93
|
"README.md"
|
|
94
94
|
],
|
|
95
|
-
"gitHead": "
|
|
95
|
+
"gitHead": "01ab7ddce8fe035f966b4d7cba03b622a58a0536"
|
|
96
96
|
}
|