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

esbuild-plugins-node-modules-polyfill

Package Overview
Dependencies
Maintainers
1
Versions
366
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

esbuild-plugins-node-modules-polyfill - npm Package Compare versions

Comparing version 1.6.2-next.8ef409b.0 to 1.6.2-next.9100d41.0

9

dist/index.js

@@ -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.8ef409b.0",
"version": "1.6.2-next.9100d41.0",
"description": "Polyfills nodejs builtin modules and globals for the browser.",

@@ -35,14 +35,14 @@ "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.2",
"@commitlint/cli": "^17.8.0",
"@commitlint/config-conventional": "^17.8.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",

@@ -54,3 +54,3 @@ "lint-staged": "^14.0.1",

"typescript": "^5.2.2",
"vitest": "^0.34.3"
"vitest": "^0.34.6"
},

@@ -91,3 +91,3 @@ "peerDependencies": {

},
"packageManager": "yarn@3.6.3",
"packageManager": "yarn@3.6.4",
"engines": {

@@ -94,0 +94,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

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