@vue-macros/api
Advanced tools
Comparing version 0.2.4 to 0.2.5
@@ -18,3 +18,3 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); | ||
var _chunkKKHG66QIjs = require('./chunk-KKHG66QI.js'); | ||
var _chunk32PZ64CNjs = require('./chunk-32PZ64CN.js'); | ||
@@ -122,7 +122,7 @@ | ||
node.type.types.map(async (subType) => { | ||
const resolved = await _chunkKKHG66QIjs.resolveTSReferencedType.call(void 0, { | ||
const resolved = await _chunk32PZ64CNjs.resolveTSReferencedType.call(void 0, { | ||
scope: node.scope, | ||
type: subType | ||
}); | ||
return resolved && !_chunkKKHG66QIjs.isTSExports.call(void 0, resolved) ? inferRuntimeType(resolved) : void 0; | ||
return resolved && !_chunk32PZ64CNjs.isTSExports.call(void 0, resolved) ? inferRuntimeType(resolved) : void 0; | ||
}) | ||
@@ -322,4 +322,4 @@ )).filter((t) => !!t).flat(1); | ||
async function resolveDefinitions(typeDeclRaw2) { | ||
const resolved = await _chunkKKHG66QIjs.resolveTSReferencedType.call(void 0, typeDeclRaw2); | ||
if (!resolved || _chunkKKHG66QIjs.isTSExports.call(void 0, resolved)) | ||
const resolved = await _chunk32PZ64CNjs.resolveTSReferencedType.call(void 0, typeDeclRaw2); | ||
if (!resolved || _chunk32PZ64CNjs.isTSExports.call(void 0, resolved)) | ||
throw new SyntaxError(`Cannot resolve TS definition.`); | ||
@@ -329,3 +329,3 @@ const { type: definitionsAst2, scope } = resolved; | ||
throw new SyntaxError(`Cannot resolve TS definition.`); | ||
const properties = await _chunkKKHG66QIjs.resolveTSProperties.call(void 0, { | ||
const properties = await _chunk32PZ64CNjs.resolveTSProperties.call(void 0, { | ||
scope, | ||
@@ -342,7 +342,7 @@ type: definitionsAst2 | ||
for (const [key, value] of Object.entries(properties.properties)) { | ||
const referenced = value.value ? await _chunkKKHG66QIjs.resolveTSReferencedType.call(void 0, value.value) : void 0; | ||
const referenced = value.value ? await _chunk32PZ64CNjs.resolveTSReferencedType.call(void 0, value.value) : void 0; | ||
definitions2[key] = { | ||
type: "property", | ||
addByAPI: false, | ||
value: referenced && !_chunkKKHG66QIjs.isTSExports.call(void 0, referenced) ? buildDefinition(referenced) : void 0, | ||
value: referenced && !_chunk32PZ64CNjs.isTSExports.call(void 0, referenced) ? buildDefinition(referenced) : void 0, | ||
optional: value.optional, | ||
@@ -380,3 +380,3 @@ signature: buildDefinition(value.signature) | ||
return { | ||
code: _chunkKKHG66QIjs.resolveTSScope.call(void 0, scope).file.content.slice(type.start, type.end), | ||
code: _chunk32PZ64CNjs.resolveTSScope.call(void 0, scope).file.content.slice(type.start, type.end), | ||
ast: type, | ||
@@ -468,4 +468,4 @@ scope | ||
var _a; | ||
const resolved = await _chunkKKHG66QIjs.resolveTSReferencedType.call(void 0, typeDeclRaw2); | ||
if (!resolved || _chunkKKHG66QIjs.isTSExports.call(void 0, resolved)) | ||
const resolved = await _chunk32PZ64CNjs.resolveTSReferencedType.call(void 0, typeDeclRaw2); | ||
if (!resolved || _chunk32PZ64CNjs.isTSExports.call(void 0, resolved)) | ||
throw new SyntaxError(`Cannot resolve TS definition.`); | ||
@@ -475,3 +475,3 @@ const { type: definitionsAst2, scope } = resolved; | ||
throw new SyntaxError(`Cannot resolve TS definition.`); | ||
const properties = await _chunkKKHG66QIjs.resolveTSProperties.call(void 0, { | ||
const properties = await _chunk32PZ64CNjs.resolveTSProperties.call(void 0, { | ||
scope, | ||
@@ -485,7 +485,7 @@ type: definitionsAst2 | ||
continue; | ||
const evtType = await _chunkKKHG66QIjs.resolveTSReferencedType.call(void 0, { | ||
const evtType = await _chunk32PZ64CNjs.resolveTSReferencedType.call(void 0, { | ||
type: evtArg.typeAnnotation.typeAnnotation, | ||
scope: signature.scope | ||
}); | ||
if (_chunkKKHG66QIjs.isTSExports.call(void 0, evtType) || (evtType == null ? void 0 : evtType.type.type) !== "TSLiteralType") | ||
if (_chunk32PZ64CNjs.isTSExports.call(void 0, evtType) || (evtType == null ? void 0 : evtType.type.type) !== "TSLiteralType") | ||
continue; | ||
@@ -512,3 +512,3 @@ const literal = evtType.type.literal; | ||
return { | ||
code: _chunkKKHG66QIjs.resolveTSScope.call(void 0, scope).file.content.slice(type.start, type.end), | ||
code: _chunk32PZ64CNjs.resolveTSScope.call(void 0, scope).file.content.slice(type.start, type.end), | ||
ast: type, | ||
@@ -682,2 +682,2 @@ scope | ||
exports.DefinitionKind = DefinitionKind; exports.MagicString = _common.MagicString; exports.analyzeSFC = analyzeSFC; exports.attachNodeLoc = attachNodeLoc; exports.exportsSymbol = _chunkKKHG66QIjs.exportsSymbol; exports.getTSFile = _chunkKKHG66QIjs.getTSFile; exports.handleTSEmitsDefinition = handleTSEmitsDefinition; exports.handleTSPropsDefinition = handleTSPropsDefinition; exports.inferRuntimeType = inferRuntimeType; exports.isTSDeclaration = _chunkKKHG66QIjs.isTSDeclaration; exports.isTSExports = _chunkKKHG66QIjs.isTSExports; exports.keyToString = _chunk5IUQDHHYjs.keyToString; exports.mergeTSProperties = _chunkKKHG66QIjs.mergeTSProperties; exports.parseSFC = _common.parseSFC; exports.resolveTSEntityName = _chunkKKHG66QIjs.resolveTSEntityName; exports.resolveTSExports = _chunkKKHG66QIjs.resolveTSExports; exports.resolveTSFileId = _chunkKKHG66QIjs.resolveTSFileId; exports.resolveTSFileIdNode = _chunkKKHG66QIjs.resolveTSFileIdNode; exports.resolveTSProperties = _chunkKKHG66QIjs.resolveTSProperties; exports.resolveTSReferencedType = _chunkKKHG66QIjs.resolveTSReferencedType; exports.resolveTSScope = _chunkKKHG66QIjs.resolveTSScope; exports.resolveTypeElements = _chunkKKHG66QIjs.resolveTypeElements; exports.setResolveTSFileIdImpl = _chunkKKHG66QIjs.setResolveTSFileIdImpl; exports.tsFileCache = _chunkKKHG66QIjs.tsFileCache; exports.tsFileExportsCache = _chunkKKHG66QIjs.tsFileExportsCache; | ||
exports.DefinitionKind = DefinitionKind; exports.MagicString = _common.MagicString; exports.analyzeSFC = analyzeSFC; exports.attachNodeLoc = attachNodeLoc; exports.exportsSymbol = _chunk32PZ64CNjs.exportsSymbol; exports.getTSFile = _chunk32PZ64CNjs.getTSFile; exports.handleTSEmitsDefinition = handleTSEmitsDefinition; exports.handleTSPropsDefinition = handleTSPropsDefinition; exports.inferRuntimeType = inferRuntimeType; exports.isTSDeclaration = _chunk32PZ64CNjs.isTSDeclaration; exports.isTSExports = _chunk32PZ64CNjs.isTSExports; exports.keyToString = _chunk5IUQDHHYjs.keyToString; exports.mergeTSProperties = _chunk32PZ64CNjs.mergeTSProperties; exports.parseSFC = _common.parseSFC; exports.resolveTSEntityName = _chunk32PZ64CNjs.resolveTSEntityName; exports.resolveTSExports = _chunk32PZ64CNjs.resolveTSExports; exports.resolveTSFileId = _chunk32PZ64CNjs.resolveTSFileId; exports.resolveTSFileIdNode = _chunk32PZ64CNjs.resolveTSFileIdNode; exports.resolveTSProperties = _chunk32PZ64CNjs.resolveTSProperties; exports.resolveTSReferencedType = _chunk32PZ64CNjs.resolveTSReferencedType; exports.resolveTSScope = _chunk32PZ64CNjs.resolveTSScope; exports.resolveTypeElements = _chunk32PZ64CNjs.resolveTypeElements; exports.setResolveTSFileIdImpl = _chunk32PZ64CNjs.setResolveTSFileIdImpl; exports.tsFileCache = _chunk32PZ64CNjs.tsFileCache; exports.tsFileExportsCache = _chunk32PZ64CNjs.tsFileExportsCache; |
@@ -18,3 +18,3 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); | ||
var _chunkKKHG66QIjs = require('./chunk-KKHG66QI.js'); | ||
var _chunk32PZ64CNjs = require('./chunk-32PZ64CN.js'); | ||
@@ -37,3 +37,3 @@ | ||
exports.exportsSymbol = _chunkKKHG66QIjs.exportsSymbol; exports.getTSFile = _chunkKKHG66QIjs.getTSFile; exports.isTSDeclaration = _chunkKKHG66QIjs.isTSDeclaration; exports.isTSExports = _chunkKKHG66QIjs.isTSExports; exports.mergeTSProperties = _chunkKKHG66QIjs.mergeTSProperties; exports.resolveTSEntityName = _chunkKKHG66QIjs.resolveTSEntityName; exports.resolveTSExports = _chunkKKHG66QIjs.resolveTSExports; exports.resolveTSFileId = _chunkKKHG66QIjs.resolveTSFileId; exports.resolveTSFileIdNode = _chunkKKHG66QIjs.resolveTSFileIdNode; exports.resolveTSProperties = _chunkKKHG66QIjs.resolveTSProperties; exports.resolveTSReferencedType = _chunkKKHG66QIjs.resolveTSReferencedType; exports.resolveTSScope = _chunkKKHG66QIjs.resolveTSScope; exports.resolveTypeElements = _chunkKKHG66QIjs.resolveTypeElements; exports.setResolveTSFileIdImpl = _chunkKKHG66QIjs.setResolveTSFileIdImpl; exports.tsFileCache = _chunkKKHG66QIjs.tsFileCache; exports.tsFileExportsCache = _chunkKKHG66QIjs.tsFileExportsCache; | ||
exports.exportsSymbol = _chunk32PZ64CNjs.exportsSymbol; exports.getTSFile = _chunk32PZ64CNjs.getTSFile; exports.isTSDeclaration = _chunk32PZ64CNjs.isTSDeclaration; exports.isTSExports = _chunk32PZ64CNjs.isTSExports; exports.mergeTSProperties = _chunk32PZ64CNjs.mergeTSProperties; exports.resolveTSEntityName = _chunk32PZ64CNjs.resolveTSEntityName; exports.resolveTSExports = _chunk32PZ64CNjs.resolveTSExports; exports.resolveTSFileId = _chunk32PZ64CNjs.resolveTSFileId; exports.resolveTSFileIdNode = _chunk32PZ64CNjs.resolveTSFileIdNode; exports.resolveTSProperties = _chunk32PZ64CNjs.resolveTSProperties; exports.resolveTSReferencedType = _chunk32PZ64CNjs.resolveTSReferencedType; exports.resolveTSScope = _chunk32PZ64CNjs.resolveTSScope; exports.resolveTypeElements = _chunk32PZ64CNjs.resolveTypeElements; exports.setResolveTSFileIdImpl = _chunk32PZ64CNjs.setResolveTSFileIdImpl; exports.tsFileCache = _chunk32PZ64CNjs.tsFileCache; exports.tsFileExportsCache = _chunk32PZ64CNjs.tsFileExportsCache; | ||
exports.default = module.exports; |
{ | ||
"name": "@vue-macros/api", | ||
"version": "0.2.4", | ||
"version": "0.2.5", | ||
"packageManager": "pnpm@7.21.0", | ||
@@ -30,3 +30,3 @@ "license": "MIT", | ||
"@babel/types": "^7.20.7", | ||
"@vue-macros/common": "~0.13.7" | ||
"@vue-macros/common": "~0.13.8" | ||
}, | ||
@@ -33,0 +33,0 @@ "engines": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
74943
Updated@vue-macros/common@~0.13.8