Skip to content

Commit 29223ef

Browse files
committed
feat(no-trapping-shim): Ponyfill and shim for noTrapping integrity trait
1 parent 0690a51 commit 29223ef

9 files changed

+360
-151
lines changed
-142
Original file line numberDiff line numberDiff line change
@@ -1,143 +1 @@
11
# Change Log
2-
3-
All notable changes to this project will be documented in this file.
4-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5-
6-
### [1.1.8](https://github.com/endojs/endo/compare/@endo/[email protected]...@endo/[email protected]) (2024-11-13)
7-
8-
**Note:** Version bump only for package @endo/skel
9-
10-
11-
12-
13-
14-
### [1.1.7](https://github.com/endojs/endo/compare/@endo/[email protected]...@endo/[email protected]) (2024-10-22)
15-
16-
**Note:** Version bump only for package @endo/skel
17-
18-
19-
20-
21-
22-
### [1.1.6](https://github.com/endojs/endo/compare/@endo/[email protected]...@endo/[email protected]) (2024-10-10)
23-
24-
**Note:** Version bump only for package @endo/skel
25-
26-
27-
28-
29-
30-
### [1.1.5](https://github.com/endojs/endo/compare/@endo/[email protected]...@endo/[email protected]) (2024-08-27)
31-
32-
**Note:** Version bump only for package @endo/skel
33-
34-
35-
36-
37-
38-
### [1.1.4](https://github.com/endojs/endo/compare/@endo/[email protected]...@endo/[email protected]) (2024-08-01)
39-
40-
**Note:** Version bump only for package @endo/skel
41-
42-
43-
44-
45-
46-
### [1.1.3](https://github.com/endojs/endo/compare/@endo/[email protected]...@endo/[email protected]) (2024-07-30)
47-
48-
**Note:** Version bump only for package @endo/skel
49-
50-
51-
52-
53-
54-
### [1.1.2](https://github.com/endojs/endo/compare/@endo/[email protected]...@endo/[email protected]) (2024-05-07)
55-
56-
**Note:** Version bump only for package @endo/skel
57-
58-
59-
60-
61-
62-
### [1.1.1](https://github.com/endojs/endo/compare/@endo/[email protected]...@endo/[email protected]) (2024-04-04)
63-
64-
**Note:** Version bump only for package @endo/skel
65-
66-
67-
68-
69-
70-
## [1.1.0](https://github.com/endojs/endo/compare/@endo/[email protected]...@endo/[email protected]) (2024-03-20)
71-
72-
73-
### Features
74-
75-
* **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))
76-
77-
78-
79-
### [1.0.4](https://github.com/endojs/endo/compare/@endo/[email protected]...@endo/[email protected]) (2024-02-23)
80-
81-
**Note:** Version bump only for package @endo/skel
82-
83-
84-
85-
86-
87-
### [1.0.3](https://github.com/endojs/endo/compare/@endo/[email protected]...@endo/[email protected]) (2024-02-15)
88-
89-
90-
### Bug Fixes
91-
92-
* Add repository directory to all package descriptors ([e5f36e7](https://github.com/endojs/endo/commit/e5f36e7a321c13ee25e74eb74d2a5f3d7517119c))
93-
94-
95-
96-
### [1.0.2](https://github.com/endojs/endo/compare/@endo/[email protected]...@endo/[email protected]) (2024-01-18)
97-
98-
**Note:** Version bump only for package @endo/skel
99-
100-
101-
102-
103-
104-
### [1.0.1](https://github.com/endojs/endo/compare/@endo/[email protected]...@endo/[email protected]) (2023-12-20)
105-
106-
**Note:** Version bump only for package @endo/skel
107-
108-
109-
110-
111-
112-
## [1.0.0](https://github.com/endojs/endo/compare/@endo/[email protected]...@endo/[email protected]) (2023-12-12)
113-
114-
115-
### Bug Fixes
116-
117-
* Adjust type generation in release process and CI ([9465be3](https://github.com/endojs/endo/commit/9465be369e53167815ca444f6293a8e9eb48501d))
118-
119-
120-
121-
### [0.1.3](https://github.com/endojs/endo/compare/@endo/[email protected]...@endo/[email protected]) (2023-09-12)
122-
123-
**Note:** Version bump only for package @endo/skel
124-
125-
126-
127-
128-
129-
### 0.1.2 (2023-08-07)
130-
131-
132-
### Bug Fixes
133-
134-
* Fix scaffold and transforms yarn pack ([42439e7](https://github.com/endojs/endo/commit/42439e7d452e839b9856eac0e852766c237219d0))
135-
136-
137-
138-
### 0.1.1 (2023-08-07)
139-
140-
141-
### Bug Fixes
142-
143-
* Fix scaffold and transforms yarn pack ([42439e7](https://github.com/endojs/endo/commit/42439e7d452e839b9856eac0e852766c237219d0))

packages/no-trapping-shim/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './src/no-trapping-pony.js';

packages/no-trapping-shim/package.json

+2-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@endo/no-trapping-shim",
33
"version": "0.1.0",
44
"private": true,
5-
"description": null,
5+
"description": "shim and ponyfill for no-trapping integrity level",
66
"keywords": [],
77
"author": "Endo contributors",
88
"license": "Apache-2.0",
@@ -20,6 +20,7 @@
2020
"module": "./index.js",
2121
"exports": {
2222
".": "./index.js",
23+
"./shim.js": "./shim.js",
2324
"./package.json": "./package.json"
2425
},
2526
"scripts": {
@@ -35,10 +36,7 @@
3536
"test:c8": "c8 $C8_OPTIONS ava --config=ava-nesm.config.js",
3637
"test:xs": "exit 0"
3738
},
38-
"dependencies": {},
3939
"devDependencies": {
40-
"@endo/lockdown": "workspace:^",
41-
"@endo/ses-ava": "workspace:^",
4240
"ava": "^6.1.3",
4341
"c8": "^7.14.0",
4442
"tsd": "^0.31.2",

packages/no-trapping-shim/shim.js

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/* global globalThis */
2+
import { ReflectPlus, ObjectPlus, ProxyPlus } from './src/no-trapping-pony.js';
3+
4+
globalThis.Reflect = ReflectPlus;
5+
6+
globalThis.Object = ObjectPlus;
7+
// eslint-disable-next-line no-extend-native
8+
Object.prototype.constructor = ObjectPlus;
9+
10+
globalThis.Proxy = ProxyPlus;

0 commit comments

Comments
 (0)