One option would be to include some hash value in the URL to pin the code file, e.g
import ... from 'https://...##<...sha...>';
Then a typo would just result in a resolution error.
import ... from 'https://...##<...sha...>';
Then a typo would just result in a resolution error.
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.