@endo/lockdown 1.0.17 → 1.0.19
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/README.md +15 -0
- package/package.json +7 -7
package/README.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# `@endo/lockdown`
|
|
2
|
+
|
|
3
|
+
We often need to upgrade a JavaScript environment to HardenedJS as a side
|
|
4
|
+
effect of importing a module, so that later modules can rely on the hardened
|
|
5
|
+
environment.
|
|
6
|
+
The `@endo/lockdown` package simply ensures that SES has both initialized
|
|
7
|
+
and locked down the environment.
|
|
8
|
+
|
|
9
|
+
```js
|
|
10
|
+
import '@endo/lockdown'
|
|
11
|
+
import 'hardened-modules...';
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
The HardenedJS environment is a subset of the Endo environment.
|
|
15
|
+
Use [`@endo/init`](../init) for a more comprehensive upgrade.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@endo/lockdown",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.19",
|
|
4
4
|
"description": "Wrappers for hardening JavaScript for Endo",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "pre.js",
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
"test:xs": "exit 0",
|
|
19
19
|
"lint-fix": "eslint --fix '**/*.js'",
|
|
20
20
|
"lint": "eslint '**/*.js'",
|
|
21
|
-
"postpack": "git clean -fX
|
|
21
|
+
"postpack": "git clean -fX -e node_modules/"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"ses": "^
|
|
24
|
+
"ses": "^2.0.0"
|
|
25
25
|
},
|
|
26
26
|
"files": [
|
|
27
27
|
"./*.d.ts",
|
|
@@ -55,11 +55,11 @@
|
|
|
55
55
|
"plugin:@endo/internal"
|
|
56
56
|
]
|
|
57
57
|
},
|
|
58
|
-
"eslintIgnore": [
|
|
59
|
-
"bundle-*.js"
|
|
60
|
-
],
|
|
61
58
|
"publishConfig": {
|
|
62
59
|
"access": "public"
|
|
63
60
|
},
|
|
64
|
-
"
|
|
61
|
+
"devDependencies": {
|
|
62
|
+
"eslint": "catalog:dev"
|
|
63
|
+
},
|
|
64
|
+
"gitHead": "e74ed050e9d1122d692b00ee14971299c6afbf30"
|
|
65
65
|
}
|