Socket
Socket
Sign inDemoInstall

graphql-config

Package Overview
Dependencies
Maintainers
4
Versions
319
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-config - npm Package Compare versions

Comparing version 5.1.0 to 5.1.1

2

cjs/errors.js

@@ -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)

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc