@seedcord/errors 0.11.0 → 0.11.1
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/README.md +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
</div>
|
|
7
7
|
|
|
8
8
|
<div align="center">
|
|
9
|
-
<h3>The whole Discord bot,
|
|
9
|
+
<h3>The whole Discord bot, typed end to end</h3>
|
|
10
10
|
<a href="https://seedcord.org">Website</a> ·
|
|
11
11
|
<a href="https://guide.seedcord.org">Guide</a> ·
|
|
12
12
|
<a href="https://docs.seedcord.org">Reference</a> ·
|
package/dist/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { a as isSeedcordError, c as SeedcordErrorCode, s as paint } from "./Seed
|
|
|
2
2
|
|
|
3
3
|
//#region src/index.ts
|
|
4
4
|
/** Package version */
|
|
5
|
-
const version = "0.11.
|
|
5
|
+
const version = "0.11.1";
|
|
6
6
|
|
|
7
7
|
//#endregion
|
|
8
8
|
export { SeedcordErrorCode, isSeedcordError, paint, version };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seedcord/errors",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.11.
|
|
4
|
+
"version": "0.11.1",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=24.11"
|
|
7
7
|
},
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"chalk": "^6.0.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@seedcord/eslint-config": "^2.2.
|
|
54
|
-
"@seedcord/tsconfig": "^2.0.
|
|
53
|
+
"@seedcord/eslint-config": "^2.2.2",
|
|
54
|
+
"@seedcord/tsconfig": "^2.0.4",
|
|
55
55
|
"@seedcord/tsdown-config": "^2.0.1",
|
|
56
56
|
"@seedcord/vitest-config": "^0.0.1"
|
|
57
57
|
},
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"test:watch": "vitest dev",
|
|
72
72
|
"coverage": "vitest run --coverage"
|
|
73
73
|
},
|
|
74
|
-
"readme": "<div align=\"center\">\n <picture>\n <source media=\"(prefers-color-scheme: dark)\" srcset=\"https://cdn.seedcord.org/assets/wordmark-dark.webp\" />\n <img src=\"https://cdn.seedcord.org/assets/wordmark-light.webp\" alt=\"seedcord\" width=\"440\" />\n </picture>\n</div>\n\n<div align=\"center\">\n <h3>The whole Discord bot,
|
|
74
|
+
"readme": "<div align=\"center\">\n <picture>\n <source media=\"(prefers-color-scheme: dark)\" srcset=\"https://cdn.seedcord.org/assets/wordmark-dark.webp\" />\n <img src=\"https://cdn.seedcord.org/assets/wordmark-light.webp\" alt=\"seedcord\" width=\"440\" />\n </picture>\n</div>\n\n<div align=\"center\">\n <h3>The whole Discord bot, typed end to end</h3>\n <a href=\"https://seedcord.org\">Website</a> ·\n <a href=\"https://guide.seedcord.org\">Guide</a> ·\n <a href=\"https://docs.seedcord.org\">Reference</a> ·\n <a href=\"https://discord.gg/DzFxY58WXf\">Discord</a>\n</div>\n\n<br />\n\n<div align=\"center\">\n\n[](https://www.npmjs.com/package/@seedcord/errors) [](https://nodejs.org) [](LICENSE)\n\n</div>\n\n## About\n\n`@seedcord/errors` holds every error seedcord throws. Each one carries a registered code from `SeedcordErrorCode`, so a caller can branch on one specific failure.\n\nFramework code never throws a raw `Error`. A third-party throw may be translated into one of these before you catch it.\n\nUntil v1.0.0, minor versions can break.\n\n## Installation\n\nYour transport already re-exports this.\n\n```sh\npnpm add @seedcord/errors\n```\n\n## Usage\n\n`isSeedcordError` narrows on the class and the code together:\n\n```ts\nimport { isSeedcordError, SeedcordErrorCode } from '@seedcord/errors';\n\ntry {\n await run();\n} catch (error) {\n if (isSeedcordError(error, 'SeedcordError', SeedcordErrorCode.CliCancelled)) return;\n throw error;\n}\n```\n\nCalled with one argument it narrows to any seedcord error.\n"
|
|
75
75
|
}
|