@nr1e/commons 0.4.11 → 0.4.13

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.
@@ -1,4 +1,4 @@
1
- import { locales, getLocale, setLocale } from '../paraglide/runtime.js';
2
- export type Locale = (typeof locales)[number];
3
- export { locales, getLocale, setLocale };
1
+ export type Locale = 'af' | 'ar' | 'en' | 'en-GB' | 'en-US' | 'en-ZA' | 'es' | 'es-US' | 'fr' | 'fr-CA' | 'fr-FR';
2
+ export declare function getLocale(): Locale;
3
+ export declare function setLocale(locale: Locale): void;
4
4
  //# sourceMappingURL=locale.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"locale.d.ts","sourceRoot":"","sources":["../../src/valibot/locale.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAC,MAAM,yBAAyB,CAAC;AAEtE,MAAM,MAAM,MAAM,GAAG,CAAC,OAAO,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC;AAC9C,OAAO,EAAC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAC,CAAC"}
1
+ {"version":3,"file":"locale.d.ts","sourceRoot":"","sources":["../../src/valibot/locale.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,MAAM,GACd,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,OAAO,GACP,OAAO,GACP,OAAO,GACP,IAAI,GACJ,OAAO,GACP,IAAI,GACJ,OAAO,GACP,OAAO,CAAC;AAEZ,wBAAgB,SAAS,IACC,MAAM,CAC/B;AAED,wBAAgB,SAAS,CAAC,MAAM,EAAE,MAAM,QAEvC"}
@@ -1,3 +1,8 @@
1
- import { locales, getLocale, setLocale } from '../paraglide/runtime.js';
2
- export { locales, getLocale, setLocale };
1
+ import * as p from '../paraglide/runtime.js';
2
+ export function getLocale() {
3
+ return p.getLocale();
4
+ }
5
+ export function setLocale(locale) {
6
+ p.setLocale(locale);
7
+ }
3
8
  //# sourceMappingURL=locale.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"locale.js","sourceRoot":"","sources":["../../src/valibot/locale.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAC,MAAM,yBAAyB,CAAC;AAGtE,OAAO,EAAC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAC,CAAC"}
1
+ {"version":3,"file":"locale.js","sourceRoot":"","sources":["../../src/valibot/locale.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,yBAAyB,CAAC;AAe7C,MAAM,UAAU,SAAS;IACvB,OAAO,CAAC,CAAC,SAAS,EAAY,CAAC;AACjC,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,MAAc;IACtC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nr1e/commons",
3
3
  "description": "Common utilities for TypeScript projects",
4
- "version": "0.4.11",
4
+ "version": "0.4.13",
5
5
  "type": "module",
6
6
  "author": "NR1E, Inc.",
7
7
  "publishConfig": {
@@ -30,7 +30,7 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "ksuid": "3.0.0",
33
- "nanoid": "^5.1.6",
33
+ "nanoid": "^5.1.7",
34
34
  "uuid": "^13.0.0"
35
35
  },
36
36
  "exports": {