graphql-config
Advanced tools
Comparing version 5.1.0 to 5.1.1
@@ -5,3 +5,3 @@ "use strict"; | ||
exports.composeMessage = composeMessage; | ||
// eslint-disable-next-line @typescript-eslint/ban-types -- TODO: fix lint error | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type -- TODO: fix lint error | ||
function ExtendableBuiltin(cls) { | ||
@@ -8,0 +8,0 @@ function ExtendableBuiltin(...args) { |
@@ -41,3 +41,3 @@ "use strict"; | ||
const loadToml = (...args) => { | ||
// eslint-disable-next-line @typescript-eslint/no-var-requires | ||
// eslint-disable-next-line @typescript-eslint/no-require-imports | ||
const { loadToml } = require('cosmiconfig-toml-loader'); | ||
@@ -44,0 +44,0 @@ return createCustomLoader(loadToml)(...args); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.GraphQLProjectConfig = void 0; | ||
const tslib_1 = require("tslib"); | ||
const path_1 = require("path"); | ||
const minimatch_1 = tslib_1.__importDefault(require("minimatch")); | ||
const minimatch_1 = require("minimatch"); | ||
const errors_js_1 = require("./errors.js"); | ||
@@ -120,4 +119,6 @@ const index_js_1 = require("./helpers/index.js"); | ||
} | ||
const normalizedFilepath = (0, path_1.normalize)((0, path_1.isAbsolute)(filepath) ? (0, path_1.relative)(dirpath, filepath) : filepath); | ||
return (0, minimatch_1.default)(normalizedFilepath, (0, path_1.normalize)(pointer), { dot: true }); | ||
const normalizedFilepath = (0, path_1.normalize)((0, path_1.isAbsolute)(filepath) ? (0, path_1.relative)(dirpath, filepath) : filepath) | ||
.split('\\') | ||
.join('/'); | ||
return (0, minimatch_1.minimatch)(normalizedFilepath, (0, path_1.normalize)(pointer).split('\\').join('/'), { dot: true }); | ||
} | ||
@@ -124,0 +125,0 @@ if (typeof pointer === 'object') { |
@@ -1,2 +0,2 @@ | ||
// eslint-disable-next-line @typescript-eslint/ban-types -- TODO: fix lint error | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type -- TODO: fix lint error | ||
function ExtendableBuiltin(cls) { | ||
@@ -3,0 +3,0 @@ function ExtendableBuiltin(...args) { |
@@ -39,3 +39,3 @@ import { createRequire } from 'module'; | ||
const loadToml = (...args) => { | ||
// eslint-disable-next-line @typescript-eslint/no-var-requires | ||
// eslint-disable-next-line @typescript-eslint/no-require-imports | ||
const { loadToml } = require('cosmiconfig-toml-loader'); | ||
@@ -42,0 +42,0 @@ return createCustomLoader(loadToml)(...args); |
import { dirname, isAbsolute, relative, normalize } from 'path'; | ||
import minimatch from 'minimatch'; | ||
import { minimatch } from 'minimatch'; | ||
import { ExtensionMissingError } from './errors.js'; | ||
@@ -115,4 +115,6 @@ import { isLegacyProjectConfig } from './helpers/index.js'; | ||
} | ||
const normalizedFilepath = normalize(isAbsolute(filepath) ? relative(dirpath, filepath) : filepath); | ||
return minimatch(normalizedFilepath, normalize(pointer), { dot: true }); | ||
const normalizedFilepath = normalize(isAbsolute(filepath) ? relative(dirpath, filepath) : filepath) | ||
.split('\\') | ||
.join('/'); | ||
return minimatch(normalizedFilepath, normalize(pointer).split('\\').join('/'), { dot: true }); | ||
} | ||
@@ -119,0 +121,0 @@ if (typeof pointer === 'object') { |
{ | ||
"name": "graphql-config", | ||
"version": "5.1.0", | ||
"version": "5.1.1", | ||
"description": "The easiest way to configure your development environment with your GraphQL schema (supported by most tools, editors & IDEs)", | ||
@@ -22,5 +22,5 @@ "sideEffects": false, | ||
"@graphql-tools/utils": "^10.0.0", | ||
"cosmiconfig": "^8.1.0", | ||
"cosmiconfig": "^9.0.0", | ||
"jiti": "^1.18.2", | ||
"minimatch": "^4.2.3", | ||
"minimatch": "^10.0.0", | ||
"string-env-interpolation": "^1.0.1", | ||
@@ -27,0 +27,0 @@ "tslib": "^2.4.0" |
@@ -1,2 +0,6 @@ | ||
![GraphQL Config](https://i.imgur.com/hw5tXw2.gif 'GraphQL Config') | ||
[![GraphQLConf 2024 Banner: September 10-12, San Francisco. Hosted by the GraphQL Foundation](https://github.com/user-attachments/assets/bdb8cd5d-5186-4ece-b06b-b00a499b7868)](https://graphql.org/conf/2024/?utm_source=github&utm_medium=graphql_config&utm_campaign=readme) | ||
<!-- Uncomment when we remove GraphQL Conf banner --> | ||
<!-- ![GraphQL Config](https://i.imgur.com/hw5tXw2.gif 'GraphQL Config') --> | ||
[![npm version](https://badge.fury.io/js/graphql-config.svg)](https://npmjs.com/package/graphql-config) | ||
@@ -3,0 +7,0 @@ [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier) |
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
82205
1762
48
+ Addedbrace-expansion@2.0.1(transitive)
+ Addedcosmiconfig@9.0.0(transitive)
+ Addedenv-paths@2.2.1(transitive)
+ Addedminimatch@10.0.1(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedcosmiconfig@8.3.6(transitive)
- Removedminimatch@4.2.3(transitive)
Updatedcosmiconfig@^9.0.0
Updatedminimatch@^10.0.0