fix: update imports to be local
This commit is contained in:
parent
469f02b69f
commit
631fde4868
|
@ -5,7 +5,7 @@ import {
|
|||
loginPromise,
|
||||
logoutPromise,
|
||||
} from "./queries.js";
|
||||
import { Err } from "../types.js";
|
||||
import { Err } from "#types.js";
|
||||
|
||||
// There are 5 stages of auth.
|
||||
//
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { log, logErr } from "./log.js";
|
||||
import { DataFn, Err, ErrTuple } from "../types.js";
|
||||
import { bufToB64, encodeU64 } from "../util.js";
|
||||
import { DataFn, Err, ErrTuple } from "#types.js";
|
||||
import { bufToB64, encodeU64 } from "#util.js";
|
||||
|
||||
// queryResolve is the 'resolve' value of a promise that returns an ErrTuple.
|
||||
// It gets called when a query sends a 'response' message.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { newKernelQuery } from "../queries.js";
|
||||
import { Err } from "@lumeweb/libweb";
|
||||
import { Err } from "#types.js";
|
||||
|
||||
// kernelVersion will fetch the version number of the kernel. If successful,
|
||||
// the returned value will be an object containing a field 'version' with a
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import Emittery from "emittery";
|
||||
import { callModule, connectModule, log, logErr } from "../api.js";
|
||||
import { DataFn, ErrTuple } from "@lumeweb/libweb";
|
||||
import { DataFn, ErrTuple } from "#types.js";
|
||||
|
||||
export type callModuleBound = (method: string, data?: any) => Promise<ErrTuple>;
|
||||
export type connectModuleBound = (
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { objAsString } from "@lumeweb/libweb";
|
||||
import { objAsString } from "#util.js";
|
||||
|
||||
// logHelper is a helper function that runs the code for both log and logErr.
|
||||
// It takes a boolean indiciating whether the log should be an error, and then
|
||||
|
|
|
@ -9,7 +9,8 @@ import {
|
|||
handleResponseUpdate,
|
||||
} from "./queries.js";
|
||||
import { handlePresentKey } from "./key.js";
|
||||
import { DataFn, ErrFn, addContextToErr, objAsString } from "@lumeweb/libweb";
|
||||
import type { DataFn, ErrFn } from "#types.js";
|
||||
import { addContextToErr, objAsString } from "#util.js";
|
||||
|
||||
// handlerFn takes an ActiveQuery as input and has no return value. The return
|
||||
// is expected to come in the form of calling aq.accept or aq.reject.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { log, logErr } from "./log.js";
|
||||
import { DataFn } from "./messages.js";
|
||||
import { ErrTuple, objAsString } from "@lumeweb/libweb";
|
||||
import type { DataFn, ErrTuple } from "#types.js";
|
||||
import { objAsString } from "#util.js";
|
||||
|
||||
// queryResolve defines the function that gets called to resolve a query. It's
|
||||
// the 'resolve' field of a promise that returns a tuple containing some data
|
||||
|
|
Loading…
Reference in New Issue