Skip to content

Commit

Permalink
Upgrade ical-generator to v6.0.0-develop.1
Browse files Browse the repository at this point in the history
  • Loading branch information
12joan committed Oct 19, 2023
1 parent 5d0e4ce commit fd0ed45
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 174 deletions.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
FROM --platform=linux/amd64 node:latest
WORKDIR /app
COPY package.json yarn.lock ./
COPY patches ./patches
RUN yarn install --frozen-lockfile --non-interactive
COPY . .
RUN yarn build
Expand Down
7 changes: 2 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
"build": "tsc && vite build",
"lint": "eslint src --max-warnings 0",
"test": "jest",
"ci": "yarn test && yarn lint",
"postinstall": "patch-package"
"ci": "yarn test && yarn lint"
},
"dependencies": {
"@radix-ui/react-checkbox": "^1.0.4",
Expand All @@ -20,7 +19,7 @@
"class-variance-authority": "^0.7.0",
"clsx": "^2.0.0",
"date-fns": "^2.30.0",
"ical-generator": "^5.0.1",
"ical-generator": "^6.0.0-develop.1",
"javascript-time-ago": "^2.5.9",
"lucide-react": "^0.277.0",
"react": "^18.2.0",
Expand Down Expand Up @@ -49,9 +48,7 @@
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-simple-import-sort": "^10.0.0",
"jest": "^29.7.0",
"patch-package": "^8.0.0",
"postcss": "^8.4.31",
"postinstall-postinstall": "^2.1.0",
"prettier": "^2.8.8",
"tailwindcss": "^3.3.3",
"ts-jest": "^29.1.1",
Expand Down
26 changes: 0 additions & 26 deletions patches/ical-generator+5.0.1.patch

This file was deleted.

5 changes: 2 additions & 3 deletions src/lib/downloadEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ const toICalData = ({
([offsetString]) =>
({
type: 'display',
// https://github.com/sebbo2002/ical-generator/issues/519
trigger: parseInt(offsetString, 10) || 1,
trigger: parseInt(offsetString, 10),
} as any)
),
};
Expand All @@ -55,7 +54,7 @@ const toICalData = ({
export const downloadEvent = (event: CalendarEvent) => {
const calendar = ical();
calendar.createEvent(toICalData(event));
const blob = calendar.toBlob();
const blob = new Blob([calendar.toString()], { type: 'text/calendar' });
const url = URL.createObjectURL(blob);
const anchor = document.createElement('a');
anchor.href = url;
Expand Down
Loading

0 comments on commit fd0ed45

Please sign in to comment.