@graphql-tools/relay-operation-optimizer 6.4.13 → 6.4.14
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/index.js +8 -8
- package/index.mjs +8 -8
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -6,14 +6,14 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'defau
|
|
|
6
6
|
|
|
7
7
|
const utils = require('@graphql-tools/utils');
|
|
8
8
|
const graphql = require('graphql');
|
|
9
|
-
const SkipRedundantNodesTransform_js = require('relay-compiler/lib/transforms/SkipRedundantNodesTransform.js');
|
|
10
|
-
const InlineFragmentsTransform_js = require('relay-compiler/lib/transforms/InlineFragmentsTransform.js');
|
|
11
|
-
const ApplyFragmentArgumentTransform_js = require('relay-compiler/lib/transforms/ApplyFragmentArgumentTransform.js');
|
|
12
|
-
const FlattenTransform_js = require('relay-compiler/lib/transforms/FlattenTransform.js');
|
|
13
|
-
const CompilerContext = _interopDefault(require('relay-compiler/lib/core/CompilerContext.js'));
|
|
14
|
-
const RelayParser_js = require('relay-compiler/lib/core/RelayParser.js');
|
|
15
|
-
const IRPrinter_js = require('relay-compiler/lib/core/IRPrinter.js');
|
|
16
|
-
const Schema_js = require('relay-compiler/lib/core/Schema.js');
|
|
9
|
+
const SkipRedundantNodesTransform_js = require('@ardatan/relay-compiler/lib/transforms/SkipRedundantNodesTransform.js');
|
|
10
|
+
const InlineFragmentsTransform_js = require('@ardatan/relay-compiler/lib/transforms/InlineFragmentsTransform.js');
|
|
11
|
+
const ApplyFragmentArgumentTransform_js = require('@ardatan/relay-compiler/lib/transforms/ApplyFragmentArgumentTransform.js');
|
|
12
|
+
const FlattenTransform_js = require('@ardatan/relay-compiler/lib/transforms/FlattenTransform.js');
|
|
13
|
+
const CompilerContext = _interopDefault(require('@ardatan/relay-compiler/lib/core/CompilerContext.js'));
|
|
14
|
+
const RelayParser_js = require('@ardatan/relay-compiler/lib/core/RelayParser.js');
|
|
15
|
+
const IRPrinter_js = require('@ardatan/relay-compiler/lib/core/IRPrinter.js');
|
|
16
|
+
const Schema_js = require('@ardatan/relay-compiler/lib/core/Schema.js');
|
|
17
17
|
|
|
18
18
|
function optimizeDocuments(schema, documents, options = {}) {
|
|
19
19
|
options = {
|
package/index.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { printSchemaWithDirectives } from '@graphql-tools/utils';
|
|
2
2
|
import { concatAST, parse } from 'graphql';
|
|
3
|
-
import { transform as transform$2 } from 'relay-compiler/lib/transforms/SkipRedundantNodesTransform.js';
|
|
4
|
-
import { transform as transform$3 } from 'relay-compiler/lib/transforms/InlineFragmentsTransform.js';
|
|
5
|
-
import { transform as transform$1 } from 'relay-compiler/lib/transforms/ApplyFragmentArgumentTransform.js';
|
|
6
|
-
import { transformWithOptions } from 'relay-compiler/lib/transforms/FlattenTransform.js';
|
|
7
|
-
import CompilerContext from 'relay-compiler/lib/core/CompilerContext.js';
|
|
8
|
-
import { transform } from 'relay-compiler/lib/core/RelayParser.js';
|
|
9
|
-
import { print } from 'relay-compiler/lib/core/IRPrinter.js';
|
|
10
|
-
import { create } from 'relay-compiler/lib/core/Schema.js';
|
|
3
|
+
import { transform as transform$2 } from '@ardatan/relay-compiler/lib/transforms/SkipRedundantNodesTransform.js';
|
|
4
|
+
import { transform as transform$3 } from '@ardatan/relay-compiler/lib/transforms/InlineFragmentsTransform.js';
|
|
5
|
+
import { transform as transform$1 } from '@ardatan/relay-compiler/lib/transforms/ApplyFragmentArgumentTransform.js';
|
|
6
|
+
import { transformWithOptions } from '@ardatan/relay-compiler/lib/transforms/FlattenTransform.js';
|
|
7
|
+
import CompilerContext from '@ardatan/relay-compiler/lib/core/CompilerContext.js';
|
|
8
|
+
import { transform } from '@ardatan/relay-compiler/lib/core/RelayParser.js';
|
|
9
|
+
import { print } from '@ardatan/relay-compiler/lib/core/IRPrinter.js';
|
|
10
|
+
import { create } from '@ardatan/relay-compiler/lib/core/Schema.js';
|
|
11
11
|
|
|
12
12
|
function optimizeDocuments(schema, documents, options = {}) {
|
|
13
13
|
options = {
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-tools/relay-operation-optimizer",
|
|
3
|
-
"version": "6.4.
|
|
3
|
+
"version": "6.4.14",
|
|
4
4
|
"description": "Package for optimizing your GraphQL operations relay style.",
|
|
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
|
+
"@ardatan/relay-compiler": "12.0.0",
|
|
10
11
|
"@graphql-tools/utils": "8.6.13",
|
|
11
|
-
"relay-compiler": "12.0.0",
|
|
12
12
|
"tslib": "^2.4.0"
|
|
13
13
|
},
|
|
14
14
|
"repository": {
|