Skip to content

Commit

Permalink
fix: nullish coalescing operator (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
nullswan authored Sep 2, 2022
1 parent 1868133 commit cadf453
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .changeset/honest-weeks-dance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
'@escape.tech/graphql-armor': patch
'@escape.tech/graphql-armor-block-field-suggestions': patch
'@escape.tech/graphql-armor-character-limit': patch
'@escape.tech/graphql-armor-cost-limit': patch
'@escape.tech/graphql-armor-max-aliases': patch
'@escape.tech/graphql-armor-max-depth': patch
'@escape.tech/graphql-armor-max-directives': patch
---

fix:
- nullish coalescing operator evaluation
will now be made through babel plugin
6 changes: 5 additions & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@ module.exports = {
['@babel/preset-env', { targets: { node: process.versions.node.split('.')[0] } }],
'@babel/preset-typescript',
],
plugins: [['@babel/plugin-proposal-decorators', { legacy: true }], '@babel/plugin-proposal-class-properties'],
plugins: [
['@babel/plugin-proposal-decorators', { legacy: true }],
'@babel/plugin-proposal-class-properties',
'@babel/plugin-proposal-nullish-coalescing-operator',
],
};
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"@babel/core": "7.18.13",
"@babel/plugin-proposal-class-properties": "7.18.6",
"@babel/plugin-proposal-decorators": "7.18.10",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
"@babel/preset-env": "7.18.10",
"@babel/preset-typescript": "7.18.6",
"@changesets/cli": "2.24.4",
Expand Down
1 change: 1 addition & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2488,6 +2488,7 @@ __metadata:
"@babel/core": 7.18.13
"@babel/plugin-proposal-class-properties": 7.18.6
"@babel/plugin-proposal-decorators": 7.18.10
"@babel/plugin-proposal-nullish-coalescing-operator": ^7.18.6
"@babel/preset-env": 7.18.10
"@babel/preset-typescript": 7.18.6
"@changesets/cli": 2.24.4
Expand Down

0 comments on commit cadf453

Please sign in to comment.