ProtectJS
ProtectJS copied to clipboard
Private methods & properties in JavaScript
Add support for object properties.. ``` var obj = { name: 'Test Object', deep: { name: 'Another object' } } ``` Support depth option #7
Add support for internal asynchronous calls `animationFrame` `setTimeout` `setInterval` `ajax` `promises` `callbacks`
- [x] Protect the prototype - [ ] Allow constructor to have private access - [ ] Support static properties
Hi @TremayneChrist I have found an error when there are two or more instances of different types. The error can be described with the next source code example: ``` function...
ProtectJS can not protect the prototype and all of its instances at the same time. When protect prototype and an instance separately, the prototypes methods can access the instance protected...
- Deep object protection - Freeze - Seal - Protection prefix - Mode (undefined/throw) - Keys to protect ```js { deep: numberOfLevels || true, freeze: true, seal: true, protectionPrefix: '__',...
```javascript class ES6_Object { constructor () { ... } get something () { ... } set something () { ... } someFunction () { ... } static otherFunction () {...