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

@abmao/forb

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@abmao/forb - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

2

index.d.ts

@@ -5,2 +5,2 @@ export type packagesDir = {

}
export declare function getPackagesDir (packagesPath: string | string[], ignoreFiles: string | string[]): Promise<packagesDir>
export declare function getPackagesDir (packagesPath: string | string[], ignoreFiles?: string | string[]): Promise<packagesDir>

@@ -10,5 +10,5 @@ import { globby } from 'globby'

const packageJsonPath = Array.isArray(packagesPath) ? normalizePatterns(packagesPath) : normalizePatterns([packagesPath])
const values = await globby(packageJsonPath, {
const values = sortFilesName(await globby(packageJsonPath, {
ignoreFiles
})
}))
const regExp = new RegExp('\/package\\.json$')

@@ -36,2 +36,6 @@ const filesPath = values.filter(item => regExp.test(item))

return normalizedPatterns
}
}
function sortFilesName (files) {
return files.slice().sort((a, b) => a.localeCompare(b))
}
{
"name": "@abmao/forb",
"version": "2.0.0",
"version": "2.0.1",
"description": "Get the directory path of `packages` and `packages.json` path",

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

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