Comparing version 1.3.0 to 1.4.1-next.1574019271.3b1c169ca61352466d3f2caa8d64316f7a12a36a
@@ -1,40 +0,30 @@ | ||
/* @flow */ | ||
'use strict'; // Import | ||
"use strict"; | ||
var pathUtil = require('path'); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.isIgnoredPath = isIgnoredPath; | ||
var ignorePatterns | ||
/* :RegExp */ | ||
= require('ignorepatterns'); | ||
/* :: | ||
type IgnoreOpts = { | ||
ignorePaths?: false | Array<string>, | ||
ignoreHiddenFiles?: boolean, | ||
ignoreCommonPatterns?: boolean | RegExp, | ||
ignoreCustomPatterns?: false | RegExp | ||
} | ||
*/ | ||
var _path = _interopRequireDefault(require("path")); | ||
var _ignorepatterns = _interopRequireDefault(require("ignorepatterns")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
// Import | ||
/** | ||
Is Ignored Path | ||
Check to see if a path, either a full path or basename, should be ignored | ||
@param {string} path - a full path or basename of a file or directory | ||
@param {object} [opts] - configurations options | ||
@param {false | Array<string>} [opts.ignorePaths] - an optional listing of full paths to ignore | ||
@param {boolean} [opts.ignoreHiddenFiles] - whether or not to ignore basenames beginning with a "." character | ||
@param {boolean} [opts.ignoreCommonPatterns] - if true, will check the path and basename of the path against https://github.com/bevry/ignorepatterns | ||
@param {false | RegExp} [opts.ignoreCustomPatterns] - if a regular expression, will test the regular expression against the path and basename of the path | ||
@returns {boolean} whether or not the path should be ignored | ||
*/ | ||
* Is Ignored Path | ||
* Check to see if a path, either a full path or basename, should be ignored | ||
* @param path A full path or basename of a file or directory | ||
* @param opts Configurations options | ||
* @returns Whether or not the path should be ignored | ||
*/ | ||
function isIgnoredPath(path) { | ||
var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
function isIgnoredPath(path | ||
/* :string */ | ||
) { | ||
var opts | ||
/* :IgnoreOpts */ | ||
= arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
// Prepare | ||
var basename = pathUtil.basename(path); // Test Paths | ||
var basename = _path.default.basename(path); // Test Paths | ||
if (opts.ignorePaths) { | ||
@@ -57,3 +47,3 @@ for (var i = 0; i < opts.ignorePaths.length; ++i) { | ||
if (opts.ignoreCommonPatterns == null || opts.ignoreCommonPatterns === true) { | ||
return ignorePatterns.test(path) || path !== basename && ignorePatterns.test(basename); | ||
return _ignorepatterns.default.test(path) || path !== basename && _ignorepatterns.default.test(basename); | ||
} else if (opts.ignoreCommonPatterns) { | ||
@@ -76,7 +66,2 @@ var ignoreCommonPatterns | ||
return false; | ||
} // Export | ||
module.exports = { | ||
isIgnoredPath: isIgnoredPath | ||
}; | ||
} |
# History | ||
## v1.4.1 2019 November 18 | ||
- Converted from Flow Type to TypeSCript | ||
- Updated dependencies, [base files](https://github.com/bevry/base), and [editions](https://editions.bevry.me) using [boundation](https://github.com/bevry/boundation) | ||
## v1.3.0 2019 November 11 | ||
@@ -4,0 +9,0 @@ |
'use strict' | ||
/** @type {typeof import("./source/index.js") } */ | ||
/** @type {typeof import("./source/index.ts") } */ | ||
module.exports = require('editions').requirePackage(__dirname, require) |
{ | ||
"title": "IgnoreFS", | ||
"name": "ignorefs", | ||
"version": "1.3.0", | ||
"version": "1.4.1-next.1574019271.3b1c169ca61352466d3f2caa8d64316f7a12a36a", | ||
"description": "Ignore common and custom patterns of the file system", | ||
@@ -42,6 +42,3 @@ "homepage": "https://github.com/bevry/ignorefs", | ||
}, | ||
"funding": { | ||
"type": "cooperative", | ||
"url": "https://bevry.me/fund" | ||
}, | ||
"funding": "https://bevry.me/fund", | ||
"author": "2012+ Bevry Pty Ltd <us@bevry.me> (http://bevry.me), 2011 Benjamin Lupton <b@lupton.cc> (http://balupton.com)", | ||
@@ -52,3 +49,4 @@ "maintainers": [ | ||
"contributors": [ | ||
"Benjamin Lupton <b@lupton.cc> (http://balupton.com)" | ||
"Benjamin Lupton <b@lupton.cc> (http://balupton.com)", | ||
"dependabot-preview[bot] (http://github.com/apps/dependabot-preview)" | ||
], | ||
@@ -67,19 +65,14 @@ "bugs": { | ||
{ | ||
"description": "esnext source code with require for modules", | ||
"description": "typescript source code with import for modules", | ||
"directory": "source", | ||
"entry": "index.js", | ||
"entry": "index.ts", | ||
"tags": [ | ||
"javascript", | ||
"esnext", | ||
"require", | ||
"flow type comments" | ||
"typescript", | ||
"import" | ||
], | ||
"engines": { | ||
"node": "6 || 8 || 10 || 12 || 13", | ||
"browsers": false | ||
} | ||
"engines": false | ||
}, | ||
{ | ||
"description": "esnext compiled for browsers with require for modules", | ||
"directory": "edition-browsers", | ||
"description": "typescript compiled for node.js 13 with require for modules", | ||
"directory": "edition-node-13", | ||
"entry": "index.js", | ||
@@ -91,8 +84,8 @@ "tags": [ | ||
"engines": { | ||
"node": false, | ||
"browsers": "defaults" | ||
"node": "6 || 8 || 10 || 12 || 13", | ||
"browsers": false | ||
} | ||
}, | ||
{ | ||
"description": "esnext compiled for node.js 0.12 with require for modules", | ||
"description": "typescript compiled for node.js 0.12 with require for modules", | ||
"directory": "edition-node-0.12", | ||
@@ -110,7 +103,7 @@ "entry": "index.js", | ||
], | ||
"types": "source/index.ts", | ||
"main": "index.js", | ||
"browser": "edition-browsers/index.js", | ||
"dependencies": { | ||
"editions": "^2.2.0", | ||
"ignorepatterns": "^1.1.0" | ||
"ignorepatterns": "^1.4.0" | ||
}, | ||
@@ -120,28 +113,31 @@ "devDependencies": { | ||
"@babel/core": "^7.7.2", | ||
"@babel/plugin-proposal-class-properties": "^7.7.0", | ||
"@babel/plugin-proposal-object-rest-spread": "^7.6.2", | ||
"@babel/preset-env": "^7.7.1", | ||
"@babel/preset-typescript": "^7.7.2", | ||
"@typescript-eslint/eslint-plugin": "^2.7.0", | ||
"@typescript-eslint/parser": "^2.7.0", | ||
"assert-helpers": "4.10.0", | ||
"babel-plugin-add-module-exports": "^1.0.2", | ||
"eslint": "^6.6.0", | ||
"eslint-config-bevry": "^1.2.1", | ||
"eslint-config-prettier": "^6.5.0", | ||
"eslint-plugin-flow-vars": "^0.5.0", | ||
"eslint-config-prettier": "^6.6.0", | ||
"eslint-plugin-prettier": "^3.1.1", | ||
"flow-bin": "^0.111.3", | ||
"jsdoc": "^3.6.3", | ||
"kava": "^3.1.0", | ||
"minami": "^1.2.3", | ||
"kava": "^3.2.0", | ||
"prettier": "^1.19.1", | ||
"projectz": "^1.9.0", | ||
"projectz": "^1.10.0", | ||
"surge": "^0.21.3", | ||
"valid-directory": "^1.0.0" | ||
"typedoc": "^0.15.2", | ||
"typescript": "^3.7.2", | ||
"valid-directory": "^1.1.1" | ||
}, | ||
"scripts": { | ||
"our:clean": "rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next", | ||
"our:compile": "npm run our:compile:edition-browsers && npm run our:compile:edition-node-0.12", | ||
"our:compile:edition-browsers": "env BABEL_ENV=edition-browsers babel --out-dir ./edition-browsers ./source", | ||
"our:compile:edition-node-0.12": "env BABEL_ENV=edition-node-0.12 babel --out-dir ./edition-node-0.12 ./source", | ||
"our:compile": "npm run our:compile:edition-node-0.12 && npm run our:compile:edition-node-13", | ||
"our:compile:edition-node-0.12": "env BABEL_ENV=edition-node-0.12 babel --extensions \".ts,.tsx\" --out-dir ./edition-node-0.12 ./source", | ||
"our:compile:edition-node-13": "env BABEL_ENV=edition-node-13 babel --extensions \".ts,.tsx\" --out-dir ./edition-node-13 ./source", | ||
"our:deploy": "echo no need for this project", | ||
"our:meta": "npm run our:meta:docs && npm run our:meta:projectz", | ||
"our:meta:docs": "npm run our:meta:docs:jsdoc", | ||
"our:meta:docs:jsdoc": "rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md --template ./node_modules/minami ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version", | ||
"our:meta:docs": "npm run our:meta:docs:typedoc", | ||
"our:meta:docs:typedoc": "rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source", | ||
"our:meta:projectz": "projectz compile", | ||
@@ -157,7 +153,7 @@ "our:release": "npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push", | ||
"our:test": "npm run our:verify && npm test", | ||
"our:verify": "npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:flow && npm run our:verify:prettier", | ||
"our:verify": "npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier && npm run our:verify:typescript", | ||
"our:verify:directory": "npx valid-directory", | ||
"our:verify:eslint": "eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source", | ||
"our:verify:flow": "flow check", | ||
"our:verify:prettier": "prettier --write ./source/**", | ||
"our:verify:typescript": "tsc --noEmit --project .", | ||
"test": "node ./test.js" | ||
@@ -176,4 +172,4 @@ }, | ||
"env": { | ||
"edition-browsers": { | ||
"sourceType": "script", | ||
"edition-node-13": { | ||
"sourceType": "module", | ||
"presets": [ | ||
@@ -183,13 +179,18 @@ [ | ||
{ | ||
"targets": "defaults", | ||
"targets": { | ||
"node": "13" | ||
}, | ||
"modules": "commonjs" | ||
} | ||
] | ||
], | ||
"@babel/preset-typescript" | ||
], | ||
"plugins": [ | ||
"@babel/proposal-object-rest-spread" | ||
"@babel/proposal-object-rest-spread", | ||
"@babel/proposal-class-properties", | ||
"add-module-exports" | ||
] | ||
}, | ||
"edition-node-0.12": { | ||
"sourceType": "script", | ||
"sourceType": "module", | ||
"presets": [ | ||
@@ -204,6 +205,9 @@ [ | ||
} | ||
] | ||
], | ||
"@babel/preset-typescript" | ||
], | ||
"plugins": [ | ||
"@babel/proposal-object-rest-spread" | ||
"@babel/proposal-object-rest-spread", | ||
"@babel/proposal-class-properties", | ||
"add-module-exports" | ||
] | ||
@@ -210,0 +214,0 @@ } |
@@ -45,10 +45,2 @@ <!-- TITLE/ --> | ||
<a href="https://jspm.io" title="Native ES Modules CDN"><h3>jspm</h3></a> | ||
``` html | ||
<script type="module"> | ||
import * as pkg from '//dev.jspm.io/ignorefs' | ||
</script> | ||
``` | ||
<h3><a href="https://editions.bevry.me" title="Editions are the best way to produce and consume packages you care about.">Editions</a></h3> | ||
@@ -59,18 +51,6 @@ | ||
<ul><li><code>ignorefs</code> aliases <code>ignorefs/index.js</code> which uses <a href="https://editions.bevry.me" title="Editions are the best way to produce and consume packages you care about.">Editions</a> to automatically select the correct edition for the consumers environment</li> | ||
<li><code>ignorefs/source/index.js</code> is esnext source code with require for modules</li> | ||
<li><code>ignorefs/edition-browsers/index.js</code> is esnext compiled for browsers with require for modules</li> | ||
<li><code>ignorefs/edition-node-0.12/index.js</code> is esnext compiled for node.js 0.12 with require for modules</li></ul> | ||
<li><code>ignorefs/source/index.ts</code> is typescript source code with import for modules</li> | ||
<li><code>ignorefs/edition-node-13/index.js</code> is typescript compiled for node.js 13 with require for modules</li> | ||
<li><code>ignorefs/edition-node-0.12/index.js</code> is typescript compiled for node.js 0.12 with require for modules</li></ul> | ||
<h3><a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a></h3> | ||
This project provides its type information via inline <a href="http://usejsdoc.org" title="JSDoc is an API documentation generator for JavaScript, similar to Javadoc or phpDocumentor">JSDoc Comments</a>. To make use of this in <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a>, set your <code>maxNodeModuleJsDepth</code> compiler option to `5` or thereabouts. You can accomlish this via your `tsconfig.json` file like so: | ||
``` json | ||
{ | ||
"compilerOptions": { | ||
"maxNodeModuleJsDepth": 5 | ||
} | ||
} | ||
``` | ||
<!-- /INSTALL --> | ||
@@ -129,3 +109,4 @@ | ||
<ul><li><a href="http://balupton.com">Benjamin Lupton</a> — <a href="https://github.com/bevry/ignorefs/commits?author=balupton" title="View the GitHub contributions of Benjamin Lupton on repository bevry/ignorefs">view contributions</a></li></ul> | ||
<ul><li><a href="http://balupton.com">Benjamin Lupton</a> — <a href="https://github.com/bevry/ignorefs/commits?author=balupton" title="View the GitHub contributions of Benjamin Lupton on repository bevry/ignorefs">view contributions</a></li> | ||
<li><a href="http://github.com/apps/dependabot-preview">dependabot-preview[bot]</a> — <a href="https://github.com/bevry/ignorefs/commits?author=dependabot-preview[bot]" title="View the GitHub contributions of dependabot-preview[bot] on repository bevry/ignorefs">view contributions</a></li></ul> | ||
@@ -132,0 +113,0 @@ <a href="https://github.com/bevry/ignorefs/blob/master/CONTRIBUTING.md#files">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a> |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
24077
21
169
1
129
1
Updatedignorepatterns@^1.4.0