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 1.0.0 to 1.0.1

2

index.d.ts

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

}
export declare function getPackagesDir (packagesPath: string = 'packages/*'): Promise<packagesDir>
export declare function getPackagesDir (packagesPath: string | string[] = 'packages/*'): Promise<packagesDir>

@@ -1,14 +0,9 @@

import glob from 'glob'
import {globby} from 'globby'
import { join } from 'path'
export function getPackagesDir(packagesPath = 'packages/*') {
return new Promise((resolve, reject) => {
glob(packagesPath, {}, function (err, matches) {
if (err) {
reject(err)
} else {
const filesPath = matches.map((dir) => join(dir, 'package.json'))
resolve({dirs: matches, filesPath})
}
})
})
return globby(packagesPath)
.then (dirs => {
const filesPath = dirs.map((dir) => join(dir, 'package.json'))
return { dirs, filesPath }
})
}
{
"name": "@abmao/forb",
"version": "1.0.0",
"version": "1.0.1",
"description": "Get the directory path of `packages` and `packages.json` path",

@@ -29,4 +29,4 @@ "main": "index.js",

"dependencies": {
"glob": "^7.2.0"
"globby": "^13.1.1"
}
}

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