metamigo-api: runs in docker now
* great typescript module import refactor * refactor metamigo-cli so it is the entrypoint for the db, api, and worker
This commit is contained in:
parent
b45e2e8c11
commit
696ba16cb7
78 changed files with 319 additions and 180 deletions
|
|
@ -5,6 +5,7 @@
|
|||
"author": "Abel Luck <abel@guardianproject.info>",
|
||||
"license": "AGPL-3.0-only",
|
||||
"private": false,
|
||||
"type": "module",
|
||||
"main": "build/main/index.js",
|
||||
"types": "types/main/index.d.ts",
|
||||
"files": [
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { SignaldGeneratedApi, JsonMessageEnvelopev1 } from "./generated";
|
||||
import { SignaldGeneratedApi, JsonMessageEnvelopev1 } from "./generated.js";
|
||||
|
||||
export class SignaldAPI extends SignaldGeneratedApi {
|
||||
constructor() {
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
Date: Mon Jan 03 2022 09:59:39 GMT+0000 (Coordinated Universal Time)
|
||||
Version: 0.15.0-40-56a6c9d2
|
||||
*/
|
||||
import { JSONTransport } from "./util";
|
||||
import { JSONTransport } from "./util.js";
|
||||
|
||||
export type JsonAccountListv0 = {
|
||||
accounts?: JsonAccountv0[];
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
export { SignaldAPI } from "./api";
|
||||
export { JSONTransport, EventTypes } from "./util";
|
||||
export { SignaldError, CaptchaRequiredException } from "./error";
|
||||
import "./util";
|
||||
export * from "./generated";
|
||||
export { SignaldAPI } from "./api.js";
|
||||
export { JSONTransport, EventTypes } from "./util.js";
|
||||
export { SignaldError, CaptchaRequiredException } from "./error.js";
|
||||
import "./util.js";
|
||||
export * from "./generated.js";
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import EventEmitter from "eventemitter3";
|
|||
import { v4 as uuid } from "uuid";
|
||||
import * as backoff from "backoff";
|
||||
import * as net from "net";
|
||||
import { throwOnError } from "./error";
|
||||
import { throwOnError } from "./error.js";
|
||||
|
||||
export interface EventTypes {
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue