@mathrunet/masamune 2.2.11 → 2.2.13
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 +18 -0
- package/dist/lib/call_process_function_base.d.ts +2 -10
- package/dist/lib/call_process_function_base.js +2 -2
- package/dist/lib/call_process_function_base.js.map +1 -1
- package/dist/lib/functions_base.d.ts +6 -6
- package/dist/lib/functions_base.js +2 -2
- package/dist/lib/functions_base.js.map +1 -1
- package/dist/lib/functions_data.js +3 -0
- package/dist/lib/functions_data.js.map +1 -1
- package/dist/lib/request_process_function_base.d.ts +2 -10
- package/dist/lib/request_process_function_base.js +2 -2
- package/dist/lib/request_process_function_base.js.map +1 -1
- package/dist/lib/schedule_process_function_base.d.ts +2 -10
- package/dist/lib/schedule_process_function_base.js +2 -2
- package/dist/lib/schedule_process_function_base.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
## [2.2.13](https://github.com/mathrunet/node_masamune/compare/v2.2.12...v2.2.13) (2024-02-14)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### fix
|
|
5
|
+
|
|
6
|
+
* Set initial options. ([96558ec](https://github.com/mathrunet/node_masamune/commit/96558ecc35f4577b3c83f8069684efb46beb0432))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
## [2.2.12](https://github.com/mathrunet/node_masamune/compare/v2.2.11...v2.2.12) (2024-02-14)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### fix
|
|
14
|
+
|
|
15
|
+
* Bug in not being able to use homebrew functions. ([57f0823](https://github.com/mathrunet/node_masamune/commit/57f0823701bf87f84ce0112361334685aaad62a5))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
1
19
|
## [2.2.11](https://github.com/mathrunet/node_masamune/compare/v2.2.10...v2.2.11) (2024-02-09)
|
|
2
20
|
|
|
3
21
|
|
|
@@ -12,16 +12,7 @@ export declare abstract class CallProcessFunctionBase extends FunctionsBase {
|
|
|
12
12
|
*
|
|
13
13
|
* FunctionsのCallメソッド実行用のFunctionのデータを定義するためのベースクラス。
|
|
14
14
|
*/
|
|
15
|
-
constructor(
|
|
16
|
-
id: string;
|
|
17
|
-
func: (region: string[], options: HttpFunctionsOptions, data: {
|
|
18
|
-
[key: string]: string;
|
|
19
|
-
}) => Function;
|
|
20
|
-
data?: {
|
|
21
|
-
[key: string]: string;
|
|
22
|
-
};
|
|
23
|
-
options?: HttpFunctionsOptions | undefined | null;
|
|
24
|
-
});
|
|
15
|
+
constructor(options?: HttpFunctionsOptions);
|
|
25
16
|
/**
|
|
26
17
|
* Specify the actual contents of the process.
|
|
27
18
|
*
|
|
@@ -40,6 +31,7 @@ export declare abstract class CallProcessFunctionBase extends FunctionsBase {
|
|
|
40
31
|
abstract process(query: functions.https.CallableRequest<any>): Promise<{
|
|
41
32
|
[key: string]: any;
|
|
42
33
|
}>;
|
|
34
|
+
abstract id: string;
|
|
43
35
|
data: {
|
|
44
36
|
[key: string]: string;
|
|
45
37
|
};
|
|
@@ -46,8 +46,8 @@ class CallProcessFunctionBase extends functions_base_1.FunctionsBase {
|
|
|
46
46
|
*
|
|
47
47
|
* FunctionsのCallメソッド実行用のFunctionのデータを定義するためのベースクラス。
|
|
48
48
|
*/
|
|
49
|
-
constructor(
|
|
50
|
-
super({
|
|
49
|
+
constructor(options = {}) {
|
|
50
|
+
super({ options: options });
|
|
51
51
|
this.data = {};
|
|
52
52
|
}
|
|
53
53
|
build(regions) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"call_process_function_base.js","sourceRoot":"","sources":["../../src/lib/call_process_function_base.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iEAAmD;AACnD,
|
|
1
|
+
{"version":3,"file":"call_process_function_base.js","sourceRoot":"","sources":["../../src/lib/call_process_function_base.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iEAAmD;AACnD,qDAAyF;AAGzF;;;;GAIG;AACH,MAAsB,uBAAwB,SAAQ,8BAAa;IAC/D;;;;OAIG;IACH,YAAY,UAAgC,EAAE;QAC1C,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC;QAqBhC,SAAI,GAA8B,EAAE,CAAC;IApBrC,CAAC;IAqBD,KAAK,CAAC,OAAiB;;QACnB,MAAM,OAAO,GAAG,IAAI,CAAC,OAAkD,CAAC;QACxE,OAAO,SAAS,CAAC,KAAK,CAAC,MAAM,CACzB;YACI,MAAM,EAAE,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,mCAAI,OAAO;YAClC,cAAc,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc;YACvC,MAAM,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM;YACvB,YAAY,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,YAAY;YACnC,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW;YACjC,YAAY,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,YAAY;SACtC,EACD,CAAO,KAAK,EAAE,EAAE;YACZ,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QAC/B,CAAC,CAAA,CACJ,CAAC;IACN,CAAC;CACJ;AA7CD,0DA6CC"}
|
|
@@ -19,13 +19,13 @@ export declare abstract class FunctionsBase {
|
|
|
19
19
|
* `build`にてFirebaseFunctionsを生成するためのコードを記述します。
|
|
20
20
|
*/
|
|
21
21
|
constructor({ id, func, data, options, }: {
|
|
22
|
-
id
|
|
23
|
-
func
|
|
22
|
+
id?: string | undefined | null;
|
|
23
|
+
func?: ((region: string[], options: FunctionsOptions, data: {
|
|
24
24
|
[key: string]: string;
|
|
25
|
-
}) => Function;
|
|
25
|
+
}) => Function) | undefined | null;
|
|
26
26
|
data?: {
|
|
27
27
|
[key: string]: string;
|
|
28
|
-
};
|
|
28
|
+
} | undefined | null;
|
|
29
29
|
options?: FunctionsOptions | undefined | null;
|
|
30
30
|
});
|
|
31
31
|
/**
|
|
@@ -41,9 +41,9 @@ export declare abstract class FunctionsBase {
|
|
|
41
41
|
*
|
|
42
42
|
* 実際の処理の中身を指定します。
|
|
43
43
|
*/
|
|
44
|
-
readonly func: (region: string[], options: FunctionsOptions, data: {
|
|
44
|
+
readonly func: ((region: string[], options: FunctionsOptions, data: {
|
|
45
45
|
[key: string]: string;
|
|
46
|
-
}) => Function;
|
|
46
|
+
}) => Function) | undefined | null;
|
|
47
47
|
/**
|
|
48
48
|
* Specify the data to be passed to the process.
|
|
49
49
|
*
|
|
@@ -21,9 +21,9 @@ class FunctionsBase {
|
|
|
21
21
|
* `build`にてFirebaseFunctionsを生成するためのコードを記述します。
|
|
22
22
|
*/
|
|
23
23
|
constructor({ id, func, data = {}, options, }) {
|
|
24
|
-
this.id = id;
|
|
24
|
+
this.id = id !== null && id !== void 0 ? id : "";
|
|
25
25
|
this.func = func;
|
|
26
|
-
this.data = data;
|
|
26
|
+
this.data = data !== null && data !== void 0 ? data : {};
|
|
27
27
|
this.options = options !== null && options !== void 0 ? options : {
|
|
28
28
|
timeoutSeconds: 60,
|
|
29
29
|
memory: "256MiB",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"functions_base.js","sourceRoot":"","sources":["../../src/lib/functions_base.ts"],"names":[],"mappings":";;;AAGA;;;;;;;;GAQG;AACH,MAAsB,aAAa;IAC/B;;;;;;;;OAQG;IACH,YAAY,EACR,EAAE,EACF,IAAI,EACJ,IAAI,GAAG,EAAE,EACT,OAAO,GAUV;QACG,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"functions_base.js","sourceRoot":"","sources":["../../src/lib/functions_base.ts"],"names":[],"mappings":";;;AAGA;;;;;;;;GAQG;AACH,MAAsB,aAAa;IAC/B;;;;;;;;OAQG;IACH,YAAY,EACR,EAAE,EACF,IAAI,EACJ,IAAI,GAAG,EAAE,EACT,OAAO,GAUV;QACG,IAAI,CAAC,EAAE,GAAG,EAAE,aAAF,EAAE,cAAF,EAAE,GAAI,EAAE,CAAC;QACnB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,EAAE,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI;YACtB,cAAc,EAAE,EAAE;YAClB,MAAM,EAAE,QAAQ;YAChB,YAAY,EAAE,CAAC;YACf,WAAW,EAAE,EAAE;YACf,YAAY,EAAE,GAAG;SACpB,CAAC;IACN,CAAC;CA0CJ;AA7ED,sCA6EC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"functions_data.js","sourceRoot":"","sources":["../../src/lib/functions_data.ts"],"names":[],"mappings":";;;AAAA,qDAAiD;AAGjD;;;;GAIG;AACH,MAAa,aAAc,SAAQ,8BAAa;IAC9C,KAAK,CAAC,MAAgB;QACpB,OAAO,IAAI,CAAC,IAAI,CACd,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,IAAI,CAAC,IAAI,CACV,CAAC;IACJ,CAAC;CACF;
|
|
1
|
+
{"version":3,"file":"functions_data.js","sourceRoot":"","sources":["../../src/lib/functions_data.ts"],"names":[],"mappings":";;;AAAA,qDAAiD;AAGjD;;;;GAIG;AACH,MAAa,aAAc,SAAQ,8BAAa;IAC9C,KAAK,CAAC,MAAgB;QACpB,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE;YACd,OAAO,GAAG,EAAE,GAAG,CAAC,CAAC;SAClB;QACD,OAAO,IAAI,CAAC,IAAI,CACd,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,IAAI,CAAC,IAAI,CACV,CAAC;IACJ,CAAC;CACF;AAXD,sCAWC"}
|
|
@@ -14,16 +14,7 @@ export declare abstract class RequestProcessFunctionBase extends FunctionsBase {
|
|
|
14
14
|
*
|
|
15
15
|
* HTTPリクエスト実行用のFunctionのデータを定義するためのベースクラス。
|
|
16
16
|
*/
|
|
17
|
-
constructor(
|
|
18
|
-
id: string;
|
|
19
|
-
func: (region: string[], options: HttpFunctionsOptions, data: {
|
|
20
|
-
[key: string]: string;
|
|
21
|
-
}) => Function;
|
|
22
|
-
data?: {
|
|
23
|
-
[key: string]: string;
|
|
24
|
-
};
|
|
25
|
-
options?: HttpFunctionsOptions | undefined | null;
|
|
26
|
-
});
|
|
17
|
+
constructor(options?: HttpFunctionsOptions);
|
|
27
18
|
/**
|
|
28
19
|
* Specify the actual contents of the process.
|
|
29
20
|
*
|
|
@@ -40,6 +31,7 @@ export declare abstract class RequestProcessFunctionBase extends FunctionsBase {
|
|
|
40
31
|
* Functionsに渡されたResponse。
|
|
41
32
|
*/
|
|
42
33
|
abstract process(reqest: functions.https.Request, response: express.Response<any>): Promise<void>;
|
|
34
|
+
abstract id: string;
|
|
43
35
|
data: {
|
|
44
36
|
[key: string]: string;
|
|
45
37
|
};
|
|
@@ -46,8 +46,8 @@ class RequestProcessFunctionBase extends functions_base_1.FunctionsBase {
|
|
|
46
46
|
*
|
|
47
47
|
* HTTPリクエスト実行用のFunctionのデータを定義するためのベースクラス。
|
|
48
48
|
*/
|
|
49
|
-
constructor(
|
|
50
|
-
super({
|
|
49
|
+
constructor(options = {}) {
|
|
50
|
+
super({ options: options });
|
|
51
51
|
this.data = {};
|
|
52
52
|
}
|
|
53
53
|
build(regions) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request_process_function_base.js","sourceRoot":"","sources":["../../src/lib/request_process_function_base.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iEAAmD;AACnD,qDAAuE;AAKvE;;;;GAIG;AACH,MAAsB,0BAA2B,SAAQ,8BAAa;IAClE;;;;OAIG;IACH,YAAY,
|
|
1
|
+
{"version":3,"file":"request_process_function_base.js","sourceRoot":"","sources":["../../src/lib/request_process_function_base.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iEAAmD;AACnD,qDAAuE;AAKvE;;;;GAIG;AACH,MAAsB,0BAA2B,SAAQ,8BAAa;IAClE;;;;OAIG;IACH,YAAY,UAAgC,EAAE;QAC1C,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC;QAqBhC,SAAI,GAA8B,EAAE,CAAC;IApBrC,CAAC;IAqBD,KAAK,CAAC,OAAiB;;QACnB,MAAM,OAAO,GAAG,IAAI,CAAC,OAAkD,CAAC;QACxE,OAAO,SAAS,CAAC,KAAK,CAAC,SAAS,CAC5B;YACI,MAAM,EAAE,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,mCAAI,OAAO;YAClC,cAAc,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc;YACvC,MAAM,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM;YACvB,YAAY,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,YAAY;YACnC,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW;YACjC,YAAY,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,YAAY;SACtC,EACD,CAAO,GAAG,EAAE,GAAG,EAAE,EAAE;YACf,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;QAClC,CAAC,CAAA,CACJ,CAAC;IACN,CAAC;CACJ;AA7CD,gEA6CC"}
|
|
@@ -10,16 +10,7 @@ export declare abstract class ScheduleProcessFunctionBase extends FunctionsBase
|
|
|
10
10
|
*
|
|
11
11
|
* 定期スケジュール実行用のFunctionのデータを定義するためのベースクラス。
|
|
12
12
|
*/
|
|
13
|
-
constructor(
|
|
14
|
-
id: string;
|
|
15
|
-
func: (region: string[], options: SchedulerFunctionsOptions, data: {
|
|
16
|
-
[key: string]: string;
|
|
17
|
-
}) => Function;
|
|
18
|
-
data?: {
|
|
19
|
-
[key: string]: string;
|
|
20
|
-
};
|
|
21
|
-
options?: SchedulerFunctionsOptions | undefined | null;
|
|
22
|
-
});
|
|
13
|
+
constructor(options?: SchedulerFunctionsOptions);
|
|
23
14
|
/**
|
|
24
15
|
* Specify the schedule to execute the process in cron format.
|
|
25
16
|
*
|
|
@@ -34,6 +25,7 @@ export declare abstract class ScheduleProcessFunctionBase extends FunctionsBase
|
|
|
34
25
|
* 実際の処理の中身を指定します。
|
|
35
26
|
*/
|
|
36
27
|
abstract process(): Promise<void>;
|
|
28
|
+
abstract id: string;
|
|
37
29
|
data: {
|
|
38
30
|
[key: string]: string;
|
|
39
31
|
};
|
|
@@ -46,8 +46,8 @@ class ScheduleProcessFunctionBase extends functions_base_1.FunctionsBase {
|
|
|
46
46
|
*
|
|
47
47
|
* 定期スケジュール実行用のFunctionのデータを定義するためのベースクラス。
|
|
48
48
|
*/
|
|
49
|
-
constructor(
|
|
50
|
-
super({
|
|
49
|
+
constructor(options = {}) {
|
|
50
|
+
super({ options: options });
|
|
51
51
|
this.data = {};
|
|
52
52
|
}
|
|
53
53
|
build(regions) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schedule_process_function_base.js","sourceRoot":"","sources":["../../src/lib/schedule_process_function_base.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iEAAmD;AACnD,qDAA4E;AAE5E;;;;GAIG;AACH,MAAsB,2BAA4B,SAAQ,8BAAa;IACnE;;;;OAIG;IACH,YAAY,
|
|
1
|
+
{"version":3,"file":"schedule_process_function_base.js","sourceRoot":"","sources":["../../src/lib/schedule_process_function_base.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iEAAmD;AACnD,qDAA4E;AAE5E;;;;GAIG;AACH,MAAsB,2BAA4B,SAAQ,8BAAa;IACnE;;;;OAIG;IACH,YAAY,UAAqC,EAAE;QAC/C,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC;QAoBhC,SAAI,GAA8B,EAAE,CAAC;IAnBrC,CAAC;IAoBD,KAAK,CAAC,OAAiB;;QACnB,MAAM,OAAO,GAAG,IAAI,CAAC,OAAuD,CAAC;QAC7E,OAAO,SAAS,CAAC,SAAS,CAAC,UAAU,CACjC;YACI,QAAQ,EAAE,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,mCAAI,IAAI,CAAC,QAAQ;YAC5C,MAAM,EAAE,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,mCAAI,OAAO,CAAC,CAAC,CAAC;YACrC,cAAc,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc;YACvC,MAAM,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM;YACvB,YAAY,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,YAAY;YACnC,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW;YACjC,YAAY,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,YAAY;SACtC,EACD,CAAO,KAAK,EAAE,EAAE;YACZ,OAAO,IAAI,CAAC,OAAO,EAAE,CAAC;QAC1B,CAAC,CAAA,CACJ,CAAC;IACN,CAAC;CACJ;AA7CD,kEA6CC"}
|