wuchale 0.22.8 → 0.22.9

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.
@@ -215,7 +215,7 @@ export class Files {
215
215
  const urlFileContent = [
216
216
  'import {URLMatcher, deLocalizeDefault} from "wuchale/url"',
217
217
  `import {locales} from "./${dataFileName}"`,
218
- `import manifest from "./${relative(dirname(this.#urlsFname), this.#urlManifestFname)}"`,
218
+ `import manifest from "./${normalizeSep(relative(dirname(this.#urlsFname), this.#urlManifestFname))}"`,
219
219
  `export const getLocale = (/** @type {URL} */ url) => deLocalizeDefault(url.pathname, locales)[1] ?? '${fallbackLocale}'`,
220
220
  `export const matchUrl = URLMatcher(manifest, locales)`,
221
221
  ].join('\n');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wuchale",
3
- "version": "0.22.8",
3
+ "version": "0.22.9",
4
4
  "description": "Protobuf-like i18n from plain code",
5
5
  "scripts": {
6
6
  "dev": "tsc --watch",