@marko/compiler 5.20.8 → 5.21.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/babel-plugin/file.js +1 -2
- package/dist/babel-plugin/index.js +1 -9
- package/dist/babel-plugin/parser.js +389 -277
- package/dist/babel-plugin/plugins/migrate.js +1 -2
- package/dist/babel-plugin/plugins/transform.js +1 -2
- package/dist/babel-plugin/util/plugin-hooks.js +1 -2
- package/dist/babel-types/generator/patch.js +1 -2
- package/dist/babel-types/index.js +1 -2
- package/dist/babel-types/traverse/patch.js +1 -2
- package/dist/babel-types/types/definitions.js +1 -2
- package/dist/babel-types/types/patch.js +1 -2
- package/dist/config.js +1 -2
- package/dist/index.js +1 -2
- package/dist/register.js +1 -2
- package/dist/taglib/finder/index.js +1 -2
- package/dist/taglib/fs.js +1 -2
- package/dist/taglib/index.js +1 -2
- package/dist/taglib/loader/Attribute.js +1 -2
- package/dist/taglib/loader/DependencyChain.js +1 -2
- package/dist/taglib/loader/Property.js +1 -2
- package/dist/taglib/loader/Tag.js +1 -2
- package/dist/taglib/loader/Taglib.js +1 -2
- package/dist/taglib/loader/Transformer.js +1 -2
- package/dist/taglib/loader/cache.js +1 -2
- package/dist/taglib/loader/index.js +1 -2
- package/dist/taglib/loader/json-file-reader.js +1 -2
- package/dist/taglib/loader/loadAttributeFromProps.js +1 -2
- package/dist/taglib/loader/loadAttributes.js +1 -2
- package/dist/taglib/loader/loadTagFromFile.js +1 -2
- package/dist/taglib/loader/loadTagFromProps.js +1 -2
- package/dist/taglib/loader/loadTaglibFromFile.js +1 -2
- package/dist/taglib/loader/loadTaglibFromProps.js +1 -2
- package/dist/taglib/loader/loaders.js +1 -2
- package/dist/taglib/loader/scanTagsDir.js +1 -2
- package/dist/taglib/loader/tag-def-from-code.js +1 -2
- package/dist/taglib/loader/types.js +1 -2
- package/dist/taglib/lookup/index.js +1 -2
- package/dist/taglib/marko-html.json +3 -0
- package/dist/traverse.d.ts +16 -9
- package/dist/types.d.ts +30 -5
- package/dist/util/should-optimize.js +1 -2
- package/dist/util/try-load-translator.js +1 -2
- package/index.d.ts +16 -8
- package/package.json +5 -6
- package/LICENSE +0 -21
- package/dist/babel-plugin/file.js.map +0 -1
- package/dist/babel-plugin/index.js.map +0 -1
- package/dist/babel-plugin/parser.js.map +0 -1
- package/dist/babel-plugin/plugins/migrate.js.map +0 -1
- package/dist/babel-plugin/plugins/transform.js.map +0 -1
- package/dist/babel-plugin/util/parse-arguments.js +0 -15
- package/dist/babel-plugin/util/parse-arguments.js.map +0 -1
- package/dist/babel-plugin/util/parse-attributes.js +0 -89
- package/dist/babel-plugin/util/parse-attributes.js.map +0 -1
- package/dist/babel-plugin/util/parse-classname-shorthand.js +0 -65
- package/dist/babel-plugin/util/parse-classname-shorthand.js.map +0 -1
- package/dist/babel-plugin/util/parse-id-shorthand.js +0 -34
- package/dist/babel-plugin/util/parse-id-shorthand.js.map +0 -1
- package/dist/babel-plugin/util/parse-params.js +0 -10
- package/dist/babel-plugin/util/parse-params.js.map +0 -1
- package/dist/babel-plugin/util/parse-var.js +0 -8
- package/dist/babel-plugin/util/parse-var.js.map +0 -1
- package/dist/babel-plugin/util/plugin-hooks.js.map +0 -1
- package/dist/babel-types/generator/patch.js.map +0 -1
- package/dist/babel-types/index.js.map +0 -1
- package/dist/babel-types/traverse/patch.js.map +0 -1
- package/dist/babel-types/types/definitions.js.map +0 -1
- package/dist/babel-types/types/patch.js.map +0 -1
- package/dist/config.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/register.js.map +0 -1
- package/dist/taglib/finder/index.js.map +0 -1
- package/dist/taglib/fs.js.map +0 -1
- package/dist/taglib/index.js.map +0 -1
- package/dist/taglib/loader/Attribute.js.map +0 -1
- package/dist/taglib/loader/DependencyChain.js.map +0 -1
- package/dist/taglib/loader/Property.js.map +0 -1
- package/dist/taglib/loader/Tag.js.map +0 -1
- package/dist/taglib/loader/Taglib.js.map +0 -1
- package/dist/taglib/loader/Transformer.js.map +0 -1
- package/dist/taglib/loader/cache.js.map +0 -1
- package/dist/taglib/loader/index.js.map +0 -1
- package/dist/taglib/loader/json-file-reader.js.map +0 -1
- package/dist/taglib/loader/loadAttributeFromProps.js.map +0 -1
- package/dist/taglib/loader/loadAttributes.js.map +0 -1
- package/dist/taglib/loader/loadTagFromFile.js.map +0 -1
- package/dist/taglib/loader/loadTagFromProps.js.map +0 -1
- package/dist/taglib/loader/loadTaglibFromFile.js.map +0 -1
- package/dist/taglib/loader/loadTaglibFromProps.js.map +0 -1
- package/dist/taglib/loader/loaders.js.map +0 -1
- package/dist/taglib/loader/scanTagsDir.js.map +0 -1
- package/dist/taglib/loader/tag-def-from-code.js.map +0 -1
- package/dist/taglib/loader/types.js.map +0 -1
- package/dist/taglib/lookup/index.js.map +0 -1
- package/dist/util/should-optimize.js.map +0 -1
- package/dist/util/try-load-translator.js.map +0 -1
|
@@ -2,5 +2,4 @@
|
|
|
2
2
|
require("./traverse/patch");
|
|
3
3
|
require("./generator/patch");
|
|
4
4
|
var _types = require("@babel/types");Object.keys(_types).forEach(function (key) {if (key === "default" || key === "__esModule") return;if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;if (key in exports && exports[key] === _types[key]) return;exports[key] = _types[key];});
|
|
5
|
-
var _definitions = require("./types/definitions");exports.MARKO_TYPES = _definitions.MARKO_TYPES;
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
|
5
|
+
var _definitions = require("./types/definitions");exports.MARKO_TYPES = _definitions.MARKO_TYPES;
|
|
@@ -190,5 +190,4 @@ MarkoDefinitions;exports.default = _default;
|
|
|
190
190
|
const MARKO_TYPES = Object.keys(MarkoDefinitions);exports.MARKO_TYPES = MARKO_TYPES;
|
|
191
191
|
const MARKO_ALIAS_TYPES = Array.from(
|
|
192
192
|
new Set(
|
|
193
|
-
MARKO_TYPES.reduce((all, t) => all.concat(MarkoDefinitions[t].aliases), [])));exports.MARKO_ALIAS_TYPES = MARKO_ALIAS_TYPES;
|
|
194
|
-
//# sourceMappingURL=definitions.js.map
|
|
193
|
+
MARKO_TYPES.reduce((all, t) => all.concat(MarkoDefinitions[t].aliases), [])));exports.MARKO_ALIAS_TYPES = MARKO_ALIAS_TYPES;
|
package/dist/config.js
CHANGED
|
@@ -195,5 +195,4 @@ var _fs2 = require("./taglib/fs");let config;const globalThis = typeof window ==
|
|
|
195
195
|
* A regexp or function that receives an import path that matches file types known to be client side assets.
|
|
196
196
|
*/hydrateIncludeImports: /\.(css|less|s[ac]ss|styl|png|jpe?g|gif|svg|ico|webp|avif|mp4|webm|ogg|mp3|wav|flac|aac|woff2?|eot|ttf|otf)$/, /**
|
|
197
197
|
* Set to true in order to bring in the hot module replacement runtime.
|
|
198
|
-
*/hot: false };if (process.env.MARKO_CONFIG) {Object.assign(config, JSON.parse(process.env.MARKO_CONFIG));}}var _default = config;exports.default = _default;(0, _fs2.setFS)(config.fileSystem);
|
|
199
|
-
//# sourceMappingURL=config.js.map
|
|
198
|
+
*/hot: false };if (process.env.MARKO_CONFIG) {Object.assign(config, JSON.parse(process.env.MARKO_CONFIG));}}var _default = config;exports.default = _default;(0, _fs2.setFS)(config.fileSystem);
|
package/dist/index.js
CHANGED
package/dist/register.js
CHANGED
package/dist/taglib/fs.js
CHANGED
package/dist/taglib/index.js
CHANGED
|
@@ -34,5 +34,4 @@ exports.clearCache = clearCache;
|
|
|
34
34
|
exports.createTaglib = createTaglib;
|
|
35
35
|
exports.loadTaglibFromProps = loadTaglibFromProps;
|
|
36
36
|
exports.loadTaglibFromFile = loadTaglibFromFile;
|
|
37
|
-
exports.loadTag = loadTag;
|
|
38
|
-
//# sourceMappingURL=index.js.map
|
|
37
|
+
exports.loadTag = loadTag;
|
|
@@ -240,5 +240,4 @@ loadAttributeFromProps.isSupportedProperty = function (name) {
|
|
|
240
240
|
return hasOwnProperty.call(AttrLoader.prototype, name);
|
|
241
241
|
};
|
|
242
242
|
|
|
243
|
-
module.exports = loadAttributeFromProps;
|
|
244
|
-
//# sourceMappingURL=loadAttributeFromProps.js.map
|
|
243
|
+
module.exports = loadAttributeFromProps;
|
|
@@ -555,5 +555,4 @@ function loadTagFromProps(tag, tagProps, dependencyChain) {
|
|
|
555
555
|
|
|
556
556
|
module.exports = loadTagFromProps;
|
|
557
557
|
|
|
558
|
-
loadTagFromProps.isSupportedProperty = isSupportedProperty;
|
|
559
|
-
//# sourceMappingURL=loadTagFromProps.js.map
|
|
558
|
+
loadTagFromProps.isSupportedProperty = isSupportedProperty;
|
|
@@ -20,5 +20,4 @@ exports.loadTaglibFromProps = require("./loadTaglibFromProps");
|
|
|
20
20
|
exports.loadTaglibFromFile = require("./loadTaglibFromFile");
|
|
21
21
|
exports.loadAttributes = require("./loadAttributes");
|
|
22
22
|
exports.isSupportedAttributeProperty = isSupportedAttributeProperty;
|
|
23
|
-
exports.isSupportedTagProperty = isSupportedTagProperty;
|
|
24
|
-
//# sourceMappingURL=loaders.js.map
|
|
23
|
+
exports.isSupportedTagProperty = isSupportedTagProperty;
|
|
@@ -720,6 +720,7 @@
|
|
|
720
720
|
},
|
|
721
721
|
"<script>": {
|
|
722
722
|
"parse-options": {
|
|
723
|
+
"text": true,
|
|
723
724
|
"preserveWhitespace": true
|
|
724
725
|
},
|
|
725
726
|
"@async": "#html-async",
|
|
@@ -786,6 +787,7 @@
|
|
|
786
787
|
},
|
|
787
788
|
"<style>": {
|
|
788
789
|
"parse-options": {
|
|
790
|
+
"text": true,
|
|
789
791
|
"preserveWhitespace": true
|
|
790
792
|
},
|
|
791
793
|
"@disabled": "#html-disabled",
|
|
@@ -824,6 +826,7 @@
|
|
|
824
826
|
},
|
|
825
827
|
"<textarea>": {
|
|
826
828
|
"parse-options": {
|
|
829
|
+
"text": true,
|
|
827
830
|
"preserveWhitespace": true
|
|
828
831
|
},
|
|
829
832
|
"@autocomplete": "#html-autocomplete",
|
package/dist/traverse.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for @babel/traverse 7.
|
|
1
|
+
// Type definitions for @babel/traverse 7.17
|
|
2
2
|
// Project: https://github.com/babel/babel/tree/main/packages/babel-traverse, https://babeljs.io
|
|
3
3
|
// Definitions by: Troy Gerwien <https://github.com/yortus>
|
|
4
4
|
// Marvin Hagemeister <https://github.com/marvinhagemeister>
|
|
@@ -140,7 +140,12 @@ export class Scope {
|
|
|
140
140
|
|
|
141
141
|
crawl(): void;
|
|
142
142
|
|
|
143
|
-
push(opts: {
|
|
143
|
+
push(opts: {
|
|
144
|
+
id: t.LVal;
|
|
145
|
+
init?: t.Expression | undefined;
|
|
146
|
+
unique?: boolean | undefined;
|
|
147
|
+
kind?: 'var' | 'let' | 'const' | undefined;
|
|
148
|
+
}): void;
|
|
144
149
|
|
|
145
150
|
getProgramParent(): Scope;
|
|
146
151
|
|
|
@@ -194,13 +199,11 @@ export class Binding {
|
|
|
194
199
|
constantViolations: NodePath[];
|
|
195
200
|
}
|
|
196
201
|
|
|
197
|
-
export type Visitor<S = {}> = VisitNodeObject<S, Node> &
|
|
198
|
-
{
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
[K in keyof t.Aliases]?: VisitNode<S, t.Aliases[K]>;
|
|
203
|
-
};
|
|
202
|
+
export type Visitor<S = {}> = VisitNodeObject<S, Node> & {
|
|
203
|
+
[Type in Node['type']]?: VisitNode<S, Extract<Node, { type: Type }>>;
|
|
204
|
+
} & {
|
|
205
|
+
[K in keyof t.Aliases]?: VisitNode<S, t.Aliases[K]>;
|
|
206
|
+
};
|
|
204
207
|
|
|
205
208
|
export type VisitNode<S, P extends Node> = VisitNodeFunction<S, P> | VisitNodeObject<S, P>;
|
|
206
209
|
|
|
@@ -254,6 +257,8 @@ export class NodePath<T = Node> {
|
|
|
254
257
|
|
|
255
258
|
getData(key: string, def?: any): any;
|
|
256
259
|
|
|
260
|
+
hasNode(): this is NodePath<NonNullable<this['node']>>;
|
|
261
|
+
|
|
257
262
|
buildCodeFrameError<TError extends Error>(msg: string, Error?: new (msg: string) => TError): TError;
|
|
258
263
|
|
|
259
264
|
traverse<T>(visitor: Visitor<T>, state: T): void;
|
|
@@ -548,6 +553,8 @@ export class NodePath<T = Node> {
|
|
|
548
553
|
context?: boolean | TraversalContext,
|
|
549
554
|
): T[K] extends Array<Node | null | undefined>
|
|
550
555
|
? Array<NodePath<T[K][number]>>
|
|
556
|
+
: T[K] extends Array<Node | null | undefined> | null | undefined
|
|
557
|
+
? Array<NodePath<NonNullable<T[K]>[number]>> | NodePath<null | undefined>
|
|
551
558
|
: T[K] extends Node | null | undefined
|
|
552
559
|
? NodePath<T[K]>
|
|
553
560
|
: never;
|
package/dist/types.d.ts
CHANGED
|
@@ -42,7 +42,7 @@ interface BaseNode {
|
|
|
42
42
|
extra?: Record<string, unknown>;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
export type Node = AnyTypeAnnotation | ArgumentPlaceholder | ArrayExpression | ArrayPattern | ArrayTypeAnnotation | ArrowFunctionExpression | AssignmentExpression | AssignmentPattern | AwaitExpression | BigIntLiteral | Binary | BinaryExpression | BindExpression | Block | BlockParent | BlockStatement | BooleanLiteral | BooleanLiteralTypeAnnotation | BooleanTypeAnnotation | BreakStatement | CallExpression | CatchClause | Class | ClassBody | ClassDeclaration | ClassExpression | ClassImplements | ClassMethod | ClassPrivateMethod | ClassPrivateProperty | ClassProperty | CompletionStatement | Conditional | ConditionalExpression | ContinueStatement | DebuggerStatement | DecimalLiteral | Declaration | DeclareClass | DeclareExportAllDeclaration | DeclareExportDeclaration | DeclareFunction | DeclareInterface | DeclareModule | DeclareModuleExports | DeclareOpaqueType | DeclareTypeAlias | DeclareVariable | DeclaredPredicate | Decorator | Directive | DirectiveLiteral | DoExpression | DoWhileStatement | EmptyStatement | EmptyTypeAnnotation | EnumBody | EnumBooleanBody | EnumBooleanMember | EnumDeclaration | EnumDefaultedMember | EnumMember | EnumNumberBody | EnumNumberMember | EnumStringBody | EnumStringMember | EnumSymbolBody | ExistsTypeAnnotation | ExportAllDeclaration | ExportDeclaration | ExportDefaultDeclaration | ExportDefaultSpecifier | ExportNamedDeclaration | ExportNamespaceSpecifier | ExportSpecifier | Expression | ExpressionStatement | ExpressionWrapper | File | Flow | FlowBaseAnnotation | FlowDeclaration | FlowPredicate | FlowType | For | ForInStatement | ForOfStatement | ForStatement | ForXStatement | Function | FunctionDeclaration | FunctionExpression | FunctionParent | FunctionTypeAnnotation | FunctionTypeParam | GenericTypeAnnotation | Identifier | IfStatement | Immutable | Import | ImportAttribute | ImportDeclaration | ImportDefaultSpecifier | ImportNamespaceSpecifier | ImportSpecifier | IndexedAccessType | InferredPredicate | InterfaceDeclaration | InterfaceExtends | InterfaceTypeAnnotation | InterpreterDirective | IntersectionTypeAnnotation | JSX | JSXAttribute | JSXClosingElement | JSXClosingFragment | JSXElement | JSXEmptyExpression | JSXExpressionContainer | JSXFragment | JSXIdentifier | JSXMemberExpression | JSXNamespacedName | JSXOpeningElement | JSXOpeningFragment | JSXSpreadAttribute | JSXSpreadChild | JSXText | LVal | LabeledStatement | Literal | LogicalExpression | Loop | Marko | MarkoAttribute | MarkoCDATA | MarkoClass | MarkoComment | MarkoDeclaration | MarkoDocumentType | MarkoPlaceholder | MarkoScriptlet | MarkoSpreadAttribute | MarkoTag | MarkoTagBody | MarkoText | MemberExpression | MetaProperty | Method | Miscellaneous | MixedTypeAnnotation | ModuleDeclaration | ModuleExpression | ModuleSpecifier | NewExpression | Noop | NullLiteral | NullLiteralTypeAnnotation | NullableTypeAnnotation | NumberLiteral | NumberLiteralTypeAnnotation | NumberTypeAnnotation | NumericLiteral | ObjectExpression | ObjectMember | ObjectMethod | ObjectPattern | ObjectProperty | ObjectTypeAnnotation | ObjectTypeCallProperty | ObjectTypeIndexer | ObjectTypeInternalSlot | ObjectTypeProperty | ObjectTypeSpreadProperty | OpaqueType | OptionalCallExpression | OptionalIndexedAccessType | OptionalMemberExpression | ParenthesizedExpression | Pattern | PatternLike | PipelineBareFunction | PipelinePrimaryTopicReference | PipelineTopicExpression | Placeholder | Private | PrivateName | Program | Property | Pureish | QualifiedTypeIdentifier | RecordExpression | RegExpLiteral | RegexLiteral | RestElement | RestProperty | ReturnStatement | Scopable | Scope | SequenceExpression | SpreadElement | SpreadProperty | Standardized | Statement | StaticBlock | StringLiteral | StringLiteralTypeAnnotation | StringTypeAnnotation | Super | SwitchCase | SwitchStatement | SymbolTypeAnnotation | TSAnyKeyword | TSArrayType | TSAsExpression | TSBaseType | TSBigIntKeyword | TSBooleanKeyword | TSCallSignatureDeclaration | TSConditionalType | TSConstructSignatureDeclaration | TSConstructorType | TSDeclareFunction | TSDeclareMethod | TSEntityName | TSEnumDeclaration | TSEnumMember | TSExportAssignment | TSExpressionWithTypeArguments | TSExternalModuleReference | TSFunctionType | TSImportEqualsDeclaration | TSImportType | TSIndexSignature | TSIndexedAccessType | TSInferType | TSInterfaceBody | TSInterfaceDeclaration | TSIntersectionType | TSIntrinsicKeyword | TSLiteralType | TSMappedType | TSMethodSignature | TSModuleBlock | TSModuleDeclaration | TSNamedTupleMember | TSNamespaceExportDeclaration | TSNeverKeyword | TSNonNullExpression | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSOptionalType | TSParameterProperty | TSParenthesizedType | TSPropertySignature | TSQualifiedName | TSRestType | TSStringKeyword | TSSymbolKeyword | TSThisType | TSTupleType | TSType | TSTypeAliasDeclaration | TSTypeAnnotation | TSTypeAssertion | TSTypeElement | TSTypeLiteral | TSTypeOperator | TSTypeParameter | TSTypeParameterDeclaration | TSTypeParameterInstantiation | TSTypePredicate | TSTypeQuery | TSTypeReference | TSUndefinedKeyword | TSUnionType | TSUnknownKeyword | TSVoidKeyword | TaggedTemplateExpression | TemplateElement | TemplateLiteral | Terminatorless | ThisExpression | ThisTypeAnnotation | ThrowStatement | TopicReference | TryStatement | TupleExpression | TupleTypeAnnotation | TypeAlias | TypeAnnotation | TypeCastExpression | TypeParameter | TypeParameterDeclaration | TypeParameterInstantiation | TypeScript | TypeofTypeAnnotation | UnaryExpression | UnaryLike | UnionTypeAnnotation | UpdateExpression | UserWhitespacable | V8IntrinsicIdentifier | VariableDeclaration | VariableDeclarator | Variance | VoidTypeAnnotation | While | WhileStatement | WithStatement | YieldExpression;
|
|
45
|
+
export type Node = Accessor | AnyTypeAnnotation | ArgumentPlaceholder | ArrayExpression | ArrayPattern | ArrayTypeAnnotation | ArrowFunctionExpression | AssignmentExpression | AssignmentPattern | AwaitExpression | BigIntLiteral | Binary | BinaryExpression | BindExpression | Block | BlockParent | BlockStatement | BooleanLiteral | BooleanLiteralTypeAnnotation | BooleanTypeAnnotation | BreakStatement | CallExpression | CatchClause | Class | ClassAccessorProperty | ClassBody | ClassDeclaration | ClassExpression | ClassImplements | ClassMethod | ClassPrivateMethod | ClassPrivateProperty | ClassProperty | CompletionStatement | Conditional | ConditionalExpression | ContinueStatement | DebuggerStatement | DecimalLiteral | Declaration | DeclareClass | DeclareExportAllDeclaration | DeclareExportDeclaration | DeclareFunction | DeclareInterface | DeclareModule | DeclareModuleExports | DeclareOpaqueType | DeclareTypeAlias | DeclareVariable | DeclaredPredicate | Decorator | Directive | DirectiveLiteral | DoExpression | DoWhileStatement | EmptyStatement | EmptyTypeAnnotation | EnumBody | EnumBooleanBody | EnumBooleanMember | EnumDeclaration | EnumDefaultedMember | EnumMember | EnumNumberBody | EnumNumberMember | EnumStringBody | EnumStringMember | EnumSymbolBody | ExistsTypeAnnotation | ExportAllDeclaration | ExportDeclaration | ExportDefaultDeclaration | ExportDefaultSpecifier | ExportNamedDeclaration | ExportNamespaceSpecifier | ExportSpecifier | Expression | ExpressionStatement | ExpressionWrapper | File | Flow | FlowBaseAnnotation | FlowDeclaration | FlowPredicate | FlowType | For | ForInStatement | ForOfStatement | ForStatement | ForXStatement | Function | FunctionDeclaration | FunctionExpression | FunctionParent | FunctionTypeAnnotation | FunctionTypeParam | GenericTypeAnnotation | Identifier | IfStatement | Immutable | Import | ImportAttribute | ImportDeclaration | ImportDefaultSpecifier | ImportNamespaceSpecifier | ImportSpecifier | IndexedAccessType | InferredPredicate | InterfaceDeclaration | InterfaceExtends | InterfaceTypeAnnotation | InterpreterDirective | IntersectionTypeAnnotation | JSX | JSXAttribute | JSXClosingElement | JSXClosingFragment | JSXElement | JSXEmptyExpression | JSXExpressionContainer | JSXFragment | JSXIdentifier | JSXMemberExpression | JSXNamespacedName | JSXOpeningElement | JSXOpeningFragment | JSXSpreadAttribute | JSXSpreadChild | JSXText | LVal | LabeledStatement | Literal | LogicalExpression | Loop | Marko | MarkoAttribute | MarkoCDATA | MarkoClass | MarkoComment | MarkoDeclaration | MarkoDocumentType | MarkoPlaceholder | MarkoScriptlet | MarkoSpreadAttribute | MarkoTag | MarkoTagBody | MarkoText | MemberExpression | MetaProperty | Method | Miscellaneous | MixedTypeAnnotation | ModuleDeclaration | ModuleExpression | ModuleSpecifier | NewExpression | Noop | NullLiteral | NullLiteralTypeAnnotation | NullableTypeAnnotation | NumberLiteral | NumberLiteralTypeAnnotation | NumberTypeAnnotation | NumericLiteral | ObjectExpression | ObjectMember | ObjectMethod | ObjectPattern | ObjectProperty | ObjectTypeAnnotation | ObjectTypeCallProperty | ObjectTypeIndexer | ObjectTypeInternalSlot | ObjectTypeProperty | ObjectTypeSpreadProperty | OpaqueType | OptionalCallExpression | OptionalIndexedAccessType | OptionalMemberExpression | ParenthesizedExpression | Pattern | PatternLike | PipelineBareFunction | PipelinePrimaryTopicReference | PipelineTopicExpression | Placeholder | Private | PrivateName | Program | Property | Pureish | QualifiedTypeIdentifier | RecordExpression | RegExpLiteral | RegexLiteral | RestElement | RestProperty | ReturnStatement | Scopable | Scope | SequenceExpression | SpreadElement | SpreadProperty | Standardized | Statement | StaticBlock | StringLiteral | StringLiteralTypeAnnotation | StringTypeAnnotation | Super | SwitchCase | SwitchStatement | SymbolTypeAnnotation | TSAnyKeyword | TSArrayType | TSAsExpression | TSBaseType | TSBigIntKeyword | TSBooleanKeyword | TSCallSignatureDeclaration | TSConditionalType | TSConstructSignatureDeclaration | TSConstructorType | TSDeclareFunction | TSDeclareMethod | TSEntityName | TSEnumDeclaration | TSEnumMember | TSExportAssignment | TSExpressionWithTypeArguments | TSExternalModuleReference | TSFunctionType | TSImportEqualsDeclaration | TSImportType | TSIndexSignature | TSIndexedAccessType | TSInferType | TSInterfaceBody | TSInterfaceDeclaration | TSIntersectionType | TSIntrinsicKeyword | TSLiteralType | TSMappedType | TSMethodSignature | TSModuleBlock | TSModuleDeclaration | TSNamedTupleMember | TSNamespaceExportDeclaration | TSNeverKeyword | TSNonNullExpression | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSOptionalType | TSParameterProperty | TSParenthesizedType | TSPropertySignature | TSQualifiedName | TSRestType | TSStringKeyword | TSSymbolKeyword | TSThisType | TSTupleType | TSType | TSTypeAliasDeclaration | TSTypeAnnotation | TSTypeAssertion | TSTypeElement | TSTypeLiteral | TSTypeOperator | TSTypeParameter | TSTypeParameterDeclaration | TSTypeParameterInstantiation | TSTypePredicate | TSTypeQuery | TSTypeReference | TSUndefinedKeyword | TSUnionType | TSUnknownKeyword | TSVoidKeyword | TaggedTemplateExpression | TemplateElement | TemplateLiteral | Terminatorless | ThisExpression | ThisTypeAnnotation | ThrowStatement | TopicReference | TryStatement | TupleExpression | TupleTypeAnnotation | TypeAlias | TypeAnnotation | TypeCastExpression | TypeParameter | TypeParameterDeclaration | TypeParameterInstantiation | TypeScript | TypeofTypeAnnotation | UnaryExpression | UnaryLike | UnionTypeAnnotation | UpdateExpression | UserWhitespacable | V8IntrinsicIdentifier | VariableDeclaration | VariableDeclarator | Variance | VoidTypeAnnotation | While | WhileStatement | WithStatement | YieldExpression;
|
|
46
46
|
|
|
47
47
|
export interface ArrayExpression extends BaseNode {
|
|
48
48
|
type: "ArrayExpression";
|
|
@@ -407,7 +407,7 @@ export interface ArrowFunctionExpression extends BaseNode {
|
|
|
407
407
|
|
|
408
408
|
export interface ClassBody extends BaseNode {
|
|
409
409
|
type: "ClassBody";
|
|
410
|
-
body: Array<ClassMethod | ClassPrivateMethod | ClassProperty | ClassPrivateProperty | TSDeclareMethod | TSIndexSignature>;
|
|
410
|
+
body: Array<ClassMethod | ClassPrivateMethod | ClassProperty | ClassPrivateProperty | ClassAccessorProperty | TSDeclareMethod | TSIndexSignature | StaticBlock>;
|
|
411
411
|
}
|
|
412
412
|
|
|
413
413
|
export interface ClassExpression extends BaseNode {
|
|
@@ -619,6 +619,24 @@ export interface ClassProperty extends BaseNode {
|
|
|
619
619
|
variance: Variance | null;
|
|
620
620
|
}
|
|
621
621
|
|
|
622
|
+
export interface ClassAccessorProperty extends BaseNode {
|
|
623
|
+
type: "ClassAccessorProperty";
|
|
624
|
+
key: Identifier | StringLiteral | NumericLiteral | Expression | PrivateName;
|
|
625
|
+
value: Expression | null;
|
|
626
|
+
typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null;
|
|
627
|
+
decorators: Array<Decorator> | null;
|
|
628
|
+
computed: boolean;
|
|
629
|
+
static: boolean;
|
|
630
|
+
abstract: boolean | null;
|
|
631
|
+
accessibility: "public" | "private" | "protected" | null;
|
|
632
|
+
declare: boolean | null;
|
|
633
|
+
definite: boolean | null;
|
|
634
|
+
optional: boolean | null;
|
|
635
|
+
override: boolean;
|
|
636
|
+
readonly: boolean | null;
|
|
637
|
+
variance: Variance | null;
|
|
638
|
+
}
|
|
639
|
+
|
|
622
640
|
export interface ClassPrivateProperty extends BaseNode {
|
|
623
641
|
type: "ClassPrivateProperty";
|
|
624
642
|
key: PrivateName;
|
|
@@ -1706,7 +1724,7 @@ export type RestProperty = RestElement;
|
|
|
1706
1724
|
*/
|
|
1707
1725
|
export type SpreadProperty = SpreadElement;
|
|
1708
1726
|
|
|
1709
|
-
export type Standardized = ArrayExpression | AssignmentExpression | BinaryExpression | InterpreterDirective | Directive | DirectiveLiteral | BlockStatement | BreakStatement | CallExpression | CatchClause | ConditionalExpression | ContinueStatement | DebuggerStatement | DoWhileStatement | EmptyStatement | ExpressionStatement | File | ForInStatement | ForStatement | FunctionDeclaration | FunctionExpression | Identifier | IfStatement | LabeledStatement | StringLiteral | NumericLiteral | NullLiteral | BooleanLiteral | RegExpLiteral | LogicalExpression | MemberExpression | NewExpression | Program | ObjectExpression | ObjectMethod | ObjectProperty | RestElement | ReturnStatement | SequenceExpression | ParenthesizedExpression | SwitchCase | SwitchStatement | ThisExpression | ThrowStatement | TryStatement | UnaryExpression | UpdateExpression | VariableDeclaration | VariableDeclarator | WhileStatement | WithStatement | AssignmentPattern | ArrayPattern | ArrowFunctionExpression | ClassBody | ClassExpression | ClassDeclaration | ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ExportSpecifier | ForOfStatement | ImportDeclaration | ImportDefaultSpecifier | ImportNamespaceSpecifier | ImportSpecifier | MetaProperty | ClassMethod | ObjectPattern | SpreadElement | Super | TaggedTemplateExpression | TemplateElement | TemplateLiteral | YieldExpression | AwaitExpression | Import | BigIntLiteral | ExportNamespaceSpecifier | OptionalMemberExpression | OptionalCallExpression | ClassProperty | ClassPrivateProperty | ClassPrivateMethod | PrivateName | StaticBlock;
|
|
1727
|
+
export type Standardized = ArrayExpression | AssignmentExpression | BinaryExpression | InterpreterDirective | Directive | DirectiveLiteral | BlockStatement | BreakStatement | CallExpression | CatchClause | ConditionalExpression | ContinueStatement | DebuggerStatement | DoWhileStatement | EmptyStatement | ExpressionStatement | File | ForInStatement | ForStatement | FunctionDeclaration | FunctionExpression | Identifier | IfStatement | LabeledStatement | StringLiteral | NumericLiteral | NullLiteral | BooleanLiteral | RegExpLiteral | LogicalExpression | MemberExpression | NewExpression | Program | ObjectExpression | ObjectMethod | ObjectProperty | RestElement | ReturnStatement | SequenceExpression | ParenthesizedExpression | SwitchCase | SwitchStatement | ThisExpression | ThrowStatement | TryStatement | UnaryExpression | UpdateExpression | VariableDeclaration | VariableDeclarator | WhileStatement | WithStatement | AssignmentPattern | ArrayPattern | ArrowFunctionExpression | ClassBody | ClassExpression | ClassDeclaration | ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ExportSpecifier | ForOfStatement | ImportDeclaration | ImportDefaultSpecifier | ImportNamespaceSpecifier | ImportSpecifier | MetaProperty | ClassMethod | ObjectPattern | SpreadElement | Super | TaggedTemplateExpression | TemplateElement | TemplateLiteral | YieldExpression | AwaitExpression | Import | BigIntLiteral | ExportNamespaceSpecifier | OptionalMemberExpression | OptionalCallExpression | ClassProperty | ClassAccessorProperty | ClassPrivateProperty | ClassPrivateMethod | PrivateName | StaticBlock;
|
|
1710
1728
|
export type Expression = ArrayExpression | AssignmentExpression | BinaryExpression | CallExpression | ConditionalExpression | FunctionExpression | Identifier | StringLiteral | NumericLiteral | NullLiteral | BooleanLiteral | RegExpLiteral | LogicalExpression | MemberExpression | NewExpression | ObjectExpression | SequenceExpression | ParenthesizedExpression | ThisExpression | UnaryExpression | UpdateExpression | ArrowFunctionExpression | ClassExpression | MetaProperty | Super | TaggedTemplateExpression | TemplateLiteral | YieldExpression | AwaitExpression | Import | BigIntLiteral | OptionalMemberExpression | OptionalCallExpression | TypeCastExpression | JSXElement | JSXFragment | BindExpression | DoExpression | RecordExpression | TupleExpression | DecimalLiteral | ModuleExpression | TopicReference | PipelineTopicExpression | PipelineBareFunction | PipelinePrimaryTopicReference | TSAsExpression | TSTypeAssertion | TSNonNullExpression;
|
|
1711
1729
|
export type Binary = BinaryExpression | LogicalExpression;
|
|
1712
1730
|
export type Scopable = BlockStatement | CatchClause | DoWhileStatement | ForInStatement | ForStatement | FunctionDeclaration | FunctionExpression | Program | ObjectMethod | SwitchStatement | WhileStatement | ArrowFunctionExpression | ClassExpression | ClassDeclaration | ForOfStatement | ClassMethod | ClassPrivateMethod | StaticBlock | TSModuleBlock;
|
|
@@ -1733,13 +1751,14 @@ export type Immutable = StringLiteral | NumericLiteral | NullLiteral | BooleanLi
|
|
|
1733
1751
|
export type UserWhitespacable = ObjectMethod | ObjectProperty | ObjectTypeInternalSlot | ObjectTypeCallProperty | ObjectTypeIndexer | ObjectTypeProperty | ObjectTypeSpreadProperty;
|
|
1734
1752
|
export type Method = ObjectMethod | ClassMethod | ClassPrivateMethod;
|
|
1735
1753
|
export type ObjectMember = ObjectMethod | ObjectProperty;
|
|
1736
|
-
export type Property = ObjectProperty | ClassProperty | ClassPrivateProperty;
|
|
1754
|
+
export type Property = ObjectProperty | ClassProperty | ClassAccessorProperty | ClassPrivateProperty;
|
|
1737
1755
|
export type UnaryLike = UnaryExpression | SpreadElement;
|
|
1738
1756
|
export type Pattern = AssignmentPattern | ArrayPattern | ObjectPattern;
|
|
1739
1757
|
export type Class = ClassExpression | ClassDeclaration;
|
|
1740
1758
|
export type ModuleDeclaration = ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ImportDeclaration;
|
|
1741
1759
|
export type ExportDeclaration = ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration;
|
|
1742
1760
|
export type ModuleSpecifier = ExportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier | ImportSpecifier | ExportNamespaceSpecifier | ExportDefaultSpecifier;
|
|
1761
|
+
export type Accessor = ClassAccessorProperty;
|
|
1743
1762
|
export type Private = ClassPrivateProperty | ClassPrivateMethod | PrivateName;
|
|
1744
1763
|
export type Flow = AnyTypeAnnotation | ArrayTypeAnnotation | BooleanTypeAnnotation | BooleanLiteralTypeAnnotation | NullLiteralTypeAnnotation | ClassImplements | DeclareClass | DeclareFunction | DeclareInterface | DeclareModule | DeclareModuleExports | DeclareTypeAlias | DeclareOpaqueType | DeclareVariable | DeclareExportDeclaration | DeclareExportAllDeclaration | DeclaredPredicate | ExistsTypeAnnotation | FunctionTypeAnnotation | FunctionTypeParam | GenericTypeAnnotation | InferredPredicate | InterfaceExtends | InterfaceDeclaration | InterfaceTypeAnnotation | IntersectionTypeAnnotation | MixedTypeAnnotation | EmptyTypeAnnotation | NullableTypeAnnotation | NumberLiteralTypeAnnotation | NumberTypeAnnotation | ObjectTypeAnnotation | ObjectTypeInternalSlot | ObjectTypeCallProperty | ObjectTypeIndexer | ObjectTypeProperty | ObjectTypeSpreadProperty | OpaqueType | QualifiedTypeIdentifier | StringLiteralTypeAnnotation | StringTypeAnnotation | SymbolTypeAnnotation | ThisTypeAnnotation | TupleTypeAnnotation | TypeofTypeAnnotation | TypeAlias | TypeAnnotation | TypeCastExpression | TypeParameter | TypeParameterDeclaration | TypeParameterInstantiation | UnionTypeAnnotation | Variance | VoidTypeAnnotation | EnumDeclaration | EnumBooleanBody | EnumNumberBody | EnumStringBody | EnumSymbolBody | EnumBooleanMember | EnumNumberMember | EnumStringMember | EnumDefaultedMember | IndexedAccessType | OptionalIndexedAccessType;
|
|
1745
1764
|
export type FlowType = AnyTypeAnnotation | ArrayTypeAnnotation | BooleanTypeAnnotation | BooleanLiteralTypeAnnotation | NullLiteralTypeAnnotation | ExistsTypeAnnotation | FunctionTypeAnnotation | GenericTypeAnnotation | InterfaceTypeAnnotation | IntersectionTypeAnnotation | MixedTypeAnnotation | EmptyTypeAnnotation | NullableTypeAnnotation | NumberLiteralTypeAnnotation | NumberTypeAnnotation | ObjectTypeAnnotation | StringLiteralTypeAnnotation | StringTypeAnnotation | SymbolTypeAnnotation | ThisTypeAnnotation | TupleTypeAnnotation | TypeofTypeAnnotation | UnionTypeAnnotation | VoidTypeAnnotation | IndexedAccessType | OptionalIndexedAccessType;
|
|
@@ -1792,6 +1811,7 @@ export interface Aliases {
|
|
|
1792
1811
|
ModuleDeclaration: ModuleDeclaration;
|
|
1793
1812
|
ExportDeclaration: ExportDeclaration;
|
|
1794
1813
|
ModuleSpecifier: ModuleSpecifier;
|
|
1814
|
+
Accessor: Accessor;
|
|
1795
1815
|
Private: Private;
|
|
1796
1816
|
Flow: Flow;
|
|
1797
1817
|
FlowType: FlowType;
|
|
@@ -1864,7 +1884,7 @@ export function withStatement(object: Expression, body: Statement): WithStatemen
|
|
|
1864
1884
|
export function assignmentPattern(left: Identifier | ObjectPattern | ArrayPattern | MemberExpression, right: Expression): AssignmentPattern;
|
|
1865
1885
|
export function arrayPattern(elements: Array<null | PatternLike>): ArrayPattern;
|
|
1866
1886
|
export function arrowFunctionExpression(params: Array<Identifier | Pattern | RestElement>, body: BlockStatement | Expression, async?: boolean): ArrowFunctionExpression;
|
|
1867
|
-
export function classBody(body: Array<ClassMethod | ClassPrivateMethod | ClassProperty | ClassPrivateProperty | TSDeclareMethod | TSIndexSignature>): ClassBody;
|
|
1887
|
+
export function classBody(body: Array<ClassMethod | ClassPrivateMethod | ClassProperty | ClassPrivateProperty | ClassAccessorProperty | TSDeclareMethod | TSIndexSignature | StaticBlock>): ClassBody;
|
|
1868
1888
|
export function classExpression(id: Identifier | null | undefined, superClass: Expression | null | undefined, body: ClassBody, decorators?: Array<Decorator> | null): ClassExpression;
|
|
1869
1889
|
export function classDeclaration(id: Identifier, superClass: Expression | null | undefined, body: ClassBody, decorators?: Array<Decorator> | null): ClassDeclaration;
|
|
1870
1890
|
export function exportAllDeclaration(source: StringLiteral): ExportAllDeclaration;
|
|
@@ -1894,6 +1914,7 @@ export function exportNamespaceSpecifier(exported: Identifier): ExportNamespaceS
|
|
|
1894
1914
|
export function optionalMemberExpression(object: Expression, property: Expression | Identifier, computed: boolean | undefined, optional: boolean): OptionalMemberExpression;
|
|
1895
1915
|
export function optionalCallExpression(callee: Expression, _arguments: Array<Expression | SpreadElement | JSXNamespacedName | ArgumentPlaceholder>, optional: boolean): OptionalCallExpression;
|
|
1896
1916
|
export function classProperty(key: Identifier | StringLiteral | NumericLiteral | Expression, value?: Expression | null, typeAnnotation?: TypeAnnotation | TSTypeAnnotation | Noop | null, decorators?: Array<Decorator> | null, computed?: boolean, _static?: boolean): ClassProperty;
|
|
1917
|
+
export function classAccessorProperty(key: Identifier | StringLiteral | NumericLiteral | Expression | PrivateName, value?: Expression | null, typeAnnotation?: TypeAnnotation | TSTypeAnnotation | Noop | null, decorators?: Array<Decorator> | null, computed?: boolean, _static?: boolean): ClassAccessorProperty;
|
|
1897
1918
|
export function classPrivateProperty(key: PrivateName, value: Expression | null | undefined, decorators: Array<Decorator> | null | undefined, _static: any): ClassPrivateProperty;
|
|
1898
1919
|
export function classPrivateMethod(kind: "get" | "set" | "method" | "constructor" | undefined, key: PrivateName, params: Array<Identifier | Pattern | RestElement | TSParameterProperty>, body: BlockStatement, _static?: boolean): ClassPrivateMethod;
|
|
1899
1920
|
export function privateName(id: Identifier): PrivateName;
|
|
@@ -2070,6 +2091,8 @@ export function markoAttribute(name: string, value: Expression, modifier?: strin
|
|
|
2070
2091
|
export function markoSpreadAttribute(value: Expression): MarkoSpreadAttribute;
|
|
2071
2092
|
export function markoTagBody(body?: Array<MarkoTag | MarkoCDATA | MarkoText | MarkoPlaceholder | MarkoScriptlet | MarkoComment>, params?: Array<Identifier | Pattern | RestElement>): MarkoTagBody;
|
|
2072
2093
|
export function markoTag(name: Expression, attributes: Array<MarkoAttribute | MarkoSpreadAttribute> | undefined, body: MarkoTagBody, _arguments?: Array<Expression | SpreadElement> | null, _var?: LVal | null): MarkoTag;
|
|
2094
|
+
export function isAccessor(node: object | null | undefined, opts?: object | null): node is Accessor;
|
|
2095
|
+
export function assertAccessor(node: object | null | undefined, opts?: object | null): void;
|
|
2073
2096
|
export function isAnyTypeAnnotation(node: object | null | undefined, opts?: object | null): node is AnyTypeAnnotation;
|
|
2074
2097
|
export function assertAnyTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
|
|
2075
2098
|
export function isArgumentPlaceholder(node: object | null | undefined, opts?: object | null): node is ArgumentPlaceholder;
|
|
@@ -2116,6 +2139,8 @@ export function isCatchClause(node: object | null | undefined, opts?: object | n
|
|
|
2116
2139
|
export function assertCatchClause(node: object | null | undefined, opts?: object | null): void;
|
|
2117
2140
|
export function isClass(node: object | null | undefined, opts?: object | null): node is Class;
|
|
2118
2141
|
export function assertClass(node: object | null | undefined, opts?: object | null): void;
|
|
2142
|
+
export function isClassAccessorProperty(node: object | null | undefined, opts?: object | null): node is ClassAccessorProperty;
|
|
2143
|
+
export function assertClassAccessorProperty(node: object | null | undefined, opts?: object | null): void;
|
|
2119
2144
|
export function isClassBody(node: object | null | undefined, opts?: object | null): node is ClassBody;
|
|
2120
2145
|
export function assertClassBody(node: object | null | undefined, opts?: object | null): void;
|
|
2121
2146
|
export function isClassDeclaration(node: object | null | undefined, opts?: object | null): node is ClassDeclaration;
|
package/index.d.ts
CHANGED
|
@@ -25,7 +25,12 @@ export type Config = {
|
|
|
25
25
|
translator?: any;
|
|
26
26
|
fileSystem?: typeof import("fs");
|
|
27
27
|
modules?: "esm" | "cjs";
|
|
28
|
-
resolveVirtualDependency?:
|
|
28
|
+
resolveVirtualDependency?:
|
|
29
|
+
| ((
|
|
30
|
+
filename: string,
|
|
31
|
+
dep: { virtualPath: string; code: string; map?: SourceMap }
|
|
32
|
+
) => string)
|
|
33
|
+
| null;
|
|
29
34
|
hydrateIncludeImports?: RegExp | ((request: string) => boolean);
|
|
30
35
|
optimize?: boolean;
|
|
31
36
|
cache?: Map<unknown, unknown>;
|
|
@@ -48,10 +53,7 @@ export type MarkoMeta = {
|
|
|
48
53
|
component?: string;
|
|
49
54
|
watchFiles: string[];
|
|
50
55
|
tags?: string[];
|
|
51
|
-
deps: Array<
|
|
52
|
-
| string
|
|
53
|
-
| Dep
|
|
54
|
-
>;
|
|
56
|
+
deps: Array<string | Dep>;
|
|
55
57
|
};
|
|
56
58
|
|
|
57
59
|
export type CompileResult = {
|
|
@@ -85,12 +87,18 @@ export function compileFileSync(
|
|
|
85
87
|
config?: Config
|
|
86
88
|
): CompileResult;
|
|
87
89
|
|
|
88
|
-
export function getRuntimeEntryFiles(
|
|
90
|
+
export function getRuntimeEntryFiles(
|
|
91
|
+
output: string,
|
|
92
|
+
translator?: string | undefined
|
|
93
|
+
): string[];
|
|
89
94
|
|
|
90
95
|
export namespace taglib {
|
|
91
96
|
export function excludeDir(dirname: string): void;
|
|
92
97
|
export function excludePackage(packageName: string): void;
|
|
93
|
-
export function register(id: string, props: { [x:string]: unknown }): void;
|
|
94
|
-
export function buildLookup(
|
|
98
|
+
export function register(id: string, props: { [x: string]: unknown }): void;
|
|
99
|
+
export function buildLookup(
|
|
100
|
+
dirname: string,
|
|
101
|
+
translator?: unknown
|
|
102
|
+
): TaglibLookup;
|
|
95
103
|
export function clearCaches(): void;
|
|
96
104
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marko/compiler",
|
|
3
3
|
"description": "Marko template to JS compiler.",
|
|
4
|
-
"version": "5.
|
|
4
|
+
"version": "5.21.1",
|
|
5
5
|
"author": "Dylan Piercey <dpiercey@ebay.com>",
|
|
6
6
|
"bugs": "https://github.com/marko-js/marko/issues/new?template=Bug_report.md",
|
|
7
7
|
"dependencies": {
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
"@babel/runtime": "^7.16.0",
|
|
14
14
|
"@babel/traverse": "^7.16.0",
|
|
15
15
|
"@babel/types": "^7.16.0",
|
|
16
|
-
"@marko/babel-utils": "^5.
|
|
16
|
+
"@marko/babel-utils": "^5.21.1",
|
|
17
17
|
"complain": "^1.6.0",
|
|
18
18
|
"he": "^1.2.0",
|
|
19
|
-
"htmljs-parser": "^
|
|
19
|
+
"htmljs-parser": "^3.3.1",
|
|
20
20
|
"jsesc": "^3.0.2",
|
|
21
21
|
"lasso-package-root": "^1.0.1",
|
|
22
22
|
"property-handlers": "^1.1.1",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"strip-json-comments": "^3.1.1"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@marko/translator-default": "^5.
|
|
31
|
+
"@marko/translator-default": "^5.21.1"
|
|
32
32
|
},
|
|
33
33
|
"files": [
|
|
34
34
|
"dist",
|
|
@@ -58,6 +58,5 @@
|
|
|
58
58
|
"type": "git",
|
|
59
59
|
"url": "https://github.com/marko-js/marko/tree/master/packages/compiler"
|
|
60
60
|
},
|
|
61
|
-
"types": "index.d.ts"
|
|
62
|
-
"gitHead": "8d1abfa37468bd28d781c2a26d49a582acba66d2"
|
|
61
|
+
"types": "index.d.ts"
|
|
63
62
|
}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright 2020 eBay Inc. and contributors
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
|
13
|
-
all copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
-
THE SOFTWARE.
|