Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-google-calendar-api

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-google-calendar-api - npm Package Compare versions

Comparing version 2.0.3 to 2.1.0

13

dist/ApiCalendar.d.ts

@@ -82,3 +82,3 @@ interface ConfigApiCalendar {

start: TimeCalendarType;
}, calendarId?: string, sendUpdates?: 'all' | 'externalOnly' | 'none'): any;
}, calendarId?: string, sendUpdates?: "all" | "externalOnly" | "none"): any;
/**

@@ -107,4 +107,15 @@ * Delete an event in the calendar.

getEvent(eventId: string, calendarId?: string): any;
/**
* Get Calendar List
* @returns {any}
*/
listCalendars(): any;
/**
* Create Calendar
* @param {string} summary, title of the calendar.
* @returns {any}
*/
createCalendar(summary: string): any;
}
export { ApiCalendar as default };

@@ -229,2 +229,18 @@ var __defProp = Object.defineProperty;

}
listCalendars() {
if (gapi) {
return gapi.client.calendar.calendarList.list();
} else {
console.error("Error: gapi is not loaded use onLoad before please.");
return null;
}
}
createCalendar(summary) {
if (gapi) {
return gapi.client.calendar.calendars.insert({ summary });
} else {
console.error("Error: gapi is not loaded use onLoad before please.");
return null;
}
}
};

@@ -231,0 +247,0 @@ var ApiCalendar_default = ApiCalendar;

8

package.json
{
"name": "react-google-calendar-api",
"version": "2.0.3",
"version": "2.1.0",
"description": "An api to manage your google calendar",

@@ -28,3 +28,3 @@ "main": "./dist/ApiCalendar.js",

"type": "git",
"url": "git+ssh://git@github.com/Insomniiak/react-google-calendar-api.git"
"url": "git+ssh://git@github.com/Kubessandra/react-google-calendar-api.git"
},

@@ -40,5 +40,5 @@ "keywords": [

"bugs": {
"url": "https://github.com/Insomniiak/react-google-calendar-api/issues"
"url": "https://github.com/Kubessandra/react-google-calendar-api/issues"
},
"homepage": "https://github.com/Insomniiak/react-google-calendar-api#readme",
"homepage": "https://github.com/Kubessandra/react-google-calendar-api#readme",
"devDependencies": {

@@ -45,0 +45,0 @@ "@types/gapi": "^0.0.42",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc