@ribpay/oxlin
Advanced tools
Comparing version 0.1.0 to 0.1.1
import axios from 'axios'; | ||
import { interceptorFactory, LockingTokenCache, clientFactory } from '@scienta/axios-oauth2'; | ||
import { OpenAPIClientAxios } from 'openapi-client-axios'; | ||
import { fileURLToPath } from 'url'; | ||
import path, { dirname } from 'path'; | ||
@@ -68,7 +66,7 @@ /*! ***************************************************************************** | ||
// https://stackoverflow.com/a/62892482 | ||
const __filename = fileURLToPath(import.meta.url); | ||
const __dirname = dirname(__filename); | ||
const { pathname } = new URL("../swagger-oxlin-payments-api.yaml", import.meta.url); | ||
const definition = decodeURI(pathname); | ||
// Perform `async` stuff here... | ||
const api = new OpenAPIClientAxios({ | ||
definition: path.join(__dirname, "..", "swagger-oxlin-payments-api.yaml"), | ||
definition, | ||
}); // https://github.com/anttiviljami/openapi-client-axios/issues/39#issuecomment-697210630 | ||
@@ -75,0 +73,0 @@ api.init(); |
{ | ||
"name": "@ribpay/oxlin", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"author": "Guillaume FORTAINE <guillaume+github@fortaine.com>", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/ribpay/oxlin-node", |
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
207465
74