modality-kit 0.0.11 → 0.0.12
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/dist/index.js +5 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -117,6 +117,8 @@ class ModalityLogger {
|
|
|
117
117
|
if (categroy) {
|
|
118
118
|
prefix += ` [${categroy}]`;
|
|
119
119
|
}
|
|
120
|
+
console.log(`
|
|
121
|
+
`);
|
|
120
122
|
console.log(prefix);
|
|
121
123
|
return payload;
|
|
122
124
|
}
|
|
@@ -162,18 +164,17 @@ class ModalityLogger {
|
|
|
162
164
|
break;
|
|
163
165
|
}
|
|
164
166
|
console.log(`
|
|
165
|
-
|
|
166
167
|
`);
|
|
167
168
|
}
|
|
168
169
|
debug(message, error) {
|
|
169
170
|
this.log("debug", { message, error });
|
|
170
171
|
}
|
|
171
172
|
info(message, data) {
|
|
172
|
-
const
|
|
173
|
+
const payload = { message };
|
|
173
174
|
if (data) {
|
|
174
|
-
|
|
175
|
+
payload.data = data;
|
|
175
176
|
}
|
|
176
|
-
this.log("info",
|
|
177
|
+
this.log("info", payload);
|
|
177
178
|
}
|
|
178
179
|
warn(message, resolution) {
|
|
179
180
|
this.log("warn", { message, resolution });
|
package/package.json
CHANGED