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
365
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.bacd384.0 to 1.6.2-next.bfa8175.0

4

dist/index.d.ts

@@ -20,3 +20,3 @@ import { PartialMessage, Plugin } from 'esbuild';

};
modules?: string[] | Record<string, boolean | 'empty' | 'error'>;
modules?: Record<string, boolean | 'empty' | 'error'> | string[];
name?: string;

@@ -27,2 +27,2 @@ namespace?: string;

export { NodePolyfillsOptions, commonJsTemplate, escapeRegex, nodeModulesPolyfillPlugin, normalizeNodeBuiltinPath };
export { type NodePolyfillsOptions, commonJsTemplate, escapeRegex, nodeModulesPolyfillPlugin, normalizeNodeBuiltinPath };

@@ -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.bacd384.0",
"version": "1.6.2-next.bfa8175.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.2",
"@commitlint/cli": "^18.4.4",
"@commitlint/config-conventional": "^18.4.4",
"@favware/cliff-jumper": "^2.2.3",
"@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.11",
"eslint": "^8.56.0",
"eslint-config-mahir": "^0.0.36",
"husky": "^8.0.3",
"lint-staged": "^14.0.1",
"lint-staged": "^15.2.0",
"pinst": "^3.0.0",
"prettier": "^3.0.3",
"tsup": "^7.2.0",
"typescript": "^5.2.2",
"vitest": "^0.34.3"
"prettier": "^3.2.4",
"tsup": "^8.0.1",
"typescript": "^5.3.3",
"vitest": "^1.2.1"
},

@@ -90,6 +90,6 @@ "peerDependencies": {

},
"packageManager": "yarn@3.6.3",
"engines": {
"node": ">=14.0.0"
}
},
"packageManager": "yarn@4.0.2"
}

@@ -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.

@@ -145,3 +145,3 @@ ### Configure which modules to polyfill:

> **Warning**
> [!Important]
> The `write` option in `esbuild` must be `false` to support this.

@@ -167,3 +167,3 @@

> **Warning**
> [!Important]
> The `write` option in `esbuild` must be `false` to support this.

@@ -191,3 +191,3 @@

> **Warning**
> [!Important]
> The `write` option in `esbuild` must be `false` to support this.

@@ -194,0 +194,0 @@

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