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

publint

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

publint - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

2

package.json
{
"name": "publint",
"version": "0.1.2",
"version": "0.1.3",
"description": "Lint packaging errors",

@@ -5,0 +5,0 @@ "type": "module",

@@ -266,3 +266,4 @@ import {

promiseQueue.push(async () => {
await readFile(fieldValue, currentPath)
const browserPath = vfs.pathJoin(pkgDir, fieldValue)
await readFile(browserPath, currentPath)
})

@@ -269,0 +270,0 @@ } else if (typeof fieldValue === 'object') {

@@ -137,4 +137,9 @@ /**

const pkgJsonPath = vfs.pathJoin(currentDir, 'package.json')
if (await vfs.isPathExist(pkgJsonPath))
return JSON.parse(await vfs.readFile(pkgJsonPath))
if (await vfs.isPathExist(pkgJsonPath)) {
try {
return JSON.parse(await vfs.readFile(pkgJsonPath))
} catch {
// ignore malformed package.json **cough** resolve **cough**
}
}
const nextDir = vfs.getDirName(currentDir)

@@ -141,0 +146,0 @@ if (nextDir === currentDir) break

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