@depup/supabase__auth-js 2.111.0-depup.0 → 2.112.1-depup.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/README.md +2 -2
- package/changes.json +1 -1
- package/dist/main/lib/fetch.d.ts.map +1 -1
- package/dist/main/lib/fetch.js +8 -4
- package/dist/main/lib/fetch.js.map +1 -1
- package/dist/main/lib/helpers.js +1 -1
- package/dist/main/lib/helpers.js.map +1 -1
- package/dist/main/lib/version.d.ts +1 -1
- package/dist/main/lib/version.js +1 -1
- package/dist/module/lib/fetch.d.ts.map +1 -1
- package/dist/module/lib/fetch.js +8 -4
- package/dist/module/lib/fetch.js.map +1 -1
- package/dist/module/lib/helpers.js +1 -1
- package/dist/module/lib/helpers.js.map +1 -1
- package/dist/module/lib/version.d.ts +1 -1
- package/dist/module/lib/version.js +1 -1
- package/dist/tsconfig.module.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/lib/fetch.ts +9 -5
- package/src/lib/helpers.ts +1 -1
- package/src/lib/version.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depup/supabase__auth-js",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.112.1-depup.0",
|
|
4
4
|
"description": "Official SDK for Supabase Auth (with updated dependencies)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"@supabase/auth-js",
|
|
@@ -64,8 +64,8 @@
|
|
|
64
64
|
"changes": {},
|
|
65
65
|
"depsUpdated": 0,
|
|
66
66
|
"originalPackage": "@supabase/auth-js",
|
|
67
|
-
"originalVersion": "2.
|
|
68
|
-
"processedAt": "2026-
|
|
67
|
+
"originalVersion": "2.112.1",
|
|
68
|
+
"processedAt": "2026-08-05T16:34:43.233Z",
|
|
69
69
|
"smokeTest": "passed"
|
|
70
70
|
}
|
|
71
71
|
}
|
package/src/lib/fetch.ts
CHANGED
|
@@ -81,18 +81,22 @@ export async function handleError(error: unknown) {
|
|
|
81
81
|
throw new AuthRetryableFetchError(_getErrorMessage(error), 0)
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
if (NETWORK_ERROR_CODES.includes(error.status)) {
|
|
85
|
-
// status in 500...599 range - server had an error, request might be retryed.
|
|
86
|
-
throw new AuthRetryableFetchError(_getErrorMessage(error), error.status)
|
|
87
|
-
}
|
|
88
|
-
|
|
89
84
|
let data: any
|
|
90
85
|
try {
|
|
91
86
|
data = await error.json()
|
|
92
87
|
} catch (e) {
|
|
88
|
+
if (NETWORK_ERROR_CODES.includes(error.status)) {
|
|
89
|
+
// statusText can be empty — HTTP/2 has no reason phrase
|
|
90
|
+
throw new AuthRetryableFetchError(error.statusText || `HTTP ${error.status}`, error.status)
|
|
91
|
+
}
|
|
93
92
|
throw new AuthUnknownError(_getErrorMessage(e), e)
|
|
94
93
|
}
|
|
95
94
|
|
|
95
|
+
if (NETWORK_ERROR_CODES.includes(error.status)) {
|
|
96
|
+
// status in 500...599 range - server had an error, request might be retryed.
|
|
97
|
+
throw new AuthRetryableFetchError(_getErrorMessage(data), error.status)
|
|
98
|
+
}
|
|
99
|
+
|
|
96
100
|
let errorCode: string | undefined = undefined
|
|
97
101
|
|
|
98
102
|
const responseAPIVersion = parseResponseAPIVersion(error)
|
package/src/lib/helpers.ts
CHANGED
|
@@ -561,7 +561,7 @@ export function getAlgorithm(
|
|
|
561
561
|
}
|
|
562
562
|
}
|
|
563
563
|
|
|
564
|
-
const UUID_REGEX = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/
|
|
564
|
+
const UUID_REGEX = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i
|
|
565
565
|
|
|
566
566
|
export function validateUUID(str: string) {
|
|
567
567
|
if (!UUID_REGEX.test(str)) {
|
package/src/lib/version.ts
CHANGED
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
// - Debugging and support (identifying which version is running)
|
|
5
5
|
// - Telemetry and logging (version reporting in errors/analytics)
|
|
6
6
|
// - Ensuring build artifacts match the published package version
|
|
7
|
-
export const version = '2.
|
|
7
|
+
export const version = '2.112.1'
|