@smartive/graphql-magic 16.2.6 → 16.3.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/CHANGELOG.md +3 -3
- package/dist/bin/gqm.cjs +2 -0
- package/package.json +3 -3
- package/src/bin/gqm/static-eval.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
# [16.3.0](https://github.com/smartive/graphql-magic/compare/v16.2.6...v16.3.0) (2025-02-03)
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
###
|
|
4
|
+
### Features
|
|
5
5
|
|
|
6
|
-
*
|
|
6
|
+
* Support !== in staticEval ([d086e43](https://github.com/smartive/graphql-magic/commit/d086e43052f03187c7619eb12abbcdeb4108d235))
|
package/dist/bin/gqm.cjs
CHANGED
|
@@ -2146,6 +2146,8 @@ var VISITOR = {
|
|
|
2146
2146
|
switch (node.getOperatorToken().getKind()) {
|
|
2147
2147
|
case import_ts_morph2.SyntaxKind.EqualsEqualsEqualsToken:
|
|
2148
2148
|
return staticEval(node.getLeft(), context) === staticEval(node.getRight(), context);
|
|
2149
|
+
case import_ts_morph2.SyntaxKind.ExclamationEqualsEqualsToken:
|
|
2150
|
+
return staticEval(node.getLeft(), context) !== staticEval(node.getRight(), context);
|
|
2149
2151
|
case import_ts_morph2.SyntaxKind.BarBarToken:
|
|
2150
2152
|
return staticEval(node.getLeft(), context) || staticEval(node.getRight(), context);
|
|
2151
2153
|
default:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smartive/graphql-magic",
|
|
3
|
-
"version": "16.
|
|
3
|
+
"version": "16.3.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -72,9 +72,9 @@
|
|
|
72
72
|
"@smartive/eslint-config": "3.3.0",
|
|
73
73
|
"@smartive/prettier-config": "3.1.2",
|
|
74
74
|
"@types/jest": "29.5.14",
|
|
75
|
-
"@types/lodash": "4.17.
|
|
75
|
+
"@types/lodash": "4.17.15",
|
|
76
76
|
"@types/luxon": "3.4.2",
|
|
77
|
-
"@types/pg": "8.11.
|
|
77
|
+
"@types/pg": "8.11.11",
|
|
78
78
|
"@types/uuid": "9.0.8",
|
|
79
79
|
"create-ts-index": "1.14.0",
|
|
80
80
|
"del-cli": "5.1.0",
|
|
@@ -170,6 +170,8 @@ const VISITOR: Visitor<unknown, Dictionary<unknown>> = {
|
|
|
170
170
|
switch (node.getOperatorToken().getKind()) {
|
|
171
171
|
case SyntaxKind.EqualsEqualsEqualsToken:
|
|
172
172
|
return staticEval(node.getLeft(), context) === staticEval(node.getRight(), context);
|
|
173
|
+
case SyntaxKind.ExclamationEqualsEqualsToken:
|
|
174
|
+
return staticEval(node.getLeft(), context) !== staticEval(node.getRight(), context);
|
|
173
175
|
case SyntaxKind.BarBarToken:
|
|
174
176
|
return staticEval(node.getLeft(), context) || staticEval(node.getRight(), context);
|
|
175
177
|
default:
|