@dcloudio/uni-shared 3.0.0-5000520260324001 → 3.0.0-5000520260324002

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.
@@ -200,26 +200,24 @@ const NVUE_U_BUILT_IN_TAGS = [
200
200
  const UVUE_WEB_BUILT_IN_CUSTOM_ELEMENTS = ['match-media'];
201
201
  const UNI_UI_CONFLICT_TAGS = ['list-item'].map((tag) => 'uni-' + tag);
202
202
  function isBuiltInComponent(tag) {
203
- var _a;
204
203
  if (UNI_UI_CONFLICT_TAGS.indexOf(tag) !== -1) {
205
204
  return false;
206
205
  }
207
206
  // h5 平台会被转换为 v-uni-
208
207
  const realTag = 'uni-' + tag.replace('v-uni-', '');
209
- if (((_a = process === null || process === void 0 ? void 0 : process.env) === null || _a === void 0 ? void 0 : _a.UNI_APP_X) !== 'true') {
208
+ if (process.env.UNI_APP_X !== 'true') {
210
209
  return BUILT_IN_TAGS.indexOf(realTag) !== -1;
211
210
  }
212
211
  return (BUILT_IN_TAGS.indexOf(realTag) !== -1 ||
213
212
  UVUE_WEB_BUILT_IN_TAGS.indexOf(realTag) !== -1);
214
213
  }
215
214
  function isWebBuiltInComponent(tag) {
216
- var _a;
217
215
  if (UNI_UI_CONFLICT_TAGS.indexOf(tag) !== -1) {
218
216
  return false;
219
217
  }
220
218
  // h5 平台会被转换为 v-uni-
221
219
  const realTag = 'uni-' + tag.replace('v-uni-', '');
222
- if (((_a = process === null || process === void 0 ? void 0 : process.env) === null || _a === void 0 ? void 0 : _a.UNI_APP_X) !== 'true') {
220
+ if (process.env.UNI_APP_X !== 'true') {
223
221
  return BUILT_IN_TAGS.indexOf(realTag) !== -1;
224
222
  }
225
223
  return (BUILT_IN_TAGS.indexOf(realTag) !== -1 ||
@@ -198,26 +198,24 @@ const NVUE_U_BUILT_IN_TAGS = [
198
198
  const UVUE_WEB_BUILT_IN_CUSTOM_ELEMENTS = ['match-media'];
199
199
  const UNI_UI_CONFLICT_TAGS = ['list-item'].map((tag) => 'uni-' + tag);
200
200
  function isBuiltInComponent(tag) {
201
- var _a;
202
201
  if (UNI_UI_CONFLICT_TAGS.indexOf(tag) !== -1) {
203
202
  return false;
204
203
  }
205
204
  // h5 平台会被转换为 v-uni-
206
205
  const realTag = 'uni-' + tag.replace('v-uni-', '');
207
- if (((_a = process === null || process === void 0 ? void 0 : process.env) === null || _a === void 0 ? void 0 : _a.UNI_APP_X) !== 'true') {
206
+ if (process.env.UNI_APP_X !== 'true') {
208
207
  return BUILT_IN_TAGS.indexOf(realTag) !== -1;
209
208
  }
210
209
  return (BUILT_IN_TAGS.indexOf(realTag) !== -1 ||
211
210
  UVUE_WEB_BUILT_IN_TAGS.indexOf(realTag) !== -1);
212
211
  }
213
212
  function isWebBuiltInComponent(tag) {
214
- var _a;
215
213
  if (UNI_UI_CONFLICT_TAGS.indexOf(tag) !== -1) {
216
214
  return false;
217
215
  }
218
216
  // h5 平台会被转换为 v-uni-
219
217
  const realTag = 'uni-' + tag.replace('v-uni-', '');
220
- if (((_a = process === null || process === void 0 ? void 0 : process.env) === null || _a === void 0 ? void 0 : _a.UNI_APP_X) !== 'true') {
218
+ if (process.env.UNI_APP_X !== 'true') {
221
219
  return BUILT_IN_TAGS.indexOf(realTag) !== -1;
222
220
  }
223
221
  return (BUILT_IN_TAGS.indexOf(realTag) !== -1 ||
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/uni-shared",
3
- "version": "3.0.0-5000520260324001",
3
+ "version": "3.0.0-5000520260324002",
4
4
  "description": "@dcloudio/uni-shared",
5
5
  "main": "./dist/uni-shared.cjs.js",
6
6
  "module": "./dist/uni-shared.es.js",