refactor: move to ci and update deps
This commit is contained in:
parent
9401b0420c
commit
0030db4237
|
@ -0,0 +1,13 @@
|
|||
name: Build/Publish
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- develop
|
||||
- develop-*
|
||||
|
||||
jobs:
|
||||
main:
|
||||
uses: lumeweb/github-node-deploy-workflow/.github/workflows/main.yml@master
|
||||
secrets: inherit
|
|
@ -1,45 +0,0 @@
|
|||
/// <reference types="node" />
|
||||
import type arg from "arg";
|
||||
declare class Config {
|
||||
private module;
|
||||
private data;
|
||||
constructor(module: string);
|
||||
inject(options: object): void;
|
||||
load(): void;
|
||||
openDir(dir: string): void;
|
||||
open(file: string): void;
|
||||
save(file: string, data: object): void;
|
||||
set(key: string, value: any): void;
|
||||
has(key: string): any;
|
||||
private normalize;
|
||||
get(key: string, fallback?: any): any;
|
||||
typeOf(
|
||||
key: string
|
||||
):
|
||||
| "string"
|
||||
| "number"
|
||||
| "bigint"
|
||||
| "boolean"
|
||||
| "symbol"
|
||||
| "undefined"
|
||||
| "object"
|
||||
| "function"
|
||||
| "null";
|
||||
str(key: string, fallback?: any): any;
|
||||
int(key: any, fallback?: any): any;
|
||||
uint(key: any, fallback?: any): any;
|
||||
float(key: any, fallback?: any): any;
|
||||
ufloat(key: any, fallback?: any): any;
|
||||
fixed(key: any, exp: any, fallback?: any): any;
|
||||
ufixed(key: any, exp: any, fallback?: any): any;
|
||||
bool(key: any, fallback?: any): any;
|
||||
buf(key: string, fallback?: any, enc?: BufferEncoding): any;
|
||||
array(key: string, fallback?: any): any;
|
||||
obj(key: string, fallback?: any): any;
|
||||
func(key: string, fallback?: any): any;
|
||||
mb(key: string, fallback?: any): any;
|
||||
parseArg(args: arg.Result<any>): void;
|
||||
parseEnv(env?: object): void;
|
||||
}
|
||||
export default Config;
|
||||
//# sourceMappingURL=config.d.ts.map
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],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,QAAQ,CAAC,EAAE,GAAG,GAAG,GAAG;IAC9C,MAAM,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,QAAQ,CAAC,EAAE,GAAG,GAAG,GAAG;IAC/C,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,QAAQ,CAAC,EAAE,GAAG,GAAG,GAAG;IACnC,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,cAAc,GAAG,GAAG;IAC3D,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,GAAG,GAAG,GAAG;IACvC,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,GAAG,GAAG,GAAG;IACrC,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,GAAG,GAAG,GAAG;IACtC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,GAAG,GAAG,GAAG;IACpC,QAAQ,CAAC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,IAAI;IACrC,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI;CAC7B;AACD,eAAe,MAAM,CAAC"}
|
|
@ -1,27 +0,0 @@
|
|||
import type { Ed25519Keypair } from "libskynet";
|
||||
import { OverwriteDataFn, ReadDataFn } from "./index.js";
|
||||
export interface IndependentFileSmallMetadata {
|
||||
largestHistoricSize: bigint;
|
||||
}
|
||||
export interface IndependentFileSmall {
|
||||
dataKey: Uint8Array;
|
||||
fileData: Uint8Array;
|
||||
inode: string;
|
||||
keypair: Ed25519Keypair;
|
||||
metadata: IndependentFileSmallMetadata;
|
||||
revision: bigint;
|
||||
seed: Uint8Array;
|
||||
skylink: string;
|
||||
viewKey: string;
|
||||
overwriteData: OverwriteDataFn;
|
||||
readData: ReadDataFn;
|
||||
}
|
||||
export interface SslData {
|
||||
cert?: Uint8Array;
|
||||
key?: Uint8Array;
|
||||
}
|
||||
export interface SavedSslData {
|
||||
cert?: IndependentFileSmall;
|
||||
key?: IndependentFileSmall;
|
||||
}
|
||||
//# sourceMappingURL=files.d.ts.map
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../src/files.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAO,MAAM,WAAW,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAEzD,MAAM,WAAW,4BAA4B;IAC3C,mBAAmB,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,UAAU,CAAC;IACpB,QAAQ,EAAE,UAAU,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,cAAc,CAAC;IACxB,QAAQ,EAAE,4BAA4B,CAAC;IACvC,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,UAAU,CAAC;IAEjB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAEhB,aAAa,EAAE,eAAe,CAAC;IAE/B,QAAQ,EAAE,UAAU,CAAC;CACtB;AAED,MAAM,WAAW,OAAO;IACtB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,GAAG,CAAC,EAAE,UAAU,CAAC;CAClB;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,CAAC,EAAE,oBAAoB,CAAC;IAC5B,GAAG,CAAC,EAAE,oBAAoB,CAAC;CAC5B"}
|
|
@ -1,4 +0,0 @@
|
|||
export * from "./rpc.js";
|
||||
export * from "./plugin.js";
|
||||
export * from "./swarm.js";
|
||||
//# sourceMappingURL=index.d.ts.map
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC"}
|
|
@ -1,43 +0,0 @@
|
|||
import type { EventEmitter2 } from "eventemitter2";
|
||||
import type { RPCMethod, RPCServer } from "./rpc.js";
|
||||
import type { Logger } from "pino";
|
||||
import type SSLManager from "./ssl.js";
|
||||
import type { HDKey } from "micro-ed25519-hdkey";
|
||||
import type Config from "@lumeweb/cfg";
|
||||
import type { ProtocolManager } from "./swarm.js";
|
||||
import type { Util } from "./util.js";
|
||||
import type { FastifyInstance } from "fastify";
|
||||
export type PluginFunction = (api: PluginAPI) => Promise<void>;
|
||||
export interface Plugin {
|
||||
name: string;
|
||||
plugin: PluginFunction;
|
||||
exports?: any;
|
||||
default?: Plugin;
|
||||
}
|
||||
export declare class PluginAPI extends EventEmitter2 {
|
||||
constructor({
|
||||
config,
|
||||
logger,
|
||||
server,
|
||||
swarm,
|
||||
}: {
|
||||
config: Config;
|
||||
logger: Logger;
|
||||
server: RPCServer;
|
||||
swarm: any;
|
||||
});
|
||||
get util(): Util;
|
||||
get swarm(): any;
|
||||
get config(): Config;
|
||||
get pluginConfig(): Config;
|
||||
get logger(): Logger;
|
||||
get rpcServer(): RPCServer;
|
||||
get seed(): Uint8Array;
|
||||
get identity(): HDKey;
|
||||
get ssl(): SSLManager;
|
||||
get protocols(): ProtocolManager;
|
||||
get app(): FastifyInstance;
|
||||
loadPlugin(moduleName: string): (moduleName: string) => Promise<Plugin>;
|
||||
registerMethod(methodName: string, method: RPCMethod): void;
|
||||
}
|
||||
//# sourceMappingURL=plugin.d.ts.map
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrD,OAAO,KAAK,EAAE,MAAM,EAAE,MAA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,MAAM,GAAG,CAAC,UAAU,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC;IACvE,cAAc,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,GAAG,IAAI;CAC5D"}
|
|
@ -1,64 +0,0 @@
|
|||
/// <reference types="node" />
|
||||
/// <reference types="node" />
|
||||
import type EventEmitter from "events";
|
||||
import type NodeCache from "node-cache";
|
||||
import type DHTCache from "@lumeweb/dht-cache";
|
||||
export interface RPCRequest {
|
||||
module: string;
|
||||
method: string;
|
||||
data: any;
|
||||
}
|
||||
export interface ClientRPCRequest extends RPCRequest {
|
||||
bypassCache?: boolean;
|
||||
}
|
||||
export interface RPCResponse {
|
||||
updated?: number;
|
||||
data?: any | RPCResponse;
|
||||
error?: string;
|
||||
signature?: string;
|
||||
signedField?: string;
|
||||
}
|
||||
export interface RPCMethod {
|
||||
cacheable: boolean;
|
||||
handler: (req: any) => Promise<any>;
|
||||
}
|
||||
export interface RPCCacheData {
|
||||
[query: string]: RPCCacheItem | null;
|
||||
}
|
||||
export interface RPCCacheItem extends RPCResponse {
|
||||
value: RPCResponse;
|
||||
signature: string;
|
||||
}
|
||||
export interface RPCBroadcastRequest {
|
||||
request: RPCRequest;
|
||||
relays: string[];
|
||||
timeout: number;
|
||||
}
|
||||
export interface RPCBroadcastResponse extends RPCResponse {
|
||||
relays: {
|
||||
[relay: string]: RPCResponse;
|
||||
};
|
||||
}
|
||||
export declare class RPCServer extends EventEmitter {
|
||||
get cache(): RPCCache;
|
||||
registerMethod(
|
||||
moduleName: string,
|
||||
methodName: string,
|
||||
options: RPCMethod
|
||||
): void;
|
||||
getMethods(): string[];
|
||||
setup(stream: any): any;
|
||||
signData(data: any): string;
|
||||
static hashQuery(query: RPCRequest): string;
|
||||
handleRequest(request: RPCRequest): Promise<RPCResponse>;
|
||||
}
|
||||
export declare class RPCCache extends EventEmitter {
|
||||
get data(): NodeCache;
|
||||
get dhtCache(): DHTCache;
|
||||
constructor(server: RPCServer);
|
||||
signResponse(item: RPCCacheItem): any;
|
||||
verifyResponse(pubkey: Buffer, item: RPCCacheItem): boolean | Buffer;
|
||||
addItem(query: RPCRequest, response: RPCResponse): void;
|
||||
deleteItem(queryHash: string): boolean;
|
||||
}
|
||||
//# sourceMappingURL=rpc.d.ts.map
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"rpc.d.ts","sourceRoot":"","sources":["../src/rpc.ts"],"names":[],"mappings":";;AAAA,OAAO,KAAK,YAAY,MAAM,QAAQ,CAAC;AACvC,OAAO,KAAK,SAAS,MAAM,YAAY,CAAC;AACxC,OAAO,KAAK,QAAQ,MAAM,oBAAoB,CAAC;AAE/C,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,GAAG,CAAC;CACX;AAED,MAAM,WAAW,gBAAiB,SAAQ,UAAU;IAClD,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,WAAW;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,GAAG,GAAG,WAAW,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,SAAS;IACxB,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;CACrC;AAED,MAAM,WAAW,YAAY;IAC3B,CAAC,KAAK,EAAE,MAAM,GAAG,YAAY,GAAG,IAAI,CAAC;CACtC;AAED,MAAM,WAAW,YAAa,SAAQ,WAAW;IAC/C,KAAK,EAAE,WAAW,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,UAAU,CAAC;IACpB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,oBAAqB,SAAQ,WAAW;IACvD,MAAM,EAAE;QAAE,CAAC,KAAK,EAAE,MAAM,GAAG,WAAW,CAAA;KAAE,CAAC;CAC1C;AAED,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,YAAY;IACjD,IAAI,KAAK,IAAI,QAAQ,CAAC;IACtB,cAAc,CACZ,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,SAAS,GACjB,IAAI;IACA,UAAU,IAAI,MAAM,EAAE;IACtB,KAAK,CAAC,MAAM,EAAE,GAAG,GAAG,GAAG;IACvB,QAAQ,CAAC,IAAI,EAAE,GAAG,GAAG,MAAM;WACpB,SAAS,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM;IAC3C,aAAa,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,WAAW,CAAC;CAChE;AACD,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,YAAY;IAChD,IAAI,IAAI,IAAI,SAAS,CAAC;IACtB,IAAI,QAAQ,IAAI,QAAQ,CAAC;gBACb,MAAM,EAAE,SAAS;IACtB,YAAY,CAAC,IAAI,EAAE,YAAY,GAAG,GAAG;IACrC,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,GAAG,OAAO,GAAG,MAAM;IACpE,OAAO,CAAC,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,WAAW,GAAG,IAAI;IACvD,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO;CAC9C"}
|
|
@ -1,18 +0,0 @@
|
|||
/// <reference types="node" />
|
||||
/// <reference types="node" />
|
||||
import type tls from "tls";
|
||||
export type SSLManagerRenewHandler = (domain: string) => Promise<boolean>;
|
||||
export type SSLCert = string | Buffer | Array<string | Buffer>;
|
||||
declare class SSLManager {
|
||||
constructor(domain: string);
|
||||
get context(): tls.SecureContext;
|
||||
set privateKey(key: Buffer);
|
||||
set cert(cert: SSLCert);
|
||||
renew(): Promise<boolean>;
|
||||
get enabled(): boolean;
|
||||
get ready(): boolean;
|
||||
get renewHandler(): SSLManagerRenewHandler;
|
||||
set renewHandler(value: SSLManagerRenewHandler);
|
||||
}
|
||||
export default SSLManager;
|
||||
//# sourceMappingURL=ssl.d.ts.map
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"ssl.d.ts","sourceRoot":"","sources":["../src/ssl.ts"],"names":[],"mappings":";;AAAA,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAE3B,MAAM,MAAM,sBAAsB,GAAG,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;AAC1E,MAAM,MAAM,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;AAE/D,OAAO,OAAO,UAAU;gBACV,MAAM,EAAE,MAAM;IAE1B,IAAI,OAAO,IAAI,GAAG,CAAC,aAAa,CAAC;IAEjC,IAAI,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE;IAE5B,IAAI,IAAI,CAAC,IAAI,EAAE,OAAO,EAAE;IAExB,KAAK,IAAI,OAAO,CAAC,OAAO,CAAC;IAEzB,IAAI,OAAO,IAAI,OAAO,CAAC;IAEvB,IAAI,KAAK,IAAI,OAAO,CAAC;IAErB,IAAI,YAAY,IAAI,sBAAsB,CAAC;IAC3C,IAAI,YAAY,CAAC,KAAK,EAAE,sBAAsB,EAAE;CACjD;AAED,eAAe,UAAU,CAAC"}
|
|
@ -1,6 +0,0 @@
|
|||
export type ProtocolHandler = (peer: any, muxer: any) => void;
|
||||
export declare class ProtocolManager {
|
||||
constructor(swarm: any);
|
||||
register(name: string, handler: ProtocolHandler): boolean;
|
||||
}
|
||||
//# sourceMappingURL=swarm.d.ts.map
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"swarm.d.ts","sourceRoot":"","sources":["../src/swarm.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;AAE9D,MAAM,CAAC,OAAO,OAAO,eAAe;gBACtB,KAAK,EAAE,GAAG;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,eAAe,GAAG,OAAO;CAC1D"}
|
|
@ -1,13 +0,0 @@
|
|||
/// <reference types="node" />
|
||||
import type b4a from "b4a";
|
||||
import type c from "compact-encoding";
|
||||
export declare class Util {
|
||||
private _crypto;
|
||||
get crypto(): Crypto;
|
||||
get bufferEncoding(): typeof b4a;
|
||||
get binaryEncoding(): typeof c;
|
||||
}
|
||||
export declare class Crypto {
|
||||
createHash(data: string): Buffer;
|
||||
}
|
||||
//# sourceMappingURL=util.d.ts.map
|
26
package.json
26
package.json
|
@ -4,22 +4,18 @@
|
|||
"main": "dist",
|
||||
"type": "module",
|
||||
"devDependencies": {
|
||||
"@lumeweb/cfg": "git+https://git.lumeweb.com/LumeWeb/cfg.git",
|
||||
"@types/b4a": "^1.6.0",
|
||||
"@types/node": "^18.11.17",
|
||||
"c": "^1.1.1",
|
||||
"express": "^4.18.1",
|
||||
"fastify": "^4.15.0",
|
||||
"node-cache": "^5.1.2",
|
||||
"prettier": "^2.8.1",
|
||||
"typescript": "^4.9.4"
|
||||
"@lumeweb/node-library-preset": "^0.2.7",
|
||||
"ed25519-keygen": "^0.4.1",
|
||||
"eventemitter2": "^6.4.9",
|
||||
"fastify": "^4.19.2",
|
||||
"presetter": "*"
|
||||
},
|
||||
"readme": "ERROR: No README data found!",
|
||||
"_id": "@lumeweb/interface-relay@0.1.0",
|
||||
"scripts": {
|
||||
"prepare": "presetter bootstrap"
|
||||
},
|
||||
"dependencies": {
|
||||
"@lumeweb/dht-cache": "git+https://git.lumeweb.com/LumeWeb/dht-cache.git",
|
||||
"@types/eventemitter2": "^4.1.0",
|
||||
"arg": "^5.0.2",
|
||||
"eventemitter2": "^6.4.9",
|
||||
"micro-ed25519-hdkey": "^0.1.2",
|
||||
"pino": "^8.8.0"
|
||||
"@lumeweb/relay-cfg": "^0.1.8"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,8 +2,8 @@ import type { EventEmitter2 } from "eventemitter2";
|
|||
import type { RPCMethod, RPCServer } from "./rpc.js";
|
||||
import type { Logger } from "pino";
|
||||
import type SSLManager from "./ssl.js";
|
||||
import type { HDKey } from "micro-ed25519-hdkey";
|
||||
import type Config from "@lumeweb/cfg";
|
||||
import type { HDKey } from "ed25519-keygen/hdkey";
|
||||
import type { Config } from "@lumeweb/relay-cfg";
|
||||
import type { ProtocolManager } from "./swarm.js";
|
||||
import type { Util } from "./util.js";
|
||||
import type { FastifyInstance } from "fastify";
|
||||
|
|
|
@ -1,24 +0,0 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"declaration": true,
|
||||
"strict": true,
|
||||
"module": "esnext",
|
||||
"target": "esnext",
|
||||
"esModuleInterop": true,
|
||||
"sourceMap": false,
|
||||
"rootDir": "src",
|
||||
"outDir": "dist",
|
||||
"typeRoots": [
|
||||
"node_modules/@types"
|
||||
],
|
||||
"moduleResolution": "node",
|
||||
"declarationMap": true,
|
||||
"declarationDir": "dist",
|
||||
"emitDeclarationOnly": true,
|
||||
"allowJs": true,
|
||||
"noImplicitAny": false
|
||||
},
|
||||
"include": [
|
||||
"src"
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue