@weapp-vite/ast 6.16.18 → 6.16.19

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/engine.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { n as AstParserLike, t as AstEngineName } from "./types-Cn0gcZR9.mjs";
1
+ import { n as AstParserLike, t as AstEngineName } from "./types-4qG2Ubmk.mjs";
2
2
 
3
3
  //#region src/engine.d.ts
4
4
  /**
package/dist/engine.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { t as parseJsLikeWithEngine } from "./engine-DHqNPCDA.mjs";
1
+ import { t as parseJsLikeWithEngine } from "./engine-CBE2OpFp.mjs";
2
2
  export { parseJsLikeWithEngine };
package/dist/index.d.mts CHANGED
@@ -1,11 +1,11 @@
1
1
  import { BABEL_TS_MODULE_PARSER_OPTIONS, BABEL_TS_MODULE_PLUGINS, generate, getVisitorKeys, parse, parseJsLike, traverse } from "./babel.mjs";
2
2
  import { getObjectPropertyByKey, getRenderPropertyFromComponentOptions, resolveRenderExpressionFromComponentOptions, resolveRenderableExpression, toStaticObjectKey, unwrapTypeScriptExpression } from "./babelNodes.mjs";
3
- import { n as AstParserLike, r as WeappAstConfig, t as AstEngineName } from "./types-Cn0gcZR9.mjs";
3
+ import { n as AstParserLike, r as WeappAstConfig, t as AstEngineName } from "./types-4qG2Ubmk.mjs";
4
4
  import { parseJsLikeWithEngine } from "./engine.mjs";
5
5
  import { ComponentPropMap, collectComponentPropsFromCode, collectComponentPropsWithBabel, collectComponentPropsWithOxc, extractComponentProperties, extractPropertiesObject, getStaticPropertyName, mapConstructorName, mayContainComponentPropsShape, mergeComponentPropTypes, resolveOptionsObjectExpression, resolveOptionsObjectExpressionWithBabel, resolveTypeFromNode } from "./operations/componentProps.mjs";
6
6
  import { FeatureFlagOptions, collectFeatureFlagsFromCode, collectFeatureFlagsWithBabel, collectFeatureFlagsWithOxc, consumeNamedFeatureFlag, consumeNamespaceFeatureFlag, mayContainFeatureFlagHints, registerNamedFeatureFlagLocal, registerNamespaceFeatureFlagLocal } from "./operations/featureFlags.mjs";
7
7
  import { JsxAutoComponentAnalysisOptions, JsxAutoComponentContext, JsxBabelModuleAnalysisOptions, JsxImportedComponent, collectJsxAutoComponentsFromCode, collectJsxAutoComponentsWithBabel, collectJsxAutoComponentsWithOxc, collectJsxImportedComponentsAndDefaultExportFromBabelAst, collectJsxTemplateTagsFromBabelExpression, collectJsxTemplateTagsFromOxc, createJsxImportedComponent, defaultIsDefineComponentSource, defaultResolveBabelComponentExpression, defaultResolveBabelRenderExpression, getJsxImportLocalName, getJsxImportedName, getJsxOxcStaticPropertyName, isJsxDefineComponentImportSpecifier, mayContainJsxAutoComponentEntry, resolveOxcComponentExpression, resolveOxcRenderExpression, unwrapOxcExpression } from "./operations/jsxAutoComponents.mjs";
8
- import { _ as collectOnPageScrollWarningsWithBabel, a as getLocationFromOffset, c as getOxcCallExpressionCalleeName, d as isOnPageScrollCallee, f as isOxcFunctionLike, g as collectPageScrollInspectionWithOxc, h as collectOnPageScrollWarningsWithOxc, i as getCallExpressionCalleeName, l as getOxcMemberExpressionPropertyName, m as isStaticPropertyName, n as createLineStartOffsets, o as getMemberExpressionPropertyName, p as isOxcOnPageScrollCallee, r as createWarningPrefix, s as getOnPageScrollCallbackArgument, t as collectOnPageScrollPerformanceWarnings, u as getOxcStaticPropertyName, v as collectPageScrollInspection } from "./onPageScroll-C9pqH5L1.mjs";
8
+ import { _ as collectOnPageScrollWarningsWithBabel, a as getLocationFromOffset, c as getOxcCallExpressionCalleeName, d as isOnPageScrollCallee, f as isOxcFunctionLike, g as collectPageScrollInspectionWithOxc, h as collectOnPageScrollWarningsWithOxc, i as getCallExpressionCalleeName, l as getOxcMemberExpressionPropertyName, m as isStaticPropertyName, n as createLineStartOffsets, o as getMemberExpressionPropertyName, p as isOxcOnPageScrollCallee, r as createWarningPrefix, s as getOnPageScrollCallbackArgument, t as collectOnPageScrollPerformanceWarnings, u as getOxcStaticPropertyName, v as collectPageScrollInspection } from "./onPageScroll-C1BbvMzn.mjs";
9
9
  import { hasPlatformApiMemberExpression, isPlatformApiIdentifier, isPlatformApiMemberExpression, mayContainPlatformApiAccess, mayContainPlatformApiIdentifierByText, platformApiIdentifierList, platformApiIdentifiers } from "./operations/platformApi.mjs";
10
10
  import { RequireToken, collectRequireTokens, getRequireAsyncLiteralToken, getStaticRequireLiteralValue, hasStaticRequireCall, isStaticRequireCall, mayContainRequireCallByText, mayContainStaticRequireLiteral } from "./operations/require.mjs";
11
11
  import { ScriptSetupImport, collectScriptSetupImportsFromCode, collectScriptSetupImportsWithBabel, collectScriptSetupImportsWithOxc, createScriptSetupImport, getScriptSetupImportedName, mayContainRelevantScriptSetupImports } from "./operations/scriptSetupImports.mjs";
package/dist/index.mjs CHANGED
@@ -1,10 +1,10 @@
1
1
  import { BABEL_TS_MODULE_PARSER_OPTIONS, BABEL_TS_MODULE_PLUGINS, generate, getVisitorKeys, parse, parseJsLike, traverse } from "./babel.mjs";
2
2
  import { getObjectPropertyByKey, getRenderPropertyFromComponentOptions, resolveRenderExpressionFromComponentOptions, resolveRenderableExpression, toStaticObjectKey, unwrapTypeScriptExpression } from "./babelNodes.mjs";
3
- import { n as oxcAstEngine, r as babelAstEngine, t as parseJsLikeWithEngine } from "./engine-DHqNPCDA.mjs";
3
+ import { n as oxcAstEngine, r as babelAstEngine, t as parseJsLikeWithEngine } from "./engine-CBE2OpFp.mjs";
4
4
  import { collectComponentPropsFromCode, collectComponentPropsWithBabel, collectComponentPropsWithOxc, extractComponentProperties, extractPropertiesObject, getStaticPropertyName, mapConstructorName, mayContainComponentPropsShape, mergeComponentPropTypes, resolveOptionsObjectExpression, resolveOptionsObjectExpressionWithBabel, resolveTypeFromNode } from "./operations/componentProps.mjs";
5
5
  import { collectFeatureFlagsFromCode, collectFeatureFlagsWithBabel, collectFeatureFlagsWithOxc, consumeNamedFeatureFlag, consumeNamespaceFeatureFlag, mayContainFeatureFlagHints, registerNamedFeatureFlagLocal, registerNamespaceFeatureFlagLocal } from "./operations/featureFlags.mjs";
6
6
  import { collectJsxAutoComponentsFromCode, collectJsxAutoComponentsWithBabel, collectJsxAutoComponentsWithOxc, collectJsxImportedComponentsAndDefaultExportFromBabelAst, collectJsxTemplateTagsFromBabelExpression, collectJsxTemplateTagsFromOxc, createJsxImportedComponent, defaultIsDefineComponentSource, defaultResolveBabelComponentExpression, defaultResolveBabelRenderExpression, getJsxImportLocalName, getJsxImportedName, getJsxOxcStaticPropertyName, isJsxDefineComponentImportSpecifier, mayContainJsxAutoComponentEntry, resolveOxcComponentExpression, resolveOxcRenderExpression, unwrapOxcExpression } from "./operations/jsxAutoComponents.mjs";
7
- import { _ as isOxcOnPageScrollCallee, a as collectPageScrollInspection, c as getCallExpressionCalleeName, d as getOnPageScrollCallbackArgument, f as getOxcCallExpressionCalleeName, g as isOxcFunctionLike, h as isOnPageScrollCallee, i as collectOnPageScrollWarningsWithBabel, l as getLocationFromOffset, m as getOxcStaticPropertyName, n as collectOnPageScrollWarningsWithOxc, o as createLineStartOffsets, p as getOxcMemberExpressionPropertyName, r as collectPageScrollInspectionWithOxc, s as createWarningPrefix, t as collectOnPageScrollPerformanceWarnings, u as getMemberExpressionPropertyName, v as isStaticPropertyName } from "./onPageScroll-FN_gheDb.mjs";
7
+ import { _ as isOxcOnPageScrollCallee, a as collectPageScrollInspection, c as getCallExpressionCalleeName, d as getOnPageScrollCallbackArgument, f as getOxcCallExpressionCalleeName, g as isOxcFunctionLike, h as isOnPageScrollCallee, i as collectOnPageScrollWarningsWithBabel, l as getLocationFromOffset, m as getOxcStaticPropertyName, n as collectOnPageScrollWarningsWithOxc, o as createLineStartOffsets, p as getOxcMemberExpressionPropertyName, r as collectPageScrollInspectionWithOxc, s as createWarningPrefix, t as collectOnPageScrollPerformanceWarnings, u as getMemberExpressionPropertyName, v as isStaticPropertyName } from "./onPageScroll-RxvH7Pi_.mjs";
8
8
  import { hasPlatformApiMemberExpression, isPlatformApiIdentifier, isPlatformApiMemberExpression, mayContainPlatformApiAccess, mayContainPlatformApiIdentifierByText, platformApiIdentifierList, platformApiIdentifiers } from "./operations/platformApi.mjs";
9
9
  import { collectRequireTokens, getRequireAsyncLiteralToken, getStaticRequireLiteralValue, hasStaticRequireCall, isStaticRequireCall, mayContainRequireCallByText, mayContainStaticRequireLiteral } from "./operations/require.mjs";
10
10
  import { collectScriptSetupImportsFromCode, collectScriptSetupImportsWithBabel, collectScriptSetupImportsWithOxc, createScriptSetupImport, getScriptSetupImportedName, mayContainRelevantScriptSetupImports } from "./operations/scriptSetupImports.mjs";
@@ -1,4 +1,4 @@
1
- import { t as AstEngineName } from "./types-Cn0gcZR9.mjs";
1
+ import { t as AstEngineName } from "./types-4qG2Ubmk.mjs";
2
2
  import * as t from "@babel/types";
3
3
 
4
4
  //#region src/operations/onPageScroll/types.d.ts
@@ -1,5 +1,5 @@
1
1
  import { parseJsLike, traverse } from "./babel.mjs";
2
- import { t as parseJsLikeWithEngine } from "./engine-DHqNPCDA.mjs";
2
+ import { t as parseJsLikeWithEngine } from "./engine-CBE2OpFp.mjs";
3
3
  //#region src/operations/onPageScroll/shared.ts
4
4
  function isStaticPropertyName(key) {
5
5
  if (key.type === "Identifier") return key.name;
@@ -1,4 +1,4 @@
1
- import { t as AstEngineName } from "../types-Cn0gcZR9.mjs";
1
+ import { t as AstEngineName } from "../types-4qG2Ubmk.mjs";
2
2
  import * as t from "@babel/types";
3
3
  import { NodePath } from "@babel/traverse";
4
4
 
@@ -1,5 +1,5 @@
1
1
  import { BABEL_TS_MODULE_PARSER_OPTIONS, parse, traverse } from "../babel.mjs";
2
- import { t as parseJsLikeWithEngine } from "../engine-DHqNPCDA.mjs";
2
+ import { t as parseJsLikeWithEngine } from "../engine-CBE2OpFp.mjs";
3
3
  import { walk } from "oxc-walker";
4
4
  //#region src/operations/componentProps.ts
5
5
  const COMPONENT_PROPS_TEXT_HINTS = ["properties", "props"];
@@ -1,4 +1,4 @@
1
- import { t as AstEngineName } from "../types-Cn0gcZR9.mjs";
1
+ import { t as AstEngineName } from "../types-4qG2Ubmk.mjs";
2
2
 
3
3
  //#region src/operations/featureFlags.d.ts
4
4
  interface FeatureFlagOptions<TFeature extends string> {
@@ -1,5 +1,5 @@
1
1
  import { parseJsLike, traverse } from "../babel.mjs";
2
- import { t as parseJsLikeWithEngine } from "../engine-DHqNPCDA.mjs";
2
+ import { t as parseJsLikeWithEngine } from "../engine-CBE2OpFp.mjs";
3
3
  import * as t from "@babel/types";
4
4
  import { walk } from "oxc-walker";
5
5
  //#region src/operations/featureFlags.ts
@@ -1,4 +1,4 @@
1
- import { t as AstEngineName } from "../types-Cn0gcZR9.mjs";
1
+ import { t as AstEngineName } from "../types-4qG2Ubmk.mjs";
2
2
  import * as t from "@babel/types";
3
3
  import { Expression, ObjectExpression } from "@babel/types";
4
4
 
@@ -1,2 +1,2 @@
1
- import { _ as collectOnPageScrollWarningsWithBabel, a as getLocationFromOffset, c as getOxcCallExpressionCalleeName, d as isOnPageScrollCallee, f as isOxcFunctionLike, g as collectPageScrollInspectionWithOxc, h as collectOnPageScrollWarningsWithOxc, i as getCallExpressionCalleeName, l as getOxcMemberExpressionPropertyName, m as isStaticPropertyName, n as createLineStartOffsets, o as getMemberExpressionPropertyName, p as isOxcOnPageScrollCallee, r as createWarningPrefix, s as getOnPageScrollCallbackArgument, t as collectOnPageScrollPerformanceWarnings, u as getOxcStaticPropertyName, v as collectPageScrollInspection } from "../onPageScroll-C9pqH5L1.mjs";
1
+ import { _ as collectOnPageScrollWarningsWithBabel, a as getLocationFromOffset, c as getOxcCallExpressionCalleeName, d as isOnPageScrollCallee, f as isOxcFunctionLike, g as collectPageScrollInspectionWithOxc, h as collectOnPageScrollWarningsWithOxc, i as getCallExpressionCalleeName, l as getOxcMemberExpressionPropertyName, m as isStaticPropertyName, n as createLineStartOffsets, o as getMemberExpressionPropertyName, p as isOxcOnPageScrollCallee, r as createWarningPrefix, s as getOnPageScrollCallbackArgument, t as collectOnPageScrollPerformanceWarnings, u as getOxcStaticPropertyName, v as collectPageScrollInspection } from "../onPageScroll-C1BbvMzn.mjs";
2
2
  export { collectOnPageScrollPerformanceWarnings, collectOnPageScrollWarningsWithBabel, collectOnPageScrollWarningsWithOxc, collectPageScrollInspection, collectPageScrollInspectionWithOxc, createLineStartOffsets, createWarningPrefix, getCallExpressionCalleeName, getLocationFromOffset, getMemberExpressionPropertyName, getOnPageScrollCallbackArgument, getOxcCallExpressionCalleeName, getOxcMemberExpressionPropertyName, getOxcStaticPropertyName, isOnPageScrollCallee, isOxcFunctionLike, isOxcOnPageScrollCallee, isStaticPropertyName };
@@ -1,2 +1,2 @@
1
- import { _ as isOxcOnPageScrollCallee, a as collectPageScrollInspection, c as getCallExpressionCalleeName, d as getOnPageScrollCallbackArgument, f as getOxcCallExpressionCalleeName, g as isOxcFunctionLike, h as isOnPageScrollCallee, i as collectOnPageScrollWarningsWithBabel, l as getLocationFromOffset, m as getOxcStaticPropertyName, n as collectOnPageScrollWarningsWithOxc, o as createLineStartOffsets, p as getOxcMemberExpressionPropertyName, r as collectPageScrollInspectionWithOxc, s as createWarningPrefix, t as collectOnPageScrollPerformanceWarnings, u as getMemberExpressionPropertyName, v as isStaticPropertyName } from "../onPageScroll-FN_gheDb.mjs";
1
+ import { _ as isOxcOnPageScrollCallee, a as collectPageScrollInspection, c as getCallExpressionCalleeName, d as getOnPageScrollCallbackArgument, f as getOxcCallExpressionCalleeName, g as isOxcFunctionLike, h as isOnPageScrollCallee, i as collectOnPageScrollWarningsWithBabel, l as getLocationFromOffset, m as getOxcStaticPropertyName, n as collectOnPageScrollWarningsWithOxc, o as createLineStartOffsets, p as getOxcMemberExpressionPropertyName, r as collectPageScrollInspectionWithOxc, s as createWarningPrefix, t as collectOnPageScrollPerformanceWarnings, u as getMemberExpressionPropertyName, v as isStaticPropertyName } from "../onPageScroll-RxvH7Pi_.mjs";
2
2
  export { collectOnPageScrollPerformanceWarnings, collectOnPageScrollWarningsWithBabel, collectOnPageScrollWarningsWithOxc, collectPageScrollInspection, collectPageScrollInspectionWithOxc, createLineStartOffsets, createWarningPrefix, getCallExpressionCalleeName, getLocationFromOffset, getMemberExpressionPropertyName, getOnPageScrollCallbackArgument, getOxcCallExpressionCalleeName, getOxcMemberExpressionPropertyName, getOxcStaticPropertyName, isOnPageScrollCallee, isOxcFunctionLike, isOxcOnPageScrollCallee, isStaticPropertyName };
@@ -1,4 +1,4 @@
1
- import { n as AstParserLike, t as AstEngineName } from "../types-Cn0gcZR9.mjs";
1
+ import { n as AstParserLike, t as AstEngineName } from "../types-4qG2Ubmk.mjs";
2
2
  import { Program } from "@oxc-project/types";
3
3
 
4
4
  //#region src/operations/platformApi.d.ts
@@ -1,4 +1,4 @@
1
- import { t as parseJsLikeWithEngine } from "../engine-DHqNPCDA.mjs";
1
+ import { t as parseJsLikeWithEngine } from "../engine-CBE2OpFp.mjs";
2
2
  import { walk } from "oxc-walker";
3
3
  //#region src/operations/platformApi.ts
4
4
  const platformApiIdentifierList = [
@@ -1,4 +1,4 @@
1
- import { n as AstParserLike, t as AstEngineName } from "../types-Cn0gcZR9.mjs";
1
+ import { n as AstParserLike, t as AstEngineName } from "../types-4qG2Ubmk.mjs";
2
2
  import { Program } from "@oxc-project/types";
3
3
 
4
4
  //#region src/operations/require.d.ts
@@ -1,4 +1,4 @@
1
- import { t as parseJsLikeWithEngine } from "../engine-DHqNPCDA.mjs";
1
+ import { t as parseJsLikeWithEngine } from "../engine-CBE2OpFp.mjs";
2
2
  import { walk } from "oxc-walker";
3
3
  //#region src/operations/require.ts
4
4
  function mayContainRequireCallByText(code) {
@@ -1,4 +1,4 @@
1
- import { t as AstEngineName } from "../types-Cn0gcZR9.mjs";
1
+ import { t as AstEngineName } from "../types-4qG2Ubmk.mjs";
2
2
 
3
3
  //#region src/operations/scriptSetupImports.d.ts
4
4
  interface ScriptSetupImport {
@@ -1,5 +1,5 @@
1
1
  import { BABEL_TS_MODULE_PARSER_OPTIONS, parse } from "../babel.mjs";
2
- import { t as parseJsLikeWithEngine } from "../engine-DHqNPCDA.mjs";
2
+ import { t as parseJsLikeWithEngine } from "../engine-CBE2OpFp.mjs";
3
3
  //#region src/operations/scriptSetupImports.ts
4
4
  function mayContainRelevantScriptSetupImports(scriptSetup, templateComponentNames) {
5
5
  if (templateComponentNames.size === 0) return false;
@@ -1,4 +1,4 @@
1
- import { t as AstEngineName } from "../types-Cn0gcZR9.mjs";
1
+ import { t as AstEngineName } from "../types-4qG2Ubmk.mjs";
2
2
 
3
3
  //#region src/operations/setDataPick.d.ts
4
4
  declare function collectLoopScopeAliases(template: string): Set<string>;
@@ -1,5 +1,5 @@
1
1
  import { BABEL_TS_MODULE_PARSER_OPTIONS, parse, traverse } from "../babel.mjs";
2
- import { t as parseJsLikeWithEngine } from "../engine-DHqNPCDA.mjs";
2
+ import { t as parseJsLikeWithEngine } from "../engine-CBE2OpFp.mjs";
3
3
  import { getMiniProgramDirectivePrefix, getSupportedMiniProgramPlatforms } from "@weapp-core/shared";
4
4
  //#region src/operations/setDataPick.ts
5
5
  const TEMPLATE_MUSTACHE_RE = /\{\{([\s\S]*?)\}\}/g;
package/dist/types.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { n as AstParserLike, r as WeappAstConfig, t as AstEngineName } from "./types-Cn0gcZR9.mjs";
1
+ import { n as AstParserLike, r as WeappAstConfig, t as AstEngineName } from "./types-4qG2Ubmk.mjs";
2
2
  export { AstEngineName, AstParserLike, WeappAstConfig };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@weapp-vite/ast",
3
3
  "type": "module",
4
- "version": "6.16.18",
4
+ "version": "6.16.19",
5
5
  "description": "weapp-vite 共享 AST 分析工具包,统一 Babel/Oxc 解析与常用分析操作",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",