New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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 1.3.1 to 1.4.0

2

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

@@ -5,0 +5,0 @@ "main": "./build/ApiCalendar.js",

@@ -120,5 +120,6 @@ # react-google-calendar-api

* @param {object} Event with start and end dateTime
* @param {string} sendUpdates Acceptable values are: "all", "externalOnly", "none"
* @returns {any} Promise on the event.
*/
public createEvent(event: object, calendarId: string = this.calendar): any {
public createEvent(event: object, calendarId: string = this.calendar, sendUpdates: string = 'none',): any {
```

@@ -217,5 +218,6 @@

* @param {object} event with details to update, e.g. summary
* @param {string} sendUpdates Acceptable values are: "all", "externalOnly", "none"
* @returns {any} Promise object with result
*/
public updateEvent(event: object, eventId: string, calendarId: string = this.calendar): any
public updateEvent(event: object, eventId: string, calendarId: string = this.calendar, sendUpdates: string = 'none'): any
```

@@ -222,0 +224,0 @@

@@ -191,5 +191,6 @@ const Config = require('../../../apiGoogleconfig.json');

* @param {object} event with start and end dateTime
* @param {string} sendUpdates Acceptable values are: "all", "externalOnly", "none"
* @returns {any}
*/
createEvent(event, calendarId = this.calendar) {
createEvent(event, calendarId = this.calendar, sendUpdates = 'none') {
if (this.gapi) {

@@ -199,2 +200,3 @@ return this.gapi.client.calendar.events.insert({

resource: event,
sendUpdates: sendUpdates,
});

@@ -245,5 +247,6 @@ }

* @param {object} event with details to update, e.g. summary
* @param {string} sendUpdates Acceptable values are: "all", "externalOnly", "none"
* @returns {any}
*/
updateEvent(event, eventId, calendarId = this.calendar) {
updateEvent(event, eventId, calendarId = this.calendar, sendUpdates = 'none') {
if (this.gapi) {

@@ -254,2 +257,3 @@ return this.gapi.client.calendar.events.patch({

resource: event,
sendUpdates: sendUpdates,
});

@@ -256,0 +260,0 @@ }

@@ -211,5 +211,6 @@ const Config = require('../../../apiGoogleconfig.json');

* @param {object} event with start and end dateTime
* @param {string} sendUpdates Acceptable values are: "all", "externalOnly", "none"
* @returns {any}
*/
public createEvent(event: object, calendarId: string = this.calendar): any {
public createEvent(event: object, calendarId: string = this.calendar, sendUpdates: string = 'none' ): any {
if (this.gapi) {

@@ -219,2 +220,3 @@ return this.gapi.client.calendar.events.insert({

resource: event,
sendUpdates: sendUpdates,
});

@@ -265,2 +267,3 @@ } else {

* @param {object} event with details to update, e.g. summary
* @param {string} sendUpdates Acceptable values are: "all", "externalOnly", "none"
* @returns {any}

@@ -271,3 +274,4 @@ */

eventId: string,
calendarId: string = this.calendar
calendarId: string = this.calendar,
sendUpdates: string = 'none',
): any {

@@ -279,2 +283,3 @@ if (this.gapi) {

resource: event,
sendUpdates: sendUpdates,
});

@@ -281,0 +286,0 @@ } else {

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