@vuedx/transforms
Advanced tools
Comparing version 0.7.6-next-1651055813.0 to 0.7.6-next-1663917928.0
@@ -1,53 +0,9 @@ | ||
import * as T from '@babel/types'; | ||
import { GeneratorResult, GeneratorOptions } from '@babel/generator'; | ||
import { ParserOptions } from '@babel/parser'; | ||
interface ParseOptions extends ParserOptions { | ||
isScriptSetup: boolean; | ||
lang: string; | ||
} | ||
interface GenerateOptions extends GeneratorOptions { | ||
sourceText?: string; | ||
} | ||
declare function toAST(code: string, options?: Partial<ParseOptions>): T.File; | ||
declare function toCode(node: T.Node | T.Node[], { sourceText, ...options }?: GenerateOptions): GeneratorResult; | ||
declare type Evictable<T extends (...args: any) => any> = T & { | ||
evict(...args: Parameters<T>): void; | ||
}; | ||
interface DeclarationOptions { | ||
leadingCommentForCopiedSource: string; | ||
trailingCommentForCopiedSource: string; | ||
leadingCommentForIdentifiers: string; | ||
trailingCommentForIdentifiers: string; | ||
} | ||
interface CreateExportDeclarationOptions extends DeclarationOptions { | ||
exportName: string; | ||
isScriptSetup: boolean; | ||
shouldIncludeScriptSetup(id: string): boolean; | ||
} | ||
interface CreateExportDeclarationForScriptSetupOptions extends CreateExportDeclarationOptions { | ||
defineComponent: string; | ||
} | ||
/** | ||
* Create export statement from local components. | ||
*/ | ||
declare const createExportDeclarationForComponent: Evictable<(ast: T.File, options?: Partial<CreateExportDeclarationForScriptSetupOptions> | undefined) => T.ExportNamedDeclaration>; | ||
/** | ||
* Create export statement from expose. | ||
*/ | ||
declare const createExportDeclarationForExpose: Evictable<(ast: T.File, options?: Partial<CreateExportDeclarationOptions> | undefined) => T.ExportNamedDeclaration>; | ||
declare const findDefinePropsStatement: Evictable<(ast: T.File) => T.CallExpression | T.VariableDeclarator | null>; | ||
declare const findDefineEmitsStatement: Evictable<(ast: T.File) => T.CallExpression | T.VariableDeclarator | null>; | ||
declare const findDefineExposeStatement: Evictable<(ast: T.File) => T.Identifier | T.ObjectExpression | null>; | ||
/** | ||
* Create export statement from local components. | ||
*/ | ||
declare const createExportDeclarationForComponents: Evictable<(ast: T.File, options?: Partial<CreateExportDeclarationOptions> | undefined) => T.ExportNamedDeclaration>; | ||
/** | ||
* Create export statement from local directives. | ||
*/ | ||
declare const createExportDeclarationForDirectives: Evictable<(ast: T.File, options?: Partial<CreateExportDeclarationOptions> | undefined) => T.ExportNamedDeclaration>; | ||
declare const findScopeBindings: Evictable<(node: T.File | T.Program | T.BlockStatement) => string[]>; | ||
declare const findComponentOptions: Evictable<(ast: T.File) => T.ObjectExpression | null>; | ||
export { CreateExportDeclarationForScriptSetupOptions, CreateExportDeclarationOptions, createExportDeclarationForComponent, createExportDeclarationForComponents, createExportDeclarationForDirectives, createExportDeclarationForExpose, findComponentOptions, findDefineEmitsStatement, findDefineExposeStatement, findDefinePropsStatement, findScopeBindings, toAST, toCode }; | ||
export * from './generate'; | ||
export * from './parse'; | ||
export * from './search/findDefinePropsStatement'; | ||
export * from './search/findLocalIdentifierName'; | ||
export * from './search/findObjectProperty'; | ||
export * from './search/findScopeBindings'; | ||
export * from './search/findTopLevelCall'; | ||
export * from './transform/transformScriptSetup'; | ||
//# sourceMappingURL=index.d.ts.map |
{ | ||
"name": "@vuedx/transforms", | ||
"version": "0.7.6-next-1651055813.0", | ||
"description": "AST Transforms", | ||
"main": "lib/index.js", | ||
"module": "lib/index.mjs", | ||
"types": "lib/index.d.ts", | ||
"publishConfig": { | ||
"types": "lib/index.d.ts" | ||
}, | ||
"files": [ | ||
"lib" | ||
], | ||
"keywords": [], | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/znck/vue-developer-experience.git" | ||
}, | ||
"author": "Rahul Kadyan <rahulkdn@gmail.com> (https://znck.me/)", | ||
"funding": { | ||
"type": "individual", | ||
"url": "https://github.com/sponsors/znck" | ||
}, | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/znck/vue-developer-experience/issues" | ||
}, | ||
"homepage": "https://github.com/znck/vue-developer-experience#readme", | ||
"dependencies": { | ||
"@babel/generator": "^7.15.0", | ||
"@babel/parser": "^7.15.0", | ||
"@babel/template": "^7.14.5", | ||
"@babel/types": "^7.15.0", | ||
"magic-string": "^0.26.1" | ||
}, | ||
"devDependencies": { | ||
"typescript": "^4.6.3" | ||
} | ||
} | ||
"name": "@vuedx/transforms", | ||
"version": "0.7.6-next-1663917928.0", | ||
"description": "AST Transforms", | ||
"main": "lib/index.cjs", | ||
"module": "lib/index.mjs", | ||
"types": "lib/index.d.ts", | ||
"files": [ | ||
"lib" | ||
], | ||
"keywords": [], | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/znck/vue-developer-experience.git" | ||
}, | ||
"author": "Rahul Kadyan <rahulkdn@gmail.com> (https://znck.me/)", | ||
"funding": { | ||
"type": "individual", | ||
"url": "https://github.com/sponsors/znck" | ||
}, | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/znck/vue-developer-experience/issues" | ||
}, | ||
"homepage": "https://github.com/znck/vue-developer-experience#readme", | ||
"dependencies": { | ||
"@vuedx/shared": "0.7.5-next-1663917928.0", | ||
"@babel/generator": "^7.19.0", | ||
"@babel/parser": "^7.19.0", | ||
"@babel/template": "^7.18.10", | ||
"@babel/types": "^7.19.0", | ||
"magic-string": "^0.26.1" | ||
}, | ||
"devDependencies": { | ||
"typescript": "^4.6.3", | ||
"@types/babel__template": "^7.4.1", | ||
"@types/babel__generator": "^7.6.4" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
153966
27
1205
6
3
1
+ Added@sentry/core@5.30.0(transitive)
+ Added@sentry/hub@5.30.0(transitive)
+ Added@sentry/minimal@5.30.0(transitive)
+ Added@sentry/node@5.30.0(transitive)
+ Added@sentry/tracing@5.30.0(transitive)
+ Added@sentry/types@5.30.0(transitive)
+ Added@sentry/utils@5.30.0(transitive)
+ Added@vuedx/shared@0.7.5-next-1663917928.0(transitive)
+ Addedagent-base@6.0.2(transitive)
+ Addedcookie@0.4.2(transitive)
+ Addeddebug@4.4.0(transitive)
+ Addedhttps-proxy-agent@5.0.1(transitive)
+ Addedlru_map@0.3.3(transitive)
+ Addedms@2.1.3(transitive)
+ Addedtslib@1.14.1(transitive)
Updated@babel/generator@^7.19.0
Updated@babel/parser@^7.19.0
Updated@babel/template@^7.18.10
Updated@babel/types@^7.19.0