@graphql-tools/git-loader 8.0.1 → 8.0.2-alpha-20230724230242-fecfa0d0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cjs/index.js CHANGED
@@ -2,15 +2,15 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GitLoader = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const graphql_tag_pluck_1 = require("@graphql-tools/graphql-tag-pluck");
5
+ const process_1 = require("process");
6
+ const graphql_1 = require("graphql");
7
+ const is_glob_1 = tslib_1.__importDefault(require("is-glob"));
6
8
  const micromatch_1 = tslib_1.__importDefault(require("micromatch"));
7
9
  const unixify_1 = tslib_1.__importDefault(require("unixify"));
10
+ const graphql_tag_pluck_1 = require("@graphql-tools/graphql-tag-pluck");
11
+ const utils_1 = require("@graphql-tools/utils");
8
12
  const load_git_js_1 = require("./load-git.js");
9
13
  const parse_js_1 = require("./parse.js");
10
- const graphql_1 = require("graphql");
11
- const utils_1 = require("@graphql-tools/utils");
12
- const is_glob_1 = tslib_1.__importDefault(require("is-glob"));
13
- const process_1 = require("process");
14
14
  // git:branch:path/to/file
15
15
  function extractData(pointer) {
16
16
  const parts = pointer.replace(/^git\:/i, '').split(':');
package/esm/index.js CHANGED
@@ -1,12 +1,12 @@
1
- import { gqlPluckFromCodeString, gqlPluckFromCodeStringSync, } from '@graphql-tools/graphql-tag-pluck';
1
+ import { env } from 'process';
2
+ import { parse } from 'graphql';
3
+ import isGlob from 'is-glob';
2
4
  import micromatch from 'micromatch';
3
5
  import unixify from 'unixify';
6
+ import { gqlPluckFromCodeString, gqlPluckFromCodeStringSync, } from '@graphql-tools/graphql-tag-pluck';
7
+ import { asArray } from '@graphql-tools/utils';
4
8
  import { loadFromGit, loadFromGitSync, readTreeAtRef, readTreeAtRefSync } from './load-git.js';
5
9
  import { parse as handleStuff } from './parse.js';
6
- import { parse } from 'graphql';
7
- import { asArray } from '@graphql-tools/utils';
8
- import isGlob from 'is-glob';
9
- import { env } from 'process';
10
10
  // git:branch:path/to/file
11
11
  function extractData(pointer) {
12
12
  const parts = pointer.replace(/^git\:/i, '').split(':');
package/esm/parse.js CHANGED
@@ -1,4 +1,4 @@
1
- import { parseGraphQLSDL, parseGraphQLJSON } from '@graphql-tools/utils';
1
+ import { parseGraphQLJSON, parseGraphQLSDL, } from '@graphql-tools/utils';
2
2
  /**
3
3
  * @internal
4
4
  */
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@graphql-tools/git-loader",
3
- "version": "8.0.1",
3
+ "version": "8.0.2-alpha-20230724230242-fecfa0d0",
4
4
  "description": "A set of utils for faster development of GraphQL tools",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {
7
7
  "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0"
8
8
  },
9
9
  "dependencies": {
10
- "@graphql-tools/graphql-tag-pluck": "8.0.1",
10
+ "@graphql-tools/graphql-tag-pluck": "8.0.2-alpha-20230724230242-fecfa0d0",
11
11
  "@graphql-tools/utils": "^10.0.0",
12
12
  "is-glob": "4.0.3",
13
13
  "micromatch": "^4.0.4",
@@ -1,4 +1,4 @@
1
- import { Source, GraphQLParseOptions } from '@graphql-tools/utils';
1
+ import { GraphQLParseOptions, Source } from '@graphql-tools/utils';
2
2
  /**
3
3
  * @internal
4
4
  */
@@ -1,4 +1,4 @@
1
- import { Source, GraphQLParseOptions } from '@graphql-tools/utils';
1
+ import { GraphQLParseOptions, Source } from '@graphql-tools/utils';
2
2
  /**
3
3
  * @internal
4
4
  */