New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@vuedx/transforms

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vuedx/transforms - npm Package Compare versions

Comparing version 0.7.6-next-1651055813.0 to 0.7.6-next-1663917928.0

lib/generate.d.ts

62

lib/index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc