@legalplace/prerenderx 2.4.1 → 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) ? 0 : 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legalplace/prerenderx",
3
- "version": "2.4.1",
3
+ "version": "2.4.3",
4
4
  "description": "PrerenderX",
5
5
  "main": "dist/index.js",
6
6
  "repository": "https://git.legalplace.eu/legalplace/prerenderx",
@@ -16,7 +16,7 @@
16
16
  "dependencies": {
17
17
  "@legalplace/lplogic": "^2.1.4",
18
18
  "@legalplace/models-v3-types": "^3.4.47",
19
- "@legalplace/referencesparser": "^1.4.11",
19
+ "@legalplace/referencesparser": "^1.5.0",
20
20
  "crypto": "^1.0.1",
21
21
  "typescript": "3.9.3"
22
22
  },
@@ -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) ? 0 : result
146
+ return Number.isNaN(result) ? '' : result
147
147
  }
148
148
  // If variable is of type number
149
149
  if (variableReference.type === 'number') {