@graphql-inspector/config
Advanced tools
Comparing version 4.0.0-alpha-20230604171720-9def9e8c to 4.0.0-alpha-20230607111323-e43c30f0
@@ -6,3 +6,2 @@ "use strict"; | ||
exports.useConfig = exports.availableLoaders = exports.availableCommands = void 0; | ||
const tslib_1 = require("tslib"); | ||
exports.availableCommands = [ | ||
@@ -18,9 +17,7 @@ 'coverage', | ||
exports.availableLoaders = ['code', 'git', 'github', 'graphql', 'json', 'url']; | ||
function useConfig() { | ||
return tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
return { | ||
loaders: ensureList(discoverLoaders(exports.availableLoaders), 'loaders'), | ||
commands: ensureList(discoverCommands(exports.availableCommands), 'commands'), | ||
}; | ||
}); | ||
async function useConfig() { | ||
return { | ||
loaders: ensureList(discoverLoaders(exports.availableLoaders), 'loaders'), | ||
commands: ensureList(discoverCommands(exports.availableCommands), 'commands'), | ||
}; | ||
} | ||
@@ -27,0 +24,0 @@ exports.useConfig = useConfig; |
// Right now everything is hardcoded for better UX but this may change in future. | ||
// It's just easier to leave it this way | ||
import { __awaiter } from "tslib"; | ||
export const availableCommands = [ | ||
@@ -14,9 +13,7 @@ 'coverage', | ||
export const availableLoaders = ['code', 'git', 'github', 'graphql', 'json', 'url']; | ||
export function useConfig() { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return { | ||
loaders: ensureList(discoverLoaders(availableLoaders), 'loaders'), | ||
commands: ensureList(discoverCommands(availableCommands), 'commands'), | ||
}; | ||
}); | ||
export async function useConfig() { | ||
return { | ||
loaders: ensureList(discoverLoaders(availableLoaders), 'loaders'), | ||
commands: ensureList(discoverCommands(availableCommands), 'commands'), | ||
}; | ||
} | ||
@@ -23,0 +20,0 @@ function moduleExists(name) { |
{ | ||
"name": "@graphql-inspector/config", | ||
"version": "4.0.0-alpha-20230604171720-9def9e8c", | ||
"version": "4.0.0-alpha-20230607111323-e43c30f0", | ||
"sideEffects": false, | ||
@@ -5,0 +5,0 @@ "peerDependencies": { |
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
5534
95