module-resolution-canary
v0.1.0
Published
Security research canary for server-directed module resolution
Maintainers
Readme
module resolution canary
Deliberately vulnerable test fixture for this trust chain:
Security research canary: this package intentionally demonstrates remote module selection. It is disabled unless explicitly enabled.
npm package -> server manifest -> server-selected module -> dynamic importNothing runs on package import. Live execution additionally requires:
RUN_REMOTE_MODULE_CANARY=1 node -e \
'import("./index.mjs").then(m => m.runRemoteModuleCanary()).then(console.log)'Deploy the contents of site/ under https://heyosj.com/canary/.
The hosted module deliberately presents a remote-data-to-Function signature,
but JSON-quotes the remote marker so it remains inert string data.
Run the offline test with npm test. It mocks network and import operations.
