JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 93912
  • Score
    100M100P100Q152763F
  • License Apache-2.0

Polyfill for the Proxy object

Package Exports

  • proxy-polyfill
  • proxy-polyfill/proxy.min
  • proxy-polyfill/proxy.min.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (proxy-polyfill) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Polyfill for the Proxy object. See the MDN docs.

This proxy supports a limited subset of proxy 'traps', and comes with a caveat: it must seal any proxied object such that no additional properties can be defined.

Currently, the following traps are supported-

  • get
  • set
  • apply

Usage

Include the JavaScript at the start of your page, or include it as a dependency to your build steps. The source is in ES6, but the included, minified version is ES5.

Installation

Available via NPM or Bower-

$ npm install proxy-polyfill
$ bower install proxy-polyfill

Supports

The polyfill supports browsers that implement the full ES5 spec. It requires Object.seal and Object.defineProperty.