Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
@leisurelink/calendar-client
Advanced tools
There is more than one calendar-client
. There is inventory-calendar-client for inventory-calendar, which has a V1 and a V2 published to NPM under the name calendar-client
. The V1 is used by Orange, and V2 is used for IH-APP.
This repo will publish calendar-client
as a V3 for the GitHub repo calendar-api
let calendarClient = require('@leisurelink/calendar-client');
let client = calendarClient(keyId, key, baseUrl);
let client = calendarClient(keyId, key, baseUrl);
keyId
: trusted endpoint key id, ex: "my-api/self"
key
: trusted endpoint key as a Buffer
baseUrl
: calendar api base URL, for example the dev URL might be https://portal-dev.leisurelink.com
client.getCalendarById(referenceId, lang).then(result => { ... })
GET
a Calendar object by its referenceId.referenceId
: the identifier of the Calendar. This is often the UnitId.lang
: sets the language of the request. This is required. For example, en-US
client.putCalendarById(referenceId, lang, calendarObject).then(result => { ... })
CREATE
or REPLACE
a Calendar object.referenceId
: the identifier of the Calendar. This is often the UnitId.lang
: sets the language of the request. This is required. For example, en-US
calendarObject
: the calendar settings object to storeNONE
, INVENTORY
, CONFIRMATION_METHOD
)NONE
, AVAILABLE
, UNAVAILABLE
, CALL_AND_REQUEST
)client.patchCalendarById(referenceId, lang, calendarObject).then(result => { ... })
UPDATE
a Calendar object.referenceId
: the identifier of the Calendar. This is often the UnitId.lang
: sets the language of the request. This is required. For example, en-US
calendarObject
: the calendar settings object to storeNONE
, INVENTORY
, CONFIRMATION_METHOD
)NONE
, AVAILABLE
, UNAVAILABLE
, CALL_AND_REQUEST
)client.deleteCalendarById(referenceId, lang).then(result => { ... })
DELETE
a Calendar object.referenceId
: the identifier of the Calendar. This is often the UnitId.lang
: sets the language of the request. This is required. For example, en-US
FAQs
## Ambiguity
We found that @leisurelink/calendar-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 23 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.