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

@culturehq/add-to-calendar

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@culturehq/add-to-calendar - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

ssr.js

9

CHANGELOG.md

@@ -9,2 +9,8 @@ # Changelog

## [1.1.1] - 2020-10-18
### Changed
- Ensure we can render the component on a server.
## [1.1.0] - 2020-07-10

@@ -73,3 +79,4 @@

[unreleased]: https://github.com/culturehq/add-to-calendar/compare/v1.1.0...HEAD
[unreleased]: https://github.com/culturehq/add-to-calendar/compare/v1.1.1...HEAD
[1.1.1]: https://github.com/culturehq/add-to-calendar/compare/v1.1.0...v1.1.1
[1.1.0]: https://github.com/culturehq/add-to-calendar/compare/v1.0.4...v1.1.0

@@ -76,0 +83,0 @@ [1.0.4]: https://github.com/culturehq/add-to-calendar/compare/v1.0.3...v1.0.4

2

dist/AddToCalendar.js

@@ -17,3 +17,3 @@ "use strict";

var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);

@@ -20,0 +20,0 @@ return result;

@@ -47,12 +47,9 @@ "use strict";

"VERSION:2.0",
"BEGIN:VEVENT",
"URL:" + document.URL,
"DTSTART:" + makeTime(event.startsAt),
"DTEND:" + makeTime(event.endsAt),
"SUMMARY:" + event.name,
"DESCRIPTION:" + event.details,
"LOCATION:" + event.location,
"END:VEVENT",
"END:VCALENDAR"
"BEGIN:VEVENT"
];
// In case of SSR, document won't be defined
if (typeof document !== "undefined") {
components.push("URL:" + document.URL);
}
components.push("DTSTART:" + makeTime(event.startsAt), "DTEND:" + makeTime(event.endsAt), "SUMMARY:" + event.name, "DESCRIPTION:" + event.details, "LOCATION:" + event.location, "END:VEVENT", "END:VCALENDAR");
return encodeURI("data:text/calendar;charset=utf8," + components.join("\n"));

@@ -59,0 +56,0 @@ };

{
"name": "@culturehq/add-to-calendar",
"version": "1.1.0",
"version": "1.1.1",
"description": "A small package for adding an event to a calendar.",

@@ -12,2 +12,3 @@ "main": "dist/AddToCalendar.js",

"prepublishOnly": "rm -f dist/* && yarn tsc --declaration && cp src/styles.css dist",
"ssr": "yarn node ssr",
"start": "webpack-dev-server --mode development --hot",

@@ -31,10 +32,10 @@ "test": "chq-scripts test"

"devDependencies": {
"@babel/cli": "^7.10.4",
"@babel/core": "^7.10.4",
"@babel/preset-env": "^7.10.4",
"@babel/preset-react": "^7.10.4",
"@babel/preset-typescript": "^7.10.4",
"@babel/register": "^7.10.4",
"@babel/cli": "^7.12.1",
"@babel/core": "^7.12.1",
"@babel/preset-env": "^7.12.1",
"@babel/preset-react": "^7.12.1",
"@babel/preset-typescript": "^7.12.1",
"@babel/register": "^7.12.1",
"@culturehq/scripts": "^6.0.1",
"@testing-library/react": "^10.0.0",
"@testing-library/react": "^11.1.0",
"@types/jest": "^26.0.0",

@@ -45,9 +46,9 @@ "@types/react": "^16.9.42",

"babel-loader": "^8.0.6",
"css-loader": "^3.4.2",
"css-loader": "^5.0.0",
"react": "^16.9.0",
"react-dom": "^16.9.0",
"style-loader": "^1.0.0",
"typescript": "^3.5.3",
"webpack": "^4.41.4",
"webpack-cli": "^3.3.3",
"react-dom": "^16.14.0",
"style-loader": "^2.0.0",
"typescript": "^4.0.3",
"webpack": "^5.1.3",
"webpack-cli": "^4.0.0",
"webpack-dev-server": "^3.10.1"

@@ -54,0 +55,0 @@ },

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