@tarojs/plugin-platform-harmony-cpp 4.1.4-beta.0 → 4.1.4-beta.10

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/index.js CHANGED
@@ -15,7 +15,7 @@ var utils = require('@tarojs/vite-runner/dist/utils');
15
15
  var parseCssToStylesheet = require('@tarojs/parse-css-to-stylesheet');
16
16
  var constants = require('@tarojs/vite-runner/dist/harmony/postcss/constants');
17
17
 
18
- var version = "4.1.4-beta.0";
18
+ var version = "4.1.4-beta.10";
19
19
 
20
20
  const PKG_NAME = '@taro-oh/library';
21
21
  const PKG_VERSION = version;
@@ -170,16 +170,15 @@ function appPlugin () {
170
170
  };
171
171
  }
172
172
 
173
- function injectEnv () {
174
- const that = this;
173
+ function injectEnv (platform) {
175
174
  const packageName = '@tarojs/taro';
176
175
  const bindingName = 'Taro';
177
- const businessId = this.config.defineConstants?.LOCATION_APIKEY?.replace(/^['"]|['"]$/g, '');
176
+ const businessId = platform.getConfig().defineConstants?.LOCATION_APIKEY?.replace(/^['"]|['"]$/g, '');
178
177
  return {
179
178
  name: 'taro:vite-add-method-env',
180
179
  transform(code, id) {
181
180
  const pluginContext = this;
182
- const { runnerUtils } = that.context;
181
+ const { runnerUtils } = platform.context;
183
182
  const { getViteHarmonyCompilerContext } = runnerUtils;
184
183
  const compiler = getViteHarmonyCompilerContext(pluginContext);
185
184
  const exts = Array.from(new Set(compiler?.frameworkExts.concat(helper.SCRIPT_EXT)));
@@ -1314,4 +1313,5 @@ function assertHarmonyConfig(ctx, config) {
1314
1313
  }
1315
1314
  }
1316
1315
 
1316
+ exports.HarmonyCPP = Harmony;
1317
1317
  exports.default = index;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tarojs/plugin-platform-harmony-cpp",
3
- "version": "4.1.4-beta.0",
3
+ "version": "4.1.4-beta.10",
4
4
  "description": "鸿蒙系统插件 C-API 版本",
5
5
  "author": "O2Team",
6
6
  "homepage": "https://gitee.com/openharmony-sig/taro",
@@ -39,9 +39,9 @@
39
39
  "rollup-plugin-node-externals": "^5.1.3",
40
40
  "rollup-plugin-ts": "^3.4.5",
41
41
  "scheduler": "^0.23.2",
42
- "@tarojs/react": "4.1.4-beta.0",
43
- "@tarojs/runner-utils": "4.1.4-beta.0",
44
- "@tarojs/service": "4.1.4-beta.0"
42
+ "@tarojs/react": "4.1.4-beta.10",
43
+ "@tarojs/service": "4.1.4-beta.10",
44
+ "@tarojs/runner-utils": "4.1.4-beta.10"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@rollup/plugin-typescript": "^11.1.6",
@@ -57,30 +57,30 @@
57
57
  "tslib": "^2.6.3",
58
58
  "typescript": "~5.4.5",
59
59
  "vite": "^4.2.0",
60
- "@tarojs/components": "4.1.4-beta.0",
61
- "@tarojs/plugin-framework-react": "4.1.4-beta.0",
62
- "@tarojs/plugin-platform-harmony-ets": "4.1.4-beta.0",
63
- "@tarojs/react": "4.1.4-beta.0",
64
- "@tarojs/taro": "4.1.4-beta.0",
65
- "@tarojs/helper": "4.1.4-beta.0",
66
- "@tarojs/shared": "4.1.4-beta.0",
67
- "@tarojs/runtime": "4.1.4-beta.0",
68
- "@tarojs/vite-runner": "4.1.4-beta.0",
69
- "rollup-plugin-copy": "4.1.4-beta.0"
60
+ "@tarojs/components": "4.1.4-beta.10",
61
+ "@tarojs/plugin-framework-react": "4.1.4-beta.10",
62
+ "@tarojs/plugin-platform-harmony-ets": "4.1.4-beta.10",
63
+ "@tarojs/helper": "4.1.4-beta.10",
64
+ "@tarojs/react": "4.1.4-beta.10",
65
+ "@tarojs/runtime": "4.1.4-beta.10",
66
+ "@tarojs/shared": "4.1.4-beta.10",
67
+ "@tarojs/taro": "4.1.4-beta.10",
68
+ "@tarojs/vite-runner": "4.1.4-beta.10",
69
+ "rollup-plugin-copy": "4.1.4-beta.10"
70
70
  },
71
71
  "peerDependencies": {
72
72
  "less": "^4.2.0",
73
73
  "sass": "^1.75.0",
74
74
  "stylus": "^0.63.0",
75
- "@tarojs/components": "4.1.4-beta.0",
76
- "@tarojs/helper": "4.1.4-beta.0",
77
- "@tarojs/plugin-framework-react": "4.1.4-beta.0",
78
- "@tarojs/plugin-platform-harmony-ets": "4.1.4-beta.0",
79
- "@tarojs/shared": "4.1.4-beta.0",
80
- "@tarojs/runtime": "4.1.4-beta.0",
81
- "@tarojs/taro": "4.1.4-beta.0",
82
- "@tarojs/react": "4.1.4-beta.0",
83
- "@tarojs/vite-runner": "4.1.4-beta.0"
75
+ "@tarojs/components": "4.1.4-beta.10",
76
+ "@tarojs/plugin-framework-react": "4.1.4-beta.10",
77
+ "@tarojs/plugin-platform-harmony-ets": "4.1.4-beta.10",
78
+ "@tarojs/react": "4.1.4-beta.10",
79
+ "@tarojs/helper": "4.1.4-beta.10",
80
+ "@tarojs/runtime": "4.1.4-beta.10",
81
+ "@tarojs/shared": "4.1.4-beta.10",
82
+ "@tarojs/taro": "4.1.4-beta.10",
83
+ "@tarojs/vite-runner": "4.1.4-beta.10"
84
84
  },
85
85
  "scripts": {
86
86
  "prebuild": "rimraf --impl=move-remove dist",