MCPcopy Create free account
hub / github.com/Sandpack/nodebox-runtime / getPackagePragma

Method getPackagePragma

tests/setup/MockCdn.ts:70–72  ·  view source on GitHub ↗
(pkgName: string, packageVersion: string)

Source from the content-addressed store, hash-verified

68 }
69
70 private getPackagePragma(pkgName: string, packageVersion: string): string {
71 return `${pkgName}@${packageVersion}`;
72 }
73
74 get url(): string {
75 invariant(this._url, 'Failed to access "url" on MockCdn: the server is not running');

Callers 1

moduleQueryMiddlewareMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected