@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 +1 -1
- package/lib/components/User.js +1 -2
- package/lib/properties/BaseProperty.js +1 -1
- package/package.json +1 -1
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.
|
|
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();
|
package/lib/components/User.js
CHANGED
|
@@ -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:
|
|
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 =
|
|
21
|
+
this._value = this._defaultValue;
|
|
22
22
|
this._hasChanged = false;
|
|
23
23
|
this._htmlType = config.htmlType || 'off';
|
|
24
24
|
if (typeof config.onChange === 'function') {
|