# @extendscript/aes.patch.object.preventextensions

> The `Object.preventExtensions()` method prevents new properties from ever being added to an object (i.e. prevents future extensions to the object).

Latest version **2.0.0** (published 2018-08-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install @extendscript/aes.patch.object.preventextensions
pnpm add @extendscript/aes.patch.object.preventextensions
yarn add @extendscript/aes.patch.object.preventextensions
bun add @extendscript/aes.patch.object.preventextensions
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2018-08-14 |
| First published | 2018-07-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 20 |
| Author | extendscript.org |
| Maintainers | extendscripter, fabian.moron.zirfas, fabianmoronzirfas, vogelino |
| Keywords | extendscript, polyfill, shim |

## Links

- npm: https://www.npmjs.com/package/@extendscript/aes.patch.object.preventextensions
- Repository: https://github.com/ExtendScript/extendscript-modules
- Homepage: https://github.com/ExtendScript/extendscript-modules#readme
- Issues: https://github.com/ExtendScript/extendscript-modules/issues
- npm.io page: https://npm.io/package/@extendscript/aes.patch.object.preventextensions

## Recent versions

- 2.0.0 (latest) — 2018-08-14
- 1.0.0 — 2018-07-16

## README

# object.preventextensions

> ES5 Sham

The `Object.preventExtensions()` method prevents new properties from ever being added to an object (i.e. prevents future extensions to the object).

> __WARNING__ Silently fails in ExtendScript. This should be fine unless you are depending on the safety and security provisions of this method.

Source: [ps-scripting-es5shim](https://github.com/EugenTepin/ps-scripting-es5shim/blob/master/lib/Object/preventExtensions.js)

## Install

    npm install @extendscript/aes.patch.object.preventextensions

## Test

You can test the code against a range of [targets](https://github.com/nbqx/fakestk/blob/master/resources/versions.json):

    npm run test target-1 target-2

We keep [a log of test results](./test/results_log.md)

---
_Source: https://npm.io/package/@extendscript/aes.patch.object.preventextensions · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
