@pithy-sh/cloudflare 0.6.0 → 0.7.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/client/errors.d.ts
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
import { PithyError } from "@pithy-sh/core/src/error/pithyError";
|
|
4
4
|
import type { MessageParams } from "@pithy-sh/core/src/i18n/catalog";
|
|
5
|
+
import type { UnmarkedString } from "@pithy-sh/core/src/privacy/types";
|
|
5
6
|
import type { z } from "zod";
|
|
6
7
|
/**
|
|
7
8
|
* Cloudflare REST client throw sugar. The `cloudflare/*` codes live in core's closed
|
|
@@ -13,11 +14,11 @@ import type { z } from "zod";
|
|
|
13
14
|
/** Variable parts each subclass accepts; `code`/`status` are fixed by the subclass. */
|
|
14
15
|
interface CloudflareErrorArgs {
|
|
15
16
|
/** Override the public, safe-to-expose message. */
|
|
16
|
-
message?:
|
|
17
|
+
message?: UnmarkedString;
|
|
17
18
|
/** A remediation hint (CLI action line). */
|
|
18
|
-
action?:
|
|
19
|
+
action?: UnmarkedString;
|
|
19
20
|
/** Internal context for logs + audit. Never serialized to clients. */
|
|
20
|
-
detail?:
|
|
21
|
+
detail?: UnmarkedString;
|
|
21
22
|
/**
|
|
22
23
|
* Values a translating client interpolates into its own wording for this code. Client-facing, so —
|
|
23
24
|
* unlike `action` and `detail` — these cross the boundary with `message`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/client/errors.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAuC,MAAM,qCAAqC,CAAC;AACtG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/client/errors.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAuC,MAA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,EAAE,OAAO,GAAG,OAAO,CAE5D;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CASzG"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pithy-sh/cloudflare",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"js-base64": "^3.9.2"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"@pithy-sh/core": "^0.
|
|
43
|
+
"@pithy-sh/core": "^0.12.0",
|
|
44
44
|
"zod": "^4.4.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
package/src/client/errors.ts
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
import { PithyError, UpstreamError, UpstreamTimeoutError } from "@pithy-sh/core/src/error/pithyError";
|
|
5
5
|
import type { MessageParams } from "@pithy-sh/core/src/i18n/catalog";
|
|
6
|
+
import type { UnmarkedString } from "@pithy-sh/core/src/privacy/types";
|
|
6
7
|
import { MAX_WORKFLOW_STEP_TEXT } from "@pithy-sh/core/src/workflow/stepMessage";
|
|
7
8
|
import type { z } from "zod";
|
|
8
9
|
|
|
@@ -17,11 +18,11 @@ import type { z } from "zod";
|
|
|
17
18
|
/** Variable parts each subclass accepts; `code`/`status` are fixed by the subclass. */
|
|
18
19
|
interface CloudflareErrorArgs {
|
|
19
20
|
/** Override the public, safe-to-expose message. */
|
|
20
|
-
message?:
|
|
21
|
+
message?: UnmarkedString;
|
|
21
22
|
/** A remediation hint (CLI action line). */
|
|
22
|
-
action?:
|
|
23
|
+
action?: UnmarkedString;
|
|
23
24
|
/** Internal context for logs + audit. Never serialized to clients. */
|
|
24
|
-
detail?:
|
|
25
|
+
detail?: UnmarkedString;
|
|
25
26
|
/**
|
|
26
27
|
* Values a translating client interpolates into its own wording for this code. Client-facing, so —
|
|
27
28
|
* unlike `action` and `detail` — these cross the boundary with `message`.
|