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

property main in package.json is invalid #33

Closed
aljones15 opened this issue Jun 9, 2021 · 1 comment · Fixed by #34
Closed

property main in package.json is invalid #33

aljones15 opened this issue Jun 9, 2021 · 1 comment · Fixed by #34

Comments

@aljones15
Copy link

"main": "index.js",

When you try to require this module in node, the require fails because main: index.js does not exist. I believe main: dist/index.js might be what was intended. When I require structured-headers/dist/index.js it works, but:

const sh = require('structured-headers');

fails. This is using the latest publish build on npm and not the deprecated structured-header package.

@evert
Copy link
Collaborator

evert commented Jun 9, 2021

Releases as 0.4.1!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants