@legalplace/prerenderx 2.4.2 → 2.4.3
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/.gitlab-ci.yml
CHANGED
|
@@ -8,7 +8,7 @@ stages:
|
|
|
8
8
|
before_script:
|
|
9
9
|
- export PATH=$PATH:./node_modules/.bin/
|
|
10
10
|
|
|
11
|
-
variables:
|
|
11
|
+
variables:
|
|
12
12
|
DOCKER_DRIVER: overlay2
|
|
13
13
|
|
|
14
14
|
setup:
|
|
@@ -22,6 +22,8 @@ setup:
|
|
|
22
22
|
- package.json
|
|
23
23
|
- .gitlab-ci.yml
|
|
24
24
|
script:
|
|
25
|
+
- yarn -v
|
|
26
|
+
- node -v
|
|
25
27
|
- yarn install --frozen-lockfile --check-files --silent
|
|
26
28
|
- yarn build
|
|
27
29
|
|
|
@@ -30,7 +32,7 @@ publish:
|
|
|
30
32
|
except:
|
|
31
33
|
variables:
|
|
32
34
|
- $CI_COMMIT_MESSAGE =~ /skip-publish/
|
|
33
|
-
script:
|
|
35
|
+
script:
|
|
34
36
|
- npm publish
|
|
35
37
|
environment:
|
|
36
38
|
name: development
|
|
@@ -89,7 +89,7 @@ var DataPopulator = (function () {
|
|
|
89
89
|
var values = this_1.getVariableValues(variableId);
|
|
90
90
|
var parseNumber = function (v) {
|
|
91
91
|
var result = parseFloat(v);
|
|
92
|
-
return Number.isNaN(result) ?
|
|
92
|
+
return Number.isNaN(result) ? '' : result;
|
|
93
93
|
};
|
|
94
94
|
if (variableReference.type === 'number') {
|
|
95
95
|
values = values.map(function (v) { return (typeof v === 'number' ? v : parseNumber(v)); });
|
package/package.json
CHANGED
|
@@ -143,7 +143,7 @@ class DataPopulator {
|
|
|
143
143
|
|
|
144
144
|
const parseNumber = (v: string) => {
|
|
145
145
|
const result = parseFloat(v)
|
|
146
|
-
return Number.isNaN(result) ?
|
|
146
|
+
return Number.isNaN(result) ? '' : result
|
|
147
147
|
}
|
|
148
148
|
// If variable is of type number
|
|
149
149
|
if (variableReference.type === 'number') {
|