@mathrunet/masamune 3.9.0 → 3.9.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 CHANGED
@@ -1,10 +1,19 @@
1
- # [3.9.0](https://github.com/mathrunet/node_masamune/compare/v3.7.0...v3.9.0) (2025-12-08)
1
+ ## [3.9.4](https://github.com/mathrunet/node_masamune/compare/v3.7.0...v3.9.4) (2025-12-08)
2
2
 
3
3
 
4
4
  ### chore
5
5
 
6
6
  * Add Node.js 20 engine requirement to all package.json files ([1e60d25](https://github.com/mathrunet/node_masamune/commit/1e60d25b2c44e1efd398a6a1229d2ba3f46da1f5))
7
7
  * Create test files. ([357849a](https://github.com/mathrunet/node_masamune/commit/357849a6244c8a6167a0188945cc40a7c282c703))
8
+ * Definition of interface. ([b7a94f1](https://github.com/mathrunet/node_masamune/commit/b7a94f1c925099f79914e9629417566a6a1df393))
9
+ * Definition of interface. ([5503b76](https://github.com/mathrunet/node_masamune/commit/5503b76e104eb92609c070f8c698e958d62c845e))
10
+ * Definition of interface. ([e7a3b5f](https://github.com/mathrunet/node_masamune/commit/e7a3b5f2b491d533d7432a68ead0494732064670))
11
+ * Definition of interface. ([ceebea8](https://github.com/mathrunet/node_masamune/commit/ceebea8e58b3a75b80f0bb4756f8ccbe0a57cb96))
12
+ * Definition of interface. ([a573eba](https://github.com/mathrunet/node_masamune/commit/a573ebafae1630f211057d4c1bfd19b651382936))
13
+ * Definition of interface. ([1868f42](https://github.com/mathrunet/node_masamune/commit/1868f42f4fe61e3d34413a5913ffdd7ba1ddb6f9))
14
+ * Definition of interface. ([7fe670b](https://github.com/mathrunet/node_masamune/commit/7fe670b4466999f45a260f4fa31f7430ad297203))
15
+ * Definition of interface. ([b305bbd](https://github.com/mathrunet/node_masamune/commit/b305bbdc965c9e0b06b7a13d5c5c39a24d2125cb))
16
+ * Deleted because a katana remained. ([845a8d9](https://github.com/mathrunet/node_masamune/commit/845a8d932962689919db12d8b67baf757bf49f59))
8
17
  * Package update. ([e00d076](https://github.com/mathrunet/node_masamune/commit/e00d0766cc62d7fa7073dac9cf7c2c80ddb0d89f))
9
18
  * Package update. ([8891b4e](https://github.com/mathrunet/node_masamune/commit/8891b4e1995dd931d3055d329fdd0513d3eae23a))
10
19
  * Package update. ([440dbe9](https://github.com/mathrunet/node_masamune/commit/440dbe90ed555f4d7e260a204ef4463e14e6623c))
@@ -40,6 +49,7 @@
40
49
  * Added AppStore, FirebaseAnalytics. ([43475b9](https://github.com/mathrunet/node_masamune/commit/43475b967224ad1921607eb769b5ab50095a2f49))
41
50
  * Added charts, storage, and PDF generation services to the marketing pipeline, improved video effects, and introduced bug list documentation. ([5ac0fd5](https://github.com/mathrunet/node_masamune/commit/5ac0fd5d6e0d1cfeaeae0b422e2d099f7c863bc4))
42
51
  * Create a market pipeline. ([7ce61fe](https://github.com/mathrunet/node_masamune/commit/7ce61feae9829bd7e8d969ef967f39f3f9ba0cfe))
52
+ * Delete the Katana package. ([9c0d166](https://github.com/mathrunet/node_masamune/commit/9c0d1660ca60cbc72c7b7f742138352470a6e54c))
43
53
  * Develop an AI analysis service ([0a3d8c7](https://github.com/mathrunet/node_masamune/commit/0a3d8c7cbff6e23b524ca78b8bcbc674b2045bcf))
44
54
  * Enhance detailed research to guide content creation, determine asset type, and add new documentation files. ([bf6125a](https://github.com/mathrunet/node_masamune/commit/bf6125a2e35f7b52f9a84468770901a98ef226be))
45
55
  * GitHub integration test implementation ([f1ffead](https://github.com/mathrunet/node_masamune/commit/f1ffead3e4f4f761fd7416789c050afe4d3e29a8))
@@ -60,6 +70,7 @@
60
70
  ### fix
61
71
 
62
72
  * Add methods such as load and save to ModelRefBase. ([cbf9eb2](https://github.com/mathrunet/node_masamune/commit/cbf9eb29d802990dcffe0c3322b3d41365b8a9a4))
73
+ * Add missing packages. ([389630b](https://github.com/mathrunet/node_masamune/commit/389630b2baec8ee634e105690343a7ff5edc30bb))
63
74
  * Add ModelFieldValue interface. ([0ff33aa](https://github.com/mathrunet/node_masamune/commit/0ff33aa6f1331569658a3fd629b1329eafef8c50))
64
75
  * Audio-related fixes ([9e2440b](https://github.com/mathrunet/node_masamune/commit/9e2440b9e78c15ecc9d495da5ed0f173250bf88c))
65
76
  * Bug fix. ([14d3ba4](https://github.com/mathrunet/node_masamune/commit/14d3ba4df05b723eb95768dc90a683f38fb8baa3))
@@ -74,6 +85,7 @@
74
85
  * Fixed missing export. ([f8948be](https://github.com/mathrunet/node_masamune/commit/f8948bee2d089c6df7a1b2e34bab844413f42e87))
75
86
  * I made it output. ([6d17645](https://github.com/mathrunet/node_masamune/commit/6d1764546c2c68b3af61148eac9ca1635e9fddf7))
76
87
  * implement AI-driven music prompt improvement for Lyria BGM generation failures and add marketing pipeline requirements. ([81cfd3b](https://github.com/mathrunet/node_masamune/commit/81cfd3bd114669360c0bef465f81f5b4fad8804d))
88
+ * Import bug fix. ([daefec0](https://github.com/mathrunet/node_masamune/commit/daefec055ad6bd1727d1df561cad25ce793f91c2))
77
89
  * Initialize Firebase Admin SDK if not already initialized when loading Firestore or Storage. ([678c1bd](https://github.com/mathrunet/node_masamune/commit/678c1bd1896ddd3fe0e541e9eeea29797b63e300))
78
90
  * Interface adjustment. ([82d64f3](https://github.com/mathrunet/node_masamune/commit/82d64f3420f98b57a3dc66300c70b8cd646c8e98))
79
91
  * Move `@types/node-fetch` from devDependencies to dependencies. ([d5bc8be](https://github.com/mathrunet/node_masamune/commit/d5bc8be021d25469d9fb58d6b73f8471883969c8))
@@ -34,7 +34,7 @@ var __importStar = (this && this.__importStar) || (function () {
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
36
  const functions = __importStar(require("firebase-functions/v2"));
37
- const katana_1 = require("@mathrunet/katana");
37
+ const firebase_loader_1 = require("../lib/src/firebase_loader");
38
38
  /**
39
39
  * Endpoints for testing.
40
40
  *
@@ -58,7 +58,7 @@ module.exports = (regions, options, data) => functions.https.onCall({
58
58
  }
59
59
  const firestoreDatabaseIds = options.firestoreDatabaseIds ?? [""];
60
60
  for (const databaseId of firestoreDatabaseIds) {
61
- const firestoreInstance = (0, katana_1.firestoreLoader)(databaseId);
61
+ const firestoreInstance = (0, firebase_loader_1.firestoreLoader)(databaseId);
62
62
  const doc = await firestoreInstance.doc(path).load();
63
63
  return { ...doc.data() };
64
64
  }
@@ -1 +1 @@
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,IAA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AoB,IAAI,CAAC,EAAE,CAAC,CAAC;QAClE,KAAK,MAAM,UAAU,IAAI,oBAAoB,EAAE,CAAC;YAC9C,MAAM,iBAAiB,GAAG,IAAA,iCAAe,EAAC,UAAU,CAAC,CAAC;YACtD,MAAM,GAAG,GAAG,MAAM,iBAAiB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,CAAC;YACrD,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"}
@@ -1,9 +1,10 @@
1
- import * as katana from "@mathrunet/katana";
1
+ import { HttpFunctionsOptions } from "./lib/src/functions_base";
2
+ import { FunctionsData } from "./lib/src/functions_data";
2
3
  /**
3
4
  * Define a list of applicable Functions for FirebaseFunctions.
4
5
  *
5
6
  * FirebaseFunctions用の適用可能なFunctionの一覧を定義します。
6
7
  */
7
8
  export declare const Functions: {
8
- readonly test: (options?: katana.HttpFunctionsOptions) => katana.FunctionsData;
9
+ readonly test: (options?: HttpFunctionsOptions) => FunctionsData;
9
10
  };
package/dist/functions.js CHANGED
@@ -1,46 +1,13 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
2
  Object.defineProperty(exports, "__esModule", { value: true });
36
3
  exports.Functions = void 0;
37
- const katana = __importStar(require("@mathrunet/katana"));
4
+ const functions_data_1 = require("./lib/src/functions_data");
38
5
  /**
39
6
  * Define a list of applicable Functions for FirebaseFunctions.
40
7
  *
41
8
  * FirebaseFunctions用の適用可能なFunctionの一覧を定義します。
42
9
  */
43
10
  exports.Functions = {
44
- test: (options = {}) => new katana.FunctionsData({ id: "test", func: require("./functions/test"), options: options }),
11
+ test: (options = {}) => new functions_data_1.FunctionsData({ id: "test", func: require("./functions/test"), options: options }),
45
12
  };
46
13
  //# sourceMappingURL=functions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"functions.js","sourceRoot":"","sources":["../src/functions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0DAA4C;AAE5C;;;;GAIG;AACU,QAAA,SAAS,GAAG;IAKvB,IAAI,EAAE,CAAC,UAAuC,EAAE,EAAE,EAAE,CAAC,IAAI,MAAM,CAAC,aAAa,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,CAAC,kBAAkB,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;CAC1I,CAAC"}
1
+ {"version":3,"file":"functions.js","sourceRoot":"","sources":["../src/functions.ts"],"names":[],"mappings":";;;AACA,6DAAyD;AAEzD;;;;GAIG;AACU,QAAA,SAAS,GAAG;IAKvB,IAAI,EAAE,CAAC,UAAgC,EAAE,EAAE,EAAE,CAAC,IAAI,8BAAa,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,CAAC,kBAAkB,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;CAC5H,CAAC"}
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@mathrunet/masamune",
3
- "version": "3.9.0",
3
+ "version": "3.9.4",
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",
7
7
  "scripts": {
8
8
  "build": "tsc",
9
9
  "prepare": "npm run build",
10
+ "prepublish": "npm install && npm run build && npm run test",
10
11
  "test": "NODE_OPTIONS='--experimental-vm-modules' jest",
11
12
  "postversion": "npm run changelog",
12
13
  "changelog": "conventional-changelog -p eslint -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md && git commit -m 'chore(release): publish package'",
@@ -39,11 +40,17 @@
39
40
  },
40
41
  "homepage": "https://github.com/mathrunet/node_masamune#readme",
41
42
  "dependencies": {
43
+ "@types/node-fetch": "^2.6.7",
42
44
  "firebase-admin": "^13.1.0",
43
45
  "firebase-functions": "^6.3.2",
44
- "typescript": "^5.9.2"
46
+ "typescript": "^5.9.2",
47
+ "crypto": "^1.0.1",
48
+ "form-data": "^4.0.0",
49
+ "node-fetch": "^2.6.9",
50
+ "uuid": "^10.0.0"
45
51
  },
46
52
  "devDependencies": {
53
+ "@types/uuid": "^10.0.0",
47
54
  "@types/jest": "^30.0.0",
48
55
  "conventional-changelog-cli": "^5.0.0",
49
56
  "firebase-functions-test": "^3.4.0",