entropic-bond 1.34.6 → 1.34.7
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.
|
@@ -11,7 +11,7 @@ export declare class CloudFunctions {
|
|
|
11
11
|
static useCloudFunctionsService(cloudFunctionsService: CloudFunctionsService): void;
|
|
12
12
|
static get instance(): CloudFunctions;
|
|
13
13
|
getRawFunction<P, R>(cloudFunction: string): CloudFunction<P, R>;
|
|
14
|
-
getFunction<P extends Persistent | undefined, R extends Persistent>(cloudFunction: string): CloudFunction<P, R>;
|
|
14
|
+
getFunction<P extends Persistent | undefined = undefined, R extends Persistent | void = void>(cloudFunction: string): CloudFunction<P, R>;
|
|
15
15
|
private static _cloudFunctionsService;
|
|
16
16
|
private static _instance;
|
|
17
17
|
}
|
|
@@ -30,7 +30,9 @@ class CloudFunctions {
|
|
|
30
30
|
const func = CloudFunctions._cloudFunctionsService.retrieveFunction(cloudFunction);
|
|
31
31
|
return (param) => __awaiter(this, void 0, void 0, function* () {
|
|
32
32
|
const result = yield func(param === null || param === void 0 ? void 0 : param.toObject());
|
|
33
|
-
|
|
33
|
+
if (typeof result !== 'undefined') {
|
|
34
|
+
return persistent_1.Persistent.createInstance(result);
|
|
35
|
+
}
|
|
34
36
|
});
|
|
35
37
|
}
|
|
36
38
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloud-functions.js","sourceRoot":"","sources":["../../src/cloud-functions/cloud-functions.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAuE;AAUvE,MAAa,cAAc;IAC1B,gBAAuB,CAAC;IAIxB,MAAM,CAAC,wBAAwB,CAAE,qBAA4C;QAC5E,IAAK,IAAI,CAAC,sBAAsB,IAAI,qBAAqB,EAAG;YAC3D,IAAI,CAAC,sBAAsB,GAAG,qBAAqB,CAAA;SACnD;IACF,CAAC;IAED,MAAM,KAAK,QAAQ;QAClB,IAAK,CAAC,IAAI,CAAC,sBAAsB;YAAG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