camunda-external-task-client-js
Advanced tools
Comparing version 3.0.0 to 3.0.1
# Changelog | ||
## 3.0.1 | ||
### Features | ||
- Update got package ([#3135](https://github.com/camunda/camunda-bpm-platform/issues/3135)) | ||
- Rethrow errors when calling TaskService api ([#3222](https://github.com/camunda/camunda-bpm-platform/issues/3222)) | ||
## 3.0.0 | ||
@@ -4,0 +9,0 @@ ### Features |
@@ -81,2 +81,3 @@ /* | ||
this.error("complete", task, e); | ||
throw e; | ||
} | ||
@@ -102,2 +103,3 @@ } | ||
this.error("handleFailure", task, e); | ||
throw e; | ||
} | ||
@@ -136,2 +138,3 @@ } | ||
this.error("handleBpmnError", task, e); | ||
throw e; | ||
} | ||
@@ -160,2 +163,3 @@ } | ||
this.error("lock", task, e); | ||
throw e; | ||
} | ||
@@ -184,2 +188,3 @@ } | ||
this.error("extendLock", task, e); | ||
throw e; | ||
} | ||
@@ -204,2 +209,3 @@ } | ||
this.error("unlock", task, e); | ||
throw e; | ||
} | ||
@@ -206,0 +212,0 @@ } |
@@ -141,2 +141,18 @@ /* | ||
}); | ||
test("should rethrow error", async () => { | ||
// given | ||
engineService.complete = jest.fn().mockImplementation(() => { | ||
throw new Error("my error message"); | ||
}); | ||
try { | ||
// when | ||
await taskService.complete("myTaskId"); | ||
expect(true).toBe(false); | ||
} catch (e) { | ||
// then | ||
expect(e).toStrictEqual(new Error("my error message")); | ||
} | ||
}); | ||
}); | ||
@@ -179,2 +195,18 @@ | ||
}); | ||
test("should rethrow error", async () => { | ||
// given | ||
engineService.handleFailure = jest.fn().mockImplementation(() => { | ||
throw new Error("my error message"); | ||
}); | ||
try { | ||
// when | ||
await taskService.handleFailure("myTaskId"); | ||
expect(true).toBe(false); | ||
} catch (e) { | ||
// then | ||
expect(e).toStrictEqual(new Error("my error message")); | ||
} | ||
}); | ||
}); | ||
@@ -260,2 +292,18 @@ | ||
}); | ||
test("should rethrow error", async () => { | ||
// given | ||
engineService.handleBpmnError = jest.fn().mockImplementation(() => { | ||
throw new Error("my error message"); | ||
}); | ||
try { | ||
// when | ||
await taskService.handleBpmnError("myTaskId", 123); | ||
expect(true).toBe(false); | ||
} catch (e) { | ||
// then | ||
expect(e).toStrictEqual(new Error("my error message")); | ||
} | ||
}); | ||
}); | ||
@@ -306,2 +354,18 @@ | ||
}); | ||
test("should rethrow error", async () => { | ||
// given | ||
engineService.extendLock = jest.fn().mockImplementation(() => { | ||
throw new Error("my error message"); | ||
}); | ||
try { | ||
// when | ||
await taskService.extendLock("myTaskId", 10); | ||
expect(true).toBe(false); | ||
} catch (e) { | ||
// then | ||
expect(e).toStrictEqual(new Error("my error message")); | ||
} | ||
}); | ||
}); | ||
@@ -353,2 +417,18 @@ | ||
}); | ||
test("should rethrow error", async () => { | ||
// given | ||
engineService.lock = jest.fn().mockImplementation(() => { | ||
throw new Error("my error message"); | ||
}); | ||
try { | ||
// when | ||
await taskService.lock("myTaskId", 10); | ||
expect(true).toBe(false); | ||
} catch (e) { | ||
// then | ||
expect(e).toStrictEqual(new Error("my error message")); | ||
} | ||
}); | ||
}); | ||
@@ -391,3 +471,19 @@ | ||
}); | ||
test("should rethrow error", async () => { | ||
// given | ||
engineService.unlock = jest.fn().mockImplementation(() => { | ||
throw new Error("my error message"); | ||
}); | ||
try { | ||
// when | ||
await taskService.unlock("myTaskId", 10); | ||
expect(true).toBe(false); | ||
} catch (e) { | ||
// then | ||
expect(e).toStrictEqual(new Error("my error message")); | ||
} | ||
}); | ||
}); | ||
}); |
{ | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"name": "camunda-external-task-client-js", | ||
@@ -33,3 +33,3 @@ "exports": "./index.js", | ||
"chalk": "^5.1.2", | ||
"got": "^12.5.2" | ||
"got": "^13.0.0" | ||
}, | ||
@@ -36,0 +36,0 @@ "description": "Implement your [BPMN Service Task](https://docs.camunda.org/manual/latest/user-guide/process-engine/external-tasks/) in NodeJS.", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
230888
3552
+ Addedgot@13.0.0(transitive)
- Removedgot@12.6.1(transitive)
Updatedgot@^13.0.0