@openfn/project 0.14.0 → 0.14.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.
- package/dist/index.js +7 -5
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -149,10 +149,6 @@ var mapWorkflow = (workflow, credentials = []) => {
|
|
|
149
149
|
});
|
|
150
150
|
if (mappedCredential) {
|
|
151
151
|
projectCredentialId = mappedCredential.uuid;
|
|
152
|
-
} else {
|
|
153
|
-
console.warn(`WARING! Failed to map credential ${projectCredentialId} - Lightning may throw an error.
|
|
154
|
-
|
|
155
|
-
Ensure the credential exists in project.yaml and try again (maybe ensure the credential is attached to the project in the app and run project fetch)`);
|
|
156
152
|
}
|
|
157
153
|
otherOpenFnProps.project_credential_id = projectCredentialId;
|
|
158
154
|
}
|
|
@@ -1368,8 +1364,14 @@ var find_changed_workflows_default = (project) => {
|
|
|
1368
1364
|
if (hash !== base[wf.id]) {
|
|
1369
1365
|
changed.push(wf);
|
|
1370
1366
|
}
|
|
1367
|
+
delete base[wf.id];
|
|
1368
|
+
} else {
|
|
1369
|
+
changed.push(wf);
|
|
1371
1370
|
}
|
|
1372
1371
|
}
|
|
1372
|
+
for (const removedId in base) {
|
|
1373
|
+
changed.push({ id: removedId, $deleted: true });
|
|
1374
|
+
}
|
|
1373
1375
|
return changed;
|
|
1374
1376
|
};
|
|
1375
1377
|
|
|
@@ -1766,7 +1768,7 @@ var Workspace = class {
|
|
|
1766
1768
|
} catch (e) {
|
|
1767
1769
|
if (validate) {
|
|
1768
1770
|
this.logger.warn(
|
|
1769
|
-
`Could not find openfn.yaml at ${workspacePath}. Using default
|
|
1771
|
+
`Could not find openfn.yaml at ${workspacePath}. Using default configuration.`
|
|
1770
1772
|
);
|
|
1771
1773
|
}
|
|
1772
1774
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openfn/project",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.2",
|
|
4
4
|
"description": "Read, serialize, replicate and sync OpenFn projects",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"lodash-es": "^4.17.21",
|
|
35
35
|
"ohm-js": "^17.2.1",
|
|
36
36
|
"yaml": "^2.2.2",
|
|
37
|
-
"@openfn/
|
|
38
|
-
"@openfn/
|
|
37
|
+
"@openfn/logger": "1.1.1",
|
|
38
|
+
"@openfn/lexicon": "^1.4.1"
|
|
39
39
|
},
|
|
40
40
|
"files": [
|
|
41
41
|
"dist",
|