Socket
Socket
Sign inDemoInstall

@fal-works/esbuild-plugin-global-externals

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fal-works/esbuild-plugin-global-externals - npm Package Compare versions

Comparing version 2.1.1 to 2.1.2

8

lib/module-info.js
export const normalizeModuleInfo = (value) => {
const { type = "esm", varName, namedExports = null, defaultExport = true } =
typeof value === "string" ? { varName: value } : value;
const {
type = "esm",
varName,
namedExports = null,
defaultExport = true,
} = typeof value === "string" ? { varName: value } : value;
return { type, varName, namedExports, defaultExport };
};
const createCjsContents = (variableName) => `module.exports = ${variableName};`;
const a = 0;
const createEsmContents = (variableName, namedExports, defaultExport) => {

@@ -3,0 +4,0 @@ const codeElements = defaultExport ? [`export default ${variableName};`] : [];

{
"name": "@fal-works/esbuild-plugin-global-externals",
"description": "esbuild plugin for replacing imports with global variables.",
"version": "2.1.1",
"version": "2.1.2",
"license": "MIT",

@@ -29,14 +29,12 @@ "author": "FAL",

},
"dependencies": {
"esbuild": "^0.8.40"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "4.14.2",
"@typescript-eslint/parser": "^4.14.2",
"eslint": "7.19.0",
"eslint-config-prettier": "^7.2.0",
"eslint-plugin-total-functions": "^4.7.2",
"prettier": "^2.2.1",
"@typescript-eslint/eslint-plugin": "4.28.3",
"@typescript-eslint/parser": "^4.28.3",
"esbuild": "^0.12.15",
"eslint": "7.31.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-total-functions": "^4.9.0",
"prettier": "^2.3.2",
"rimraf": "^3.0.2",
"typescript": "^4.1.3"
"typescript": "^4.3.5"
},

@@ -43,0 +41,0 @@ "scripts": {

@@ -5,7 +5,7 @@ # esbuild-plugin-global-externals

Developed with: esbuild v0.8.40
Similar to (but not the same as) `output.globals` option of [Rollup](https://rollupjs.org/). See also: [evanw/esbuild#337](https://github.com/evanw/esbuild/issues/337)
Originally developed with esbuild v0.8.40, and should work with higher versions as well.
## TL;DR

@@ -12,0 +12,0 @@

Sorry, the diff of this file is not supported yet

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