esbuild-plugins-node-modules-polyfill
Advanced tools
Comparing version 1.6.9-next.42ea977.0 to 1.7.0-next.0278e58.0
@@ -7,3 +7,3 @@ 'use strict'; | ||
var localPkg = require('local-pkg'); | ||
var promises = require('fs/promises'); | ||
var esbuild = require('esbuild'); | ||
var resolve_exports = require('resolve.exports'); | ||
@@ -61,3 +61,8 @@ | ||
const exportFullPath = await getCachedPolyfillPath(importPath); | ||
const content = await promises.readFile(exportFullPath, "utf8"); | ||
const content = (await esbuild.build({ | ||
write: false, | ||
format: "esm", | ||
bundle: true, | ||
entryPoints: [exportFullPath] | ||
})).outputFiles[0].text; | ||
return content.replace(/eval\(/g, "(0,eval)("); | ||
@@ -64,0 +69,0 @@ }, "polyfillContentAndTransform"); |
{ | ||
"name": "esbuild-plugins-node-modules-polyfill", | ||
"version": "1.6.9-next.42ea977.0", | ||
"version": "1.7.0-next.0278e58.0", | ||
"description": "Polyfills nodejs builtin modules and globals for the browser.", | ||
@@ -34,23 +34,23 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@jspm/core": "2.0.1", | ||
"local-pkg": "^0.5.0", | ||
"resolve.exports": "^2.0.2" | ||
"@jspm/core": "^2.1.0", | ||
"local-pkg": "^0.5.1", | ||
"resolve.exports": "^2.0.3" | ||
}, | ||
"devDependencies": { | ||
"@commitlint/cli": "^19.5.0", | ||
"@commitlint/config-conventional": "^19.5.0", | ||
"@commitlint/cli": "^19.6.1", | ||
"@commitlint/config-conventional": "^19.6.0", | ||
"@favware/cliff-jumper": "^5.0.0", | ||
"@favware/npm-deprecate": "^2.0.0", | ||
"@types/node": "^22.9.0", | ||
"@types/node": "^22.10.2", | ||
"cz-conventional-changelog": "^3.3.0", | ||
"esbuild": "^0.24.0", | ||
"eslint": "9.14.0", | ||
"eslint-config-mahir": "^1.0.5", | ||
"husky": "^9.1.6", | ||
"lint-staged": "^15.2.10", | ||
"esbuild": "^0.24.2", | ||
"eslint": "9.17.0", | ||
"eslint-config-mahir": "^1.0.7", | ||
"husky": "^9.1.7", | ||
"lint-staged": "^15.3.0", | ||
"pinst": "^3.0.0", | ||
"prettier": "^3.3.3", | ||
"prettier": "^3.4.2", | ||
"tsup": "^8.3.5", | ||
"typescript": "^5.6.3", | ||
"vitest": "^2.1.5" | ||
"typescript": "^5.7.2", | ||
"vitest": "^2.1.8" | ||
}, | ||
@@ -90,3 +90,3 @@ "peerDependencies": { | ||
"minimist": "^1.2.8", | ||
"eslint": "9.14.0" | ||
"eslint": "9.17.0" | ||
}, | ||
@@ -96,3 +96,3 @@ "engines": { | ||
}, | ||
"packageManager": "yarn@4.5.1" | ||
"packageManager": "yarn@4.5.3" | ||
} |
Sorry, the diff of this file is not supported yet
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
53426
242
4
14
+ Added@jspm/core@2.1.0(transitive)
+ Addedpathe@2.0.2(transitive)
- Removed@jspm/core@2.0.1(transitive)
- Removedpathe@2.0.1(transitive)
Updated@jspm/core@^2.1.0
Updatedlocal-pkg@^0.5.1
Updatedresolve.exports@^2.0.3