@dosgato/templating
Advanced tools
Comparing version 0.0.132 to 0.0.133
@@ -289,3 +289,3 @@ import { get, isNotBlank, titleCase } from 'txstate-utils'; | ||
variationUrl(extension) { | ||
return `${this.url.replace(/\.\w+$/, '')}.${extension}`; | ||
return (this.url === '/' ? '/.root' : this.url.replace(/\.[^/]+$/, '')) + '.' + extension; | ||
} | ||
@@ -292,0 +292,0 @@ passError(e, path) { |
@@ -127,2 +127,8 @@ import type { ComponentData, PageData } from './component.js'; | ||
} | ||
export interface TracingInterface { | ||
init?: (env: TracingEnvironment) => void; | ||
startTransaction?: (name: string, details: any, env?: TracingEnvironment) => void; | ||
endTransaction?: (name: string, details: any, env?: TracingEnvironment) => void; | ||
event?: (name: string, details: any, env?: TracingEnvironment) => void; | ||
} | ||
/** | ||
@@ -191,9 +197,4 @@ * A type for the config object that should be exported from a CMS instance's admin/local/index.js | ||
assetMetaDialog?: UITemplate['dialog']; | ||
tracing?: { | ||
init?: (env: TracingEnvironment) => void; | ||
startTransaction?: (name: string, details: any, env?: TracingEnvironment) => void; | ||
endTransaction?: (name: string, details: any, env?: TracingEnvironment) => void; | ||
event?: (name: string, details: any, env?: TracingEnvironment) => void; | ||
}; | ||
tracing?: TracingInterface; | ||
} | ||
export {}; |
{ | ||
"name": "@dosgato/templating", | ||
"version": "0.0.132", | ||
"version": "0.0.133", | ||
"description": "A library to support building templates for dosgato CMS.", | ||
@@ -5,0 +5,0 @@ "type": "module", |
105866
2316