New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

node-calendly

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-calendly - npm Package Compare versions

Comparing version 1.0.5 to 1.0.7

14

lib/endpoints/CalendlyApiEndpoint.d.ts

@@ -1,9 +0,11 @@

/******************************************
* Author : Dr. Sebastian Herden
* Created On : Fri Sep 16 2022
* File : Api.ts
*******************************************/
export declare type Options = {
timeout?: number;
limit?: number;
interval?: number;
bucketSize?: number;
};
export default class CalendlyApiEndpoint {
protected ACCESS_TOKEN: string;
constructor(ACCESS_TOKEN: string);
private options;
constructor(ACCESS_TOKEN: string, params?: Options);
protected fetchGet(url: string): Promise<any>;

@@ -10,0 +12,0 @@ protected fetchPost(url: string, body: string): Promise<any>;

@@ -11,2 +11,5 @@ "use strict";

};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -18,5 +21,14 @@ /******************************************

*******************************************/
const stopcock_1 = __importDefault(require("stopcock"));
class CalendlyApiEndpoint {
constructor(ACCESS_TOKEN) {
constructor(ACCESS_TOKEN, params) {
this.options = {
timeout: (params === null || params === void 0 ? void 0 : params.timeout) || 60000,
limit: (params === null || params === void 0 ? void 0 : params.limit) || 10,
interval: (params === null || params === void 0 ? void 0 : params.interval) || 1000,
bucketSize: (params === null || params === void 0 ? void 0 : params.bucketSize) || 35
};
this.ACCESS_TOKEN = ACCESS_TOKEN;
this.fetchGet = (0, stopcock_1.default)(this.fetchGet, this.options);
this.fetchPost = (0, stopcock_1.default)(this.fetchPost, this.options);
}

@@ -23,0 +35,0 @@ fetchGet(url) {

@@ -14,3 +14,8 @@ "use strict";

constructor(ACCESS_TOKEN, organizationProvider) {
super(ACCESS_TOKEN);
super(ACCESS_TOKEN, {
timeout: 60000,
limit: 8,
interval: 1000,
bucketSize: 35
});
this.organizationProvider = organizationProvider;

@@ -17,0 +22,0 @@ }

{
"name": "node-calendly",
"version": "1.0.5",
"version": "1.0.7",
"description": "Node module to access calendly api.",

@@ -45,2 +45,3 @@ "main": "./lib/Calendly.js",

"@types/node": "^18.7.18",
"@types/stopcock": "^1.1.1",
"dotenv": "^16.0.2",

@@ -57,3 +58,6 @@ "jest": "^29.0.3",

"lib/**/*"
]
],
"dependencies": {
"stopcock": "^1.1.0"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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