Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add declaration of ICAL var #470

Closed
wants to merge 2 commits into from
Closed

Conversation

mcfedr
Copy link
Contributor

@mcfedr mcfedr commented Jun 11, 2021

This allows the module to not crash when used from nodejs

ReferenceError: ICAL is not defined

This shouldnt cause any problems with usage in the browser

Similar to

#449
#329

@@ -54,7 +54,8 @@
"node": ">=10"
},
"scripts": {
"test": "grunt test-node"
"test": "grunt test-node",
"prepare": "grunt"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explain this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prepare script is run by npm when installing from git sources as well as before npm publish - this means when install this fork without publishing to npm repo the code is built at install.

lib/ical/helpers.js Show resolved Hide resolved
@kewisch kewisch added the needinfo More information has been requested label Jul 13, 2021
@kewisch kewisch mentioned this pull request Jul 13, 2021
@alexhaller
Copy link

Hi, any updates on this topic?

@kewisch
Copy link
Owner

kewisch commented Dec 9, 2021

Pushed these as eee72a7 and 9300908

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needinfo More information has been requested
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants