@tarojs/plugin-platform-harmony-ets 4.0.0-beta.110 → 4.0.0-beta.111

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.
@@ -40,18 +40,18 @@ export class TaroElement<
40
40
 
41
41
 
42
42
  public get hm_instance(): TaroAny {
43
- if (this.use_weak_hm_instance) {
43
+ if (this.use_weak_hm_instance && this.weak_hm_instance) {
44
44
  return this.weak_hm_instance?.deref()
45
45
  }
46
46
  return this._hm_instance
47
47
  }
48
48
 
49
- public set hm_instance(v) {
50
- if (this.use_weak_hm_instance) {
51
- this.weak_hm_instance = new WeakRef(v);
49
+ public set hm_instance(instance) {
50
+ if (this.use_weak_hm_instance && instance) {
51
+ this.weak_hm_instance = new WeakRef(instance)
52
52
  return
53
53
  }
54
- this._hm_instance = v
54
+ this._hm_instance = instance
55
55
  }
56
56
 
57
57
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tarojs/plugin-platform-harmony-ets",
3
- "version": "4.0.0-beta.110",
3
+ "version": "4.0.0-beta.111",
4
4
  "description": "OpenHarmony & 鸿蒙系统插件",
5
5
  "author": "O2Team",
6
6
  "homepage": "https://gitee.com/openharmony-sig/taro",
@@ -27,13 +27,13 @@
27
27
  "webpack-sources": "^3.2.3",
28
28
  "@babel/preset-react": "^7.24.1",
29
29
  "webpack": "5.91.0",
30
- "@tarojs/components": "4.0.0-beta.110",
31
- "@tarojs/helper": "4.0.0-beta.110",
32
- "@tarojs/service": "4.0.0-beta.110",
33
- "@tarojs/shared": "4.0.0-beta.110",
34
- "@tarojs/runner-utils": "4.0.0-beta.110",
35
- "@tarojs/runtime": "4.0.0-beta.110",
36
- "@tarojs/taro": "4.0.0-beta.110"
30
+ "@tarojs/helper": "4.0.0-beta.111",
31
+ "@tarojs/components": "4.0.0-beta.111",
32
+ "@tarojs/runner-utils": "4.0.0-beta.111",
33
+ "@tarojs/runtime": "4.0.0-beta.111",
34
+ "@tarojs/service": "4.0.0-beta.111",
35
+ "@tarojs/taro": "4.0.0-beta.111",
36
+ "@tarojs/shared": "4.0.0-beta.111"
37
37
  },
38
38
  "devDependencies": {
39
39
  "fast-glob": "^3.3.1",
@@ -42,7 +42,7 @@
42
42
  "rollup-plugin-ts": "^3.0.2",
43
43
  "solid-js": "^1.8.16",
44
44
  "tslib": "^2.4.0",
45
- "rollup-plugin-copy": "4.0.0-beta.110"
45
+ "rollup-plugin-copy": "4.0.0-beta.111"
46
46
  },
47
47
  "scripts": {
48
48
  "prod": "pnpm run build",