From 8e60a301a5efce47d9f154b2c4eb1a5bc90ed7c7 Mon Sep 17 00:00:00 2001 From: Jon Manning Date: Sat, 30 Nov 2024 18:43:31 +1100 Subject: [PATCH] Update exported runner to support Yarn Spinner 3 --- package-lock.json | 6 ++++++ package.json | 1 + src/playground.ts | 4 +++- src/runner.html.txt | 15 +++++++-------- 4 files changed, 17 insertions(+), 9 deletions(-) diff --git a/package-lock.json b/package-lock.json index d495ab5..8854cb7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,6 +10,7 @@ "license": "MIT", "dependencies": { "@popperjs/core": "^2.11.2", + "@protobufjs/base64": "^1.1.2", "bootstrap": "^5.1.3", "html-escaper": "^3.0.3", "jquery": "^3.6.0", @@ -150,6 +151,11 @@ "url": "https://opencollective.com/popperjs" } }, + "node_modules/@protobufjs/base64": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz", + "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==" + }, "node_modules/@types/body-parser": { "version": "1.19.5", "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.5.tgz", diff --git a/package.json b/package.json index 0d3997b..b5ce563 100644 --- a/package.json +++ b/package.json @@ -34,6 +34,7 @@ }, "dependencies": { "@popperjs/core": "^2.11.2", + "@protobufjs/base64": "^1.1.2", "bootstrap": "^5.1.3", "html-escaper": "^3.0.3", "jquery": "^3.6.0", diff --git a/src/playground.ts b/src/playground.ts index 04d8e64..dfe4ec4 100644 --- a/src/playground.ts +++ b/src/playground.ts @@ -14,6 +14,8 @@ import { escape } from "html-escaper"; import { initialContent } from "./starter-content"; +import * as base64 from "@protobufjs/base64"; + let editor: monaco.editor.IStandaloneCodeEditor; let dialogue: yarnspinner.IDialogue; @@ -364,7 +366,7 @@ export async function load(initialContentName: string = "default") { let injectedYarnProgramScript = ` diff --git a/src/runner.html.txt b/src/runner.html.txt index 13e045f..3731406 100644 --- a/src/runner.html.txt +++ b/src/runner.html.txt @@ -1,13 +1,12 @@ -Yarn JS Test
    VariableTypeValue
    \ No newline at end of file