@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,5 +1,11 @@
1
1
  # @forge/bridge
2
2
 
3
+ ## 5.8.0-next.11
4
+
5
+ ### Patch Changes
6
+
7
+ - fe20eb0: Changing export names
8
+
3
9
  ## 5.8.0-next.10
4
10
 
5
11
  ### Patch Changes
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getMetadata = void 0;
4
- const invoke_1 = require("../invoke");
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, invoke_1.invoke)(functionKey, { key }));
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
- deleteObjects: ({ functionKey, keys }: {
14
+ delete: ({ functionKey, keys }: {
15
15
  functionKey: string;
16
16
  keys: string[];
17
17
  }) => Promise<void>;
@@ -9,5 +9,5 @@ exports.objectStore = {
9
9
  upload: upload_1.upload,
10
10
  download: download_1.download,
11
11
  getMetadata: getMetadata_1.getMetadata,
12
- deleteObjects: deleteObjects_1.deleteObjects
12
+ delete: deleteObjects_1.deleteObjects
13
13
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/bridge",
3
- "version": "5.8.0-next.10",
3
+ "version": "5.8.0-next.11",
4
4
  "description": "Forge bridge API for custom UI apps",
5
5
  "author": "Atlassian",
6
6
  "license": "SEE LICENSE IN LICENSE.txt",