dataverse-utils 3.0.6 → 3.0.8

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.
@@ -20,7 +20,7 @@ async function deployApi(config, assemblyId, apiConfig, solution) {
20
20
  delete api.customapiid;
21
21
  delete api.plugintypeid;
22
22
  api['PluginTypeId@odata.bind'] = `plugintypes(${config.plugintypeid})`;
23
- if (config.customapiid) {
23
+ if (config.customapiid !== '') {
24
24
  try {
25
25
  await updateApi(config.customapiid, api, apiConfig);
26
26
  }
@@ -20,7 +20,7 @@ async function deployAssembly(config, apiConfig, solution) {
20
20
  if (!config.pluginassemblyid) {
21
21
  config.pluginassemblyid = await retrieveAssembly(config.name, apiConfig);
22
22
  }
23
- if (config.pluginassemblyid) {
23
+ if (config.pluginassemblyid !== '') {
24
24
  try {
25
25
  await updateAssembly(config, content, apiConfig);
26
26
  }
@@ -26,7 +26,7 @@ async function deployImage(stepId, stepName, config, message, apiConfig) {
26
26
  if (!config.sdkmessageprocessingstepimageid) {
27
27
  config.sdkmessageprocessingstepimageid = await retrieveImage(stepId, image, apiConfig);
28
28
  }
29
- if (config.sdkmessageprocessingstepimageid) {
29
+ if (config.sdkmessageprocessingstepimageid !== '') {
30
30
  try {
31
31
  await updateImage(config.sdkmessageprocessingstepimageid, image, stepName, apiConfig);
32
32
  }
@@ -29,7 +29,7 @@ async function deployStep(config, pluginTypeId, apiConfig, solution) {
29
29
  if (!config.sdkmessageprocessingstepid) {
30
30
  config.sdkmessageprocessingstepid = await retrieveStep(step.name, pluginTypeId, apiConfig);
31
31
  }
32
- if (config.sdkmessageprocessingstepid) {
32
+ if (config.sdkmessageprocessingstepid !== '') {
33
33
  try {
34
34
  await updateStep(config.sdkmessageprocessingstepid, step, apiConfig);
35
35
  }
@@ -15,7 +15,7 @@ async function deployType(config, assemblyId, apiConfig, solution) {
15
15
  if (!config.plugintypeid) {
16
16
  config.plugintypeid = await retrieveType(config.name, assemblyId, apiConfig);
17
17
  }
18
- if (config.plugintypeid) {
18
+ if (config.plugintypeid !== '') {
19
19
  try {
20
20
  await updateType(config.plugintypeid, type, apiConfig);
21
21
  }
@@ -65,7 +65,7 @@ async function deploy(webResources, apiConfig, solution, files) {
65
65
  }
66
66
  const fileContent = await fs_1.default.promises.readFile(resource.path, 'utf8');
67
67
  const content = Buffer.from(fileContent).toString('base64');
68
- if (resource.webresourceid) {
68
+ if (resource.webresourceid !== '') {
69
69
  try {
70
70
  const updated = await updateResource(resource, content, apiConfig);
71
71
  publishXml.push(updated);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dataverse-utils",
3
- "version": "3.0.6",
3
+ "version": "3.0.8",
4
4
  "license": "MIT",
5
5
  "description": "Utilities for interacting with Dataverse environments",
6
6
  "main": "lib/index.js",