@onify/flow-extensions 8.0.3 → 8.1.0
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/IOForm.js +1 -1
- package/dist/OnifyTimerEventDefinition.js +1 -1
- package/dist/getExtensions.js +1 -1
- package/dist/index.js +3 -2
- package/package.json +3 -3
- package/src/index.js +3 -2
package/dist/IOForm.js
CHANGED
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _IOProperties = _interopRequireDefault(require("./IOProperties.js"));
|
|
8
|
-
function _interopRequireDefault(
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
9
|
class IOForm {
|
|
10
10
|
constructor(activity, behaviour) {
|
|
11
11
|
this.activity = activity;
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.OnifyTimerEventDefinition = void 0;
|
|
7
7
|
var _cronParser = _interopRequireDefault(require("cron-parser"));
|
|
8
8
|
var _bpmnElements = require("bpmn-elements");
|
|
9
|
-
function _interopRequireDefault(
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
10
|
const invalidCronEntryPattern = /Invalid (characters|range)/i;
|
|
11
11
|
class OnifyTimerEventDefinition extends _bpmnElements.TimerEventDefinition {
|
|
12
12
|
constructor(activity, def) {
|
package/dist/getExtensions.js
CHANGED
|
@@ -11,7 +11,7 @@ var _ExecutionListeners = _interopRequireDefault(require("./ExecutionListeners.j
|
|
|
11
11
|
var _IOForm = _interopRequireDefault(require("./IOForm.js"));
|
|
12
12
|
var _IOProperties = _interopRequireDefault(require("./IOProperties.js"));
|
|
13
13
|
var _ServiceExpression = _interopRequireDefault(require("./ServiceExpression.js"));
|
|
14
|
-
function _interopRequireDefault(
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
15
|
function getExtensions(element, context) {
|
|
16
16
|
const result = {};
|
|
17
17
|
switch (element.type) {
|
package/dist/index.js
CHANGED
|
@@ -133,8 +133,9 @@ function getHistoryTimeToLiveTimer(behaviour) {
|
|
|
133
133
|
historyTimeToLive
|
|
134
134
|
} = behaviour;
|
|
135
135
|
let value = historyTimeToLive;
|
|
136
|
-
|
|
137
|
-
|
|
136
|
+
let days;
|
|
137
|
+
if (!isNaN(days = Number(value))) {
|
|
138
|
+
value = `P${days > 0 ? days : 0}D`;
|
|
138
139
|
}
|
|
139
140
|
return {
|
|
140
141
|
id: `${type}/${id}:historyTimeToLive`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onify/flow-extensions",
|
|
3
|
-
"version": "8.0
|
|
3
|
+
"version": "8.1.0",
|
|
4
4
|
"description": "Onify Flow extensions",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "src/index.js",
|
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
"scripts": {
|
|
23
|
-
"test": "mocha
|
|
23
|
+
"test": "mocha",
|
|
24
24
|
"posttest": "npm run lint && npm run dist && texample",
|
|
25
25
|
"lint": "eslint . --cache && prettier . --check --cache",
|
|
26
26
|
"prepare": "npm run dist",
|
|
27
27
|
"dist": "babel src -d dist && babel test/helpers/FlowScripts.js -d dist",
|
|
28
28
|
"test:lcov": "c8 -r lcov mocha && npm run lint",
|
|
29
|
-
"cov:html": "c8 mocha
|
|
29
|
+
"cov:html": "c8 mocha && c8 report --reporter html"
|
|
30
30
|
},
|
|
31
31
|
"keywords": [
|
|
32
32
|
"onify",
|
package/src/index.js
CHANGED
|
@@ -102,8 +102,9 @@ function getHistoryTimeToLiveTimer(behaviour) {
|
|
|
102
102
|
const { id, $type: type, historyTimeToLive } = behaviour;
|
|
103
103
|
|
|
104
104
|
let value = historyTimeToLive;
|
|
105
|
-
|
|
106
|
-
|
|
105
|
+
let days;
|
|
106
|
+
if (!isNaN((days = Number(value)))) {
|
|
107
|
+
value = `P${days > 0 ? days : 0}D`;
|
|
107
108
|
}
|
|
108
109
|
return {
|
|
109
110
|
id: `${type}/${id}:historyTimeToLive`,
|