开放式跨端跨框架解决方案,支持使用 React/Vue 等框架来开发微信/京东/百度/支付宝/字节跳动/ QQ 小程序/H5/React Native 等应用。 https://taro.zone/
423 matches across 7 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | crates/taro_init/README.md | 1 | # Taro init |
| LOW | crates/swc_plugin_define_config/src/lib.rs | 141 | /// if plugin need to handle low-level ptr directly via |
| LOW | crates/swc_plugin_compile_mode/src/lib.rs | 61 | /// `plugin_transform` macro interop pointers into deserialized structs, as well |
| LOW | tests/__tests__/bundled/globby/index.js | 4201 | // fatal for JavaScript regular expression, so eliminate it. |
| LOW | tests/__tests__/bundled/globby/index.js | 4261 | // > There are 12 characters with special meanings: |
| LOW | tests/__tests__/bundled/globby/index.js | 4301 | |
| LOW | tests/__tests__/bundled/globby/index.js | 4321 | function startingReplacer () { |
| LOW | tests/__tests__/bundled/globby/index.js | 4361 | |
| LOW | tests/__tests__/bundled/globby/index.js | 4421 | // Invalid range notaton |
| LOW | tests/__tests__/bundled/globby/index.js | 4641 | |
| LOW | examples/custom-tabbar-vue3/config/prod.js | 21 | // /** |
| LOW | examples/blended-taro-component-vue3/h5/config/prod.js | 21 | // /** |
| LOW | …lended-taro-component-vue3/taro-project/config/prod.js | 21 | // /** |
| LOW | examples/mini-program-example/config/prod.js | 21 | // /** |
| LOW | …xample/src/pages/api/device/bluetoothGeneral/index.tsx | 21 | export default class Index extends React.Component { |
| LOW | …xample/src/pages/api/device/bluetoothGeneral/index.tsx | 261 | // Taro.stopBluetoothDevicesDiscovery({ |
| LOW | …xample/src/pages/api/device/bluetoothGeneral/index.tsx | 281 | // let services: Array<string> = [] |
| LOW | …xample/src/pages/api/device/bluetoothGeneral/index.tsx | 301 | // }, |
| LOW | …xample/src/pages/api/device/bluetoothGeneral/index.tsx | 321 | // }, |
| LOW | …xample/src/pages/api/device/bluetoothGeneral/index.tsx | 341 | // id: 'offBluetoothDeviceFound', |
| LOW | …xample/src/pages/api/device/bluetoothGeneral/index.tsx | 361 | // if (deviceUuid == '') { |
| LOW | …xample/src/pages/api/device/bluetoothGeneral/index.tsx | 381 | // }) |
| LOW | …xample/src/pages/api/device/bluetoothGeneral/index.tsx | 401 | // }, |
| LOW | …xample/src/pages/api/device/bluetoothGeneral/index.tsx | 421 | // }, |
| LOW | …xample/src/pages/api/device/bluetoothGeneral/index.tsx | 441 | // ], |
| LOW | …xample/src/pages/api/device/bluetoothGeneral/index.tsx | 461 | // </View> |
| LOW | examples/input-readonly-taro4/config/prod.ts | 1 | import type { UserConfigExport } from "@tarojs/cli" |
| LOW | examples/input-readonly-taro4/config/prod.ts | 21 | // const path = require('path') |
| LOW | examples/taro-list/config/prod.ts | 1 | import type { UserConfigExport } from "@tarojs/cli"; |
| LOW | examples/taro-list/config/prod.ts | 21 | // const path = require('path') |
| LOW | examples/swiper-effect/config/prod.ts | 1 | import type { UserConfigExport } from "@tarojs/cli"; |
| LOW | examples/swiper-effect/config/prod.ts | 21 | // const Prerender = require('prerender-spa-plugin') |
| LOW | …s/external-prebundle/config/webpackDevServer.config.js | 21 | // websites from potentially accessing local content through DNS rebinding: |
| LOW | …s/external-prebundle/config/webpackDevServer.config.js | 41 | 'Access-Control-Allow-Methods': '*', |
| LOW | examples/external-prebundle/config/webpack.config.js | 541 | }, |
| LOW | examples/external-prebundle/config/webpack.config.js | 601 | // It will be an empty string unless you specify "homepage" |
| LOW | examples/external-prebundle/config/env.js | 41 | }); |
| LOW | examples/external-prebundle/src/setupTests.js | 1 | // jest-dom adds custom jest matchers for asserting on DOM nodes. |
| LOW | packages/taro-runtime/src/dom/node.ts | 201 | } |
| LOW | packages/taro-runtime/src/dom/style_properties.ts | 61 | // 'dominantBaseline', |
| LOW | packages/taro-runtime/src/dom/style_properties.ts | 201 | // combine('initialLetters', ['Align', 'Wrap']) |
| LOW | packages/taro-vite-runner/src/harmony/asset.ts | 261 | |
| LOW | packages/taro-vite-runner/src/harmony/style.ts | 301 | let viteConfig: ResolvedConfig |
| LOW | packages/taro-vite-runner/src/harmony/style.ts | 421 | // resolve asset URL placeholders to their built file URLs |
| LOW | packages/taro-vite-runner/src/harmony/style.ts | 441 | // 'asset', |
| LOW | packages/taro-vite-runner/src/harmony/style.ts | 461 | // () => `${relativePathToPublicFromCSS}/${publicUrl}`, |
| LOW | packages/taro-vite-runner/src/harmony/style.ts | 481 | // : chunk.name |
| LOW | packages/taro-rn/__tests__/geolocation.test.ts | 1 | import * as Taro from '../src/lib/getLocation' |
| LOW | packages/taro-rn/__tests__/geolocation.test.ts | 21 | // expect.assertions(6) |
| LOW | packages/taro-rn/__tests__/network.test.ts | 21 | expect(fail.mock.calls.length).toBe(0) |
| LOW | packages/taro-rn/__tests__/network.test.ts | 41 | // console.log("Connection type", state.type) |
| LOW | packages/taro-cli-convertor/src/index.ts | 461 | } |
| LOW | packages/taro-cli-convertor/src/index.ts | 481 | // }) |
| LOW | packages/taro-cli-convertor/src/util/index.ts | 401 | copyFileToTaro(matchUnconvertDir, outputFilePath) |
| LOW | packages/taro-plugin-http/src/index.ts | 41 | // // taro webpack4 中, 未正确识别到 axios package.json 中的 browser 字段, 以致于打包进入了 node 相关的代码(https://github.com/axios/axi |
| LOW | packages/taro-plugin-http/src/runtime/XMLHttpRequest.ts | 101 | } |
| LOW | …ckages/taro-plugin-react-devtools/src/backend/index.js | 2921 | if (!document.queryCommandEnabled("copy") && sel.isCollapsed) { |
| LOW | …ckages/taro-plugin-react-devtools/src/backend/index.js | 7641 | // Would show a preview of... |
| LOW | …ckages/taro-plugin-react-devtools/src/backend/index.js | 9221 | |
| LOW | …ckages/taro-plugin-react-devtools/src/backend/index.js | 12341 | // earlier than the other. We assume that the sample is longer or the same |
| 170 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| CRITICAL | …es/babel-plugin-transform-solid-jsx/src/ssr/element.js | 193 | existingAttribute.node.value.expression.properties.push(...properties) |
| CRITICAL | …es/babel-plugin-transform-solid-jsx/src/dom/element.js | 274 | !a.node.value.expression.properties.some((p) => t.isSpreadElement(p)) |
| CRITICAL | …es/babel-plugin-transform-solid-jsx/src/dom/element.js | 279 | styleAttribute.node.value.expression.properties.slice().forEach((p, index) => { |
| CRITICAL | …es/babel-plugin-transform-solid-jsx/src/dom/element.js | 295 | styleAttribute.node.value.expression.properties.splice(index - i - 1, 1) |
| CRITICAL | …es/babel-plugin-transform-solid-jsx/src/dom/element.js | 311 | !a.node.value.expression.properties.some( |
| CRITICAL | packages/taro-transformer-wx/src/class.ts | 190 | const _constructor = this.classPath.node.body.body.find((item) => { |
| CRITICAL | packages/taro-transformer-wx/src/class.ts | 226 | this.classPath.node.body.body.push($$componentPath) |
| CRITICAL | packages/taro-transformer-wx/src/class.ts | 1077 | this.classPath.node.body.body = this.classPath.node.body.body.concat(method) |
| CRITICAL | packages/taro-transformer-wx/src/class.ts | 1101 | this.classPath.node.body.body.push( |
| CRITICAL | packages/taro-transformer-wx/src/class.ts | 1252 | this.classPath.node.body.body = this.classPath.node.body.body.filter((m) => { |
| CRITICAL | packages/taro-transformer-wx/src/utils.ts | 293 | p.node.left.property.name.startsWith('')) |
| CRITICAL | packages/taro-transformer-wx/src/render.ts | 638 | this.renderPath.node.body.body.unshift( |
| CRITICAL | packages/taro-transformer-wx/src/render.ts | 1458 | this.renderPath.node.body.body.unshift(dcl) |
| CRITICAL | packages/taro-transformer-wx/src/render.ts | 2296 | this.renderPath.node.body.body.unshift(scopeDecl) |
| CRITICAL | packages/taro-transformer-wx/src/render.ts | 2310 | this.renderPath.node.body.body.push(decl) |
| CRITICAL | packages/taro-transformer-wx/src/render.ts | 2542 | this.renderPath.node.body.body.unshift(...Array.from(this.genCompidExprs)) |
| CRITICAL | packages/taro-transformer-wx/src/render.ts | 2545 | this.renderPath.node.body.body.push( |
| CRITICAL | packages/taro-transformer-wx/src/render.ts | 2557 | this.renderPath.node.body.body = this.renderPath.node.body.body.concat( |
| CRITICAL | packages/taro-transformer-wx/src/render.ts | 2569 | this.renderPath.node.body.body.push( |
| CRITICAL | packages/taro-transformer-wx/src/render.ts | 2632 | this.renderPath.node.body.body.unshift( |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/__tests__/bundled/globby/index.js | 842 | function replacePathSegmentSeparator(filepath, separator) { |
| LOW | tests/__tests__/bundled/globby/index.js | 2234 | function getNegativePatternsAsPositive(patterns, ignore) { |
| LOW | tests/__tests__/bundled/globby/index.js | 2240 | function groupPatternsByBaseDirectory(patterns) { |
| LOW | tests/__tests__/bundled/globby/index.js | 2254 | function convertPatternGroupsToTasks(positive, negative, dynamic) { |
| LOW | tests/__tests__/bundled/globby/index.js | 2260 | function convertPatternGroupToTask(base, positive, negative, dynamic) { |
| LOW | tests/__tests__/bundled/globby/index.js | 3234 | function convertWindowsPathToPattern(filepath) { |
| LOW | tests/__tests__/bundled/globby/index.js | 3240 | function convertPosixPathToPattern(filepath) { |
| LOW | tests/__tests__/bundled/globby/index.js | 3348 | function getPatternsInsideCurrentDirectory(patterns) { |
| LOW | tests/__tests__/bundled/globby/index.js | 3359 | function getPatternsOutsideCurrentDirectory(patterns) { |
| LOW | tests/__tests__/bundled/globby/index.js | 3363 | function isPatternRelatedToParentDirectory(pattern) { |
| LOW | tests/__tests__/bundled/globby/index.js | 3379 | function isAffectDepthOfReadingPattern(pattern) { |
| LOW | tests/__tests__/bundled/globby/index.js | 3384 | function expandPatternsWithBraceExpansion(patterns) { |
| LOW | tests/__tests__/bundled/globby/index.js | 3443 | function partitionAbsoluteAndRelative(patterns) { |
| LOW | tests/__tests__/bundled/globby/index.js | 3486 | function propagateCloseEventToSources(streams) { |
| LOW | …bel-plugin-transform-solid-jsx/src/shared/component.js | 15 | function convertComponentIdentifier(node) { |
| LOW | …bel-plugin-transform-solid-jsx/src/shared/component.js | 217 | function transformComponentChildren(children, config) { |
| LOW | …abel-plugin-transform-solid-jsx/src/shared/fragment.js | 7 | export default function transformFragmentChildren(children, results, config) { |
| LOW | …es/babel-plugin-transform-solid-jsx/src/dom/element.js | 222 | function detectResolvableEventHandler(attribute, handler) { |
| LOW | packages/taro-framework-vue3/src/webpack.harmony.ts | 9 | export function modifyHarmonyWebpackChain (ctx: IPluginContext, chain, data, config: IConfig) { |
| LOW | packages/taro-framework-vue3/src/utils.ts | 98 | export function getHarmonyVueLoaderOptions (ctx: IPluginContext, componentConfig, config: IConfig) { |
| LOW | …ages/taro-framework-vue3/src/runtime/connect-native.ts | 152 | export function createNativeComponentConfig (component, h: typeof createElement, componentConfig) { |
| LOW | packages/taro-runtime/src/dom-external/element.ts | 6 | export function getBoundingClientRectImpl (this: TaroElement): Promise<null> { |
| LOW | packages/taro-runtime/src/polyfill/array.ts | 30 | export function handleArrayIncludesPolyfill () { |
| LOW | …ges/taro-runtime/src/polyfill/intersection-observer.ts | 6 | export function handleIntersectionObserverPolyfill () { |
| LOW | …ges/taro-runtime/src/polyfill/intersection-observer.ts | 28 | function handleIntersectionObserverObjectPolyfill () { |
| LOW | …ges/taro-runtime/src/polyfill/intersection-observer.ts | 45 | function IntersectionObserverEntry (entry: IntersectionObserverEntryInit) { |
| LOW | packages/taro-runtime/src/polyfill/object.ts | 3 | export function handleObjectAssignPolyfill () { |
| LOW | packages/taro-runtime/src/polyfill/object.ts | 30 | export function handleObjectEntriesPolyfill () { |
| LOW | packages/taro-runtime/src/polyfill/object.ts | 53 | export function handleObjectDefinePropertyPolyfill () { |
| LOW | packages/taro-runtime/src/dsl/common.ts | 367 | export function createRecursiveComponentConfig (componentName?: string) { |
| LOW | …ckages/taro-vite-runner/src/harmony/postcss/compile.ts | 341 | function combineSourcemapsIfExists( |
| LOW | packages/taro-vite-runner/src/harmony/postcss/build.ts | 57 | export function createToImportMetaURLBasedRelativeRuntime( |
| LOW | packages/taro-vite-runner/src/harmony/postcss/build.ts | 70 | function toOutputFilePathWithoutRuntime( |
| LOW | packages/taro-vite-runner/src/utils/createFilter.ts | 79 | export function createFilterWithCompileOptions(compile: { |
| LOW | packages/taro-vite-runner/src/utils/index.ts | 78 | export function appendVirtualModulePrefix (id: string): string { |
| LOW | …ner/src/common/babel-plugin-import-native-component.ts | 12 | return function pluginImportNativeComponent (babel: typeof BabelCore): BabelCore.PluginObj<BabelCore.PluginPass> { |
| LOW | packages/taro-components-advanced/src/utils/helper.ts | 5 | export function getOffsetForIndexAndAlignment ({ |
| LOW | packages/taro-rn/src/lib/deviceMotion.ts | 34 | function startDeviceMotionListening (object: Taro.startDeviceMotionListening.Option = {}): Promise<TaroGeneral.CallbackR |
| LOW | packages/taro-rn/src/lib/deviceMotion.ts | 60 | function stopDeviceMotionListening (object: Taro.stopDeviceMotionListening.Option = {}): Promise<TaroGeneral.CallbackRes |
| LOW | packages/taro-rn/src/lib/request/index.ts | 11 | function generateRequestUrlWithParams(url, params) { |
| LOW | …ugin-transform-react-jsx-to-rn-stylesheet/src/index.ts | 174 | function getArrayExpressionFromObjectProperty (value) { |
| LOW | packages/taro-cli-convertor/__tests__/util.ts | 5 | export function generateMinimalEscapeCode (ast: t.File) { |
| LOW | packages/taro-cli-convertor/src/util/index.ts | 560 | export function replacePluginComponentUrl (pluginComponentPath, pluginInfo) { |
| LOW | packages/taro-cli-convertor/src/util/astConvert.ts | 6 | export function generateMinimalEscapeCode (ast: t.File) { |
| LOW | packages/taro-framework-solid/src/webpack.harmony.ts | 6 | export function modifyHarmonyWebpackChain (chain) { |
| LOW | packages/taro-runner-utils/src/vite.ts | 14 | export async function getViteHarmonyCompilerContext (rollupPluginContext: PluginContext): Promise<ViteHarmonyCompilerCon |
| LOW | packages/taro-runner-utils/src/vite.ts | 22 | export function getViteMiniCompilerContext (rollupPluginContext: PluginContext): ViteMiniCompilerContext | void { |
| LOW | packages/taro-router/types/component.d.ts | 7 | export function defineCustomElementTaroTabbar() {} |
| LOW | packages/taro-helper/src/utils.ts | 303 | export function getNpmPackageAbsolutePath (npmPath: string, defaultFile = 'index'): string | null { |
| LOW | packages/taro-helper/src/utils.ts | 416 | export function getInstalledNpmPkgVersion(pkgName: string, basedir: string): string | null { |
| LOW | packages/taro-plugin-http/src/runtime/XMLHttpRequest.ts | 62 | function createXMLHttpRequestEvent (event: string, target:XMLHttpRequest, loaded: number): XMLHttpRequestEvent { |
| LOW | …ckages/taro-plugin-react-devtools/src/backend/index.js | 12393 | function describeClassComponentFrame(ctor, source, ownerFn, currentDispatcherRef) { |
| LOW | …ckages/taro-plugin-react-devtools/src/backend/index.js | 12396 | function describeFunctionComponentFrame(fn, source, ownerFn, currentDispatcherRef) { |
| LOW | …ckages/taro-plugin-react-devtools/src/backend/index.js | 12405 | function describeUnknownElementTypeFrameInDEV(type, source, ownerFn, currentDispatcherRef) { |
| LOW | …ckages/taro-plugin-react-devtools/src/backend/index.js | 27 | (function webpackUniversalModuleDefinition(root, factory) { |
| LOW | …ckages/taro-plugin-react-devtools/src/backend/index.js | 4080 | function installNextTickImplementation() { |
| LOW | …ckages/taro-plugin-react-devtools/src/backend/index.js | 4105 | function installPostMessageImplementation() { |
| LOW | …ckages/taro-plugin-react-devtools/src/backend/index.js | 4128 | function installMessageChannelImplementation() { |
| LOW | …ckages/taro-plugin-react-devtools/src/backend/index.js | 4141 | function installReadyStateChangeImplementation() { |
| LOW | …ckages/taro-plugin-react-devtools/src/backend/index.js | 4160 | function installSetTimeoutImplementation() { |
| 106 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | examples/external-prebundle/config/webpack.config.js | 751 | // Turn off performance processing because we utilize |
| MEDIUM | packages/eslint-config-taro/index.js | 33 | // TypeScript's `noFallthroughCasesInSwitch` option is more robust (#6906) |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | packages/taro-components/types/ShareElement.d.ts | 164 | * Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus nisl enim, sodales non augue efficitur |
| LOW | packages/taro-components/types/ShareElement.d.ts | 164 | * Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus nisl enim, sodales non augue efficitur |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | …components-library-vue3/src/vue-component-lib/utils.ts | 22 | * we need to check if the key exists for Vue <3.1.0 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | packages/taro-cli-convertor/__tests__/convertor.test.ts | 258 | function getData(url) { |
| LOW | …ckages/taro-plugin-react-devtools/src/backend/index.js | 14100 | function getData(internalInstance) { |