@endo/lockdown 0.1.31 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/commit-debug.js +1 -1
- package/package.json +3 -3
- package/post.js +2 -2
package/commit-debug.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
// genuinely malicious code.
|
|
7
7
|
|
|
8
8
|
// See
|
|
9
|
-
// https://github.com/endojs/endo/blob/master/packages/ses/lockdown
|
|
9
|
+
// https://github.com/endojs/endo/blob/master/packages/ses/docs/lockdown.md
|
|
10
10
|
// for more explanation of these lockdown options.
|
|
11
11
|
|
|
12
12
|
export * from './pre.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@endo/lockdown",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Wrappers for hardening JavaScript for Endo",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "pre.js",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"ava": "^5.1.1"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"ses": "^0.
|
|
19
|
+
"ses": "^1.0.0"
|
|
20
20
|
},
|
|
21
21
|
"files": [
|
|
22
22
|
"LICENSE*",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"publishConfig": {
|
|
52
52
|
"access": "public"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "6aa22009bf8128575c446aebceb0f9a01459d165"
|
|
55
55
|
}
|
package/post.js
CHANGED
|
@@ -6,8 +6,8 @@ export default () => {
|
|
|
6
6
|
// this assignment is not rejected, even if it does nothing.
|
|
7
7
|
Error.stackTraceLimit = Infinity;
|
|
8
8
|
|
|
9
|
-
harden(TextEncoder);
|
|
10
|
-
harden(TextDecoder);
|
|
9
|
+
harden(globalThis.TextEncoder); // Absent in eshost
|
|
10
|
+
harden(globalThis.TextDecoder); // Absent in eshost
|
|
11
11
|
harden(globalThis.URL); // Absent only on XSnap
|
|
12
12
|
harden(globalThis.Base64); // Present only on XSnap
|
|
13
13
|
};
|