@dynamic-labs-wallet/browser 1.0.74 → 1.0.75
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/index.cjs +8 -1
- package/index.esm.js +8 -1
- package/package.json +3 -3
- package/src/services/logger.d.ts.map +1 -1
package/index.cjs
CHANGED
|
@@ -1935,6 +1935,13 @@ const buildHttpCeremonyMeta = (fields)=>_extends({
|
|
|
1935
1935
|
* `WalletApiError` and caught again (e.g. by queue error handlers).
|
|
1936
1936
|
* Logging these at `warn` prevents double-counting them as real errors.
|
|
1937
1937
|
*/ const isTransientApiError = (error)=>error instanceof core.WalletApiError && error.status === 429;
|
|
1938
|
+
/**
|
|
1939
|
+
* Returns true for missing/expired end-user auth (401). This is a normal
|
|
1940
|
+
* session-lifecycle event (cookie/JWT expired, user must re-authenticate),
|
|
1941
|
+
* not an actionable server error — retrying cannot add credentials. Logged
|
|
1942
|
+
* at `warn` so it stays queryable without firing error-level monitors. It was
|
|
1943
|
+
* the dominant `Error in getWallet` catch-all contributor.
|
|
1944
|
+
*/ const isExpiredAuthError = (error)=>error instanceof core.WalletApiError && error.status === 401;
|
|
1938
1945
|
/**
|
|
1939
1946
|
* Returns true for p-queue TimeoutError. These are transient and
|
|
1940
1947
|
* retryable client-side, so logging at `warn` prevents them from
|
|
@@ -1958,7 +1965,7 @@ const resolveLogLevel = (error, fallback)=>{
|
|
|
1958
1965
|
if (isExpectedUserError(error)) {
|
|
1959
1966
|
return 'info';
|
|
1960
1967
|
}
|
|
1961
|
-
if (isTransientApiError(error) || isQueueTimeoutError(error) || isClientNetworkError(error)) {
|
|
1968
|
+
if (isTransientApiError(error) || isExpiredAuthError(error) || isQueueTimeoutError(error) || isClientNetworkError(error)) {
|
|
1962
1969
|
return 'warn';
|
|
1963
1970
|
}
|
|
1964
1971
|
return fallback;
|
package/index.esm.js
CHANGED
|
@@ -1936,6 +1936,13 @@ const buildHttpCeremonyMeta = (fields)=>_extends({
|
|
|
1936
1936
|
* `WalletApiError` and caught again (e.g. by queue error handlers).
|
|
1937
1937
|
* Logging these at `warn` prevents double-counting them as real errors.
|
|
1938
1938
|
*/ const isTransientApiError = (error)=>error instanceof WalletApiError && error.status === 429;
|
|
1939
|
+
/**
|
|
1940
|
+
* Returns true for missing/expired end-user auth (401). This is a normal
|
|
1941
|
+
* session-lifecycle event (cookie/JWT expired, user must re-authenticate),
|
|
1942
|
+
* not an actionable server error — retrying cannot add credentials. Logged
|
|
1943
|
+
* at `warn` so it stays queryable without firing error-level monitors. It was
|
|
1944
|
+
* the dominant `Error in getWallet` catch-all contributor.
|
|
1945
|
+
*/ const isExpiredAuthError = (error)=>error instanceof WalletApiError && error.status === 401;
|
|
1939
1946
|
/**
|
|
1940
1947
|
* Returns true for p-queue TimeoutError. These are transient and
|
|
1941
1948
|
* retryable client-side, so logging at `warn` prevents them from
|
|
@@ -1959,7 +1966,7 @@ const resolveLogLevel = (error, fallback)=>{
|
|
|
1959
1966
|
if (isExpectedUserError(error)) {
|
|
1960
1967
|
return 'info';
|
|
1961
1968
|
}
|
|
1962
|
-
if (isTransientApiError(error) || isQueueTimeoutError(error) || isClientNetworkError(error)) {
|
|
1969
|
+
if (isTransientApiError(error) || isExpiredAuthError(error) || isQueueTimeoutError(error) || isClientNetworkError(error)) {
|
|
1963
1970
|
return 'warn';
|
|
1964
1971
|
}
|
|
1965
1972
|
return fallback;
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs-wallet/browser",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.75",
|
|
4
4
|
"license": "Licensed under the Dynamic Labs, Inc. Terms Of Service (https://www.dynamic.xyz/terms-conditions)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@dynamic-labs-wallet/core": "1.0.
|
|
7
|
+
"@dynamic-labs-wallet/core": "1.0.75",
|
|
8
8
|
"@dynamic-labs-wallet/forward-mpc-client": "1.0.1",
|
|
9
|
-
"@dynamic-labs-wallet/primitives": "1.0.
|
|
9
|
+
"@dynamic-labs-wallet/primitives": "1.0.75",
|
|
10
10
|
"@dynamic-labs/sdk-api-core": "^0.0.1082",
|
|
11
11
|
"argon2id": "1.0.1",
|
|
12
12
|
"axios": "1.16.0",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/services/logger.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/services/logger.ts"],"names":[],"mappings":"AAqCA;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,UAAW,OAAO,KAAG,OAIrD,CAAC;AAmBF,eAAO,MAAM,QAAQ,wCAKlB;IACD,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,KAAK,CAAC;IACb,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CAC1B,KAAG,IAkBH,CAAC"}
|