definitely
Advanced tools
Comparing version 1.0.9 to 1.0.10
{ | ||
"name": "definitely", | ||
"version": "1.0.9", | ||
"version": "1.0.10", | ||
"description": "Disallow undefined property access in JavaScript", | ||
@@ -5,0 +5,0 @@ "main": "definitely.js", |
@@ -6,3 +6,3 @@ # definitely | ||
$ npm install --save-dev definitely-loader | ||
$ npm install --save-dev definitely | ||
@@ -39,1 +39,5 @@ ### Usage and rationale | ||
The magic that enables this library is an ES2015 feature called [`Proxy`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy), which allows intercepting arbitrary property access attempts and deciding what to do with them (in our case we throw an exception if the underlying object is missing the requisite property). `Proxy` is not yet supported in all browsers (e.g. IE and Safari) and in `Node` requires a special flag (`--harmony-proxies`) and [shim](https://www.npmjs.com/package/harmony-proxy). If `Proxy` is not found in the global scope, this library becomes a no-op. | ||
### See also | ||
[`definitely-loader`](https://github.com/pelotom/definitely-loader), a Webpack loader which verifies that imported names exist within the target module. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8960
42