@quatrain/core 1.1.17 → 1.1.19

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/lib/Core.js CHANGED
@@ -85,7 +85,7 @@ Core.storage = require('node-persist');
85
85
  Core.storagePrefix = 'core';
86
86
  Core.userClass = User_1.User;
87
87
  Core.classRegistry = {};
88
- Core.logLevel = log_1.LogLevel.INFO;
88
+ Core.logLevel = log_1.LogLevel.DEBUG;
89
89
  Core.logger = _a.addLogger();
90
90
  // How timestamp are formatted
91
91
  Core.timestamp = () => new Date().toISOString();
@@ -39,7 +39,6 @@ const HashProperty_1 = require("../properties/HashProperty");
39
39
  const StringProperty_1 = require("../properties/StringProperty");
40
40
  const htmlType = __importStar(require("../properties/types/PropertyHTMLType"));
41
41
  const BaseObjectProperties_1 = require("./BaseObjectProperties");
42
- const Entity_1 = require("./Entity");
43
42
  /**
44
43
  * Callback function to populate the 'name' property
45
44
  * @param dao DataObject
@@ -118,7 +117,7 @@ exports.UserProperties = [
118
117
  name: 'entity',
119
118
  mandatory: false,
120
119
  type: properties_1.ObjectProperty.TYPE,
121
- instanceOf: Entity_1.Entity,
120
+ instanceOf: 'Entity',
122
121
  },
123
122
  ];
124
123
  class User extends BaseObject_1.BaseObject {
@@ -18,7 +18,7 @@ class BaseProperty {
18
18
  typeof config.defaultValue === 'function'
19
19
  ? config.defaultValue()
20
20
  : config.defaultValue;
21
- this._value = config.defaultValue;
21
+ this._value = this._defaultValue;
22
22
  this._hasChanged = false;
23
23
  this._htmlType = config.htmlType || 'off';
24
24
  if (typeof config.onChange === 'function') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quatrain/core",
3
- "version": "1.1.17",
3
+ "version": "1.1.19",
4
4
  "description": "Core objects for business apps",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",