@pithy-sh/storage 0.4.0 → 0.5.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/error/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
|
/**
|
|
6
7
|
* `@pithy-sh/storage` throw sugar. The `storage/*` codes live in core's closed `KitErrorPayload` union
|
|
7
8
|
* (CLAUDE.md §Errors); these subclasses are the package-local vehicles that set one of those members.
|
|
@@ -12,9 +13,9 @@ import type { MessageParams } from "@pithy-sh/core/src/i18n/catalog";
|
|
|
12
13
|
* counts are exactly the kind of internal shape a client should never be handed.
|
|
13
14
|
*/
|
|
14
15
|
interface StorageErrorArgs {
|
|
15
|
-
message?:
|
|
16
|
-
action?:
|
|
17
|
-
detail?:
|
|
16
|
+
message?: UnmarkedString;
|
|
17
|
+
action?: UnmarkedString;
|
|
18
|
+
detail?: UnmarkedString;
|
|
18
19
|
/**
|
|
19
20
|
* Values a translating client interpolates into its own wording for this code. Client-facing, so —
|
|
20
21
|
* unlike `action` and `detail` — these cross the boundary with `message`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/error/errors.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/error/errors.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACjE,OAAO,KAAK,EAAE,a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,OAAO,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,OAAO,CAAA;KAAE,EAYrE;CACF"}
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
/** This package's npm name — the join key against a release feed. */
|
|
4
4
|
export declare const PACKAGE_NAME = "@pithy-sh/storage";
|
|
5
5
|
/** This package's version, stamped from its own package.json at generation time. */
|
|
6
|
-
export declare const PACKAGE_VERSION = "0.
|
|
6
|
+
export declare const PACKAGE_VERSION = "0.5.0";
|
|
7
7
|
//# sourceMappingURL=version.generated.d.ts.map
|
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
/** This package's npm name — the join key against a release feed. */
|
|
5
5
|
const PACKAGE_NAME = "@pithy-sh/storage";
|
|
6
6
|
/** This package's version, stamped from its own package.json at generation time. */
|
|
7
|
-
const PACKAGE_VERSION = "0.
|
|
7
|
+
const PACKAGE_VERSION = "0.5.0";
|
|
8
8
|
//#endregion
|
|
9
9
|
export { PACKAGE_NAME, PACKAGE_VERSION };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pithy-sh/storage",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
"@hono/zod-validator": "^0.9.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@pithy-sh/cloudflare": "^0.
|
|
43
|
-
"@pithy-sh/core": "^0.
|
|
44
|
-
"@pithy-sh/secrets": "^0.
|
|
42
|
+
"@pithy-sh/cloudflare": "^0.7.0",
|
|
43
|
+
"@pithy-sh/core": "^0.12.0",
|
|
44
|
+
"@pithy-sh/secrets": "^0.6.0",
|
|
45
45
|
"hono": "^4.13.2",
|
|
46
46
|
"kysely": "^0.29.0",
|
|
47
47
|
"zod": "^4.4.0"
|
package/src/error/errors.ts
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
import { PithyError } 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
|
|
|
7
8
|
/**
|
|
8
9
|
* `@pithy-sh/storage` throw sugar. The `storage/*` codes live in core's closed `KitErrorPayload` union
|
|
@@ -15,9 +16,9 @@ import type { MessageParams } from "@pithy-sh/core/src/i18n/catalog";
|
|
|
15
16
|
*/
|
|
16
17
|
|
|
17
18
|
interface StorageErrorArgs {
|
|
18
|
-
message?:
|
|
19
|
-
action?:
|
|
20
|
-
detail?:
|
|
19
|
+
message?: UnmarkedString;
|
|
20
|
+
action?: UnmarkedString;
|
|
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`.
|
package/src/version.generated.ts
CHANGED