1.1.4 • Published 6 years ago

context-proxy v1.1.4

Weekly downloads
32
License
MIT
Repository
github
Last release
6 years ago

context-proxy

context-proxy traps calls in exactly the same way as normal js Proxy, but this context of every trap will be context parameter of constructor or function call.

Usage

import CProxy from 'context-proxy';

const target = {}; // proxy target

const context = {/* context */};


const proxy = CProxy(target, {/* handlers */}, context);
// or with new operator
const proxy = new CProxy(target, {/* handlers */}, context);
1.1.4

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago