hono-intlayer 9.7.0 → 9.7.1

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.
@@ -8,7 +8,7 @@ let _intlayer_core_utils = require("@intlayer/core/utils");
8
8
  let _intlayer_engine_build = require("@intlayer/engine/build");
9
9
  let hono_cookie = require("hono/cookie");
10
10
 
11
- //#region src/index.ts
11
+ // src/index.ts
12
12
  let debug = () => {};
13
13
  if (process.env.NODE_ENV === "development") debug = (msg) => console.debug(msg);
14
14
  /**
@@ -119,7 +119,6 @@ const getDictionary = (...args) => {
119
119
  return context.getDictionary(...args);
120
120
  };
121
121
 
122
- //#endregion
123
122
  exports.getDictionary = getDictionary;
124
123
  exports.getIntlayer = getIntlayer;
125
124
  exports.intlayer = intlayer;
@@ -7,7 +7,7 @@ import { getLocaleFromStorageServer } from "@intlayer/core/utils";
7
7
  import { prepareIntlayerServer } from "@intlayer/engine/build";
8
8
  import { getCookie } from "hono/cookie";
9
9
 
10
- //#region src/index.ts
10
+ // src/index.ts
11
11
  let debug = () => {};
12
12
  if (process.env.NODE_ENV === "development") debug = (msg) => console.debug(msg);
13
13
  /**
@@ -118,6 +118,5 @@ const getDictionary = (...args) => {
118
118
  return context.getDictionary(...args);
119
119
  };
120
120
 
121
- //#endregion
122
121
  export { getDictionary, getIntlayer, intlayer, t, translateFunction };
123
122
  //# sourceMappingURL=index.mjs.map
@@ -2,7 +2,6 @@ import { getDictionary as getDictionary$1, getIntlayer as getIntlayer$1 } from "
2
2
  import { Locale } from "@intlayer/types/allLocales";
3
3
  import { StrictModeLocaleMap } from "@intlayer/types/module_augmentation";
4
4
  import { Context, MiddlewareHandler } from "hono";
5
- //#region src/index.d.ts
6
5
  /**
7
6
  * Builds the translation function bound to the locale stored in the Hono context.
8
7
  */
@@ -52,5 +51,4 @@ export declare const intlayer: () => MiddlewareHandler;
52
51
  export declare const t: <Content = string>(content: StrictModeLocaleMap<Content>, locale?: Locale) => Content;
53
52
  export declare const getIntlayer: typeof getIntlayer$1;
54
53
  export declare const getDictionary: typeof getDictionary$1;
55
- //#endregion
56
54
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/index.ts"],"mappings":";;;;;;;;qBA6Da,oBAAiB,SAClB,aACT,kBAAgB,SACN,oBAAoB,aAAW,SAC/B,WACR;;;;;;;;;;;;;;;;;;;;qBA4BQ,gBACP;;;;;;;;;;;;;;;;;;;;;;;qBA4DO,IAAK,kBAAgB,SACvB,oBAAoB,UAAQ,SAC5B,WACR;qBAiBU,oBAAoB;qBAgBpB,sBAAsB"}
1
+ {"version":3,"file":"index.d.ts","names":["getIntlayerFunction","getDictionaryFunction"],"sources":["../../src/index.ts"],"mappings":";;;;;;;qBA6Da,oBAAiB,SAClB,aACT,kBAAgB,SACN,oBAAoB,aAAW,SAC/B,WACR;;;;;;;;;;;;;;;;;;;;qBA4BQ,gBACP;;;;;;;;;;;;;;;;;;;;;;;qBA4DO,IAAK,kBAAgB,SACvB,oBAAoB,UAAQ,SAC5B,WACR;qBAiBU,oBAAoBA;qBAgBpB,sBAAsBC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hono-intlayer",
3
- "version": "9.7.0",
3
+ "version": "9.7.1",
4
4
  "private": false,
5
5
  "description": "Manage internationalization i18n in a simple way for hono application.",
6
6
  "keywords": [
@@ -76,21 +76,21 @@
76
76
  "typecheck": "tsc --noEmit --project tsconfig.types.json"
77
77
  },
78
78
  "dependencies": {
79
- "@intlayer/config": "9.7.0",
80
- "@intlayer/core": "9.7.0",
81
- "@intlayer/engine": "9.7.0",
82
- "@intlayer/types": "9.7.0"
79
+ "@intlayer/config": "9.7.1",
80
+ "@intlayer/core": "9.7.1",
81
+ "@intlayer/engine": "9.7.1",
82
+ "@intlayer/types": "9.7.1"
83
83
  },
84
84
  "devDependencies": {
85
85
  "@types/node": "^26",
86
86
  "@utils/ts-config": "1.0.4",
87
87
  "@utils/ts-config-types": "1.0.4",
88
88
  "@utils/tsdown-config": "1.0.4",
89
- "hono": "4.13.1",
89
+ "hono": "4.13.16",
90
90
  "rimraf": "6.1.3",
91
- "tsdown": "0.23.0",
91
+ "tsdown": "0.23.4",
92
92
  "typescript": "7.0.2",
93
- "vitest": "5.0.3"
93
+ "vitest": "5.1.0"
94
94
  },
95
95
  "engines": {
96
96
  "node": ">=14.18"