New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

egg-i18n

Package Overview
Dependencies
Maintainers
5
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

egg-i18n - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

7

app/extend/context.js
'use strict';
const LOCALE = Symbol('context#locale');
module.exports = {

@@ -12,9 +10,8 @@ /**

get locale() {
if (this[LOCALE] === undefined) return this.__getLocale();
return this[LOCALE];
return this.__getLocale();
},
set locale(l) {
this[LOCALE] = l;
return this.__setLocale(l);
},
};
2.1.1 / 2019-04-30
==================
**fixes**
* [[`4d1c463`](http://github.com/eggjs/egg-i18n/commit/4d1c4638ec3551735620e384a316c68656870442)] - fix: use ctx.__setLocale to set cookie (#12) (Yiyu He <<dead_horse@qq.com>>)
**others**
* [[`cfd25db`](http://github.com/eggjs/egg-i18n/commit/cfd25db5d98bd9372a8b18a1e70207fc28ab0d7c)] - test: assert locale cookie without domain (#11) (fengmk2 <<fengmk2@gmail.com>>)
* [[`99c56c4`](http://github.com/eggjs/egg-i18n/commit/99c56c480a316aaaa5ae5442575fc78e42641909)] - test: node 12 (fengmk2 <<fengmk2@gmail.com>>)
2.1.0 / 2019-04-28

@@ -3,0 +13,0 @@ ==================

{
"name": "egg-i18n",
"version": "2.1.0",
"version": "2.1.1",
"eggPlugin": {

@@ -39,7 +39,7 @@ "name": "i18n"

"ci": {
"version": "8, 10, 11"
"version": "8, 10, 12"
},
"dependencies": {
"debug": "^3.1.0",
"koa-locales": "^1.9.0"
"koa-locales": "^1.11.0"
},

@@ -46,0 +46,0 @@ "devDependencies": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc