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

ipjs

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

ipjs - npm Package Compare versions

Comparing version 5.0.3 to 5.0.4

2

package.json
{
"name": "ipjs",
"version": "5.0.3",
"version": "5.0.4",
"description": "Universal JavaScript build and packaging system",

@@ -5,0 +5,0 @@ "main": "src/build.js",

@@ -46,5 +46,11 @@ # Universal JavaScript Build and Packaging

### Do not use mixed default default and named exports/imports
### Only use named exports in files in the package.json exports map
If you use default exports from files in the exports map:
- CJS/JSDoc+Typescript users of your module will find that `tsc` fails to compile as it expects a the `.default` property to be present on anything `require`d from your module
- If they switch to `.default` to satisfy `tsc`, node will resolve cjs at runtime via the `"require":` entry from the exports map which does not have a `.default` so will fail
- If they switch back to no `.default`, running bundled cjs in the browser will also fail as it will be supplied the esm version where `.default` is present after all
### Only export individual files in export map (no directories or pattern matching)
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