@tarojs/plugin-platform-harmony-ets 4.0.0-beta.12 → 4.0.0-beta.13

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/runtime.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { isFunction, isString, isArray, isObject, isNull, isNumber, isUndefined, queryToJson, PLATFORM_TYPE, singleQuote, internalComponents, mergeReconciler, mergeInternalComponents } from '@tarojs/shared';
2
2
  import _display from '@ohos.display';
3
- import { Current, window, hooks, document as document$1, getPageScrollerOrNode, findChildNodeWithDFS, setNodeEventCallbackAndTriggerComponentUpdate, AREA_CHANGE_EVENT_NAME, disconnectEvent, VISIBLE_CHANGE_EVENT_NAME } from '@tarojs/runtime';
3
+ import { Current, window, hooks, document as document$1, getPageScrollerOrNode, findChildNodeWithDFS, setNodeEventCallbackAndTriggerComponentUpdate, AREA_CHANGE_EVENT_NAME, disconnectEvent, VISIBLE_CHANGE_EVENT_NAME, getCurrentInstance } from '@tarojs/runtime';
4
4
  import { eventCenter, Events, History } from '@tarojs/runtime/dist/runtime.esm';
5
5
  import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant';
6
6
  import deviceInfo from '@ohos.deviceInfo';
@@ -2006,7 +2006,6 @@ function getEnv() {
2006
2006
  }
2007
2007
  // TODO
2008
2008
  const getCurrentPages = () => [];
2009
- const getCurrentInstance = () => Current;
2010
2009
  const requirePlugin$1 = temporarilyNotSupport('requirePlugin');
2011
2010
 
2012
2011
  // @ts-nocheck
@@ -4774,7 +4773,7 @@ const defaultBaseFontSize = 20;
4774
4773
  const defaultUnitPrecision = 5;
4775
4774
  const defaultTargetUnit = 'vp';
4776
4775
  function getApp$1() {
4777
- return Current.app;
4776
+ return Current.app || {};
4778
4777
  }
4779
4778
  function initPxTransform({ designWidth = defaultDesignWidth, deviceRatio = defaultDesignRatio, baseFontSize = defaultBaseFontSize, unitPrecision = defaultUnitPrecision, targetUnit = defaultTargetUnit }) {
4780
4779
  const taro = Current.taro;