@graphql-tools/optimize 1.3.1-alpha-420b7771.0 → 1.3.1-alpha-9d6b1e75.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-tools/optimize",
3
- "version": "1.3.1-alpha-420b7771.0",
3
+ "version": "1.3.1-alpha-9d6b1e75.0",
4
4
  "description": "A set of utils for faster development of GraphQL tools",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {
@@ -1,5 +1,5 @@
1
- export * from './optimize.js';
2
- export * from './types.js';
3
- export * from './optimizers/remove-description.js';
4
- export * from './optimizers/remove-empty-nodes.js';
5
- export * from './optimizers/remove-loc.js';
1
+ export * from './optimize.cjs';
2
+ export * from './types.cjs';
3
+ export * from './optimizers/remove-description.cjs';
4
+ export * from './optimizers/remove-empty-nodes.cjs';
5
+ export * from './optimizers/remove-loc.cjs';
@@ -1,5 +1,5 @@
1
1
  import { DocumentNode } from 'graphql';
2
- import { DocumentOptimizer } from './types.js';
2
+ import { DocumentOptimizer } from './types.cjs';
3
3
  /**
4
4
  * This method accept a DocumentNode and applies the optimizations you wish to use.
5
5
  * You can override the default ones or provide you own optimizers if you wish.
@@ -1,4 +1,4 @@
1
- import { DocumentOptimizer } from '../types.js';
1
+ import { DocumentOptimizer } from '../types.cjs';
2
2
  /**
3
3
  * This optimizer removes "description" field from schema AST definitions.
4
4
  * @param input
@@ -1,4 +1,4 @@
1
- import { DocumentOptimizer } from '../types.js';
1
+ import { DocumentOptimizer } from '../types.cjs';
2
2
  /**
3
3
  * This optimizer removes empty nodes/arrays (directives/argument/variableDefinitions) from a given DocumentNode of operation/fragment.
4
4
  * @param input
@@ -1,4 +1,4 @@
1
- import { DocumentOptimizer } from '../types.js';
1
+ import { DocumentOptimizer } from '../types.cjs';
2
2
  /**
3
3
  * This optimizer removes "loc" fields
4
4
  * @param input