find-cache-dir
Advanced tools
Comparing version 1.0.0 to 2.0.0
@@ -7,4 +7,4 @@ 'use strict'; | ||
module.exports = options => { | ||
const name = options.name; | ||
module.exports = (options = {}) => { | ||
const {name} = options; | ||
let dir = options.cwd; | ||
@@ -28,5 +28,3 @@ | ||
if (options.thunk) { | ||
return function () { | ||
return path.join.apply(path, [dir].concat(Array.prototype.slice.call(arguments))); | ||
}; | ||
return (...args) => path.join(dir, ...args); | ||
} | ||
@@ -33,0 +31,0 @@ } |
{ | ||
"name": "find-cache-dir", | ||
"version": "1.0.0", | ||
"description": "My well-made module", | ||
"license": "MIT", | ||
"repository": "avajs/find-cache-dir", | ||
"author": { | ||
"name": "James Talmage", | ||
"email": "james@talmage.io", | ||
"url": "github.com/jamestalmage" | ||
}, | ||
"engines": { | ||
"node": ">=4" | ||
}, | ||
"scripts": { | ||
"test": "xo && nyc ava" | ||
}, | ||
"files": [ | ||
"index.js" | ||
], | ||
"keywords": [ | ||
"cache", | ||
"directory", | ||
"dir", | ||
"caching", | ||
"find", | ||
"search" | ||
], | ||
"dependencies": { | ||
"commondir": "^1.0.1", | ||
"make-dir": "^1.0.0", | ||
"pkg-dir": "^2.0.0" | ||
}, | ||
"devDependencies": { | ||
"ava": "^0.19.1", | ||
"coveralls": "^2.11.6", | ||
"del": "^2.2.2", | ||
"nyc": "^10.3.2", | ||
"xo": "^0.18.2" | ||
}, | ||
"nyc": { | ||
"reporter": [ | ||
"lcov", | ||
"text" | ||
] | ||
} | ||
"name": "find-cache-dir", | ||
"version": "2.0.0", | ||
"description": "Finds the common standard cache directory", | ||
"license": "MIT", | ||
"repository": "avajs/find-cache-dir", | ||
"engines": { | ||
"node": ">=6" | ||
}, | ||
"scripts": { | ||
"test": "xo && nyc ava" | ||
}, | ||
"files": [ | ||
"index.js" | ||
], | ||
"keywords": [ | ||
"cache", | ||
"directory", | ||
"dir", | ||
"caching", | ||
"find", | ||
"search" | ||
], | ||
"dependencies": { | ||
"commondir": "^1.0.1", | ||
"make-dir": "^1.0.0", | ||
"pkg-dir": "^3.0.0" | ||
}, | ||
"devDependencies": { | ||
"ava": "^0.25.0", | ||
"coveralls": "^3.0.1", | ||
"del": "^3.0.0", | ||
"nyc": "^12.0.2", | ||
"xo": "^0.21.1" | ||
}, | ||
"nyc": { | ||
"reporter": [ | ||
"lcov", | ||
"text" | ||
] | ||
} | ||
} |
@@ -30,3 +30,3 @@ # find-cache-dir [![Build Status](https://travis-ci.org/avajs/find-cache-dir.svg?branch=master)](https://travis-ci.org/avajs/find-cache-dir) [![Coverage Status](https://coveralls.io/repos/github/avajs/find-cache-dir/badge.svg?branch=master)](https://coveralls.io/github/avajs/find-cache-dir?branch=master) | ||
``` | ||
$ npm install --save find-cache-dir | ||
$ npm install find-cache-dir | ||
``` | ||
@@ -53,2 +53,4 @@ | ||
Type: `Object` | ||
##### name | ||
@@ -63,3 +65,3 @@ | ||
Type: `Array` `string | ||
Type: `Array` `string` | ||
@@ -112,2 +114,3 @@ An array of files that will be searched for a common parent directory. This common parent directory will be used in lieu of the `cwd` option below. | ||
- [`Phenomic`](https://phenomic.io) | ||
- [`javascripthon-loader`](https://github.com/Beg-in/javascripthon-loader) | ||
@@ -117,2 +120,2 @@ | ||
MIT © [James Talmage](https://github.com/jamestalmage) | ||
MIT |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
117
0
5279
25
2
+ Addedfind-up@3.0.0(transitive)
+ Addedlocate-path@3.0.0(transitive)
+ Addedp-limit@2.3.0(transitive)
+ Addedp-locate@3.0.0(transitive)
+ Addedp-try@2.2.0(transitive)
+ Addedpkg-dir@3.0.0(transitive)
- Removedfind-up@2.1.0(transitive)
- Removedlocate-path@2.0.0(transitive)
- Removedp-limit@1.3.0(transitive)
- Removedp-locate@2.0.0(transitive)
- Removedp-try@1.0.0(transitive)
- Removedpkg-dir@2.0.0(transitive)
Updatedpkg-dir@^3.0.0