@marko/babel-utils
Advanced tools
Comparing version 6.2.0 to 6.2.1
@@ -300,2 +300,3 @@ "use strict";var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");exports.__esModule = true;exports.findAttributeTags = findAttributeTags;exports.findParentTag = findParentTag;exports.getArgOrSequence = getArgOrSequence;exports.getFullyResolvedTagName = getFullyResolvedTagName;exports.getMacroIdentifier = getMacroIdentifier;exports.getMacroIdentifierForName = getMacroIdentifierForName;exports.getTagDef = getTagDef;exports.getTemplateId = getTemplateId;exports.hasMacro = hasMacro;exports.isAttributeTag = isAttributeTag;exports.isDynamicTag = isDynamicTag;exports.isLoopTag = isLoopTag;exports.isMacroTag = isMacroTag;exports.isNativeTag = isNativeTag;exports.isTransparentTag = isTransparentTag;exports.loadFileForImport = loadFileForImport;exports.loadFileForTag = loadFileForTag;exports.registerMacro = registerMacro;exports.resolveTagImport = resolveTagImport;var _path = require("path"); | ||
const sourceFileName = (0, _path.basename)(filename); | ||
const sourceRoot = (0, _path.dirname)(filename); | ||
const filenameRelative = (0, _path.relative)(CWD, filename); | ||
@@ -305,2 +306,3 @@ return { | ||
filename, | ||
sourceRoot, | ||
sourceFileName, | ||
@@ -315,2 +317,3 @@ filenameRelative, | ||
filename, | ||
sourceRoot, | ||
sourceFileName | ||
@@ -317,0 +320,0 @@ } |
@@ -22,6 +22,6 @@ import type { types as t } from "@marko/compiler"; | ||
} | ||
export type PluginDefinition<T = any> = { | ||
export interface PluginDefinition<T = any> { | ||
path?: string; | ||
hook: Plugin<T>; | ||
}; | ||
} | ||
export interface TagDefinition { | ||
@@ -213,3 +213,3 @@ dir: string; | ||
quasis: Array<string | t.TemplateElement>, | ||
expressions: t.Expression[] | ||
...expressions: t.Expression[] | ||
): t.TemplateLiteral; | ||
@@ -216,0 +216,0 @@ |
{ | ||
"name": "@marko/babel-utils", | ||
"description": "Utilities for use with Marko babel plugins.", | ||
"version": "6.2.0", | ||
"version": "6.2.1", | ||
"author": "Dylan Piercey <dpiercey@ebay.com>", | ||
@@ -13,3 +13,3 @@ "bugs": "https://github.com/marko-js/marko/issues/new?template=Bug_report.md", | ||
"devDependencies": { | ||
"@marko/compiler": "^5.31.0" | ||
"@marko/compiler": "^5.31.2" | ||
}, | ||
@@ -16,0 +16,0 @@ "files": [ |
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
38062
1065