adonis-intlayer 9.4.3 → 9.4.4

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.
@@ -4,15 +4,15 @@ import { getDictionary as getDictionary$1, getIntlayer as getIntlayer$1 } from "
4
4
  import { Locale } from "@intlayer/types/allLocales";
5
5
  import { StrictModeLocaleMap } from "@intlayer/types/module_augmentation";
6
6
  //#region src/index.d.ts
7
- declare const appNamespace: import("cls-hooked").Namespace<Record<string, any>>;
7
+ export declare const appNamespace: import("cls-hooked").Namespace<Record<string, any>>;
8
8
  /**
9
9
  * Retrieves the locale from storage (cookies, headers).
10
10
  */
11
- declare const getStorageLocale: (ctx: HttpContext) => Locale | undefined;
11
+ export declare const getStorageLocale: (ctx: HttpContext) => Locale | undefined;
12
12
  /**
13
13
  * Translation function for context
14
14
  */
15
- declare const translateFunction: (ctx: HttpContext) => <T extends string>(content: StrictModeLocaleMap<T> | string, locale?: Locale) => T;
15
+ export declare const translateFunction: (ctx: HttpContext) => <T extends string>(content: StrictModeLocaleMap<T> | string, locale?: Locale) => T;
16
16
  /**
17
17
  * Translation function to retrieve content for the current locale.
18
18
  *
@@ -35,10 +35,10 @@ declare const translateFunction: (ctx: HttpContext) => <T extends string>(conten
35
35
  * });
36
36
  * ```
37
37
  */
38
- declare const t: <Content = string>(content: StrictModeLocaleMap<Content>, locale?: Locale) => Content;
39
- declare const getIntlayer: typeof getIntlayer$1;
40
- declare const getDictionary: typeof getDictionary$1;
41
- declare const getLocale: (locale?: Locale) => Locale;
38
+ export declare const t: <Content = string>(content: StrictModeLocaleMap<Content>, locale?: Locale) => Content;
39
+ export declare const getIntlayer: typeof getIntlayer$1;
40
+ export declare const getDictionary: typeof getDictionary$1;
41
+ export declare const getLocale: (locale?: Locale) => Locale;
42
42
  //#endregion
43
- export { IntlayerMiddleware, appNamespace, getDictionary, getIntlayer, getLocale, getStorageLocale, t, translateFunction };
43
+ export { IntlayerMiddleware };
44
44
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/index.ts"],"mappings":";;;;;;cA4Ba,mCAAY,UAAA;;;;cAOZ,mBAAgB,KAAS,gBAAc;;;;cASvC,oBAAiB,KACtB,iBACL,kBAAgB,SACN,oBAAoB,aAAW,SAC/B,WACR;;;;;;;;;;;;;;;;;;;;;;;cAyDQ,IAAK,kBAAgB,SACvB,oBAAoB,UAAQ,SAC5B,WACR;cAyBU,oBAAoB;cA4BpB,sBAAsB;cA4BtB,YAAS,SAAa,WAAS"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/index.ts"],"mappings":";;;;;;qBA4Ba,mCAAY,UAAA;;;;qBAOZ,mBAAgB,KAAS,gBAAc;;;;qBASvC,oBAAiB,KACtB,iBACL,kBAAgB,SACN,oBAAoB,aAAW,SAC/B,WACR;;;;;;;;;;;;;;;;;;;;;;;qBAyDQ,IAAK,kBAAgB,SACvB,oBAAoB,UAAQ,SAC5B,WACR;qBAyBU,oBAAoB;qBA4BpB,sBAAsB;qBA4BtB,YAAS,SAAa,WAAS"}
@@ -4,9 +4,8 @@ import { NextFn } from "@adonisjs/core/types/http";
4
4
  /**
5
5
  * AdonisJS middleware that detects the user's locale and populates the context with Intlayer data.
6
6
  */
7
- declare class IntlayerMiddleware {
7
+ export default class IntlayerMiddleware {
8
8
  handle(ctx: HttpContext, next: NextFn): Promise<void>;
9
9
  }
10
10
  //#endregion
11
- export { IntlayerMiddleware as default };
12
11
  //# sourceMappingURL=middleware.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"middleware.d.ts","names":[],"sources":["../../src/middleware.ts"],"mappings":";;;;;;cAeqB;EACb,OAAO,KAAK,aAAa,MAAM,SAAM"}
1
+ {"version":3,"file":"middleware.d.ts","names":[],"sources":["../../src/middleware.ts"],"mappings":";;;;;;qBAeqB;EACb,OAAO,KAAK,aAAa,MAAM,SAAM"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adonis-intlayer",
3
- "version": "9.4.3",
3
+ "version": "9.4.4",
4
4
  "private": false,
5
5
  "description": "Manage internationalization i18n in a simple way for AdonisJS application.",
6
6
  "keywords": [
@@ -80,10 +80,10 @@
80
80
  "typecheck": "tsc --noEmit --project tsconfig.types.json"
81
81
  },
82
82
  "dependencies": {
83
- "@intlayer/config": "9.4.3",
84
- "@intlayer/core": "9.4.3",
85
- "@intlayer/engine": "9.4.3",
86
- "@intlayer/types": "9.4.3",
83
+ "@intlayer/config": "9.4.4",
84
+ "@intlayer/core": "9.4.4",
85
+ "@intlayer/engine": "9.4.4",
86
+ "@intlayer/types": "9.4.4",
87
87
  "cls-hooked": "4.2.2"
88
88
  },
89
89
  "devDependencies": {
@@ -93,9 +93,9 @@
93
93
  "@utils/ts-config-types": "1.0.4",
94
94
  "@utils/tsdown-config": "1.0.4",
95
95
  "rimraf": "6.1.3",
96
- "tsdown": "0.22.14",
96
+ "tsdown": "0.23.0",
97
97
  "typescript": "7.0.2",
98
- "vitest": "4.1.11"
98
+ "vitest": "5.0.0"
99
99
  },
100
100
  "peerDependencies": {
101
101
  "@adonisjs/core": ">=6.0.0"