@smartive/graphql-magic 22.0.1 → 22.0.2
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 +2 -3
- package/dist/bin/gqm.cjs +2 -1
- package/package.json +1 -1
- package/src/bin/gqm/static-eval.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
## <small>22.0.
|
|
1
|
+
## <small>22.0.2 (2025-10-29)</small>
|
|
2
2
|
|
|
3
|
-
*
|
|
4
|
-
* fix: Clone in loop ([5112665](https://github.com/smartive/graphql-magic/commit/5112665))
|
|
3
|
+
* fix: Add ?? token (#374) ([6b52676](https://github.com/smartive/graphql-magic/commit/6b52676)), closes [#374](https://github.com/smartive/graphql-magic/issues/374)
|
package/dist/bin/gqm.cjs
CHANGED
|
@@ -2270,7 +2270,8 @@ var VISITOR = {
|
|
|
2270
2270
|
[import_ts_morph2.SyntaxKind.BarBarToken]: (left, right) => left || right(),
|
|
2271
2271
|
[import_ts_morph2.SyntaxKind.AmpersandAmpersandToken]: (left, right) => left && right(),
|
|
2272
2272
|
[import_ts_morph2.SyntaxKind.EqualsEqualsToken]: (left, right) => left == right(),
|
|
2273
|
-
[import_ts_morph2.SyntaxKind.ExclamationEqualsToken]: (left, right) => left != right()
|
|
2273
|
+
[import_ts_morph2.SyntaxKind.ExclamationEqualsToken]: (left, right) => left != right(),
|
|
2274
|
+
[import_ts_morph2.SyntaxKind.QuestionQuestionToken]: (left, right) => left ?? right()
|
|
2274
2275
|
};
|
|
2275
2276
|
if (node.getOperatorToken().getKind() in mapping) {
|
|
2276
2277
|
return mapping[node.getOperatorToken().getKind()](
|
package/package.json
CHANGED
|
@@ -208,6 +208,7 @@ const VISITOR: Visitor<unknown, Dictionary<unknown>> = {
|
|
|
208
208
|
[SyntaxKind.AmpersandAmpersandToken]: (left: unknown, right: () => unknown) => left && right(),
|
|
209
209
|
[SyntaxKind.EqualsEqualsToken]: (left: unknown, right: () => unknown) => left == right(),
|
|
210
210
|
[SyntaxKind.ExclamationEqualsToken]: (left: unknown, right: () => unknown) => left != right(),
|
|
211
|
+
[SyntaxKind.QuestionQuestionToken]: (left: unknown, right: () => unknown) => left ?? right(),
|
|
211
212
|
};
|
|
212
213
|
if (node.getOperatorToken().getKind() in mapping) {
|
|
213
214
|
return mapping[node.getOperatorToken().getKind()](staticEval(node.getLeft(), context), () =>
|