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

@esbuild-plugins/node-resolve

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@esbuild-plugins/node-resolve - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

6

CHANGELOG.md
# @esbuild-plugins/node-resolve
## 0.1.2
### Patch Changes
- Added error param to onNonResolved
## 0.1.1

@@ -4,0 +10,0 @@

2

dist/index.d.ts

@@ -14,3 +14,3 @@ import { OnResolveResult, Plugin } from 'esbuild';

namespace?: string | undefined;
onNonResolved?: (id: string, importer: string) => OnResolveResult | undefined | null | void;
onNonResolved?: (id: string, importer: string, e: Error) => OnResolveResult | undefined | null | void;
onResolved?: (p: string, importer: string) => Promise<string | undefined | void | OnResolveResult> | any;

@@ -17,0 +17,0 @@ resolveOptions?: Partial<ResolveOpts>;

@@ -120,3 +120,3 @@ "use strict";

if (onNonResolved) {
let res = yield onNonResolved(args.path, args.importer);
let res = yield onNonResolved(args.path, args.importer, e);
return res || null;

@@ -123,0 +123,0 @@ }

{
"name": "@esbuild-plugins/node-resolve",
"version": "0.1.1",
"version": "0.1.2",
"description": "",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -71,2 +71,3 @@ import { OnResolveArgs, OnResolveResult, Plugin } from 'esbuild'

importer: string,
e: Error,
) => OnResolveResult | undefined | null | void

@@ -146,2 +147,3 @@ onResolved?: (

args.importer,
e,
)

@@ -148,0 +150,0 @@ return res || null

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