@useoptic/cli-config
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -137,14 +137,13 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const hasVersion6SpecStore = yield find_up_1.default('.api/spec-store.json', { type: 'file' }); | ||
const hasVersion6SpecStore = yield find_up_1.default('.api', { type: 'directory' }); | ||
const hasVersion7Config = yield find_up_1.default('optic.yml', { type: 'file' }); | ||
console.log({ | ||
hasVersion6SpecStore, | ||
hasVersion7Config | ||
}); | ||
if (!hasVersion6SpecStore) { | ||
if (hasVersion6SpecStore) { | ||
return true; | ||
} | ||
else if (hasVersion7Config) { | ||
return false; | ||
} | ||
return !hasVersion7Config; | ||
return false; | ||
}); | ||
} | ||
exports.shouldWarnAboutVersion7Compatibility = shouldWarnAboutVersion7Compatibility; |
{ | ||
"name": "@useoptic/cli-config", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"scripts": { | ||
@@ -5,0 +5,0 @@ "ws:test": "echo config", |
Sorry, the diff of this file is not supported yet
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
13549
280
1