esbuild-plugins-node-modules-polyfill
Advanced tools
Comparing version 1.6.2-next.658ea10.0 to 1.6.2-next.8e1f65f.0
@@ -197,7 +197,10 @@ 'use strict'; | ||
const packageJson = await localPkg.loadPackageJSON(args.resolveDir); | ||
const browserFieldValue = packageJson?.browser?.[args.path]; | ||
if (browserFieldValue === false) { | ||
const browserFieldValue = packageJson?.browser; | ||
if (typeof browserFieldValue === "string") | ||
return; | ||
const browserFieldValueForModule = browserFieldValue?.[args.path]; | ||
if (browserFieldValueForModule === false) { | ||
return result.empty; | ||
} | ||
if (browserFieldValue !== void 0) { | ||
if (browserFieldValueForModule !== void 0) { | ||
return; | ||
@@ -204,0 +207,0 @@ } |
{ | ||
"name": "esbuild-plugins-node-modules-polyfill", | ||
"version": "1.6.2-next.658ea10.0", | ||
"version": "1.6.2-next.8e1f65f.0", | ||
"description": "Polyfills nodejs builtin modules and globals for the browser.", | ||
@@ -35,21 +35,21 @@ "main": "dist/index.js", | ||
"@jspm/core": "^2.0.1", | ||
"local-pkg": "^0.4.3", | ||
"local-pkg": "^0.5.0", | ||
"resolve.exports": "^2.0.2" | ||
}, | ||
"devDependencies": { | ||
"@commitlint/cli": "^17.7.1", | ||
"@commitlint/config-conventional": "^17.7.0", | ||
"@favware/cliff-jumper": "^2.1.1", | ||
"@commitlint/cli": "^18.0.0", | ||
"@commitlint/config-conventional": "^18.0.0", | ||
"@favware/cliff-jumper": "^2.2.0", | ||
"@favware/npm-deprecate": "^1.0.7", | ||
"cz-conventional-changelog": "^3.3.0", | ||
"esbuild": "^0.19.2", | ||
"eslint": "^8.48.0", | ||
"eslint-config-mahir": "^0.0.31", | ||
"esbuild": "^0.19.4", | ||
"eslint": "^8.51.0", | ||
"eslint-config-mahir": "^0.0.33", | ||
"husky": "^8.0.3", | ||
"lint-staged": "^14.0.1", | ||
"lint-staged": "^15.0.0", | ||
"pinst": "^3.0.0", | ||
"prettier": "^3.0.2", | ||
"prettier": "^3.0.3", | ||
"tsup": "^7.2.0", | ||
"typescript": "^5.2.2", | ||
"vitest": "^0.34.3" | ||
"vitest": "^0.34.6" | ||
}, | ||
@@ -90,3 +90,3 @@ "peerDependencies": { | ||
}, | ||
"packageManager": "yarn@3.6.3", | ||
"packageManager": "yarn@3.6.4", | ||
"engines": { | ||
@@ -93,0 +93,0 @@ "node": ">=14.0.0" |
@@ -61,3 +61,3 @@ <div align="center"> | ||
> **Note** | ||
> If you are utilizing the [`modules`][#configure-which-modules-to-polyfill] option, ensure that you include polyfills for the global modules you are using. | ||
> If you are utilizing the [`modules`](#configure-which-modules-to-polyfill) option, ensure that you include polyfills for the global modules you are using. | ||
@@ -64,0 +64,0 @@ ### Configure which modules to polyfill: |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
50282
278
306689
1
7
19
1
101
+ Addedacorn@8.14.0(transitive)
+ Addedconfbox@0.1.8(transitive)
+ Addedlocal-pkg@0.5.1(transitive)
+ Addedmlly@1.7.3(transitive)
+ Addedpathe@1.1.2(transitive)
+ Addedpkg-types@1.2.1(transitive)
+ Addedufo@1.5.4(transitive)
- Removedlocal-pkg@0.4.3(transitive)
Updatedlocal-pkg@^0.5.0