@nderscore/tamagui-typescript-plugin
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -92,3 +92,6 @@ "use strict"; | ||
return undefined; | ||
return [propName, valueNode === null || valueNode === void 0 ? void 0 : valueNode.getText(), valueNode]; | ||
const valueText = (valueNode === null || valueNode === void 0 ? void 0 : valueNode.kind) === tsserverlibrary_1.default.SyntaxKind.JsxAttribute | ||
? valueNode === null || valueNode === void 0 ? void 0 : valueNode.getText().replace(/^\w+=/, '') | ||
: valueNode === null || valueNode === void 0 ? void 0 : valueNode.getText(); | ||
return [propName, valueText, valueNode]; | ||
}; | ||
@@ -95,0 +98,0 @@ const getTokenType = (fileName, position, config, ctx) => { |
@@ -53,3 +53,2 @@ "use strict"; | ||
const original = info.languageService.getQuickInfoAtPosition(fileName, position); | ||
ctx.logger('HHUHH???????'); | ||
return (0, getQuickInfo_1.getQuickInfo)(original, { | ||
@@ -56,0 +55,0 @@ fileName, |
@@ -92,3 +92,6 @@ "use strict"; | ||
return undefined; | ||
return [propName, valueNode === null || valueNode === void 0 ? void 0 : valueNode.getText(), valueNode]; | ||
const valueText = (valueNode === null || valueNode === void 0 ? void 0 : valueNode.kind) === tsserverlibrary_1.default.SyntaxKind.JsxAttribute | ||
? valueNode === null || valueNode === void 0 ? void 0 : valueNode.getText().replace(/^\w+=/, '') | ||
: valueNode === null || valueNode === void 0 ? void 0 : valueNode.getText(); | ||
return [propName, valueText, valueNode]; | ||
}; | ||
@@ -95,0 +98,0 @@ const getTokenType = (fileName, position, config, ctx) => { |
@@ -53,3 +53,2 @@ "use strict"; | ||
const original = info.languageService.getQuickInfoAtPosition(fileName, position); | ||
ctx.logger('HHUHH???????'); | ||
return (0, getQuickInfo_1.getQuickInfo)(original, { | ||
@@ -56,0 +55,0 @@ fileName, |
{ | ||
"name": "@nderscore/tamagui-typescript-plugin", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -114,3 +114,8 @@ import ts from 'typescript/lib/tsserverlibrary'; | ||
return [propName, valueNode?.getText(), valueNode] as const; | ||
const valueText = | ||
valueNode?.kind === ts.SyntaxKind.JsxAttribute | ||
? valueNode?.getText().replace(/^\w+=/, '') | ||
: valueNode?.getText(); | ||
return [propName, valueText, valueNode] as const; | ||
}; | ||
@@ -117,0 +122,0 @@ |
@@ -88,3 +88,2 @@ import type ts from 'typescript/lib/tsserverlibrary'; | ||
); | ||
ctx.logger('HHUHH???????'); | ||
return getQuickInfo(original, { | ||
@@ -91,0 +90,0 @@ fileName, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
127440
2211