@jakubmazanec/template 1.1.0-unstable.96b41d0 → 1.1.0
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/TemplateError.js
CHANGED
|
@@ -4,7 +4,7 @@ import { createCustomErrorWithData } from '@jakubmazanec/error';
|
|
|
4
4
|
*/ export const TemplateError = createCustomErrorWithData('TemplateError', {
|
|
5
5
|
INVALID_ATTRIBUTES: 'Invalid template attributes.',
|
|
6
6
|
FAILED_FORMAT: 'Template render formatting has failed.',
|
|
7
|
-
FAILED_RENDER: '
|
|
7
|
+
FAILED_RENDER: 'Template rendering has failed.'
|
|
8
8
|
}, class TemplateErrorData {
|
|
9
9
|
template;
|
|
10
10
|
path;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/TemplateError.ts"],"sourcesContent":["import {createCustomErrorWithData} from '@jakubmazanec/error';\nimport {type ZodIssue} from 'zod';\n\nimport {type Template} from './Template.js';\n\n/**\n * A subclass of `Error` that indicates a template failure.\n */\nexport const TemplateError = createCustomErrorWithData(\n 'TemplateError',\n {\n INVALID_ATTRIBUTES: 'Invalid template attributes.',\n FAILED_FORMAT: 'Template render formatting has failed.',\n FAILED_RENDER: '
|
|
1
|
+
{"version":3,"sources":["../src/TemplateError.ts"],"sourcesContent":["import {createCustomErrorWithData} from '@jakubmazanec/error';\nimport {type ZodIssue} from 'zod';\n\nimport {type Template} from './Template.js';\n\n/**\n * A subclass of `Error` that indicates a template failure.\n */\nexport const TemplateError = createCustomErrorWithData(\n 'TemplateError',\n {\n INVALID_ATTRIBUTES: 'Invalid template attributes.',\n FAILED_FORMAT: 'Template render formatting has failed.',\n FAILED_RENDER: 'Template rendering has failed.',\n },\n class TemplateErrorData {\n template?: Template;\n path?: string;\n zodIssues?: ZodIssue[];\n },\n);\n"],"names":["createCustomErrorWithData","TemplateError","INVALID_ATTRIBUTES","FAILED_FORMAT","FAILED_RENDER","TemplateErrorData","template","path","zodIssues"],"mappings":"AAAA,SAAQA,yBAAyB,QAAO,sBAAsB;AAK9D;;CAEC,GACD,OAAO,MAAMC,gBAAgBD,0BAC3B,iBACA;IACEE,oBAAoB;IACpBC,eAAe;IACfC,eAAe;AACjB,GACA,MAAMC;IACJC,SAAoB;IACpBC,KAAc;IACdC,UAAuB;AACzB,GACA"}
|
package/package.json
CHANGED
package/src/TemplateError.ts
CHANGED
|
@@ -11,7 +11,7 @@ export const TemplateError = createCustomErrorWithData(
|
|
|
11
11
|
{
|
|
12
12
|
INVALID_ATTRIBUTES: 'Invalid template attributes.',
|
|
13
13
|
FAILED_FORMAT: 'Template render formatting has failed.',
|
|
14
|
-
FAILED_RENDER: '
|
|
14
|
+
FAILED_RENDER: 'Template rendering has failed.',
|
|
15
15
|
},
|
|
16
16
|
class TemplateErrorData {
|
|
17
17
|
template?: Template;
|