Socket
Socket
Sign inDemoInstall

findup-sync

Package Overview
Dependencies
19
Maintainers
5
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.0 to 5.0.0

9

index.js

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

module.exports = function(patterns, options) {
module.exports = function (patterns, options) {
options = options || {};

@@ -31,3 +31,5 @@ var cwd = path.resolve(resolveDir(options.cwd || ''));

if (!Array.isArray(patterns)) {
throw new TypeError('findup-sync expects a string or array as the first argument.');
throw new TypeError(
'findup-sync expects a string or array as the first argument.'
);
}

@@ -78,3 +80,3 @@

function findFile(cwd, filename, options) {
var fp = cwd ? path.resolve(cwd, filename) : filename;
var fp = path.resolve(cwd, filename);
return detect(fp, options);

@@ -89,3 +91,4 @@ }

}
/* istanbul ignore next */
return [];
}
{
"name": "findup-sync",
"version": "4.0.0",
"version": "5.0.0",
"description": "Find the first file matching a given pattern in the current directory or the nearest ancestor directory.",

@@ -15,3 +15,3 @@ "author": "Gulp Team <team@gulpjs.com> (https://gulpjs.com/)",

"engines": {
"node": ">= 8"
"node": ">= 10.13.0"
},

@@ -26,23 +26,30 @@ "main": "index.js",

"pretest": "npm run lint",
"test": "nyc mocha --async-only",
"azure-pipelines": "nyc mocha --async-only --reporter xunit -O output=test.xunit",
"coveralls": "nyc report --reporter=text-lcov | coveralls"
"test": "nyc mocha --async-only"
},
"dependencies": {
"detect-file": "^1.0.0",
"is-glob": "^4.0.0",
"micromatch": "^4.0.2",
"is-glob": "^4.0.3",
"micromatch": "^4.0.4",
"resolve-dir": "^1.0.1"
},
"devDependencies": {
"coveralls": "github:phated/node-coveralls#2.x",
"eslint": "^6.0.1",
"eslint-config-gulp": "^3.0.1",
"expect": "^1.20.2",
"homedir-polyfill": "^1.0.1",
"eslint": "^7.21.0",
"eslint-config-gulp": "^5.0.1",
"eslint-plugin-node": "^11.1.0",
"expect": "^27.3.1",
"homedir-polyfill": "^1.0.3",
"mocha": "^6.1.4",
"normalize-path": "^3.0.0",
"nyc": "^14.1.1",
"resolve": "^1.4.0"
"nyc": "^15.1.0",
"resolve": "^1.20.0"
},
"nyc": {
"reporter": [
"lcov",
"text-summary"
]
},
"prettier": {
"singleQuote": true
},
"keywords": [

@@ -49,0 +56,0 @@ "file",

@@ -9,3 +9,3 @@ <p align="center">

[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Azure Pipelines Build Status][azure-pipelines-image]][azure-pipelines-url] [![Travis Build Status][travis-image]][travis-url] [![AppVeyor Build Status][appveyor-image]][appveyor-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Gitter chat][gitter-image]][gitter-url]
[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][ci-image]][ci-url] [![Coveralls Status][coveralls-image]][coveralls-url]

@@ -33,5 +33,5 @@ Find the first file matching a given pattern in the current directory or the nearest ancestor directory.

* `patterns` **{String|Array}**: Glob pattern(s) or file path(s) to match against.
* `options` **{Object}**: Options to pass to [micromatch]. Note that if you want to start in a different directory than the current working directory, specify a `cwd` property here.
* `returns` **{String}**: Returns the first matching file.
- `patterns` **{String|Array}**: Glob pattern(s) or file path(s) to match against.
- `options` **{Object}**: Options to pass to [micromatch]. Note that if you want to start in a different directory than the current working directory, specify a `cwd` property here.
- `returns` **{String}**: Returns the first matching file.

@@ -42,21 +42,18 @@ ## License

[micromatch]: http://github.com/jonschlinkert/micromatch
<!-- prettier-ignore-start -->
[downloads-image]: https://img.shields.io/npm/dm/findup-sync.svg
[downloads-image]: https://img.shields.io/npm/dm/findup-sync.svg?style=flat-square
[npm-url]: https://www.npmjs.com/package/findup-sync
[npm-image]: https://img.shields.io/npm/v/findup-sync.svg
[npm-image]: https://img.shields.io/npm/v/findup-sync.svg?style=flat-square
[ci-url]: https://github.com/gulpjs/findup-sync/actions?query=workflow:dev
[ci-image]: https://img.shields.io/github/workflow/status/gulpjs/findup-sync/dev?style=flat-square
[coveralls-url]: https://coveralls.io/r/gulpjs/findup-sync
[coveralls-image]: https://img.shields.io/coveralls/gulpjs/findup-sync/master.svg
[azure-pipelines-url]: https://dev.azure.com/gulpjs/gulp/_build/latest?definitionId=7&branchName=master
[azure-pipelines-image]: https://dev.azure.com/gulpjs/gulp/_apis/build/status/findup-sync?branchName=master
<!-- prettier-ignore-nd -->
[travis-url]: https://travis-ci.org/gulpjs/findup-sync
[travis-image]: https://img.shields.io/travis/gulpjs/findup-sync.svg?label=travis-ci
<!-- prettier-ignore-start -->
[appveyor-url]: https://ci.appveyor.com/project/gulpjs/findup-sync
[appveyor-image]: https://img.shields.io/appveyor/ci/gulpjs/findup-sync.svg?label=appveyor
[micromatch]: http://github.com/micromatch/micromatch
[coveralls-url]: https://coveralls.io/r/gulpjs/findup-sync
[coveralls-image]: https://img.shields.io/coveralls/gulpjs/findup-sync/master.svg
[gitter-url]: https://gitter.im/gulpjs/gulp
[gitter-image]: https://badges.gitter.im/gulpjs/gulp.svg
<!-- prettier-ignore-nd -->

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc