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

es-main

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

es-main - npm Package Compare versions

Comparing version 1.2.0 to 1.3.0

21

package.json
{
"name": "es-main",
"version": "1.2.0",
"version": "1.3.0",
"description": "Test if an ES module is run directly (require.main replacement)",

@@ -22,7 +22,7 @@ "main": "main.js",

"preversion": "npm run generate-types",
"test:with-extension": "node test.js",
"test:without-extension": "node test",
"test:without-node": "./test.js",
"test:resolve-index": "node test-resolve-index",
"test:resolve-main": "node test-resolve-main",
"test:with-extension": "node test/test.js",
"test:without-extension": "node test/test",
"test:without-node": "./test/test.js",
"test:resolve-index": "node test/resolve-index",
"test:resolve-main": "node test/resolve-main",
"test:repl": "node --eval \"import('./main.js').then(mod => {if (mod.default({})) throw new Error('expected false')})\"",

@@ -35,11 +35,12 @@ "test:types": "npx tsc --noEmit",

"process.mainModule",
"modules"
"modules",
"import.meta.main"
],
"license": "MIT",
"devDependencies": {
"@types/node": "^18.0.0",
"@types/node": "^20.5.8",
"eslint": "^8.18.0",
"eslint-config-tschaub": "^14.0.0",
"eslint-config-tschaub": "^14.1.2",
"npm-run-all": "^4.1.5",
"typescript": "^4.7.4"
"typescript": "^5.2.2"
},

@@ -46,0 +47,0 @@ "eslintConfig": {

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