New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@chialab/esbuild-plugin-meta-url

Package Overview
Dependencies
Maintainers
2
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chialab/esbuild-plugin-meta-url - npm Package Compare versions

Comparing version 0.15.37 to 0.15.38

8

lib/index.js
import path from 'path';
import { isUrl, hasSearchParam, appendSearchParam } from '@chialab/node-resolve';
import { isUrl, appendSearchParam } from '@chialab/node-resolve';
import { parse, walk, getIdentifierValue, getBlock, getLocation, TokenType } from '@chialab/estransform';

@@ -159,8 +159,2 @@ import { useRna } from '@chialab/esbuild-rna';

if (hasSearchParam(value, 'emit')) {
// already emitted
helpers.overwrite(startToken.start, endToken.end, `new URL('${value}', ${baseUrl})`);
return;
}
promises.push(Promise.resolve().then(async () => {

@@ -167,0 +161,0 @@ const requestName = value.split('?')[0];

8

package.json
{
"name": "@chialab/esbuild-plugin-meta-url",
"type": "module",
"version": "0.15.37",
"version": "0.15.38",
"description": "A file loader plugin for esbuild for constructed URLs using import metadata.",

@@ -23,3 +23,3 @@ "main": "lib/index.js",

"scripts": {
"types": "tsc",
"types": "rimraf 'types' '*.tsbuildinfo' && tsc --declaration --emitDeclarationOnly --declarationDir ./types",
"prepack": "yarn types"

@@ -44,5 +44,5 @@ },

"esbuild": "^0.14.8",
"rimraf": "^3.0.2",
"typescript": "^4.3.0"
},
"gitHead": "c6158f6389f7ddeb04c7015a2d63c5243442407a"
}
}
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