site-config-stack
Advanced tools
Comparing version 1.3.0 to 1.4.0
@@ -0,1 +1,3 @@ | ||
import { ComputedRef, Ref } from 'vue'; | ||
interface SiteConfig { | ||
@@ -71,6 +73,10 @@ /** | ||
} | ||
type SiteConfigInput = Partial<Omit<SiteConfig, '_context' | 'indexable'>> & { | ||
type MaybeComputedRef<T> = T | (() => T) | ComputedRef<T> | Ref<T>; | ||
type MaybeComputedRefEntries<T> = { | ||
[key in keyof T]?: MaybeComputedRef<T[key]>; | ||
}; | ||
type SiteConfigInput = Omit<MaybeComputedRefEntries<Partial<SiteConfig>>, '_context' | 'indexable'> & { | ||
_context?: string; | ||
_priority?: number; | ||
indexable?: string | boolean; | ||
indexable?: MaybeComputedRef<string | boolean>; | ||
}; | ||
@@ -83,3 +89,5 @@ interface SiteConfigStack { | ||
declare function createSiteConfigStack(): SiteConfigStack; | ||
declare function createSiteConfigStack(options?: { | ||
debug: boolean; | ||
}): SiteConfigStack; | ||
@@ -90,3 +98,3 @@ declare function normalizeSiteConfig(config: SiteConfig): SiteConfig; | ||
trailingSlash: boolean; | ||
base: string; | ||
base?: string; | ||
absolute?: boolean; | ||
@@ -97,2 +105,2 @@ withBase?: boolean; | ||
export { type SiteConfig, type SiteConfigInput, type SiteConfigStack, createSiteConfigStack, fixSlashes, normalizeSiteConfig, resolveSitePath }; | ||
export { type MaybeComputedRef, type MaybeComputedRefEntries, type SiteConfig, type SiteConfigInput, type SiteConfigStack, createSiteConfigStack, fixSlashes, normalizeSiteConfig, resolveSitePath }; |
{ | ||
"name": "site-config-stack", | ||
"type": "module", | ||
"version": "1.3.0", | ||
"description": "Shared site configuration utilities.", | ||
"version": "1.4.0", | ||
"description": "Shared site configuration utilities.", | ||
"license": "MIT", | ||
@@ -29,5 +29,11 @@ "funding": "https://github.com/sponsors/harlan-zw", | ||
], | ||
"peerDependencies": { | ||
"vue": "^3" | ||
}, | ||
"dependencies": { | ||
"ufo": "^1.3.0" | ||
"ufo": "^1.3.1" | ||
}, | ||
"devDependencies": { | ||
"vue": "^3.3.4" | ||
}, | ||
"scripts": { | ||
@@ -34,0 +40,0 @@ "lint": "eslint . --fix", |
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
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
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
19613
349
2
1
+ Added@babel/helper-string-parser@7.25.9(transitive)
+ Added@babel/helper-validator-identifier@7.25.9(transitive)
+ Added@babel/parser@7.26.3(transitive)
+ Added@babel/types@7.26.3(transitive)
+ Added@jridgewell/sourcemap-codec@1.5.0(transitive)
+ Added@vue/compiler-core@3.5.13(transitive)
+ Added@vue/compiler-dom@3.5.13(transitive)
+ Added@vue/compiler-sfc@3.5.13(transitive)
+ Added@vue/compiler-ssr@3.5.13(transitive)
+ Added@vue/reactivity@3.5.13(transitive)
+ Added@vue/runtime-core@3.5.13(transitive)
+ Added@vue/runtime-dom@3.5.13(transitive)
+ Added@vue/server-renderer@3.5.13(transitive)
+ Added@vue/shared@3.5.13(transitive)
+ Addedcsstype@3.1.3(transitive)
+ Addedentities@4.5.0(transitive)
+ Addedestree-walker@2.0.2(transitive)
+ Addedmagic-string@0.30.17(transitive)
+ Addednanoid@3.3.8(transitive)
+ Addedpicocolors@1.1.1(transitive)
+ Addedpostcss@8.4.49(transitive)
+ Addedsource-map-js@1.2.1(transitive)
+ Addedvue@3.5.13(transitive)
Updatedufo@^1.3.1