bizzabo-api
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -52,2 +52,3 @@ "use strict"; | ||
var axios_1 = require("axios"); | ||
var UnauthorizedException_1 = require("../errors/UnauthorizedException"); | ||
var DEFAULT_AUTH_BASE_URL = 'https://auth.bizzabo.com'; | ||
@@ -67,4 +68,3 @@ var DEFAULT_AUTH_AUDIENCE = 'https://api.bizzabo.com/api'; | ||
this._handleError = function (error) { | ||
console.error(error.response.data); | ||
return Promise.reject(JSON.stringify(error.response.data)); | ||
return Promise.reject(new UnauthorizedException_1.UnauthorizedException(JSON.stringify(error.response.data))); | ||
}; | ||
@@ -71,0 +71,0 @@ this.clientId = clientId; |
@@ -29,3 +29,2 @@ "use strict"; | ||
this.handleError = function (error) { | ||
console.error(error.response.data); | ||
return Promise.reject(JSON.stringify(error.response.data)); | ||
@@ -32,0 +31,0 @@ }; |
@@ -6,5 +6,5 @@ import { ContactsApi } from './api/contacts-client'; | ||
export * from './auth/token'; | ||
export * from './api/contacts-client'; | ||
export * from './api/speakers-client'; | ||
export * from './api/events-client'; | ||
export * from './api'; | ||
export * from './errors'; | ||
export * from './utils/http-status.enum'; | ||
export declare class Bizzabo { | ||
@@ -11,0 +11,0 @@ contactsApi: ContactsApi; |
@@ -22,5 +22,5 @@ "use strict"; | ||
__exportStar(require("./auth/token"), exports); | ||
__exportStar(require("./api/contacts-client"), exports); | ||
__exportStar(require("./api/speakers-client"), exports); | ||
__exportStar(require("./api/events-client"), exports); | ||
__exportStar(require("./api"), exports); | ||
__exportStar(require("./errors"), exports); | ||
__exportStar(require("./utils/http-status.enum"), exports); | ||
var Bizzabo = /** @class */ (function () { | ||
@@ -27,0 +27,0 @@ function Bizzabo(token) { |
{ | ||
"name": "bizzabo-api", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "The Bizzabo API is a Typescript client that allows calling Bizzabo public APIs", | ||
@@ -5,0 +5,0 @@ "author": "Bizzabo", |
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
42829
24
832