@wix/api-client
Advanced tools
Comparing version 1.1.70 to 1.1.71
@@ -66,3 +66,4 @@ "use strict"; | ||
try { | ||
return renewToken(tokens.refreshToken); | ||
const newTokens = await renewToken(tokens.refreshToken); | ||
return newTokens; | ||
} catch (e) { | ||
@@ -385,4 +386,8 @@ // just continue and create a visitor one | ||
}); | ||
return res.json(); | ||
if (res.status !== 200) { | ||
throw new Error('something went wrong'); | ||
} | ||
const json = await res.json(); | ||
return json; | ||
}; | ||
//# sourceMappingURL=OAuthStrategy.js.map |
@@ -61,3 +61,4 @@ import { createClient } from '../../wixClient'; | ||
try { | ||
return renewToken(tokens.refreshToken); | ||
const newTokens = await renewToken(tokens.refreshToken); | ||
return newTokens; | ||
} catch (e) { | ||
@@ -380,4 +381,8 @@ // just continue and create a visitor one | ||
}); | ||
return res.json(); | ||
if (res.status !== 200) { | ||
throw new Error('something went wrong'); | ||
} | ||
const json = await res.json(); | ||
return json; | ||
}; | ||
//# sourceMappingURL=OAuthStrategy.js.map |
{ | ||
"name": "@wix/api-client", | ||
"version": "1.1.70", | ||
"version": "1.1.71", | ||
"license": "UNLICENSED", | ||
@@ -32,6 +32,6 @@ "author": { | ||
"@types/grecaptcha": "^3.0.4", | ||
"@wix/identity": "^1.0.34", | ||
"@wix/identity": "^1.0.37", | ||
"@wix/image-kit": "^1.31.0", | ||
"@wix/redirects": "^1.0.13", | ||
"@wix/sdk-types": "1.1.70", | ||
"@wix/redirects": "^1.0.14", | ||
"@wix/sdk-types": "1.1.71", | ||
"pkce-challenge": "^3.1.0", | ||
@@ -44,3 +44,3 @@ "querystring": "^0.2.1", | ||
"@types/node": "^16.18.26", | ||
"@wix/ecom": "^1.0.169", | ||
"@wix/ecom": "^1.0.178", | ||
"@wix/events": "^1.0.80", | ||
@@ -76,3 +76,3 @@ "@wix/jest-yoshi-preset": "^6.56.0", | ||
}, | ||
"falconPackageHash": "24c5f194c355795e6e670f56d7d3226d3b4c6d32242c36bf80459dc0" | ||
"falconPackageHash": "756d1d6d4a268898aa6a23bc8ee6fdc16ed8e902be014d690195d4cf" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
475400
3662
+ Added@wix/sdk-types@1.1.71(transitive)
- Removed@wix/sdk-types@1.1.70(transitive)
Updated@wix/identity@^1.0.37
Updated@wix/redirects@^1.0.14
Updated@wix/sdk-types@1.1.71