elysia-intlayer 9.7.0 → 9.7.2

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 elysia = require("elysia");
10
10
 
11
- //#region src/index.ts
11
+ // src/index.ts
12
12
  /**
13
13
  * Per-request storage backing the standalone `t`, `getIntlayer` and `getDictionary` exports.
14
14
  */
@@ -111,7 +111,6 @@ const getDictionary = (...args) => {
111
111
  return (0, _intlayer_core_interpreter.getDictionary)(...args);
112
112
  };
113
113
 
114
- //#endregion
115
114
  exports.getDictionary = getDictionary;
116
115
  exports.getIntlayer = getIntlayer;
117
116
  exports.intlayer = intlayer;
@@ -7,7 +7,7 @@ import { getCookie, getLocaleFromStorageServer } from "@intlayer/core/utils";
7
7
  import { prepareIntlayerServer } from "@intlayer/engine/build";
8
8
  import { Elysia } from "elysia";
9
9
 
10
- //#region src/index.ts
10
+ // src/index.ts
11
11
  /**
12
12
  * Per-request storage backing the standalone `t`, `getIntlayer` and `getDictionary` exports.
13
13
  */
@@ -110,6 +110,5 @@ const getDictionary = (...args) => {
110
110
  return getDictionary$1(...args);
111
111
  };
112
112
 
113
- //#endregion
114
113
  export { getDictionary, getIntlayer, intlayer, t };
115
114
  //# 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 { Elysia } from "elysia";
5
- //#region src/index.d.ts
6
5
  /**
7
6
  * Translates a locale map into the content matching the current request locale.
8
7
  */
@@ -104,5 +103,4 @@ export declare const getIntlayer: typeof getIntlayer$1;
104
103
  * Retrieves an imported dictionary, using the locale of the current request by default.
105
104
  */
106
105
  export declare const getDictionary: typeof getDictionary$1;
107
- //#endregion
108
106
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/index.ts"],"mappings":";;;;;;;;YAmBY,qBAAqB,wBAC/B,SAAS,oBAAoB,mBAC7B,SAAS,WACN;;;;YAKO;;EAEV,iBAAiB;;EAEjB,iBAAiB;;EAEjB,QAAQ;;EAER,eAAe;;EAEf,GAAG;;EAEH,oBAAoB;;EAEpB,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;qBAiEX,gBAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAmFR,IAAK,wBAAsB,SAC7B,oBAAoB,mBAAiB,SACrC,WACR;;;;qBAiBU,oBAAoB;;;;qBAiBpB,sBAAsB"}
1
+ {"version":3,"file":"index.d.ts","names":["getIntlayerFunction","getDictionaryFunction"],"sources":["../../src/index.ts"],"mappings":";;;;;;;YAmBY,qBAAqB,wBAC/B,SAAS,oBAAoB,mBAC7B,SAAS,WACN;;;;YAKO;;EAEV,iBAAiB;;EAEjB,iBAAiB;;EAEjB,QAAQ;;EAER,eAAe;;EAEf,GAAG;;EAEH,oBAAoBA;;EAEpB,sBAAsBC;;;;;;;;;;;;;;;;;;;;;;;;;;qBAiEX,gBAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAmFR,IAAK,wBAAsB,SAC7B,oBAAoB,mBAAiB,SACrC,WACR;;;;qBAiBU,oBAAoBD;;;;qBAiBpB,sBAAsBC"}
package/package.json CHANGED
@@ -1,27 +1,23 @@
1
1
  {
2
2
  "name": "elysia-intlayer",
3
- "version": "9.7.0",
3
+ "version": "9.7.2",
4
4
  "private": false,
5
5
  "description": "Manage internationalization i18n in a simple way for Elysia applications.",
6
6
  "keywords": [
7
- "intlayer",
8
- "elysia",
9
- "backend",
10
- "i18n",
11
7
  "api",
12
8
  "application",
13
- "typescript",
9
+ "backend",
10
+ "elysia",
11
+ "i18n",
12
+ "intlayer",
14
13
  "javascript",
15
- "plugin"
14
+ "plugin",
15
+ "typescript"
16
16
  ],
17
17
  "homepage": "https://intlayer.org",
18
18
  "bugs": {
19
19
  "url": "https://github.com/aymericzip/intlayer/issues"
20
20
  },
21
- "repository": {
22
- "type": "git",
23
- "url": "git+https://github.com/aymericzip/intlayer.git"
24
- },
25
21
  "license": "Apache-2.0",
26
22
  "author": {
27
23
  "name": "Aymeric PINEAU",
@@ -34,15 +30,15 @@
34
30
  "url": "https://github.com/aymericzip"
35
31
  }
36
32
  ],
37
- "sideEffects": false,
38
- "exports": {
39
- ".": {
40
- "types": "./dist/types/index.d.ts",
41
- "require": "./dist/cjs/index.cjs",
42
- "import": "./dist/esm/index.mjs"
43
- },
44
- "./package.json": "./package.json"
33
+ "repository": {
34
+ "type": "git",
35
+ "url": "git+https://github.com/aymericzip/intlayer.git"
45
36
  },
37
+ "files": [
38
+ "./dist",
39
+ "./package.json"
40
+ ],
41
+ "sideEffects": false,
46
42
  "main": "dist/cjs/index.cjs",
47
43
  "module": "dist/esm/index.mjs",
48
44
  "types": "dist/types/index.d.ts",
@@ -53,19 +49,23 @@
53
49
  ]
54
50
  }
55
51
  },
56
- "files": [
57
- "./dist",
58
- "./package.json"
59
- ],
52
+ "exports": {
53
+ ".": {
54
+ "types": "./dist/types/index.d.ts",
55
+ "require": "./dist/cjs/index.cjs",
56
+ "import": "./dist/esm/index.mjs"
57
+ },
58
+ "./package.json": "./package.json"
59
+ },
60
60
  "scripts": {
61
61
  "build": "bun --bun tsdown --config tsdown.config.ts",
62
62
  "build:ci": "bun --bun tsdown --config tsdown.config.ts",
63
63
  "clean": "bun --bun rimraf ./dist .turbo",
64
64
  "dev": "bun --bun tsdown --config tsdown.config.ts --watch",
65
- "format": "bun --bun biome format . --check",
66
- "format:fix": "bun --bun biome format --write .",
67
- "lint": "bun --bun biome lint .",
68
- "lint:fix": "bun --bun biome lint --write .",
65
+ "format": "oxfmt --check .",
66
+ "format:fix": "oxfmt .",
67
+ "lint": "oxlint .",
68
+ "lint:fix": "oxlint --fix .",
69
69
  "prepublish": "cp -f ../../README.md ./README.md",
70
70
  "publish": "bun publish || true",
71
71
  "publish:canary": "bun publish --access public --tag canary || true",
@@ -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.2",
80
+ "@intlayer/core": "9.7.2",
81
+ "@intlayer/engine": "9.7.2",
82
+ "@intlayer/types": "9.7.2"
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
- "elysia": "1.4.29",
90
- "rimraf": "6.1.3",
91
- "tsdown": "0.23.0",
89
+ "elysia": "1.4.30",
90
+ "rimraf": "6.1.4",
91
+ "tsdown": "0.23.7",
92
92
  "typescript": "7.0.2",
93
- "vitest": "5.0.3"
93
+ "vitest": "5.1.0"
94
94
  },
95
95
  "peerDependencies": {
96
96
  "elysia": ">=1.0.0"