@friggframework/api-module-airwallex
Advanced tools
Comparing version 0.8.24-canary.143.118ffa9.0 to 0.8.24-canary.143.13ce152.0
{ | ||
"name": "@friggframework/api-module-airwallex", | ||
"version": "0.8.24-canary.143.118ffa9.0", | ||
"version": "0.8.24-canary.143.13ce152.0", | ||
"prettier": "@friggframework/prettier-config", | ||
@@ -25,3 +25,3 @@ "description": "", | ||
}, | ||
"gitHead": "118ffa9b6101afd1ebb26d19a100ab501342541c" | ||
"gitHead": "13ce152bc42d7bdaed5c91f51aeb34bff280bccf" | ||
} |
@@ -8,15 +8,13 @@ const chai = require('chai'); | ||
describe('Airwallex API class', () => { | ||
const api = new Api(); | ||
let api; | ||
beforeAll(async () => { | ||
const url = api.authorizationUri; | ||
const response = await Authenticator.oauth2(url); | ||
const baseArr = response.base.split('/'); | ||
response.entityType = baseArr[baseArr.length - 1]; | ||
delete response.base; | ||
const token = await api.getTokenFromCode(response.data.code); | ||
api = new Api({ | ||
api_key: process.env.AIRWALLEX_API_KEY, | ||
client_id: process.env.AIRWALLEX_CLIENT_ID, | ||
}); | ||
await api.getTokenFromApiKey(); | ||
}); | ||
describe('Get Account Info', () => { | ||
it('should get Account info', async () => { | ||
it.skip('should get Account info', async () => { | ||
const response = await api.getAccount(); | ||
@@ -29,3 +27,3 @@ response.should.have.property('id'); | ||
describe('Transactions', () => { | ||
it('should get all transactions', async () => { | ||
it.skip('should get all transactions', async () => { | ||
const response = await api.getTransactions(); | ||
@@ -32,0 +30,0 @@ response.should.have.property('items'); |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances 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
23048
471
6