@forge/bridge 5.8.0-next.10 → 5.8.0-next.11
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,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getMetadata = void 0;
|
|
4
|
-
const
|
|
4
|
+
const index_1 = require("../invoke/index");
|
|
5
5
|
const errors_1 = require("../errors");
|
|
6
6
|
const getMetadata = async ({ functionKey, keys }) => {
|
|
7
7
|
if (!functionKey || functionKey.length === 0) {
|
|
@@ -11,7 +11,7 @@ const getMetadata = async ({ functionKey, keys }) => {
|
|
|
11
11
|
throw new errors_1.BridgeAPIError('keys array is required and must not be empty');
|
|
12
12
|
}
|
|
13
13
|
const results = await Promise.all(keys.map(async (key) => {
|
|
14
|
-
const result = (await (0,
|
|
14
|
+
const result = (await (0, index_1.invoke)(functionKey, { key }));
|
|
15
15
|
if (!result || typeof result !== 'object') {
|
|
16
16
|
return {
|
|
17
17
|
key: key,
|
|
@@ -11,7 +11,7 @@ export declare const objectStore: {
|
|
|
11
11
|
functionKey: string;
|
|
12
12
|
keys: string[];
|
|
13
13
|
}) => Promise<import("./types").GetMetadataResult[]>;
|
|
14
|
-
|
|
14
|
+
delete: ({ functionKey, keys }: {
|
|
15
15
|
functionKey: string;
|
|
16
16
|
keys: string[];
|
|
17
17
|
}) => Promise<void>;
|