@commitlint/top-level
Advanced tools
Comparing version 18.6.1 to 19.0.0
@@ -1,9 +0,4 @@ | ||
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const path_1 = __importDefault(require("path")); | ||
const find_up_1 = __importDefault(require("find-up")); | ||
exports.default = toplevel; | ||
import path from 'path'; | ||
import { findUp } from 'find-up'; | ||
export default toplevel; | ||
/** | ||
@@ -17,3 +12,3 @@ * Find the next git root | ||
} | ||
return path_1.default.join(found, '..'); | ||
return path.join(found, '..'); | ||
} | ||
@@ -24,6 +19,6 @@ /** | ||
async function searchDotGit(cwd) { | ||
const foundFile = await (0, find_up_1.default)('.git', { cwd, type: 'file' }); | ||
const foundDir = await (0, find_up_1.default)('.git', { cwd, type: 'directory' }); | ||
const foundFile = await findUp('.git', { cwd, type: 'file' }); | ||
const foundDir = await findUp('.git', { cwd, type: 'directory' }); | ||
return foundFile || foundDir; | ||
} | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@commitlint/top-level", | ||
"version": "18.6.1", | ||
"type": "module", | ||
"version": "19.0.0", | ||
"description": "Lint your commit messages", | ||
@@ -38,8 +39,8 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"@commitlint/utils": "^18.6.1" | ||
"@commitlint/utils": "^19.0.0" | ||
}, | ||
"dependencies": { | ||
"find-up": "^5.0.0" | ||
"find-up": "^7.0.0" | ||
}, | ||
"gitHead": "89f5bf91d1c11b1f457a6f0d99b8ea34583a9311" | ||
"gitHead": "f1ff12159d627ee63bf8982ab02e6cca8f10b09f" | ||
} |
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
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
Yes
6
3724
26
+ Addedfind-up@7.0.0(transitive)
+ Addedlocate-path@7.2.0(transitive)
+ Addedp-limit@4.0.0(transitive)
+ Addedp-locate@6.0.0(transitive)
+ Addedpath-exists@5.0.0(transitive)
+ Addedunicorn-magic@0.1.0(transitive)
+ Addedyocto-queue@1.1.1(transitive)
- Removedfind-up@5.0.0(transitive)
- Removedlocate-path@6.0.0(transitive)
- Removedp-limit@3.1.0(transitive)
- Removedp-locate@5.0.0(transitive)
- Removedpath-exists@4.0.0(transitive)
- Removedyocto-queue@0.1.0(transitive)
Updatedfind-up@^7.0.0