@hazae41/turbine 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +19 -0
- package/README.md +14 -2
- package/out/libs/nullable/mod.d.ts +1 -0
- package/out/libs/nullable/mod.js +1 -0
- package/out/mod.d.ts +3 -0
- package/out/mod.js +25 -0
- package/out/mods/mod.d.ts +1 -0
- package/out/mods/mod.js +1 -0
- package/out/mods/turbine/mod.d.ts +1 -0
- package/out/mods/turbine/mod.js +1 -0
- package/out/mods/turbine/server/bin.d.ts +1 -0
- package/out/mods/turbine/server/bin.js +37 -0
- package/out/mods/turbine/server/mod.d.ts +29 -0
- package/out/mods/turbine/server/mod.js +222 -0
- package/package.json +44 -4
package/LICENSE.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# MIT
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
5
|
+
in the Software without restriction, including without limitation the rights
|
|
6
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
7
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
8
|
+
furnished to do so, subject to the following conditions:
|
|
9
|
+
|
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
|
11
|
+
copies or substantial portions of the Software.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
19
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Turbine
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[Bobine](https://github.com/hazae41/bobine) over HTTP and WebSocket
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
deno install --global @hazae41/turbine
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
[**📦 NPM**](https://www.npmjs.com/package/@hazae41/turbine)
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
turbine serve --data=./local --port=80 --uuid=7d07d60d-cb47-4b6f-ad1d-f2650610ce67
|
|
15
|
+
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type Nullable<T> = T | null | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/out/mod.d.ts
ADDED
package/out/mod.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
export * from "./mods/mod.js";
|
|
3
|
+
import process from "node:process";
|
|
4
|
+
import * as server from "./mods/turbine/server/bin.js";
|
|
5
|
+
export async function main(args) {
|
|
6
|
+
const subargs = new Array();
|
|
7
|
+
for (let i = 0; i < args.length; i++) {
|
|
8
|
+
const arg = args[i];
|
|
9
|
+
if (arg.startsWith("--")) {
|
|
10
|
+
subargs.push(arg);
|
|
11
|
+
continue;
|
|
12
|
+
}
|
|
13
|
+
if (arg === "serve") {
|
|
14
|
+
subargs.push(...args.slice(i + 1));
|
|
15
|
+
await server.main(subargs);
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
break;
|
|
19
|
+
}
|
|
20
|
+
console.log("serve [--uuid=<uuid>] [--data=<data folder as path>] [--port=<port>] [--dev]");
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
if (import.meta.main) {
|
|
24
|
+
await main(process.argv.slice(2));
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./turbine/mod.ts";
|
package/out/mods/mod.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./turbine/mod.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./server/mod.ts";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./server/mod.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function main(args: string[]): Promise<void>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/// <reference lib="deno.ns" />
|
|
2
|
+
import { Server } from "./mod.js";
|
|
3
|
+
import process from "node:process";
|
|
4
|
+
export async function main(args) {
|
|
5
|
+
const options = {};
|
|
6
|
+
for (let i = 0; i < args.length; i++) {
|
|
7
|
+
const arg = args[i];
|
|
8
|
+
if (arg.startsWith("--env=")) {
|
|
9
|
+
process.loadEnvFile(arg.slice("--env=".length));
|
|
10
|
+
continue;
|
|
11
|
+
}
|
|
12
|
+
if (arg.startsWith("--uuid=")) {
|
|
13
|
+
options.uuid = arg.slice("--uuid=".length);
|
|
14
|
+
continue;
|
|
15
|
+
}
|
|
16
|
+
if (arg.startsWith("--data=")) {
|
|
17
|
+
options.path = arg.slice("--data=".length);
|
|
18
|
+
continue;
|
|
19
|
+
}
|
|
20
|
+
if (arg.startsWith("--port=")) {
|
|
21
|
+
options.port = Number(arg.slice("--port=".length));
|
|
22
|
+
continue;
|
|
23
|
+
}
|
|
24
|
+
if (arg === "--dev") {
|
|
25
|
+
process.env.NODE_ENV = "development";
|
|
26
|
+
continue;
|
|
27
|
+
}
|
|
28
|
+
throw new Error(`Unknown argument: ${arg}`);
|
|
29
|
+
}
|
|
30
|
+
const { uuid = process.env.UUID || "98e31aaf-c518-430b-8863-eed26c44d91f", path = process.env.DATA || "./data", port = Number(process.env.PORT) || 8080 } = options;
|
|
31
|
+
const server = new Server(uuid, path);
|
|
32
|
+
await server.setup();
|
|
33
|
+
Deno.serve({ hostname: "0.0.0.0", port }, (request) => server.respond(request));
|
|
34
|
+
}
|
|
35
|
+
if (import.meta.main) {
|
|
36
|
+
await main(process.argv.slice(2));
|
|
37
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { RpcWorkerClient } from "@hazae41/bobine";
|
|
2
|
+
import { RpcErr, RpcOk, RpcRequestInit } from "@hazae41/jsonrpc";
|
|
3
|
+
import { Mutex } from "@hazae41/mutex";
|
|
4
|
+
/**
|
|
5
|
+
* Translates HTTP or WebSocket into JSON-RPC
|
|
6
|
+
*/
|
|
7
|
+
export declare class Server {
|
|
8
|
+
#private;
|
|
9
|
+
readonly uuid: string;
|
|
10
|
+
readonly path: string;
|
|
11
|
+
readonly subserver: RpcServer;
|
|
12
|
+
constructor(uuid: string, path: string);
|
|
13
|
+
setup(): Promise<void>;
|
|
14
|
+
respond(request: Request): Promise<any>;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Converts hex to raw and checks efforts
|
|
18
|
+
*/
|
|
19
|
+
export declare class RpcServer {
|
|
20
|
+
#private;
|
|
21
|
+
readonly uuid: string;
|
|
22
|
+
readonly path: string;
|
|
23
|
+
readonly worker: RpcWorkerClient;
|
|
24
|
+
readonly seens: Set<string>;
|
|
25
|
+
readonly mutex: Mutex<undefined>;
|
|
26
|
+
constructor(uuid: string, path: string);
|
|
27
|
+
setup(): Promise<void>;
|
|
28
|
+
respond(request: RpcRequestInit): Promise<RpcErr | RpcOk<string>>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) {
|
|
2
|
+
if (value !== null && value !== void 0) {
|
|
3
|
+
if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
|
|
4
|
+
var dispose, inner;
|
|
5
|
+
if (async) {
|
|
6
|
+
if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
|
|
7
|
+
dispose = value[Symbol.asyncDispose];
|
|
8
|
+
}
|
|
9
|
+
if (dispose === void 0) {
|
|
10
|
+
if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
|
|
11
|
+
dispose = value[Symbol.dispose];
|
|
12
|
+
if (async) inner = dispose;
|
|
13
|
+
}
|
|
14
|
+
if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
|
|
15
|
+
if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };
|
|
16
|
+
env.stack.push({ value: value, dispose: dispose, async: async });
|
|
17
|
+
}
|
|
18
|
+
else if (async) {
|
|
19
|
+
env.stack.push({ async: true });
|
|
20
|
+
}
|
|
21
|
+
return value;
|
|
22
|
+
};
|
|
23
|
+
var __disposeResources = (this && this.__disposeResources) || (function (SuppressedError) {
|
|
24
|
+
return function (env) {
|
|
25
|
+
function fail(e) {
|
|
26
|
+
env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
|
|
27
|
+
env.hasError = true;
|
|
28
|
+
}
|
|
29
|
+
var r, s = 0;
|
|
30
|
+
function next() {
|
|
31
|
+
while (r = env.stack.pop()) {
|
|
32
|
+
try {
|
|
33
|
+
if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);
|
|
34
|
+
if (r.dispose) {
|
|
35
|
+
var result = r.dispose.call(r.value);
|
|
36
|
+
if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
|
|
37
|
+
}
|
|
38
|
+
else s |= 1;
|
|
39
|
+
}
|
|
40
|
+
catch (e) {
|
|
41
|
+
fail(e);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();
|
|
45
|
+
if (env.hasError) throw env.error;
|
|
46
|
+
}
|
|
47
|
+
return next();
|
|
48
|
+
};
|
|
49
|
+
})(typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
50
|
+
var e = new Error(message);
|
|
51
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
52
|
+
});
|
|
53
|
+
import { RpcPaymentError, RpcWorkerClient } from "@hazae41/bobine";
|
|
54
|
+
import { RpcErr, RpcError, RpcInvalidParamsError, RpcMethodNotFoundError, RpcOk } from "@hazae41/jsonrpc";
|
|
55
|
+
import { Mutex } from "@hazae41/mutex";
|
|
56
|
+
/**
|
|
57
|
+
* Translates HTTP or WebSocket into JSON-RPC
|
|
58
|
+
*/
|
|
59
|
+
export class Server {
|
|
60
|
+
uuid;
|
|
61
|
+
path;
|
|
62
|
+
subserver;
|
|
63
|
+
constructor(uuid, path) {
|
|
64
|
+
this.uuid = uuid;
|
|
65
|
+
this.path = path;
|
|
66
|
+
this.subserver = new RpcServer(uuid, path);
|
|
67
|
+
}
|
|
68
|
+
async setup() {
|
|
69
|
+
await this.subserver.setup();
|
|
70
|
+
}
|
|
71
|
+
async respond(request) {
|
|
72
|
+
const response = await this.#route(request);
|
|
73
|
+
response.headers.set("Access-Control-Allow-Origin", "*");
|
|
74
|
+
response.headers.set("Access-Control-Allow-Methods", "*");
|
|
75
|
+
response.headers.set("Access-Control-Allow-Headers", "*");
|
|
76
|
+
return response;
|
|
77
|
+
}
|
|
78
|
+
async #route(request) {
|
|
79
|
+
if (request.headers.get("Upgrade") === "websocket")
|
|
80
|
+
return this.#upgrade(request);
|
|
81
|
+
if (request.method === "OPTIONS")
|
|
82
|
+
return Response.json(null, { status: 204 });
|
|
83
|
+
if (request.method === "POST")
|
|
84
|
+
return Response.json(await this.subserver.respond(await request.json()), { status: 200 });
|
|
85
|
+
return Response.json(null, { status: 405 });
|
|
86
|
+
}
|
|
87
|
+
#upgrade(request) {
|
|
88
|
+
const { socket, response } = Deno.upgradeWebSocket(request);
|
|
89
|
+
socket.addEventListener("message", async (event) => {
|
|
90
|
+
socket.send(JSON.stringify(await this.subserver.respond(JSON.parse(event.data))));
|
|
91
|
+
}, { passive: true });
|
|
92
|
+
return response;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Converts hex to raw and checks efforts
|
|
97
|
+
*/
|
|
98
|
+
export class RpcServer {
|
|
99
|
+
uuid;
|
|
100
|
+
path;
|
|
101
|
+
worker;
|
|
102
|
+
seens = new Set();
|
|
103
|
+
mutex = new Mutex(undefined);
|
|
104
|
+
constructor(uuid, path) {
|
|
105
|
+
this.uuid = uuid;
|
|
106
|
+
this.path = path;
|
|
107
|
+
this.worker = RpcWorkerClient.spawn(uuid, path);
|
|
108
|
+
}
|
|
109
|
+
async setup() {
|
|
110
|
+
await this.worker.setup();
|
|
111
|
+
}
|
|
112
|
+
async respond(request) {
|
|
113
|
+
try {
|
|
114
|
+
return new RpcOk(request.id, await this.#route(request));
|
|
115
|
+
}
|
|
116
|
+
catch (cause) {
|
|
117
|
+
return new RpcErr(request.id, RpcError.rewrap(cause));
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
async #route(request) {
|
|
121
|
+
if (request.method === "bob_create") {
|
|
122
|
+
const env_1 = { stack: [], error: void 0, hasError: false };
|
|
123
|
+
try {
|
|
124
|
+
const [codeAsHex, saltAsHex, effortAsHex] = request.params;
|
|
125
|
+
if (typeof codeAsHex !== "string")
|
|
126
|
+
throw new RpcInvalidParamsError();
|
|
127
|
+
const code = Uint8Array.fromHex(codeAsHex);
|
|
128
|
+
if (typeof saltAsHex !== "string")
|
|
129
|
+
throw new RpcInvalidParamsError();
|
|
130
|
+
const salt = Uint8Array.fromHex(saltAsHex);
|
|
131
|
+
if (typeof effortAsHex !== "string")
|
|
132
|
+
throw new RpcInvalidParamsError();
|
|
133
|
+
if (effortAsHex.length !== 64)
|
|
134
|
+
throw new RpcInvalidParamsError();
|
|
135
|
+
if (this.seens.has(effortAsHex))
|
|
136
|
+
throw new RpcInvalidParamsError();
|
|
137
|
+
const effort = Uint8Array.fromHex(effortAsHex);
|
|
138
|
+
const _ = __addDisposableResource(env_1, await this.mutex.lockOrWait(), false);
|
|
139
|
+
this.seens.add(effortAsHex);
|
|
140
|
+
const proven = new Uint8Array(await crypto.subtle.digest("SHA-256", effort));
|
|
141
|
+
const target = (2n ** 256n) / BigInt("0x" + proven.toHex());
|
|
142
|
+
if (target < (code.length + salt.length))
|
|
143
|
+
throw new RpcPaymentError();
|
|
144
|
+
return await this.worker.create(code, salt);
|
|
145
|
+
}
|
|
146
|
+
catch (e_1) {
|
|
147
|
+
env_1.error = e_1;
|
|
148
|
+
env_1.hasError = true;
|
|
149
|
+
}
|
|
150
|
+
finally {
|
|
151
|
+
__disposeResources(env_1);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
if (request.method === "bob_execute") {
|
|
155
|
+
const env_2 = { stack: [], error: void 0, hasError: false };
|
|
156
|
+
try {
|
|
157
|
+
const [module, method, paramsAsHex, effortAsHex] = request.params;
|
|
158
|
+
if (typeof module !== "string")
|
|
159
|
+
throw new RpcInvalidParamsError();
|
|
160
|
+
if (typeof method !== "string")
|
|
161
|
+
throw new RpcInvalidParamsError();
|
|
162
|
+
if (typeof paramsAsHex !== "string")
|
|
163
|
+
throw new RpcInvalidParamsError();
|
|
164
|
+
const params = Uint8Array.fromHex(paramsAsHex);
|
|
165
|
+
if (typeof effortAsHex !== "string")
|
|
166
|
+
throw new RpcInvalidParamsError();
|
|
167
|
+
if (effortAsHex.length !== 64)
|
|
168
|
+
throw new RpcInvalidParamsError();
|
|
169
|
+
if (this.seens.has(effortAsHex))
|
|
170
|
+
throw new RpcInvalidParamsError();
|
|
171
|
+
const effort = Uint8Array.fromHex(effortAsHex);
|
|
172
|
+
const _ = __addDisposableResource(env_2, await this.mutex.lockOrWait(), false);
|
|
173
|
+
this.seens.add(effortAsHex);
|
|
174
|
+
const proven = new Uint8Array(await crypto.subtle.digest("SHA-256", effort));
|
|
175
|
+
const target = (2n ** 256n) / BigInt("0x" + proven.toHex());
|
|
176
|
+
const result = await this.worker.execute(module, method, params, target);
|
|
177
|
+
return result.toHex();
|
|
178
|
+
}
|
|
179
|
+
catch (e_2) {
|
|
180
|
+
env_2.error = e_2;
|
|
181
|
+
env_2.hasError = true;
|
|
182
|
+
}
|
|
183
|
+
finally {
|
|
184
|
+
__disposeResources(env_2);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
if (request.method === "bob_simulate") {
|
|
188
|
+
const env_3 = { stack: [], error: void 0, hasError: false };
|
|
189
|
+
try {
|
|
190
|
+
const [module, method, paramsAsHex, effortAsHex] = request.params;
|
|
191
|
+
if (typeof module !== "string")
|
|
192
|
+
throw new RpcInvalidParamsError();
|
|
193
|
+
if (typeof method !== "string")
|
|
194
|
+
throw new RpcInvalidParamsError();
|
|
195
|
+
if (typeof paramsAsHex !== "string")
|
|
196
|
+
throw new RpcInvalidParamsError();
|
|
197
|
+
const params = Uint8Array.fromHex(paramsAsHex);
|
|
198
|
+
if (typeof effortAsHex !== "string")
|
|
199
|
+
throw new RpcInvalidParamsError();
|
|
200
|
+
if (effortAsHex.length !== 64)
|
|
201
|
+
throw new RpcInvalidParamsError();
|
|
202
|
+
if (this.seens.has(effortAsHex))
|
|
203
|
+
throw new RpcInvalidParamsError();
|
|
204
|
+
const effort = Uint8Array.fromHex(effortAsHex);
|
|
205
|
+
const _ = __addDisposableResource(env_3, await this.mutex.lockOrWait(), false);
|
|
206
|
+
this.seens.add(effortAsHex);
|
|
207
|
+
const proven = new Uint8Array(await crypto.subtle.digest("SHA-256", effort));
|
|
208
|
+
const target = (2n ** 256n) / BigInt("0x" + proven.toHex());
|
|
209
|
+
const result = await this.worker.simulate(module, method, params, target);
|
|
210
|
+
return result.toHex();
|
|
211
|
+
}
|
|
212
|
+
catch (e_3) {
|
|
213
|
+
env_3.error = e_3;
|
|
214
|
+
env_3.hasError = true;
|
|
215
|
+
}
|
|
216
|
+
finally {
|
|
217
|
+
__disposeResources(env_3);
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
throw new RpcMethodNotFoundError();
|
|
221
|
+
}
|
|
222
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,46 @@
|
|
|
1
1
|
{
|
|
2
|
+
"type": "module",
|
|
2
3
|
"name": "@hazae41/turbine",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"description": "Bobine over HTTP and WebSocket",
|
|
6
|
+
"repository": "github:hazae41/turbine",
|
|
7
|
+
"author": "hazae41",
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"scripts": {
|
|
10
|
+
"examine": "deno lint ./src && deno check ./src && deno test -R ./src",
|
|
11
|
+
"prepack": "rm -rf ./out && tsc && tscousin",
|
|
12
|
+
"produce": "deno run -A ./src/mod.ts serve --data=./local --uuid=7d07d60d-cb47-4b6f-ad1d-f2650610ce67",
|
|
13
|
+
"develop": "deno run -A ./src/mod.ts serve --data=./local --uuid=7d07d60d-cb47-4b6f-ad1d-f2650610ce67 --dev"
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"./out"
|
|
17
|
+
],
|
|
18
|
+
"exports": {
|
|
19
|
+
".": {
|
|
20
|
+
"types": "./out/mod.d.ts",
|
|
21
|
+
"import": "./out/mod.js"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"@hazae41/bobine": "^0.1.0",
|
|
26
|
+
"@hazae41/jsonrpc": "^1.2.1",
|
|
27
|
+
"@hazae41/mutex": "^3.0.1"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"@hazae41/phobos": "^2.0.16",
|
|
31
|
+
"@hazae41/tscousin": "^1.0.28",
|
|
32
|
+
"@types/node": "^26.6.6",
|
|
33
|
+
"typescript": "^7.0.2"
|
|
34
|
+
},
|
|
35
|
+
"keywords": [
|
|
36
|
+
"jsonrpc",
|
|
37
|
+
"webassembly",
|
|
38
|
+
"typescript",
|
|
39
|
+
"esmodules",
|
|
40
|
+
"tested",
|
|
41
|
+
"unit-tested"
|
|
42
|
+
],
|
|
43
|
+
"bin": {
|
|
44
|
+
"turbine": "./out/mod.js"
|
|
45
|
+
}
|
|
46
|
+
}
|