Skip to content

Commit 12c0968

Browse files
committed
deps: the toolkit's 2.0.0 round, and the build page plays from its own pack (#149)
Player 2.0.0, h5p-author 1.4.0, h5p-mcp-app 0.3.0 and h5p-runtime 1.0.3. Player 2.0 plays every package untrusted unless the page sets trusted, its libraries from the pack: the build page's two players now get this page's own copy, so nothing is fetched from jsDelivr. The lockfile gets back the libc lines Dependabot's last two lockfiles dropped.
1 parent 6302acc commit 12c0968

3 files changed

Lines changed: 58 additions & 60 deletions

File tree

‎package.json‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@
2828
"@codemirror/state": "6.7.6",
2929
"@codemirror/view": "6.44.2",
3030
"@lezer/highlight": "1.2.5",
31-
"@missing-elements/h5p-author": "1.3.0",
31+
"@missing-elements/h5p-author": "1.4.0",
3232
"@missing-elements/h5p-libraries": "1.1.2",
33-
"@missing-elements/h5p-mcp-app": "0.2.2",
34-
"@missing-elements/h5p-offline-player": "1.7.3",
35-
"@missing-elements/h5p-runtime": "1.0.2",
33+
"@missing-elements/h5p-mcp-app": "0.3.0",
34+
"@missing-elements/h5p-offline-player": "2.0.0",
35+
"@missing-elements/h5p-runtime": "1.0.3",
3636
"@missing-elements/pdfjs-viewer": "4.6.1",
3737
"@zip.js/zip.js": "2.25.1"
3838
}

‎pnpm-lock.yaml‎

Lines changed: 50 additions & 56 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/h5p/build/build-page.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import '@missing-elements/h5p-offline-player'
22
import { buildPackage, openPack, SourceError } from '@missing-elements/h5p-author/browser'
33
import { pack as installPack } from '@missing-elements/h5p-libraries/install'
4+
import { pack } from '@missing-elements/h5p-libraries'
45
import { runtime } from '@missing-elements/h5p-runtime'
56
import { baseName, compactSource, forTheChat, fragmentFromSource, kindOf, linksSource, matchFiles, namedFiles, packageName, parseSource, sized, sourceFromFragment, typesNamed, type Problem, type TypeFile } from './build-source'
67
import type { SourceEditor } from './editor'
@@ -71,6 +72,9 @@ const sampleSourceResult = $('sample-source-result')
7172

7273
player.runtime = runtime
7374
sample.runtime = runtime
75+
// Untrusted, as every package plays, with its libraries from this page's own copy of the pack.
76+
player.pack = pack
77+
sample.pack = pack
7478

7579
/**
7680
* The sample a visitor with no source is shown, and its source: `sample.json` beside this file,

0 commit comments

Comments
 (0)