@smartcrab/server 0.3.0 → 0.3.1-next-20261013030252

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/errors.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /** True when the failure is transient (network, timeout, 5xx, `server_error`). */
2
2
  export const isRetryableError = (error) => error.retryable === true;
3
- const PROBLEM_TYPE_BASE = "https://docs.example-auth.com/errors";
3
+ const PROBLEM_TYPE_BASE = "https://docs.zeroword.smartcrab.ai/errors";
4
4
  const titleForStatus = (status) => {
5
5
  switch (status) {
6
6
  case 400:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartcrab/server",
3
- "version": "0.3.0",
3
+ "version": "0.3.1-next-20261013030252",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -27,14 +27,14 @@
27
27
  "access": "public"
28
28
  },
29
29
  "dependencies": {
30
- "jose": "6.2.8",
30
+ "jose": "6.2.12",
31
31
  "cookie": "2.0.1",
32
- "@smartcrab/contracts-public": "0.3.0"
32
+ "@smartcrab/contracts-public": "0.3.1-next-20261013030252"
33
33
  },
34
34
  "devDependencies": {
35
35
  "typescript": "5.9.3",
36
36
  "vitest": "4.1.11",
37
- "@cloudflare/workers-types": "5.20260804.1"
37
+ "@cloudflare/workers-types": "5.20261008.1"
38
38
  },
39
39
  "scripts": {
40
40
  "typecheck": "tsc --noEmit",
package/src/errors.ts CHANGED
@@ -38,7 +38,7 @@ export type ServerAuthError =
38
38
  /** True when the failure is transient (network, timeout, 5xx, `server_error`). */
39
39
  export const isRetryableError = (error: ServerAuthError): boolean => error.retryable === true;
40
40
 
41
- const PROBLEM_TYPE_BASE = "https://docs.example-auth.com/errors";
41
+ const PROBLEM_TYPE_BASE = "https://docs.zeroword.smartcrab.ai/errors";
42
42
 
43
43
  const titleForStatus = (status: number): string => {
44
44
  switch (status) {