@mathrunet/masamune 3.8.1 → 3.8.2
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 +13 -1
- package/dist/functions/test.js +26 -39
- package/dist/functions/test.js.map +1 -1
- package/package.json +8 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
|
-
## [3.8.
|
|
1
|
+
## [3.8.2](https://github.com/mathrunet/node_masamune/compare/v3.7.0...v3.8.2) (2025-11-22)
|
|
2
2
|
|
|
3
3
|
|
|
4
|
+
### chore
|
|
5
|
+
|
|
6
|
+
* Add Node.js 20 engine requirement to all package.json files ([1e60d25](https://github.com/mathrunet/node_masamune/commit/1e60d25b2c44e1efd398a6a1229d2ba3f46da1f5))
|
|
7
|
+
* Update @mathrunet/katana to version 3.9.1 ([d8e32a1](https://github.com/mathrunet/node_masamune/commit/d8e32a1f238ed3b29003bd83799fde57a054c063))
|
|
8
|
+
* Update Node.js engine to v22 and bump development dependencies across packages. ([d840a0f](https://github.com/mathrunet/node_masamune/commit/d840a0f503230f80edbdf01f9516841cff36798d))
|
|
9
|
+
* update TypeScript compilation target to es2022 in tsconfig files across packages ([99253dd](https://github.com/mathrunet/node_masamune/commit/99253dd84a09e1c6026b9a6b88b6fef1ca2f4d14))
|
|
10
|
+
|
|
4
11
|
### feat
|
|
5
12
|
|
|
6
13
|
* Add Lyria background music generation, Google Cloud Text-to-Speech integration, updated test configuration, and new development documentation. ([d234b83](https://github.com/mathrunet/node_masamune/commit/d234b83b0ab706bfa3c93f2f887755aa022baa48))
|
|
@@ -11,6 +18,11 @@
|
|
|
11
18
|
* Package separation. And monorepo management. ([2647952](https://github.com/mathrunet/node_masamune/commit/2647952ad48823ac0c3d578a366f4af0bf60bcc1))
|
|
12
19
|
* Update Masamune package versions to 3.8.0. ([318f89a](https://github.com/mathrunet/node_masamune/commit/318f89a7427dfa71149026207eae19c4ff845edc))
|
|
13
20
|
|
|
21
|
+
### fix
|
|
22
|
+
|
|
23
|
+
* Move `@types/node-fetch` from devDependencies to dependencies. ([d5bc8be](https://github.com/mathrunet/node_masamune/commit/d5bc8be021d25469d9fb58d6b73f8471883969c8))
|
|
24
|
+
* Update dependency versions for `@mathrunet/katana` ([d4a9aea](https://github.com/mathrunet/node_masamune/commit/d4a9aeadb6541d808618098c5a4b2eaf72bf7d50))
|
|
25
|
+
|
|
14
26
|
|
|
15
27
|
|
|
16
28
|
# [3.7.0](https://github.com/mathrunet/node_masamune/compare/v3.6.0...v3.7.0) (2025-11-20)
|
package/dist/functions/test.js
CHANGED
|
@@ -32,15 +32,6 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
32
32
|
return result;
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
36
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
37
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
38
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
39
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
40
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
41
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
42
|
-
});
|
|
43
|
-
};
|
|
44
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45
36
|
const functions = __importStar(require("firebase-functions/v2"));
|
|
46
37
|
const katana_1 = require("@mathrunet/katana");
|
|
@@ -49,36 +40,32 @@ const katana_1 = require("@mathrunet/katana");
|
|
|
49
40
|
*
|
|
50
41
|
* テストを行うためのエンドポイントです。
|
|
51
42
|
*/
|
|
52
|
-
module.exports = (regions, options, data) => {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
const path = query.data.path;
|
|
68
|
-
if (!path) {
|
|
69
|
-
return {};
|
|
70
|
-
}
|
|
71
|
-
const firestoreDatabaseIds = (_a = options.firestoreDatabaseIds) !== null && _a !== void 0 ? _a : [""];
|
|
72
|
-
for (const databaseId of firestoreDatabaseIds) {
|
|
73
|
-
const firestoreInstance = (0, katana_1.firestoreLoader)(databaseId);
|
|
74
|
-
const doc = yield firestoreInstance.doc(path).get();
|
|
75
|
-
return Object.assign({}, doc.data());
|
|
76
|
-
}
|
|
43
|
+
module.exports = (regions, options, data) => functions.https.onCall({
|
|
44
|
+
region: options.region ?? regions,
|
|
45
|
+
timeoutSeconds: options.timeoutSeconds,
|
|
46
|
+
memory: options.memory,
|
|
47
|
+
minInstances: options.minInstances,
|
|
48
|
+
concurrency: options.concurrency,
|
|
49
|
+
maxInstances: options.maxInstances,
|
|
50
|
+
serviceAccount: options?.serviceAccount ?? undefined,
|
|
51
|
+
enforceAppCheck: options.enforceAppCheck ?? undefined,
|
|
52
|
+
consumeAppCheckToken: options.consumeAppCheckToken ?? undefined,
|
|
53
|
+
}, async (query) => {
|
|
54
|
+
try {
|
|
55
|
+
const path = query.data.path;
|
|
56
|
+
if (!path) {
|
|
57
|
+
return {};
|
|
77
58
|
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
59
|
+
const firestoreDatabaseIds = options.firestoreDatabaseIds ?? [""];
|
|
60
|
+
for (const databaseId of firestoreDatabaseIds) {
|
|
61
|
+
const firestoreInstance = (0, katana_1.firestoreLoader)(databaseId);
|
|
62
|
+
const doc = await firestoreInstance.doc(path).get();
|
|
63
|
+
return { ...doc.data() };
|
|
81
64
|
}
|
|
82
|
-
}
|
|
83
|
-
|
|
65
|
+
}
|
|
66
|
+
catch (err) {
|
|
67
|
+
console.error(err);
|
|
68
|
+
throw err;
|
|
69
|
+
}
|
|
70
|
+
});
|
|
84
71
|
//# sourceMappingURL=test.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test.js","sourceRoot":"","sources":["../../src/functions/test.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"test.js","sourceRoot":"","sources":["../../src/functions/test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iEAAmD;AACnD,8CAA0E;AAE1E;;;;GAIG;AACH,MAAM,CAAC,OAAO,GAAG,CACf,OAAiB,EACjB,OAA6B,EAC7B,IAA4B,EAC5B,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,MAAM,CACzB;IACE,MAAM,EAAE,OAAO,CAAC,MAAM,IAAI,OAAO;IACjC,cAAc,EAAE,OAAO,CAAC,cAAc;IACtC,MAAM,EAAE,OAAO,CAAC,MAAM;IACtB,YAAY,EAAE,OAAO,CAAC,YAAY;IAClC,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,YAAY,EAAE,OAAO,CAAC,YAAY;IAClC,cAAc,EAAE,OAAO,EAAE,cAAc,IAAI,SAAS;IACpD,eAAe,EAAE,OAAO,CAAC,eAAe,IAAI,SAAS;IACrD,oBAAoB,EAAE,OAAO,CAAC,oBAAoB,IAAI,SAAS;CAChE,EACD,KAAK,EAAE,KAAK,EAAE,EAAE;IACd,IAAI,CAAC;QACH,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC;QAC7B,IAAI,CAAC,IAAI,EAAE,CAAC;YACV,OAAO,EAAE,CAAC;QACZ,CAAC;QACD,MAAM,oBAAoB,GAAG,OAAO,CAAC,oBAAoB,IAAI,CAAC,EAAE,CAAC,CAAC;QAClE,KAAK,MAAM,UAAU,IAAI,oBAAoB,EAAE,CAAC;YAC9C,MAAM,iBAAiB,GAAG,IAAA,wBAAe,EAAC,UAAU,CAAC,CAAC;YACtD,MAAM,GAAG,GAAG,MAAM,iBAAiB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,CAAC;YACpD,OAAO,EAAE,GAAG,GAAG,CAAC,IAAI,EAAE,EAAE,CAAC;QAC3B,CAAC;IACH,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACnB,MAAM,GAAG,CAAC;IACZ,CAAC;AACH,CAAC,CACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mathrunet/masamune",
|
|
3
|
-
"version": "3.8.
|
|
3
|
+
"version": "3.8.2",
|
|
4
4
|
"description": "Manages packages for the server portion (NodeJS) of the Masamune framework.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -15,6 +15,9 @@
|
|
|
15
15
|
"major_update": "npm version major",
|
|
16
16
|
"patch_update": "npm version patch"
|
|
17
17
|
},
|
|
18
|
+
"engines": {
|
|
19
|
+
"node": "22"
|
|
20
|
+
},
|
|
18
21
|
"publishConfig": {
|
|
19
22
|
"access": "public"
|
|
20
23
|
},
|
|
@@ -36,14 +39,14 @@
|
|
|
36
39
|
},
|
|
37
40
|
"homepage": "https://github.com/mathrunet/node_masamune#readme",
|
|
38
41
|
"dependencies": {
|
|
39
|
-
"@mathrunet/katana": "^3.
|
|
42
|
+
"@mathrunet/katana": "^3.9.1",
|
|
40
43
|
"firebase-admin": "^13.1.0",
|
|
41
44
|
"firebase-functions": "^6.3.2",
|
|
42
|
-
"typescript": "^5.
|
|
45
|
+
"typescript": "^5.9.2"
|
|
43
46
|
},
|
|
44
47
|
"devDependencies": {
|
|
45
|
-
"@types/jest": "^
|
|
46
|
-
"jest": "^
|
|
48
|
+
"@types/jest": "^30.0.0",
|
|
49
|
+
"jest": "^30.1.3",
|
|
47
50
|
"ts-jest": "^29.1.2",
|
|
48
51
|
"firebase-functions-test": "^3.4.0",
|
|
49
52
|
"conventional-changelog-cli": "^5.0.0"
|