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

@pagedip/util-find-files

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

@pagedip/util-find-files - npm Package Compare versions

Comparing version 1.0.0-rc.2 to 1.0.0-rc.3

26

index.js

@@ -154,3 +154,3 @@ 'use strict';

var index = (() => {
var index = (function () {
var _ref = asyncToGenerator(function* (root, fn, base) {

@@ -163,11 +163,11 @@ fn = fn || function () {

try {
const file = path.resolve(root, base);
const stat = yield fs.stat(file);
var file = path.resolve(root, base);
var stat = yield fs.stat(file);
if (stat.isDirectory()) {
const files = yield fs.readdir(file);
let res = [];
var files = yield fs.readdir(file);
var res = [];
while (files.length) {
const rel = path.join(base, files.shift());
var rel = path.join(base, files.shift());
res = res.concat((yield sync(root, fn, rel)));

@@ -199,15 +199,17 @@ }

function sync(root, fn, base) {
fn = fn || (() => true);
fn = fn || function () {
return true;
};
base = base || ".";
try {
const file = path.resolve(root, base);
const stat = fs.statSync(file);
var file = path.resolve(root, base);
var stat = fs.statSync(file);
if (stat.isDirectory()) {
const files = fs.readdirSync(file);
let res = [];
var files = fs.readdirSync(file);
var res = [];
while (files.length) {
const rel = path.join(base, files.shift());
var rel = path.join(base, files.shift());
res = res.concat(sync(root, fn, rel));

@@ -214,0 +216,0 @@ }

{
"name": "@pagedip/util-find-files",
"version": "1.0.0-rc.2",
"version": "1.0.0-rc.3",
"author": "Tyler Johnson <tyler@beneaththeink.com>",

@@ -29,3 +29,3 @@ "repository": {

],
"gitHead": "5f9462413e50a8f6396637db57e689a387bd25c4"
"gitHead": "151350bdfba417751d1846c635202db636c1de86"
}
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