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

calendar-link

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

calendar-link - npm Package Compare versions

Comparing version 2.6.0 to 2.6.1

9

CHANGELOG.md

@@ -0,1 +1,10 @@

## v2.6.1 (2024-07-31)
[๐Ÿ“ Release notes](https://github.com/AnandChowdhary/calendar-link/releases/tag/v2.6.1) ยท [๐Ÿ’ป Compare](https://github.com/AnandChowdhary/calendar-link/compare/v2.6.0...v2.6.1) ยท [๐Ÿ”– Tag](https://github.com/AnandChowdhary/calendar-link/tree/v2.6.1) ยท ๐Ÿ—„๏ธ Archive ([zip](https://github.com/AnandChowdhary/calendar-link/archive/v2.6.1.zip) ยท [tar.gz](https://github.com/AnandChowdhary/calendar-link/archive/v2.6.1.tar.gz))
### ๐Ÿ› Bug fixes
- [`6da873c`](https://github.com/AnandChowdhary/calendar-link/commit/6da873c) Fix Snapshot Tests for ICS Links (#600)
(Issues: [`#600`](https://github.com/AnandChowdhary/calendar-link/issues/600))
## v2.6.0 (2023-09-29)

@@ -2,0 +11,0 @@

119

dist/index.spec.js

@@ -14,61 +14,70 @@ "use strict";

]) {
describe(`${service.name} service`, () => { });
test(`generate a ${service.name} link`, () => {
const event = {
title: "Birthday party",
start: "2019-12-29",
duration: [2, "hour"],
};
const link = service(event);
expect(link).toMatchSnapshot();
beforeAll(() => {
jest.useFakeTimers("modern");
jest.setSystemTime(new Date("2019-12-28T12:00:00.000Z"));
jest.spyOn(global.Math, "random").mockReturnValue(0.12345);
});
test(`generate a ${service.name} link with time & timezone`, () => {
const event = {
title: "Birthday party",
start: "2019-12-29T12:00:00.000+01:00",
duration: [2, "hour"],
};
const link = service(event);
expect(link).toMatchSnapshot();
afterAll(() => {
jest.useRealTimers();
});
test(`generate an all day ${service.name} link`, () => {
const event = {
title: "Birthday party",
start: "2019-12-29",
allDay: true,
};
const link = service(event);
expect(link).toMatchSnapshot();
describe(`${service.name} service`, () => {
test(`generate a ${service.name} link`, () => {
const event = {
title: "Birthday party",
start: "2019-12-29",
duration: [2, "hour"],
};
const link = service(event);
expect(link).toMatchSnapshot();
});
test(`generate a ${service.name} link with time & timezone`, () => {
const event = {
title: "Birthday party",
start: "2019-12-29T12:00:00.000+01:00",
duration: [2, "hour"],
};
const link = service(event);
expect(link).toMatchSnapshot();
});
test(`generate an all day ${service.name} link`, () => {
const event = {
title: "Birthday party",
start: "2019-12-29",
allDay: true,
};
const link = service(event);
expect(link).toMatchSnapshot();
});
test(`generate a multi day ${service.name} link`, () => {
const event = {
title: "Birthday party",
start: "2019-12-29",
end: "2020-01-12",
allDay: true,
};
const link = service(event);
expect(link).toMatchSnapshot();
});
test(`generate a recurring ${service.name} link`, () => {
const event = {
title: "Birthday party",
start: "2019-12-29",
duration: [2, "hour"],
rRule: "FREQ=YEARLY;INTERVAL=1",
};
const link = service(event);
expect(link).toMatchSnapshot();
});
test(`generate a ${service.name} link with guests`, () => {
const event = {
title: "Birthday party",
start: "2019-12-29",
duration: [2, "hour"],
guests: ["hello@example.com", "another@example.com"],
};
const link = service(event);
expect(link).toMatchSnapshot();
});
});
test(`generate a multi day ${service.name} link`, () => {
const event = {
title: "Birthday party",
start: "2019-12-29",
end: "2020-01-12",
allDay: true,
};
const link = service(event);
expect(link).toMatchSnapshot();
});
test(`generate a recurring ${service.name} link`, () => {
const event = {
title: "Birthday party",
start: "2019-12-29",
duration: [2, "hour"],
rRule: "FREQ=YEARLY;INTERVAL=1",
};
const link = service(event);
expect(link).toMatchSnapshot();
});
test(`generate a ${service.name} link with guests`, () => {
const event = {
title: "Birthday party",
start: "2019-12-29",
duration: [2, "hour"],
guests: ["hello@example.com", "another@example.com"],
};
const link = service(event);
expect(link).toMatchSnapshot();
});
}
//# sourceMappingURL=index.spec.js.map
{
"name": "calendar-link",
"version": "2.6.0",
"version": "2.6.1",
"description": "๐Ÿ“… Calendar link generator for popular services, like Google, Outlook, and Yahoo.",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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