modality-kit 0.12.0 → 0.12.1

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -157,11 +157,13 @@ class ModalityLogger {
157
157
  case "info": {
158
158
  const { message, ...restPayload } = payload;
159
159
  console.info(message);
160
- console.dir(restPayload, {
161
- depth: null,
162
- colors: true,
163
- maxArrayLength: null
164
- });
160
+ if (Object.keys(restPayload).length) {
161
+ console.dir(restPayload, {
162
+ depth: null,
163
+ colors: true,
164
+ maxArrayLength: null
165
+ });
166
+ }
165
167
  break;
166
168
  }
167
169
  case "warn": {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.12.0",
2
+ "version": "0.12.1",
3
3
  "name": "modality-kit",
4
4
  "repository": {
5
5
  "type": "git",