Skip to content

Commit

Permalink
fix: Expressly forbid deep imports through captp, far, lockdown, mars…
Browse files Browse the repository at this point in the history
…hal (merge #1907)
  • Loading branch information
kriskowal authored Dec 20, 2023
2 parents 9a8ec30 + 8fb4e97 commit 3699cf1
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/captp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
"homepage": "https://github.com/endojs/endo#readme",
"license": "Apache-2.0",
"main": "src/index.js",
"exports": {
".": "./src/index.js",
"./package.json": "./package.json"
},
"module": "src/index.js",
"directories": {
"src": "src",
Expand Down
4 changes: 4 additions & 0 deletions packages/far/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
"description": "Helpers for distributed objects.",
"type": "module",
"main": "src/index.js",
"exports": {
".": "./src/index.js",
"./package.json": "./package.json"
},
"scripts": {
"test": "ava",
"test:c8": "c8 $C8_OPTIONS ava --config=ava-nesm.config.js",
Expand Down
8 changes: 8 additions & 0 deletions packages/lockdown/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@
"description": "Wrappers for hardening JavaScript for Endo",
"type": "module",
"main": "pre.js",
"exports": {
".": "./pre.js",
"./pre.js": "./pre.js",
"./post.js": "./post.js",
"./commit.js": "./commit.js",
"./commit-debug.js": "./commit-debug.js",
"./package.json": "./package.json"
},
"scripts": {
"build": "exit 0",
"test": "exit 0",
Expand Down
4 changes: 4 additions & 0 deletions packages/marshal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
"description": "marshal: encoding and deconding of Passable subgraphs",
"type": "module",
"main": "index.js",
"exports": {
".": "./index.js",
"./package.json": "./package.json"
},
"directories": {
"test": "test"
},
Expand Down

0 comments on commit 3699cf1

Please sign in to comment.