@luvio/lwc-luvio 0.111.2 → 0.112.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.
@@ -475,7 +475,7 @@ class LWCGraphQLLuvioWireAdapter extends LWCLuvioWireAdapter {
475
475
  return;
476
476
  }
477
477
  const ast = this.astResolver(query);
478
- if (ast === undefined) {
478
+ if (ast === undefined && query !== undefined) {
479
479
  // this should only happen if the user didn't parse the query
480
480
  if (process.env.NODE_ENV !== 'production') {
481
481
  throw new Error(USERLAND_GRAPHQL_PARSER_ERROR_MESSAGE);
@@ -479,7 +479,7 @@
479
479
  return;
480
480
  }
481
481
  const ast = this.astResolver(query);
482
- if (ast === undefined) {
482
+ if (ast === undefined && query !== undefined) {
483
483
  // this should only happen if the user didn't parse the query
484
484
  if (process.env.NODE_ENV !== 'production') {
485
485
  throw new Error(USERLAND_GRAPHQL_PARSER_ERROR_MESSAGE);
@@ -536,7 +536,7 @@
536
536
  return;
537
537
  }
538
538
  var ast = this.astResolver(query);
539
- if (ast === undefined) {
539
+ if (ast === undefined && query !== undefined) {
540
540
  // this should only happen if the user didn't parse the query
541
541
  if (process.env.NODE_ENV !== 'production') {
542
542
  throw new Error(USERLAND_GRAPHQL_PARSER_ERROR_MESSAGE);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luvio/lwc-luvio",
3
- "version": "0.111.2",
3
+ "version": "0.112.0",
4
4
  "description": "Lightning Web Component bindings for Luvio",
5
5
  "repository": {
6
6
  "type": "git",
@@ -20,16 +20,17 @@
20
20
  "build:lwcluvio": "rollup --config rollup.config.js",
21
21
  "clean": "rm -rf dist src/__tests__/components/generated",
22
22
  "test": "jest",
23
+ "test:debug": "node --inspect-brk ../../../node_modules/.bin/jest --runInBand",
23
24
  "test:size": "bundlesize",
24
25
  "watch": "yarn build --watch"
25
26
  },
26
27
  "dependencies": {
27
- "@luvio/engine": "0.111.2",
28
+ "@luvio/engine": "0.112.0",
28
29
  "@lwc/engine-core": "2.11.3"
29
30
  },
30
31
  "devDependencies": {
31
- "@luvio/adapter-test-library": "0.111.2",
32
- "@luvio/cli": "0.111.2",
32
+ "@luvio/adapter-test-library": "0.112.0",
33
+ "@luvio/cli": "0.112.0",
33
34
  "@lwc/jest-preset": "11.2.2"
34
35
  },
35
36
  "bundlesize": [