rockstar-strudel 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +4 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rockstar-strudel",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Run Rockstar lang programs via the Starship WASM engine, returning output as a JS array. Designed for use in the strudel.cc live-coding REPL.",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
package/src/index.js CHANGED
@@ -116,6 +116,10 @@ async function _loadRunner(dotnetUrl) {
116
116
  .withResourceLoader((type, name, defaultUri, integrity) => {
117
117
  const resourceUrl = new URL(defaultUri, dotnetUrl);
118
118
 
119
+ if (type === 'dotnetjs') {
120
+ return resourceUrl.href;
121
+ }
122
+
119
123
  if (resourceUrl.origin === window.location.origin) {
120
124
  return undefined;
121
125
  }