Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

definitely

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

definitely - npm Package Compare versions

Comparing version 1.0.9 to 1.0.10

2

package.json
{
"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.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc