fastify-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.
@@ -1,4 +1,4 @@
1
- //#region \0rolldown/runtime.js
1
+ // \0rolldown/runtime.js
2
2
  var __create = Object.create;
3
3
  var __defProp = Object.defineProperty;
4
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -24,5 +24,4 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
24
24
  enumerable: true
25
25
  }) : target, mod));
26
26
 
27
- //#endregion
28
27
  exports.__toESM = __toESM;
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
2
+ const require_runtime = require("./_virtual/_rolldown/runtime.cjs");
3
3
  let node_async_hooks = require("node:async_hooks");
4
4
  let _intlayer_config_built = require("@intlayer/config/built");
5
5
  let _intlayer_config_node = require("@intlayer/config/node");
@@ -10,7 +10,7 @@ let _intlayer_engine_build = require("@intlayer/engine/build");
10
10
  let fastify_plugin = require("fastify-plugin");
11
11
  fastify_plugin = require_runtime.__toESM(fastify_plugin);
12
12
 
13
- //#region src/index.ts
13
+ // src/index.ts
14
14
  /**
15
15
  * Request-scoped Intlayer context, holding the `req.intlayer` object itself.
16
16
  */
@@ -132,7 +132,6 @@ const getDictionary = (...args) => {
132
132
  return (0, _intlayer_core_interpreter.getDictionary)(...args);
133
133
  };
134
134
 
135
- //#endregion
136
135
  exports.getDictionary = getDictionary;
137
136
  exports.getIntlayer = getIntlayer;
138
137
  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 fp from "fastify-plugin";
9
9
 
10
- //#region src/index.ts
10
+ // src/index.ts
11
11
  /**
12
12
  * Request-scoped Intlayer context, holding the `req.intlayer` object itself.
13
13
  */
@@ -129,6 +129,5 @@ const getDictionary = (...args) => {
129
129
  return getDictionary$1(...args);
130
130
  };
131
131
 
132
- //#endregion
133
132
  export { getDictionary, getIntlayer, intlayer, t };
134
133
  //# 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 { FastifyPluginAsync } from "fastify";
5
- //#region src/index.d.ts
6
5
  /**
7
6
  * Intlayer state of the request being handled.
8
7
  */
@@ -60,5 +59,4 @@ export declare const getIntlayer: typeof getIntlayer$1;
60
59
  * Retrieves an imported dictionary, using the locale of the current request by default.
61
60
  */
62
61
  export declare const getDictionary: typeof getDictionary$1;
63
- //#endregion
64
62
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/index.ts"],"mappings":";;;;;;;;YAoBY;;EAEV,QAAQ;;EAER,eAAe;;EAEf,iBAAiB;;EAEjB,kBAAkB;;EAElB,IAAI,kBACF,SAAS,oBAAoB,aAC7B,SAAS,WACN;;EAEL,oBAAoB;;EAEpB,sBAAsB;;;YAKZ;IACR,UAAU;;;qBA0ID,UAAQ;;;;;;;;;;;;;;;;;;;;;;;;qBA4BR,IAAK,kBAAgB,SACvB,oBAAoB,UAAQ,SAC5B,WACR;;;;qBAiBU,oBAAoB;;;;qBAepB,sBAAsB"}
1
+ {"version":3,"file":"index.d.ts","names":["getIntlayerFunction","getDictionaryFunction"],"sources":["../../src/index.ts"],"mappings":";;;;;;;YAoBY;;EAEV,QAAQ;;EAER,eAAe;;EAEf,iBAAiB;;EAEjB,kBAAkB;;EAElB,IAAI,kBACF,SAAS,oBAAoB,aAC7B,SAAS,WACN;;EAEL,oBAAoBA;;EAEpB,sBAAsBC;;;YAKZ;IACR,UAAU;;;qBA0ID,UAAQ;;;;;;;;;;;;;;;;;;;;;;;;qBA4BR,IAAK,kBAAgB,SACvB,oBAAoB,UAAQ,SAC5B,WACR;;;;qBAiBU,oBAAoBD;;;;qBAepB,sBAAsBC"}
package/package.json CHANGED
@@ -1,27 +1,23 @@
1
1
  {
2
2
  "name": "fastify-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 Fastify applications.",
6
6
  "keywords": [
7
- "intlayer",
8
- "fastify",
9
- "backend",
10
- "i18n",
11
7
  "api",
12
8
  "application",
13
- "typescript",
9
+ "backend",
10
+ "fastify",
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,22 +76,22 @@
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",
83
- "fastify-plugin": "6.0.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
+ "fastify-plugin": "6.0.1"
84
84
  },
85
85
  "devDependencies": {
86
86
  "@types/node": "^26",
87
87
  "@utils/ts-config": "1.0.4",
88
88
  "@utils/ts-config-types": "1.0.4",
89
89
  "@utils/tsdown-config": "1.0.4",
90
- "fastify": "5.12.5",
91
- "rimraf": "6.1.3",
92
- "tsdown": "0.23.0",
90
+ "fastify": "5.12.8",
91
+ "rimraf": "6.1.4",
92
+ "tsdown": "0.23.7",
93
93
  "typescript": "7.0.2",
94
- "vitest": "5.0.3"
94
+ "vitest": "5.1.0"
95
95
  },
96
96
  "engines": {
97
97
  "node": ">=14.18"