@endo/lockdown 0.1.32 → 1.0.1

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 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-options.md
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,9 +1,17 @@
1
1
  {
2
2
  "name": "@endo/lockdown",
3
- "version": "0.1.32",
3
+ "version": "1.0.1",
4
4
  "description": "Wrappers for hardening JavaScript for Endo",
5
5
  "type": "module",
6
6
  "main": "pre.js",
7
+ "exports": {
8
+ ".": "./pre.js",
9
+ "./pre.js": "./pre.js",
10
+ "./post.js": "./post.js",
11
+ "./commit.js": "./commit.js",
12
+ "./commit-debug.js": "./commit-debug.js",
13
+ "./package.json": "./package.json"
14
+ },
7
15
  "scripts": {
8
16
  "build": "exit 0",
9
17
  "test": "exit 0",
@@ -12,11 +20,8 @@
12
20
  "lint-fix": "eslint --fix '**/*.js'",
13
21
  "lint": "eslint '**/*.js'"
14
22
  },
15
- "devDependencies": {
16
- "ava": "^5.1.1"
17
- },
18
23
  "dependencies": {
19
- "ses": "^0.18.8"
24
+ "ses": "^1.0.1"
20
25
  },
21
26
  "files": [
22
27
  "LICENSE*",
@@ -51,5 +56,5 @@
51
56
  "publishConfig": {
52
57
  "access": "public"
53
58
  },
54
- "gitHead": "9c779d317c4b02133172dbe142c5b2d1727efc49"
59
+ "gitHead": "c02aec92c3caa417d6bdf3c4f555f0b2694d9f9e"
55
60
  }
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
  };