Skip to content

Commit

Permalink
Update to [email protected] for invariant.debug.
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamn committed Jul 12, 2021
1 parent 3cfe83c commit 4a8f1c3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
2 changes: 1 addition & 1 deletion config/processInvariants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function transform(code: string, file: string) {

if (node.callee.type === "MemberExpression" &&
isIdWithName(node.callee.object, "invariant") &&
isIdWithName(node.callee.property, "log", "warn", "error")) {
isIdWithName(node.callee.property, "debug", "log", "warn", "error")) {
if (isDEVLogicalAnd(path.parent.node)) {
return;
}
Expand Down
13 changes: 3 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"optimism": "^0.16.1",
"prop-types": "^15.7.2",
"symbol-observable": "^4.0.0",
"ts-invariant": "^0.8.2",
"ts-invariant": "^0.9.0",
"tslib": "^2.1.0",
"zen-observable-ts": "^1.1.0"
},
Expand Down

0 comments on commit 4a8f1c3

Please sign in to comment.