MCPcopy Index your code
hub / github.com/pyscript/pyscript / checkLoadingScriptsFromLatest

Function checkLoadingScriptsFromLatest

core/src/plugins/deprecations-manager.js:21–27  ·  view source on GitHub ↗

* Check if src being loaded from pyscript.net/latest and display a notification if true * * @param {string} src

(src)

Source from the content-addressed store, hash-verified

19 * * @param {string} src
20 */
21function checkLoadingScriptsFromLatest(src) {
22 if (/\/pyscript\.net\/latest/.test(src)) {
23 notify(
24 "Loading scripts from latest is deprecated and will be removed soon. Please use a specific version instead.",
25 );
26 }
27}

Callers 1

checkDeprecationsFunction · 0.85

Calls 1

notifyFunction · 0.90

Tested by

no test coverage detected