@magidoc/plugin-starter-variables
Advanced tools
Comparing version 2.14.5 to 3.0.0
@@ -5,6 +5,6 @@ import templates from './variables/templates'; | ||
import type { Variable } from './variables/variable'; | ||
import type { Page, ExternalLink } from './variables/templates'; | ||
export type { Variable, Page, ExternalLink }; | ||
import type { Page, ExternalLink, AllowedDirective } from './variables/templates'; | ||
export type { Variable, Page, ExternalLink, AllowedDirective }; | ||
export { templates }; | ||
export { magidoc }; | ||
export { toVariablesFile, UnsupportedVariablesError }; |
@@ -11,2 +11,6 @@ export type Page = { | ||
}; | ||
export type AllowedDirective = { | ||
name: string; | ||
args: string[]; | ||
}; | ||
declare const _default: { | ||
@@ -21,3 +25,4 @@ APP_LOGO: import("./variable").Variable<string>; | ||
EXTERNAL_LINKS: import("./variable").Variable<(ExternalLink | undefined)[]>; | ||
DIRECTIVES: import("./variable").Variable<(AllowedDirective | undefined)[]>; | ||
}; | ||
export default _default; |
@@ -34,2 +34,8 @@ import { stringConverter } from './converters/string.js'; | ||
})), | ||
DIRECTIVES: createVariable('DIRECTIVES', arrayConverter((zod) => { | ||
return zod.object({ | ||
name: zod.string().min(1), | ||
args: zod.array(zod.string()), | ||
}); | ||
})), | ||
}; | ||
@@ -36,0 +42,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"private": false, | ||
"version": "2.14.5", | ||
"version": "3.0.0", | ||
"type": "module", | ||
@@ -22,8 +22,8 @@ "license": "MIT", | ||
"devDependencies": { | ||
"@rollup/plugin-typescript": "^10.0.0", | ||
"@types/lodash": "^4.14.190", | ||
"@types/node": "^18.11.9", | ||
"@rollup/plugin-typescript": "^10.0.1", | ||
"@types/lodash": "^4.14.191", | ||
"@types/node": "^18.11.10", | ||
"@vitest/coverage-c8": "^0.25.3", | ||
"lodash": "^4.17.21", | ||
"rollup": "^3.5.0", | ||
"rollup": "^3.5.1", | ||
"tslib": "^2.4.1", | ||
@@ -37,2 +37,5 @@ "typescript": "^4.9.3", | ||
}, | ||
"files": [ | ||
"build" | ||
], | ||
"scripts": { | ||
@@ -39,0 +42,0 @@ "start": "pnpm build:rollup && node build/index.js", |
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
20004
31
277
1