New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

findup-lit

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

findup-lit - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

54

dist/findup-lit.js

@@ -6,27 +6,9 @@ var path = require('path');

function _interopNamespace(e) {
if (e && e.__esModule) return e;
var n = Object.create(null);
if (e) {
Object.keys(e).forEach(function (k) {
if (k !== 'default') {
var d = Object.getOwnPropertyDescriptor(e, k);
Object.defineProperty(n, k, d.get ? d : {
enumerable: true,
get: function () {
return e[k];
}
});
}
});
}
n['default'] = e;
return n;
}
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var path__namespace = /*#__PURE__*/_interopNamespace(path);
var fs__namespace = /*#__PURE__*/_interopNamespace(fs);
var path__default = /*#__PURE__*/_interopDefaultLegacy(path);
var fs__default = /*#__PURE__*/_interopDefaultLegacy(fs);
const fsStat = util.promisify(fs__namespace.stat);
const fsLStat = util.promisify(fs__namespace.lstat); ////////////////////////////////////////////////////////////////////////////////
const fsStat = util.promisify(fs__default['default'].stat);
const fsLStat = util.promisify(fs__default['default'].lstat); ////////////////////////////////////////////////////////////////////////////////

@@ -99,3 +81,3 @@ const typeMappings = {

try {
const stat = await statFn(path__namespace.resolve(options.cwd, element));
const stat = await statFn(path__default['default'].resolve(options.cwd, element));
return matchType(options.type, stat);

@@ -147,7 +129,7 @@ } catch {

checkType(options.type);
const statFn = options.allowSymlinks ? fs__namespace.statSync : fs__namespace.lstatSync;
const statFn = options.allowSymlinks ? fs__default['default'].statSync : fs__default['default'].lstatSync;
for (const _path of paths) {
try {
const stat = statFn(path__namespace.resolve(options.cwd, _path));
const stat = statFn(path__default['default'].resolve(options.cwd, _path));

@@ -170,3 +152,3 @@ if (matchType(options.type, stat)) {

try {
await fs__namespace.promises.access(path);
await fs__default['default'].promises.access(path);
return true;

@@ -186,3 +168,3 @@ } catch {

try {
fs__namespace.accessSync(path);
fs__default['default'].accessSync(path);
return true;

@@ -224,6 +206,6 @@ } catch {

async function findUp(name, options = {}) {
let directory = path__namespace.resolve(options.cwd || '');
let directory = path__default['default'].resolve(options.cwd || '');
const {
root
} = path__namespace.parse(directory);
} = path__default['default'].parse(directory);
const paths = [].concat(name);

@@ -256,3 +238,3 @@

if (foundPath) {
return path__namespace.resolve(directory, foundPath);
return path__default['default'].resolve(directory, foundPath);
}

@@ -264,3 +246,3 @@

directory = path__namespace.dirname(directory);
directory = path__default['default'].dirname(directory);
}

@@ -277,6 +259,6 @@ } ////////////////////////////////////////////////////////////////////////////////

function findUpSync(name, options = {}) {
let directory = path__namespace.resolve(options.cwd || '');
let directory = path__default['default'].resolve(options.cwd || '');
const {
root
} = path__namespace.parse(directory);
} = path__default['default'].parse(directory);
const paths = [].concat(name);

@@ -309,3 +291,3 @@

if (foundPath) {
return path__namespace.resolve(directory, foundPath);
return path__default['default'].resolve(directory, foundPath);
}

@@ -317,3 +299,3 @@

directory = path__namespace.dirname(directory);
directory = path__default['default'].dirname(directory);
}

@@ -320,0 +302,0 @@ }

@@ -1,3 +0,3 @@

import * as path from 'path';
import * as fs from 'fs';
import path from 'path';
import fs from 'fs';
import { promisify } from 'util';

@@ -4,0 +4,0 @@ import { pLimit } from 'plimit-lit';

@@ -1,3 +0,3 @@

import * as path from 'path';
import * as fs from 'fs';
import path from 'path';
import fs from 'fs';
import { promisify } from 'util';

@@ -4,0 +4,0 @@ import { pLimit } from 'plimit-lit';

{
"name": "findup-lit",
"description": "This package finds a file or directory by walking up parent directories.",
"version": "1.1.0",
"version": "1.1.1",
"author": "Joel Voss <mail@joelvoss.com>",

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

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