dataverse-utils 2.7.1 → 2.7.3

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.
@@ -15,11 +15,11 @@ async function deployApi(config, assemblyId, apiConfig, solution) {
15
15
  logger_1.logger.error(`unable to find plugin type ${api.plugintype}`);
16
16
  return;
17
17
  }
18
- delete api.plugintype;
19
- delete api.customapiid;
20
- delete api.plugintypeid;
21
- api['PluginTypeId@odata.bind'] = `plugintypes(${config.plugintypeid})`;
22
18
  }
19
+ delete api.plugintype;
20
+ delete api.customapiid;
21
+ delete api.plugintypeid;
22
+ api['PluginTypeId@odata.bind'] = `plugintypes(${config.plugintypeid})`;
23
23
  if (config.customapiid) {
24
24
  try {
25
25
  await updateApi(config.customapiid, api, apiConfig);
@@ -39,7 +39,7 @@ async function deployPluginPackage(config, apiConfig, solution) {
39
39
  }
40
40
  if (config.assembly != null) {
41
41
  try {
42
- if (config.assembly.pluginassemblyid) {
42
+ if (!config.assembly.pluginassemblyid) {
43
43
  config.assembly.pluginassemblyid = await (0, pluginAssembly_1.retrieveAssembly)(config.assembly.name, apiConfig);
44
44
  }
45
45
  const promises = config.assembly.types?.map(async (t) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dataverse-utils",
3
- "version": "2.7.1",
3
+ "version": "2.7.3",
4
4
  "license": "MIT",
5
5
  "description": "Utilities for interacting with Dataverse environments",
6
6
  "main": "lib/index.js",