@mathrunet/masamune_cloudflare 3.1.0 → 3.1.4
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/CHANGELOG.md +1 -1
- package/dist/index.d.ts +13 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 mathru. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Manages packages on Cloudflare Workers for the server portion (NodeJS) of the Masamune framework.
|
|
5
|
+
*
|
|
6
|
+
* To use, import * as masamune from "@mathrunet/masamune";
|
|
7
|
+
*
|
|
8
|
+
* [mathru.net]: https://mathru.net
|
|
9
|
+
* [YouTube]: https://www.youtube.com/c/mathrunetchannel
|
|
10
|
+
*/
|
|
11
|
+
import * as hono from "hono";
|
|
1
12
|
import { WorkersBase } from "./lib/src/workers_base";
|
|
13
|
+
export * from "@mathrunet/masamune";
|
|
2
14
|
export * from "./lib/api";
|
|
3
15
|
export * from "./lib/src/workers_base";
|
|
4
16
|
export * from "./lib/src/workers_data";
|
|
@@ -18,4 +30,4 @@ export * from "./lib/src/request_process_workders_base";
|
|
|
18
30
|
*
|
|
19
31
|
* [Workers]で定義された要素を配列として渡します。渡されたメソッドがデプロイされます。
|
|
20
32
|
*/
|
|
21
|
-
export declare function deploy(
|
|
33
|
+
export declare function deploy(deployWorkders: WorkersBase[]): hono.Hono;
|
package/dist/index.js
CHANGED
|
@@ -48,6 +48,7 @@ exports.deploy = deploy;
|
|
|
48
48
|
* [YouTube]: https://www.youtube.com/c/mathrunetchannel
|
|
49
49
|
*/
|
|
50
50
|
const hono = __importStar(require("hono"));
|
|
51
|
+
__exportStar(require("@mathrunet/masamune"), exports);
|
|
51
52
|
__exportStar(require("./lib/api"), exports);
|
|
52
53
|
__exportStar(require("./lib/src/workers_base"), exports);
|
|
53
54
|
__exportStar(require("./lib/src/workers_data"), exports);
|
|
@@ -67,11 +68,11 @@ __exportStar(require("./lib/src/request_process_workders_base"), exports);
|
|
|
67
68
|
*
|
|
68
69
|
* [Workers]で定義された要素を配列として渡します。渡されたメソッドがデプロイされます。
|
|
69
70
|
*/
|
|
70
|
-
function deploy(
|
|
71
|
+
function deploy(deployWorkders) {
|
|
71
72
|
const app = new hono.Hono();
|
|
72
73
|
for (const worker of deployWorkders) {
|
|
73
74
|
app.route(worker.path, worker.build());
|
|
74
75
|
}
|
|
75
|
-
|
|
76
|
+
return app;
|
|
76
77
|
}
|
|
77
78
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCA,wBAMC;AAxCD;;;;;;;;;GASG;AACH,2CAA6B;AAG7B,sDAAoC;AACpC,4CAA0B;AAC1B,yDAAuC;AACvC,yDAAuC;AACvC,0EAAwD;AAExD;;;;;;;;;;;;;;GAcG;AACH,SAAgB,MAAM,CAAC,cAA6B;IAChD,MAAM,GAAG,GAAG,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC;IAC5B,KAAK,MAAM,MAAM,IAAI,cAAc,EAAE,CAAC;QAClC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC;IAC3C,CAAC;IACD,OAAO,GAAG,CAAC;AACf,CAAC"}
|
package/package.json
CHANGED