Skip to content

Commit

Permalink
feat(no-trapping-shim): Ponyfill and shim for non-trapping integrity …
Browse files Browse the repository at this point in the history
…trait
  • Loading branch information
erights committed Jan 2, 2025
1 parent e5c15ed commit b5afbae
Show file tree
Hide file tree
Showing 9 changed files with 360 additions and 151 deletions.
142 changes: 0 additions & 142 deletions packages/no-trapping-shim/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,143 +1 @@
# Change Log

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

### [1.1.8](https://github.com/endojs/endo/compare/@endo/[email protected]...@endo/[email protected]) (2024-11-13)

**Note:** Version bump only for package @endo/skel





### [1.1.7](https://github.com/endojs/endo/compare/@endo/[email protected]...@endo/[email protected]) (2024-10-22)

**Note:** Version bump only for package @endo/skel





### [1.1.6](https://github.com/endojs/endo/compare/@endo/[email protected]...@endo/[email protected]) (2024-10-10)

**Note:** Version bump only for package @endo/skel





### [1.1.5](https://github.com/endojs/endo/compare/@endo/[email protected]...@endo/[email protected]) (2024-08-27)

**Note:** Version bump only for package @endo/skel





### [1.1.4](https://github.com/endojs/endo/compare/@endo/[email protected]...@endo/[email protected]) (2024-08-01)

**Note:** Version bump only for package @endo/skel





### [1.1.3](https://github.com/endojs/endo/compare/@endo/[email protected]...@endo/[email protected]) (2024-07-30)

**Note:** Version bump only for package @endo/skel





### [1.1.2](https://github.com/endojs/endo/compare/@endo/[email protected]...@endo/[email protected]) (2024-05-07)

**Note:** Version bump only for package @endo/skel





### [1.1.1](https://github.com/endojs/endo/compare/@endo/[email protected]...@endo/[email protected]) (2024-04-04)

**Note:** Version bump only for package @endo/skel





## [1.1.0](https://github.com/endojs/endo/compare/@endo/[email protected]...@endo/[email protected]) (2024-03-20)


### Features

* **ses-ava:** import test from @endo/ses-ava/prepare-endo.js ([#2133](https://github.com/endojs/endo/issues/2133)) ([9d3a7ce](https://github.com/endojs/endo/commit/9d3a7ce150b6fd6fe7c8c4cc43da411e981731ac))



### [1.0.4](https://github.com/endojs/endo/compare/@endo/[email protected]...@endo/[email protected]) (2024-02-23)

**Note:** Version bump only for package @endo/skel





### [1.0.3](https://github.com/endojs/endo/compare/@endo/[email protected]...@endo/[email protected]) (2024-02-15)


### Bug Fixes

* Add repository directory to all package descriptors ([e5f36e7](https://github.com/endojs/endo/commit/e5f36e7a321c13ee25e74eb74d2a5f3d7517119c))



### [1.0.2](https://github.com/endojs/endo/compare/@endo/[email protected]...@endo/[email protected]) (2024-01-18)

**Note:** Version bump only for package @endo/skel





### [1.0.1](https://github.com/endojs/endo/compare/@endo/[email protected]...@endo/[email protected]) (2023-12-20)

**Note:** Version bump only for package @endo/skel





## [1.0.0](https://github.com/endojs/endo/compare/@endo/[email protected]...@endo/[email protected]) (2023-12-12)


### Bug Fixes

* Adjust type generation in release process and CI ([9465be3](https://github.com/endojs/endo/commit/9465be369e53167815ca444f6293a8e9eb48501d))



### [0.1.3](https://github.com/endojs/endo/compare/@endo/[email protected]...@endo/[email protected]) (2023-09-12)

**Note:** Version bump only for package @endo/skel





### 0.1.2 (2023-08-07)


### Bug Fixes

* Fix scaffold and transforms yarn pack ([42439e7](https://github.com/endojs/endo/commit/42439e7d452e839b9856eac0e852766c237219d0))



### 0.1.1 (2023-08-07)


### Bug Fixes

* Fix scaffold and transforms yarn pack ([42439e7](https://github.com/endojs/endo/commit/42439e7d452e839b9856eac0e852766c237219d0))
1 change: 1 addition & 0 deletions packages/no-trapping-shim/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './src/no-trapping-pony.js';
6 changes: 2 additions & 4 deletions packages/no-trapping-shim/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@endo/no-trapping-shim",
"version": "0.1.0",
"private": true,
"description": null,
"description": "shim and ponyfill for no-trapping integrity level",
"keywords": [],
"author": "Endo contributors",
"license": "Apache-2.0",
Expand All @@ -20,6 +20,7 @@
"module": "./index.js",
"exports": {
".": "./index.js",
"./shim.js": "./shim.js",
"./package.json": "./package.json"
},
"scripts": {
Expand All @@ -35,10 +36,7 @@
"test:c8": "c8 $C8_OPTIONS ava --config=ava-nesm.config.js",
"test:xs": "exit 0"
},
"dependencies": {},
"devDependencies": {
"@endo/lockdown": "workspace:^",
"@endo/ses-ava": "workspace:^",
"ava": "^6.1.3",
"c8": "^7.14.0",
"tsd": "^0.31.2",
Expand Down
10 changes: 10 additions & 0 deletions packages/no-trapping-shim/shim.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/* global globalThis */
import { ReflectPlus, ObjectPlus, ProxyPlus } from './src/no-trapping-pony.js';

globalThis.Reflect = ReflectPlus;

globalThis.Object = ObjectPlus;
// eslint-disable-next-line no-extend-native
Object.prototype.constructor = ObjectPlus;

globalThis.Proxy = ProxyPlus;
Loading

0 comments on commit b5afbae

Please sign in to comment.