Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

egg-born-module-a-base-sync

Package Overview
Dependencies
Maintainers
1
Versions
354
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

egg-born-module-a-base-sync - npm Package Compare versions

Comparing version 4.8.40 to 4.8.41

21

backend/src/bean/bean.atomBase/bean.atomBase_0.js

@@ -286,4 +286,21 @@ const require3 = require('require3');

async translateAreaScopeValue(/* { atomClass, areaScopeMeta, atomAreaKey, atomAreaValue }*/) {
return { error: this.ctx.text('NotImplemented') };
async translateAreaScopeValue({ /* atomClass,*/ areaScopeMeta, atomAreaKey, atomAreaValue }) {
const count = atomAreaKey.length;
const title = [];
const titleLocale = [];
for (let i = 0; i < count; i++) {
const key = atomAreaKey[i];
const code = atomAreaValue[i];
const schema = areaScopeMeta.schemas[key];
const dictItem = await this.ctx.bean.dict.findItem({
dictKey: schema.ebParams.dictKey,
code,
options: { separator: schema.ebParams.separator },
});
title.push(dictItem ? dictItem.titleFull : '');
titleLocale.push(dictItem ? dictItem.titleLocaleFull : '');
}
// ok
return { title, titleLocale };
// return { error: this.ctx.text('NotImplemented') };
}

@@ -290,0 +307,0 @@

2

package.json
{
"name": "egg-born-module-a-base-sync",
"version": "4.8.40",
"version": "4.8.41",
"title": "Base",

@@ -5,0 +5,0 @@ "eggBornModule": {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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