@wix/api-client
Advanced tools
Comparing version 1.1.59 to 1.1.60
@@ -5,5 +5,5 @@ "use strict"; | ||
var _wixClient = require("../wixClient"); | ||
var _OAuthStrategy = require("../auth/OAuthStrategy"); | ||
var _constants = require("./fixtures/constants"); | ||
var _tokenHelpers = require("../tokenHelpers"); | ||
var _OAuthStrategy = require("../auth/oauth2/OAuthStrategy"); | ||
describe('OAuthStrategy', () => { | ||
@@ -10,0 +10,0 @@ beforeEach(() => { |
@@ -22,3 +22,3 @@ "use strict"; | ||
}); | ||
var _OAuthStrategy = require("./auth/OAuthStrategy"); | ||
var _OAuthStrategy = require("./auth/oauth2/OAuthStrategy"); | ||
Object.keys(_OAuthStrategy).forEach(function (key) { | ||
@@ -25,0 +25,0 @@ if (key === "default" || key === "__esModule") return; |
@@ -42,3 +42,4 @@ "use strict"; | ||
throw errorBuilder(res.status, (_dataError = dataError) == null ? void 0 : _dataError.message, (_dataError2 = dataError) == null ? void 0 : _dataError2.details, { | ||
requestId: res.headers.get('X-Wix-Request-Id') | ||
requestId: res.headers.get('X-Wix-Request-Id'), | ||
details: dataError | ||
}); | ||
@@ -65,3 +66,2 @@ } | ||
details: { | ||
...details, | ||
...(!(details != null && details.validationError) && { | ||
@@ -72,3 +72,4 @@ applicationError: { | ||
data | ||
} | ||
}, | ||
...details | ||
}) | ||
@@ -75,0 +76,0 @@ }, |
import { cart } from '@wix/ecom'; | ||
import { createClient } from '../wixClient'; | ||
import { OAuthStrategy } from '../auth/OAuthStrategy'; | ||
import { VALID_TOKEN } from './fixtures/constants'; | ||
import { getCurrentDate } from '../tokenHelpers'; | ||
import { OAuthStrategy } from '../auth/oauth2/OAuthStrategy'; | ||
describe('OAuthStrategy', () => { | ||
@@ -7,0 +7,0 @@ beforeEach(() => { |
export * from './wixClient'; | ||
export * from './wixMedia'; | ||
export * from './auth/OAuthStrategy'; | ||
export * from './auth/oauth2/OAuthStrategy'; | ||
export * from './auth/ApiKeyAuthStrategy'; | ||
export { AuthenticationStrategy } from './auth/strategy'; | ||
//# sourceMappingURL=index.js.map |
@@ -38,3 +38,4 @@ import { biHeaderGenerator } from './bi/biHeaderGenerator'; | ||
throw errorBuilder(res.status, (_dataError = dataError) == null ? void 0 : _dataError.message, (_dataError2 = dataError) == null ? void 0 : _dataError2.details, { | ||
requestId: res.headers.get('X-Wix-Request-Id') | ||
requestId: res.headers.get('X-Wix-Request-Id'), | ||
details: dataError | ||
}); | ||
@@ -61,3 +62,2 @@ } | ||
details: { | ||
...details, | ||
...(!(details != null && details.validationError) && { | ||
@@ -68,3 +68,4 @@ applicationError: { | ||
data | ||
} | ||
}, | ||
...details | ||
}) | ||
@@ -71,0 +72,0 @@ }, |
export * from './wixClient'; | ||
export * from './wixMedia'; | ||
export * from './auth/OAuthStrategy'; | ||
export * from './auth/oauth2/OAuthStrategy'; | ||
export * from './auth/ApiKeyAuthStrategy'; | ||
export { AuthenticationStrategy } from './auth/strategy'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,2 +0,2 @@ | ||
import { AccessToken } from './auth/OAuthStrategy'; | ||
import { AccessToken } from './auth/oauth2/types'; | ||
export declare function getCurrentDate(): number; | ||
@@ -3,0 +3,0 @@ export declare function isTokenExpired(token: AccessToken): boolean; |
{ | ||
"name": "@wix/api-client", | ||
"version": "1.1.59", | ||
"version": "1.1.60", | ||
"license": "UNLICENSED", | ||
@@ -30,7 +30,8 @@ "author": { | ||
"dependencies": { | ||
"@babel/runtime": "^7.21.0", | ||
"@babel/runtime": "^7.21.5", | ||
"@types/grecaptcha": "^3.0.4", | ||
"@wix/identity": "^1.0.30", | ||
"@wix/image-kit": "^1.31.0", | ||
"@wix/redirects": "^1.0.8", | ||
"@wix/sdk-types": "1.1.59", | ||
"@wix/redirects": "^1.0.12", | ||
"@wix/sdk-types": "1.1.60", | ||
"pkce-challenge": "^3.1.0", | ||
@@ -42,5 +43,5 @@ "querystring": "^0.2.1", | ||
"@types/jest": "^27.5.2", | ||
"@types/node": "^16.18.23", | ||
"@wix/ecom": "^1.0.151", | ||
"@wix/events": "^1.0.77", | ||
"@types/node": "^16.18.25", | ||
"@wix/ecom": "^1.0.164", | ||
"@wix/events": "^1.0.80", | ||
"@wix/jest-yoshi-preset": "^6.54.2", | ||
@@ -75,3 +76,3 @@ "@wix/motion": "^1.0.23", | ||
}, | ||
"falconPackageHash": "daab6b5b26fe1ae6661cfc165902ba33250778e8fbe061a77d018ff1" | ||
"falconPackageHash": "70389cdc081e219c1274649052d30fbf49c09877209d75d1fceeb101" | ||
} |
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
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
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
453804
124
3621
9
+ Added@types/grecaptcha@^3.0.4
+ Added@types/grecaptcha@3.0.9(transitive)
+ Added@wix/sdk-types@1.1.60(transitive)
- Removed@wix/sdk-types@1.1.59(transitive)
Updated@babel/runtime@^7.21.5
Updated@wix/redirects@^1.0.12
Updated@wix/sdk-types@1.1.60