File tree Expand file tree Collapse file tree 7 files changed +15
-10
lines changed
Expand file tree Collapse file tree 7 files changed +15
-10
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @webui/deno-webui" ,
33 "version" : " 2.5.9" ,
4- "exports" : " ./mod.ts"
4+ "exports" : " ./mod.ts" ,
5+ "imports" : {
6+ "@std/fs" : " jsr:@std/fs@^1.0.19" ,
7+ "@std/path" : " jsr:@std/path@^1.1.2" ,
8+ "@zip-js/zip-js" : " jsr:@zip-js/zip-js@^2.8.7"
9+ }
510}
Original file line number Diff line number Diff line change 55// import { WebUI } from "../../mod.ts";
66
77// To import from online package registry (Production)
8- import { WebUI } from "jsr: @webui/deno-webui@2.5.9 " ; // import {WebUI} from "https://deno.land/x/webui@2.5.9/mod.ts";
8+ import { WebUI } from "@webui/deno-webui" ; // import {WebUI} from "https://deno.land/x/webui@2.5.9/mod.ts";
99
1010// Return HTTP header + file raw binary content
1111const getFile = async (
Original file line number Diff line number Diff line change 55// import { WebUI } from "../../mod.ts";
66
77// To import from online package registry (Production)
8- import { WebUI } from "jsr: @webui/deno-webui@2.5.9 " ; // import {WebUI} from "https://deno.land/x/webui@2.5.9/mod.ts";
8+ import { WebUI } from "@webui/deno-webui" ; // import {WebUI} from "https://deno.land/x/webui@2.5.9/mod.ts";
99
1010function allEvents ( e : WebUI . Event ) {
1111 /*
Original file line number Diff line number Diff line change 55// import { WebUI } from "../../mod.ts";
66
77// To import from online package registry (Production)
8- import { WebUI } from "jsr: @webui/deno-webui@2.5.9 " ; // import {WebUI} from "https://deno.land/x/webui@2.5.9/mod.ts";
8+ import { WebUI } from "@webui/deno-webui" ; // import {WebUI} from "https://deno.land/x/webui@2.5.9/mod.ts";
99
1010const myHtml = `<!DOCTYPE html>
1111<html>
Original file line number Diff line number Diff line change 55// import { WebUI } from "../../mod.ts";
66
77// To import from online package registry (Production)
8- import { WebUI } from "jsr: @webui/deno-webui@2.5.9 " ; // import {WebUI} from "https://deno.land/x/webui@2.5.9/mod.ts";
8+ import { WebUI } from "@webui/deno-webui" ; // import {WebUI} from "https://deno.land/x/webui@2.5.9/mod.ts";
99
1010const myHtml = `<!DOCTYPE html>
1111<html>
Original file line number Diff line number Diff line change 11// Deno WebUI
22// Utilities
3- import { dirname , join } from "jsr: @std/path@1.0.8 " ;
4- import { exists } from "jsr: @std/fs@0.229.3/exists " ;
5- import { BlobReader , BlobWriter , ZipReader } from "jsr: @zip-js/zip-js@2.7.60 " ;
3+ import { dirname , join } from "@std/path" ;
4+ import { exists } from "@std/fs" ;
5+ import { BlobReader , BlobWriter , ZipReader } from "@zip-js/zip-js" ;
66
77// The WebUI core version to download (Consider using this if not using nightly)
88export const WebUICoreVersion = "2.5.0-beta.3" ;
@@ -263,7 +263,7 @@ export async function ensureWebUiLib(baseLibName: string): Promise<string> {
263263 * @param {string } value
264264 * @returns a char[].
265265 */
266- export function toCString ( value : string ) : Uint8Array {
266+ export function toCString ( value : string ) : Uint8Array < ArrayBuffer > {
267267 return new TextEncoder ( ) . encode ( value + "\0" ) ;
268268}
269269
Original file line number Diff line number Diff line change @@ -610,7 +610,7 @@ export class WebUI {
610610 * @param functionName - The name of the function to send data to.
611611 * @param raw - The raw data to send.
612612 */
613- sendRaw ( functionName : string , raw : Uint8Array ) : void {
613+ sendRaw ( functionName : string , raw : Uint8Array < ArrayBuffer > ) : void {
614614 this . #lib. symbols . webui_send_raw (
615615 BigInt ( this . #window) ,
616616 toCString ( functionName ) ,
You can’t perform that action at this time.
0 commit comments