Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

camunda-external-task-client-js

Package Overview
Dependencies
Maintainers
4
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

camunda-external-task-client-js - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

5

CHANGELOG.md
# 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"));
}
});
});
});

4

package.json
{
"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.",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc