@spinajs/intl-http 1.2.160 → 1.2.165
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.
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/package.json +6 -6
package/lib/index.js
CHANGED
|
@@ -17,7 +17,7 @@ let IntHttpMiddleware = class IntHttpMiddleware extends http_1.ServerMiddleware
|
|
|
17
17
|
before() {
|
|
18
18
|
return (req, _res, next) => {
|
|
19
19
|
if (req.query[this.LangQueryParameter]) {
|
|
20
|
-
req.storage.language = req.
|
|
20
|
+
req.storage.language = req.query[this.LangQueryParameter];
|
|
21
21
|
}
|
|
22
22
|
else if (req.cookies[this.LangQueryParameter]) {
|
|
23
23
|
req.storage.language = req.cookies[this.LangQueryParameter];
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0DAAgD;AAChD,oCAAyC;AACzC,wCAAsE;AAUtE,IAAa,iBAAiB,GAA9B,MAAa,iBAAkB,SAAQ,uBAAgB;IAI9C,MAAM;QACX,OAAO,CAAC,GAAa,EAAE,IAAsB,EAAE,IAA0B,EAAE,EAAE;YAC3E,IAAI,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,kBAAkB,CAAC,EAAE;gBACtC,GAAG,CAAC,OAAO,CAAC,QAAQ,GAAG,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0DAAgD;AAChD,oCAAyC;AACzC,wCAAsE;AAUtE,IAAa,iBAAiB,GAA9B,MAAa,iBAAkB,SAAQ,uBAAgB;IAI9C,MAAM;QACX,OAAO,CAAC,GAAa,EAAE,IAAsB,EAAE,IAA0B,EAAE,EAAE;YAC3E,IAAI,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,kBAAkB,CAAC,EAAE;gBACtC,GAAG,CAAC,OAAO,CAAC,QAAQ,GAAG,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,kBAAkB,CAAW,CAAC;aACrE;iBAAM,IAAI,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,CAAC,EAAE;gBAC/C,GAAG,CAAC,OAAO,CAAC,QAAQ,GAAG,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;aAC7D;iBAAM,IAAI,GAAG,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC,kBAAkB,EAAE,CAAC,EAAE;gBACtD,GAAG,CAAC,OAAO,CAAC,QAAQ,GAAG,GAAG,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC,kBAAkB,EAAE,CAAW,CAAC;aAC9E;YAED,IAAI,EAAE,CAAC;QACT,CAAC,CAAC;IACJ,CAAC;IACM,KAAK;QACV,OAAO,IAAI,CAAC;IACd,CAAC;CACF,CAAA;AAlBC;IADC,IAAA,sBAAM,EAAC,qBAAqB,CAAC;;6DACO;AAF1B,iBAAiB;IAD7B,IAAA,eAAU,EAAC,uBAAgB,CAAC;GAChB,iBAAiB,CAoB7B;AApBY,8CAAiB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spinajs/intl-http",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.165",
|
|
4
4
|
"description": "Internationalization support for http module",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"private": false,
|
|
@@ -41,13 +41,13 @@
|
|
|
41
41
|
"@spinajs/configuration": "^1.2.137",
|
|
42
42
|
"@spinajs/di": "^1.2.127",
|
|
43
43
|
"@spinajs/exceptions": "^1.2.127",
|
|
44
|
-
"@spinajs/http": "^1.2.
|
|
45
|
-
"@spinajs/intl": "^1.2.
|
|
44
|
+
"@spinajs/http": "^1.2.165",
|
|
45
|
+
"@spinajs/intl": "^1.2.165",
|
|
46
46
|
"@spinajs/log": "^1.2.137",
|
|
47
|
-
"@spinajs/reflection": "^1.2.
|
|
47
|
+
"@spinajs/reflection": "^1.2.165"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@spinajs/orm-sqlite": "^1.2.
|
|
50
|
+
"@spinajs/orm-sqlite": "^1.2.165"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "88312a9539d8a9650b4a47430d8ef2a0d3ebd2a2"
|
|
53
53
|
}
|