react-google-calendar-api
Advanced tools
Comparing version 1.0.7 to 1.0.8
@@ -8,13 +8,18 @@ const Config = require("../../../apiGoogleconfig.json"); | ||
this.calendar = 'primary'; | ||
this.updateSigninStatus = this.updateSigninStatus.bind(this); | ||
this.initClient = this.initClient.bind(this); | ||
this.handleSignoutClick = this.handleSignoutClick.bind(this); | ||
this.handleAuthClick = this.handleAuthClick.bind(this); | ||
this.createEvent = this.createEvent.bind(this); | ||
this.listUpcomingEvents = this.listUpcomingEvents.bind(this); | ||
this.createEventFromNow = this.createEventFromNow.bind(this); | ||
this.listenSign = this.listenSign.bind(this); | ||
this.onLoad = this.onLoad.bind(this); | ||
this.setCalendar = this.setCalendar.bind(this); | ||
this.handleClientLoad(); | ||
try { | ||
this.updateSigninStatus = this.updateSigninStatus.bind(this); | ||
this.initClient = this.initClient.bind(this); | ||
this.handleSignoutClick = this.handleSignoutClick.bind(this); | ||
this.handleAuthClick = this.handleAuthClick.bind(this); | ||
this.createEvent = this.createEvent.bind(this); | ||
this.listUpcomingEvents = this.listUpcomingEvents.bind(this); | ||
this.createEventFromNow = this.createEventFromNow.bind(this); | ||
this.listenSign = this.listenSign.bind(this); | ||
this.onLoad = this.onLoad.bind(this); | ||
this.setCalendar = this.setCalendar.bind(this); | ||
this.handleClientLoad(); | ||
} | ||
catch (e) { | ||
console.log(e); | ||
} | ||
} | ||
@@ -42,2 +47,5 @@ /** | ||
} | ||
}) | ||
.catch((e) => { | ||
console.log(e); | ||
}); | ||
@@ -50,2 +58,3 @@ } | ||
handleClientLoad() { | ||
this.gapi = window['gapi']; | ||
const script = document.createElement("script"); | ||
@@ -172,3 +181,9 @@ script.src = "https://apis.google.com/js/api.js"; | ||
} | ||
const apiCalendar = new ApiCalendar(); | ||
let apiCalendar; | ||
try { | ||
apiCalendar = new ApiCalendar(); | ||
} | ||
catch (e) { | ||
console.log(e); | ||
} | ||
export default apiCalendar; |
declare var test: any; | ||
import ApiCalendar from './ApiCalendar'; | ||
import ApiCalendar from './build/ApiCalendar'; | ||
@@ -5,0 +5,0 @@ test('setCalendar method', () => { |
@@ -10,14 +10,18 @@ const Config = require("../../../apiGoogleconfig.json"); | ||
constructor() { | ||
this.updateSigninStatus = this.updateSigninStatus.bind(this); | ||
this.initClient = this.initClient.bind(this); | ||
this.handleSignoutClick = this.handleSignoutClick.bind(this); | ||
this.handleAuthClick = this.handleAuthClick.bind(this); | ||
this.createEvent = this.createEvent.bind(this); | ||
this.listUpcomingEvents = this.listUpcomingEvents.bind(this); | ||
this.createEventFromNow = this.createEventFromNow.bind(this); | ||
this.listenSign = this.listenSign.bind(this); | ||
this.onLoad = this.onLoad.bind(this); | ||
this.setCalendar = this.setCalendar.bind(this); | ||
try { | ||
this.updateSigninStatus = this.updateSigninStatus.bind(this); | ||
this.initClient = this.initClient.bind(this); | ||
this.handleSignoutClick = this.handleSignoutClick.bind(this); | ||
this.handleAuthClick = this.handleAuthClick.bind(this); | ||
this.createEvent = this.createEvent.bind(this); | ||
this.listUpcomingEvents = this.listUpcomingEvents.bind(this); | ||
this.createEventFromNow = this.createEventFromNow.bind(this); | ||
this.listenSign = this.listenSign.bind(this); | ||
this.onLoad = this.onLoad.bind(this); | ||
this.setCalendar = this.setCalendar.bind(this); | ||
this.handleClientLoad(); | ||
this.handleClientLoad(); | ||
} catch (e) { | ||
console.log(e); | ||
} | ||
} | ||
@@ -48,2 +52,5 @@ | ||
}) | ||
.catch((e: any) => { | ||
console.log(e); | ||
}) | ||
} | ||
@@ -56,2 +63,3 @@ | ||
private handleClientLoad(): void { | ||
this.gapi = window['gapi']; | ||
const script = document.createElement("script"); | ||
@@ -183,3 +191,8 @@ script.src = "https://apis.google.com/js/api.js"; | ||
const apiCalendar = new ApiCalendar(); | ||
let apiCalendar; | ||
try { | ||
apiCalendar = new ApiCalendar(); | ||
} catch (e) { | ||
console.log(e); | ||
} | ||
export default apiCalendar; |
@@ -21,13 +21,17 @@ 'use strict'; | ||
this.calendar = 'primary'; | ||
this.updateSigninStatus = this.updateSigninStatus.bind(this); | ||
this.initClient = this.initClient.bind(this); | ||
this.handleSignoutClick = this.handleSignoutClick.bind(this); | ||
this.handleAuthClick = this.handleAuthClick.bind(this); | ||
this.createEvent = this.createEvent.bind(this); | ||
this.listUpcomingEvents = this.listUpcomingEvents.bind(this); | ||
this.createEventFromNow = this.createEventFromNow.bind(this); | ||
this.listenSign = this.listenSign.bind(this); | ||
this.onLoad = this.onLoad.bind(this); | ||
this.setCalendar = this.setCalendar.bind(this); | ||
this.handleClientLoad(); | ||
try { | ||
this.updateSigninStatus = this.updateSigninStatus.bind(this); | ||
this.initClient = this.initClient.bind(this); | ||
this.handleSignoutClick = this.handleSignoutClick.bind(this); | ||
this.handleAuthClick = this.handleAuthClick.bind(this); | ||
this.createEvent = this.createEvent.bind(this); | ||
this.listUpcomingEvents = this.listUpcomingEvents.bind(this); | ||
this.createEventFromNow = this.createEventFromNow.bind(this); | ||
this.listenSign = this.listenSign.bind(this); | ||
this.onLoad = this.onLoad.bind(this); | ||
this.setCalendar = this.setCalendar.bind(this); | ||
this.handleClientLoad(); | ||
} catch (e) { | ||
console.log(e); | ||
} | ||
} | ||
@@ -63,2 +67,4 @@ /** | ||
} | ||
}).catch(function (e) { | ||
console.log(e); | ||
}); | ||
@@ -76,2 +82,3 @@ } | ||
this.gapi = window['gapi']; | ||
var script = document.createElement("script"); | ||
@@ -231,3 +238,8 @@ script.src = "https://apis.google.com/js/api.js"; | ||
var apiCalendar = new ApiCalendar(); | ||
var apiCalendar = void 0; | ||
try { | ||
apiCalendar = new ApiCalendar(); | ||
} catch (e) { | ||
console.log(e); | ||
} | ||
exports.default = apiCalendar; |
{ | ||
"name": "react-google-calendar-api", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "An api to manage your google calendar", | ||
@@ -48,8 +48,8 @@ "main": "./build/ApiCalendar.js", | ||
"ts-jest": "^22.4.6", | ||
"tslint": "^5.10.0", | ||
"typescript": "^2.8.3" | ||
"tslint": "^5.11.0", | ||
"typescript": "^2.8.4" | ||
}, | ||
"dependencies": { | ||
"@types/node": "^9.6.18" | ||
"@types/node": "^9.6.19" | ||
} | ||
} |
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
34329
13
624
Updated@types/node@^9.6.19