Skip to content

Commit

Permalink
Fixed faulty Proxy check (#229)
Browse files Browse the repository at this point in the history
  • Loading branch information
akarel authored Mar 29, 2022
1 parent ec50775 commit d6498a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Fixed

- Correct incorrect return type of `check` validation strategy (boolean -> void)
- Bug with `Proxy` check where it always returned `true`

## [1.4.0] - 2022-02-17

Expand Down
2 changes: 1 addition & 1 deletion src/v8n.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Context from './Context';
import optional from './rules/optional';

function v8n() {
return typeof Proxy !== undefined
return typeof Proxy !== 'undefined'
? proxyContext(new Context())
: proxylessContext(new Context());
}
Expand Down

0 comments on commit d6498a5

Please sign in to comment.