@dcloudio/uni-shared 3.0.0-alpha-3040320220325006 → 3.0.0-alpha-3040420220402003

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.
@@ -655,7 +655,8 @@ function normalizeLog(type, filename, args) {
655
655
  }
656
656
  const msgs = args.map(function (v) {
657
657
  const type = shared.toTypeString(v).toLowerCase();
658
- if (type === '[object object]' || type === '[object array]') {
658
+ if (['[object object]', '[object array]', '[object module]'].indexOf(type) !==
659
+ -1) {
659
660
  try {
660
661
  v =
661
662
  '---BEGIN:JSON---' +
@@ -651,7 +651,8 @@ function normalizeLog(type, filename, args) {
651
651
  }
652
652
  const msgs = args.map(function (v) {
653
653
  const type = toTypeString(v).toLowerCase();
654
- if (type === '[object object]' || type === '[object array]') {
654
+ if (['[object object]', '[object array]', '[object module]'].indexOf(type) !==
655
+ -1) {
655
656
  try {
656
657
  v =
657
658
  '---BEGIN:JSON---' +
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/uni-shared",
3
- "version": "3.0.0-alpha-3040320220325006",
3
+ "version": "3.0.0-alpha-3040420220402003",
4
4
  "description": "@dcloudio/uni-shared",
5
5
  "main": "./dist/uni-shared.cjs.js",
6
6
  "module": "./dist/uni-shared.es.js",