@quatrain/core 1.1.38 → 1.1.42

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.
@@ -221,10 +221,10 @@ class DataObject {
221
221
  Reflect.set(data, key, prop.val() || []);
222
222
  break;
223
223
  case 'DateTimeProperty':
224
- Reflect.set(data, key, prop.val(Reflect.get(converters, 'datetime')) || null);
224
+ Reflect.set(data, key, prop.val(Reflect.get(converters, 'datetime')) ?? null);
225
225
  break;
226
226
  default:
227
- Reflect.set(data, key, prop.val() || null);
227
+ Reflect.set(data, key, prop.val() ?? null);
228
228
  break;
229
229
  }
230
230
  });
package/package.json CHANGED
@@ -1,48 +1,48 @@
1
1
  {
2
- "name": "@quatrain/core",
3
- "version": "1.1.38",
4
- "description": "Core objects for business apps",
5
- "main": "dist/index.js",
6
- "types": "dist/index.d.ts",
7
- "files": [
8
- "dist/",
9
- "src/",
10
- "README.md"
11
- ],
12
- "author": "Quatrain Développement SAS <developers@quatrain.com>",
13
- "license": "AGPL-3.0-only",
14
- "devDependencies": {
15
- "@tsconfig/recommended": "^1.0.1",
16
- "@types/jest": "^30.0.0",
17
- "@types/module-alias": "^2",
18
- "@types/node": "^22.10.1",
19
- "@types/node-persist": "^3.1.8",
20
- "@types/which": "^3.0.4",
21
- "jest": "^30.2.0",
22
- "trace-unhandled": "^2.0.1",
23
- "ts-jest": "^29.4.1",
24
- "ts-node": "^10.9.1",
25
- "typescript": "^5.2.2"
26
- },
27
- "dependencies": {
28
- "@faker-js/faker": "^7.6.0",
29
- "@quatrain/log": "workspace:^",
30
- "module-alias": "^2.2.3",
31
- "node-persist": "^4.0.4",
32
- "which": "^5.0.0"
33
- },
34
- "scripts": {
35
- "test-ci": "jest --runInBand",
36
- "build": "tsc",
37
- "wbuild": "tsc --watch",
38
- "bump-to": "yarn version",
39
- "hash": "node ../../bin/hashFolder.js",
40
- "hash:persist": "yarn hash > .hash_latest.txt",
41
- "hash:compare": "yarn hash > .hash_newest.txt && cmp -s .hash_latest.txt .hash_newest.txt",
42
- "publish": "yarn hash:compare || yarn publish:process",
43
- "publish:process": "yarn version patch && yarn build && npm publish --access public && yarn hash:persist"
44
- },
45
- "_moduleAliases": {
46
- "@core": "."
47
- }
48
- }
2
+ "name": "@quatrain/core",
3
+ "version": "1.1.42",
4
+ "description": "Core objects for business apps",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "files": [
8
+ "dist/",
9
+ "src/",
10
+ "README.md"
11
+ ],
12
+ "author": "Quatrain Développement SAS <developers@quatrain.com>",
13
+ "license": "AGPL-3.0-only",
14
+ "devDependencies": {
15
+ "@tsconfig/recommended": "^1.0.1",
16
+ "@types/jest": "^30.0.0",
17
+ "@types/module-alias": "^2",
18
+ "@types/node": "^22.10.1",
19
+ "@types/node-persist": "^3.1.8",
20
+ "@types/which": "^3.0.4",
21
+ "jest": "^30.2.0",
22
+ "trace-unhandled": "^2.0.1",
23
+ "ts-jest": "^29.4.1",
24
+ "ts-node": "^10.9.1",
25
+ "typescript": "^5.2.2"
26
+ },
27
+ "dependencies": {
28
+ "@faker-js/faker": "^7.6.0",
29
+ "@quatrain/log": "^1.1.1",
30
+ "module-alias": "^2.2.3",
31
+ "node-persist": "^4.0.4",
32
+ "which": "^5.0.0"
33
+ },
34
+ "scripts": {
35
+ "test-ci": "jest --runInBand",
36
+ "build": "tsc",
37
+ "wbuild": "tsc --watch",
38
+ "bump-to": "yarn version",
39
+ "hash": "node ../../bin/hashFolder.js",
40
+ "hash:persist": "yarn hash > .hash_latest.txt",
41
+ "hash:compare": "yarn hash > .hash_newest.txt && cmp -s .hash_latest.txt .hash_newest.txt",
42
+ "release": "yarn hash:compare || yarn release:process",
43
+ "release:process": "yarn version patch && yarn build && yarn pack --out package.tgz && npm publish package.tgz --access public && rm package.tgz && yarn hash:persist"
44
+ },
45
+ "_moduleAliases": {
46
+ "@core": "."
47
+ }
48
+ }
@@ -352,12 +352,12 @@ export class DataObject implements DataObjectType {
352
352
  Reflect.set(
353
353
  data,
354
354
  key,
355
- prop.val(Reflect.get(converters, 'datetime')) || null
355
+ prop.val(Reflect.get(converters, 'datetime')) ?? null
356
356
  )
357
357
  break
358
358
 
359
359
  default:
360
- Reflect.set(data, key, prop.val() || null)
360
+ Reflect.set(data, key, prop.val() ?? null)
361
361
  break
362
362
  }
363
363
  })