dataverse-utils 2.9.0 → 2.9.2
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.
|
@@ -59,7 +59,9 @@ async function createImage(image, stepName, apiConfig) {
|
|
|
59
59
|
}
|
|
60
60
|
async function updateImage(id, image, stepName, apiConfig) {
|
|
61
61
|
logger_1.logger.info(`update plugin image ${image.name} for step ${stepName}`);
|
|
62
|
-
const
|
|
62
|
+
const entity = { ...image };
|
|
63
|
+
delete entity.sdkmessageprocessingstepimageid;
|
|
64
|
+
const result = await (0, node_1.update)(apiConfig, 'sdkmessageprocessingstepimages', id, entity);
|
|
63
65
|
if (result?.error) {
|
|
64
66
|
throw new Error(result.error.message);
|
|
65
67
|
}
|
package/lib/models/pluginStep.js
CHANGED
|
@@ -88,7 +88,9 @@ async function createStep(step, apiConfig, solution) {
|
|
|
88
88
|
}
|
|
89
89
|
async function updateStep(id, step, apiConfig) {
|
|
90
90
|
logger_1.logger.info(`update plugin step ${step.name}`);
|
|
91
|
-
const
|
|
91
|
+
const entity = { ...step };
|
|
92
|
+
delete entity.sdkmessageprocessingstepid;
|
|
93
|
+
const result = await (0, node_1.update)(apiConfig, 'sdkmessageprocessingsteps', id, entity);
|
|
92
94
|
if (result?.error) {
|
|
93
95
|
throw new Error(result.error.message);
|
|
94
96
|
}
|
package/lib/models/pluginType.js
CHANGED
|
@@ -58,7 +58,9 @@ async function createType(type, apiConfig) {
|
|
|
58
58
|
}
|
|
59
59
|
async function updateType(id, type, apiConfig) {
|
|
60
60
|
logger_1.logger.info(`update assembly type ${type.name}`);
|
|
61
|
-
const
|
|
61
|
+
const entity = { ...type };
|
|
62
|
+
delete entity.plugintypeid;
|
|
63
|
+
const result = await (0, node_1.update)(apiConfig, 'plugintypes', id, entity);
|
|
62
64
|
if (result?.error) {
|
|
63
65
|
throw new Error(result.error.message);
|
|
64
66
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dataverse-utils",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Utilities for interacting with Dataverse environments",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@azure/msal-node": "^2.6.1",
|
|
27
|
-
"commander": "^
|
|
27
|
+
"commander": "^12.0.0",
|
|
28
28
|
"cryptr": "^6.2.0",
|
|
29
|
-
"dataverse-webapi": "^2.4.
|
|
29
|
+
"dataverse-webapi": "^2.4.3",
|
|
30
30
|
"envinfo": "^7.10.0",
|
|
31
31
|
"figures": "^3.2.0",
|
|
32
32
|
"glob": "^7.2.3",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/cryptr": "^4.0.1",
|
|
38
38
|
"@types/glob": "^7.2.0",
|
|
39
|
-
"@types/node": "^
|
|
39
|
+
"@types/node": "^18.19.20",
|
|
40
40
|
"@types/prompts": "^2.4.4"
|
|
41
41
|
},
|
|
42
42
|
"volta": {
|