@dcloudio/uni-mp-toutiao 3.0.0-alpha-4070720250804001 → 3.0.0-alpha-4080120250820001

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.
@@ -29,6 +29,7 @@ var source = {
29
29
  };
30
30
 
31
31
  const customElements = [
32
+ 'draw-ad',
32
33
  'aweme-data',
33
34
  'consume-card',
34
35
  'pay-button',
@@ -566,8 +566,26 @@ const UTSJSON = {
566
566
  return null;
567
567
  }
568
568
  },
569
- stringify: (value) => {
570
- return OriginalJSON.stringify(value);
569
+ stringify: (value, replacer, space) => {
570
+ try {
571
+ if (!replacer) {
572
+ const visited = new Set();
573
+ replacer = function (_, v) {
574
+ if (typeof v === 'object') {
575
+ if (visited.has(v)) {
576
+ return null;
577
+ }
578
+ visited.add(v);
579
+ }
580
+ return v;
581
+ };
582
+ }
583
+ return OriginalJSON.stringify(value, replacer, space);
584
+ }
585
+ catch (error) {
586
+ console.error(error);
587
+ return '';
588
+ }
571
589
  },
572
590
  };
573
591
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/uni-mp-toutiao",
3
- "version": "3.0.0-alpha-4070720250804001",
3
+ "version": "3.0.0-alpha-4080120250820001",
4
4
  "description": "uni-app mp-toutiao",
5
5
  "main": "dist/index.js",
6
6
  "files": [
@@ -25,11 +25,11 @@
25
25
  "dependencies": {
26
26
  "@vue/shared": "3.4.21",
27
27
  "@vue/compiler-core": "3.4.21",
28
- "@dcloudio/uni-cli-shared": "3.0.0-alpha-4070720250804001",
29
- "@dcloudio/uni-mp-compiler": "3.0.0-alpha-4070720250804001",
30
- "@dcloudio/uni-mp-vite": "3.0.0-alpha-4070720250804001",
31
- "@dcloudio/uni-mp-vue": "3.0.0-alpha-4070720250804001",
32
- "@dcloudio/uni-shared": "3.0.0-alpha-4070720250804001"
28
+ "@dcloudio/uni-cli-shared": "3.0.0-alpha-4080120250820001",
29
+ "@dcloudio/uni-mp-compiler": "3.0.0-alpha-4080120250820001",
30
+ "@dcloudio/uni-mp-vite": "3.0.0-alpha-4080120250820001",
31
+ "@dcloudio/uni-mp-vue": "3.0.0-alpha-4080120250820001",
32
+ "@dcloudio/uni-shared": "3.0.0-alpha-4080120250820001"
33
33
  },
34
34
  "scripts": {
35
35
  "test": "echo \"Error: no test specified\" && exit 1"