@luvio/graphql-parser 0.62.2 → 0.62.3

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.
@@ -1,7 +1,3 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
1
  // In ES2015 (or a polyfilled) environment, this will be Symbol.iterator
6
2
 
7
3
  var SYMBOL_TO_STRING_TAG = typeof Symbol === 'function' && Symbol.toStringTag != null ? Symbol.toStringTag : '@@toStringTag';
@@ -3884,4 +3880,4 @@ function parseAndVisit(source) {
3884
3880
  return transform$b(ast);
3885
3881
  }
3886
3882
 
3887
- exports.parseAndVisit = parseAndVisit;
3883
+ export { parseAndVisit };
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@luvio/graphql-parser",
3
- "version": "0.62.2",
4
- "description": "GraphQL parser for LDS GraphQL adapter",
3
+ "version": "0.62.3",
4
+ "description": "GraphQL parser for Luvio GraphQL adapter support",
5
5
  "main": "dist/luvioGraphqlParser.js",
6
- "module": "true",
6
+ "module": "dist/luvioGraphqlParser.js",
7
7
  "types": "dist/main.d.ts",
8
8
  "license": "MIT",
9
9
  "scripts": {
@@ -13,6 +13,9 @@
13
13
  "test:unit": "jest",
14
14
  "test:debug": "node --inspect-brk ../../node_modules/.bin/jest --runInBand"
15
15
  },
16
+ "dependencies": {
17
+ "graphql": "^15.0.0"
18
+ },
16
19
  "publishConfig": {
17
20
  "access": "public"
18
21
  }
package/rollup.config.js CHANGED
@@ -5,7 +5,7 @@ const luvioGraphqlParserRollupConfig = {
5
5
  input: './src/main.ts',
6
6
  output: {
7
7
  file: 'dist/luvioGraphqlParser.js',
8
- format: 'cjs',
8
+ format: 'esm',
9
9
  },
10
10
 
11
11
  plugins: [
package/scripts/cli.mjs CHANGED
@@ -4,7 +4,7 @@ import { resolve as resolvePath } from 'path';
4
4
 
5
5
  const path = process.argv[2];
6
6
  if (path === undefined) {
7
- throw new Error(`Invalid path "${path}". Usage: "yarn parse PATH_TO_GQL_QUERY.graphql)"`);
7
+ throw new Error(`Invalid path "${path}". Usage: "node scripts/cli.mjs PATH/TO/GQL/QUERY.graphql)"`);
8
8
  }
9
9
 
10
10
  if (existsSync(path) === false) {