|
|
|
|
|
by ar-nelson
1216 days ago
|
|
This could be implemented as an import assertion[1]: import foo from 'http://example.com/foo' assert { sha256sum: '...' } This feature would even be useful in the web platform in general. Would also be nice to see an assertion for importing plain text files (not just JSON files) and assertions for per-module Deno permissions. [1]: https://github.com/tc39/proposal-import-assertions |
|
[1] https://en.m.wikipedia.org/wiki/Subresource_Integrity