Socket
Socket
Sign inDemoInstall

ts-pnp

Package Overview
Dependencies
0
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.6 to 1.2.0

4

index.js
function resolveModuleName(request, issuer, compilerOptions, moduleResolutionHost, parentResolver) {
const pnp = require(`pnpapi`);
const topLevelLocation = pnp.getPackageInformation(pnp.topLevel).packageLocation;
const [, prefix = ``, packageName = ``, rest] = request.match(/^(!(?:.*!)+)?((?!\.{0,2}\/)(?:@[^\/]+\/)?[^\/]+)?(.*)/);

@@ -16,3 +14,3 @@

try {
unqualified = pnp.resolveToUnqualified(typesPackagePath, `${topLevelLocation}/`, {considerBuiltins: false});
unqualified = pnp.resolveToUnqualified(typesPackagePath, issuer, {considerBuiltins: false});
} catch (error) {}

@@ -19,0 +17,0 @@

{
"name": "ts-pnp",
"version": "1.1.6",
"version": "1.2.0",
"description": "plug'n'play resolver for TypeScript",

@@ -5,0 +5,0 @@ "license": "MIT",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc