Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aurelia/template-compiler

Package Overview
Dependencies
Maintainers
0
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aurelia/template-compiler - npm Package Compare versions

Comparing version 2.0.1-dev.202408081231 to 2.0.1-dev.202409300916

5

CHANGELOG.md

@@ -6,2 +6,7 @@ # Change Log

<a name="2.0.0-beta.22"></a>
# 2.0.0-beta.22 (2024-09-30)
**Note:** Version bump only for package @aurelia/template-compiler
<a name="2.0.0-beta.21"></a>

@@ -8,0 +13,0 @@ # 2.0.0-beta.21 (2024-08-08)

8

package.json
{
"name": "@aurelia/template-compiler",
"version": "2.0.1-dev.202408081231",
"version": "2.0.1-dev.202409300916",
"main": "dist/cjs/index.cjs",

@@ -56,5 +56,5 @@ "module": "dist/esm/index.mjs",

"dependencies": {
"@aurelia/metadata": "2.0.1-dev.202408081231",
"@aurelia/kernel": "2.0.1-dev.202408081231",
"@aurelia/expression-parser": "2.0.1-dev.202408081231"
"@aurelia/metadata": "2.0.1-dev.202409300916",
"@aurelia/kernel": "2.0.1-dev.202409300916",
"@aurelia/expression-parser": "2.0.1-dev.202409300916"
},

@@ -61,0 +61,0 @@ "devDependencies": {

@@ -1,2 +0,2 @@

import { createInterface } from './utilities';
import { tcCreateInterface } from './utilities';

@@ -6,3 +6,3 @@ /**

*/
export const IAttrMapper = /*@__PURE__*/createInterface<IAttrMapper>('IAttrMapper');
export const IAttrMapper = /*@__PURE__*/tcCreateInterface<IAttrMapper>('IAttrMapper');
export interface IAttrMapper {

@@ -9,0 +9,0 @@ /**

import type { Constructable, IRegistry, } from '@aurelia/kernel';
import { IContainer, registrableMetadataKey, emptyArray, getResourceKeyFor, resolve } from '@aurelia/kernel';
import { createInterface, objectFreeze, singletonRegistration } from './utilities';
import { tcCreateInterface, tcObjectFreeze, singletonRegistration } from './utilities';
import { ErrorNames, createMappedError } from './errors';

@@ -289,3 +289,3 @@

}
export const ISyntaxInterpreter = /*@__PURE__*/createInterface<ISyntaxInterpreter>('ISyntaxInterpreter', x => x.singleton(SyntaxInterpreter));
export const ISyntaxInterpreter = /*@__PURE__*/tcCreateInterface<ISyntaxInterpreter>('ISyntaxInterpreter', x => x.singleton(SyntaxInterpreter));

@@ -448,3 +448,3 @@ /**

export const IAttributePattern = /*@__PURE__*/createInterface<IAttributePattern>('IAttributePattern');
export const IAttributePattern = /*@__PURE__*/tcCreateInterface<IAttributePattern>('IAttributePattern');

@@ -455,3 +455,3 @@ export interface IAttributeParser {

}
export const IAttributeParser = /*@__PURE__*/createInterface<IAttributeParser>('IAttributeParser', x => x.singleton(AttributeParser));
export const IAttributeParser = /*@__PURE__*/tcCreateInterface<IAttributeParser>('IAttributeParser', x => x.singleton(AttributeParser));

@@ -537,3 +537,2 @@ /**

// Decorators are by nature static, so we need to store the metadata on the class itself, assuming only one set of patterns per class.
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
context.metadata[registrableMetadataKey] = registrable;

@@ -544,3 +543,3 @@ return target;

export const AttributePattern = /*@__PURE__*/ objectFreeze<AttributePatternKind>({
export const AttributePattern = /*@__PURE__*/ tcObjectFreeze<AttributePatternKind>({
name: getResourceKeyFor('attribute-pattern'),

@@ -547,0 +546,0 @@ create(patternDefs, Type) {

import { IExpressionParser } from '@aurelia/expression-parser';
import { Protocol, camelCase, emptyArray, firstDefined, getResourceKeyFor, mergeArrays, resolve, resource, resourceBaseName } from '@aurelia/kernel';
import { Protocol, camelCase, emptyArray, firstDefined, getResourceKeyFor, mergeArrays, resolve, resource, resourceBaseName, isString } from '@aurelia/kernel';
import { defineMetadata, getMetadata } from './utilities-metadata';

@@ -14,3 +14,3 @@ import { IAttrMapper } from './attribute-mapper';

} from './instructions';
import { aliasRegistration, etIsFunction, etIsProperty, isString, objectFreeze, singletonRegistration } from './utilities';
import { aliasRegistration, etIsFunction, etIsProperty, tcObjectFreeze, singletonRegistration } from './utilities';

@@ -169,3 +169,3 @@ import type {

return objectFreeze<BindingCommandKind>({
return tcObjectFreeze<BindingCommandKind>({
name: cmdBaseName,

@@ -172,0 +172,0 @@ keyFrom: getCommandKeyFrom,

@@ -1,2 +0,2 @@

import { objectFreeze } from './utilities';
import { tcObjectFreeze } from './utilities';

@@ -17,3 +17,3 @@ // Note: the oneTime binding now has a non-zero value for 2 reasons:

*/
export const BindingMode = /*@__PURE__*/ objectFreeze({
export const BindingMode = /*@__PURE__*/ tcObjectFreeze({
/**

@@ -20,0 +20,0 @@ * Unspecified mode, bindings may act differently with this mode

@@ -0,1 +1,2 @@

import { isString } from '@aurelia/kernel';
import {

@@ -7,3 +8,3 @@ type ForOfStatement,

import { IAttributeComponentDefinition, IElementComponentDefinition } from './interfaces-template-compiler';
import { createInterface, isString, objectFreeze } from './utilities';
import { tcCreateInterface, tcObjectFreeze } from './utilities';
import { AttrSyntax } from './attribute-pattern';

@@ -34,3 +35,3 @@ import { BindingMode } from './binding-mode';

export const InstructionType = /*@__PURE__*/ objectFreeze({
export const InstructionType = /*@__PURE__*/ tcObjectFreeze({
hydrateElement,

@@ -63,3 +64,3 @@ hydrateAttribute,

}
export const IInstruction = /*@__PURE__*/createInterface<IInstruction>('Instruction');
export const IInstruction = /*@__PURE__*/tcCreateInterface<IInstruction>('Instruction');

@@ -66,0 +67,0 @@ export function isInstruction(value: unknown): value is IInstruction {

import { Constructable, IContainer, IPlatform, Key } from '@aurelia/kernel';
import { createInterface } from './utilities';
import { tcCreateInterface } from './utilities';
import { AttrSyntax } from './attribute-pattern';

@@ -63,3 +63,3 @@ import { IInstruction } from './instructions';

*/
export const ITemplateCompiler = /*@__PURE__*/createInterface<ITemplateCompiler>('ITemplateCompiler');
export const ITemplateCompiler = /*@__PURE__*/tcCreateInterface<ITemplateCompiler>('ITemplateCompiler');
export interface ITemplateCompiler {

@@ -66,0 +66,0 @@ /**

@@ -1,3 +0,3 @@

import { IPlatform, resolve } from '@aurelia/kernel';
import { createInterface, isString } from './utilities';
import { IPlatform, resolve, isString } from '@aurelia/kernel';
import { tcCreateInterface } from './utilities';
import { IDomPlatform } from './interfaces-template-compiler';

@@ -14,3 +14,3 @@

}
export const ITemplateElementFactory = /*@__PURE__*/createInterface<ITemplateElementFactory>('ITemplateElementFactory', x => x.singleton(TemplateElementFactory));
export const ITemplateElementFactory = /*@__PURE__*/tcCreateInterface<ITemplateElementFactory>('ITemplateElementFactory', x => x.singleton(TemplateElementFactory));

@@ -17,0 +17,0 @@ const markupCache: Record<string, HTMLTemplateElement | undefined> = {};

import { DI, Registration } from '@aurelia/kernel';
/** @internal */ export const isString = (v: unknown): v is string => typeof v === 'string';
/** @internal */ export const tcCreateInterface = DI.createInterface;
/** @internal */ export const createInterface = DI.createInterface;
/** @internal */ export const tcObjectFreeze = Object.freeze;
/** @internal */ export const objectFreeze = Object.freeze;
/** @internal */ export const { aliasTo: aliasRegistration, singleton: singletonRegistration } = Registration;

@@ -10,0 +8,0 @@

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

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

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

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

Sorry, the diff of this file is too big to display

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