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.48 to 4.8.49

2

backend/src/bean/atom.resource.js

@@ -35,2 +35,4 @@ module.exports = app => {

async write({ atomClass, target, key, item, options, user }) {
// check demo
this.ctx.bean.util.checkDemoForAtomWrite();
// super

@@ -37,0 +39,0 @@ await super.write({ atomClass, target, key, item, options, user });

5

backend/src/bean/atom.role.js

@@ -88,6 +88,3 @@ module.exports = app => {

// check demo
const ctxCaller = this.ctx.ctxCaller;
if (ctxCaller && ctxCaller.path === '/api/a/base/atom/write') {
this.ctx.bean.util.checkDemo();
}
this.ctx.bean.util.checkDemoForAtomWrite();
// roleIdParent maybe string, so cause validate error

@@ -94,0 +91,0 @@ delete item.roleIdParent;

@@ -63,6 +63,3 @@ module.exports = app => {

// check demo
const ctxCaller = this.ctx.ctxCaller;
if (ctxCaller && ctxCaller.path === '/api/a/base/atom/write') {
this.ctx.bean.util.checkDemo();
}
this.ctx.bean.util.checkDemoForAtomWrite();
// super

@@ -69,0 +66,0 @@ await super.write({ atomClass, target, key, item, options, user });

@@ -168,2 +168,11 @@ const require3 = require('require3');

checkDemoForAtomWrite(throwError = true) {
const ctxCaller = this.ctx.ctxCaller;
if (!ctxCaller) return true;
if (ctxCaller.path === '/api/a/base/atom/write' || ctxCaller.path === '/api/a/base/atom/writeSubmit') {
return this.checkDemo(throwError);
}
return true;
}
escapeHtml(str) {

@@ -170,0 +179,0 @@ return utils.escapeHtml(str);

@@ -15,3 +15,3 @@ module.exports = {

CommentPublishTitleEditReplyComment: 'Modified the comment replied before',
DisabledOnDemoMode: 'Disabled on Demo Mode',
DisabledOnDemoMode: 'Disabled on Demo Mode, please create a local project to experience',
CloneCopyText: 'Copy',

@@ -18,0 +18,0 @@ KeyForAtom: 'Key',

@@ -50,3 +50,3 @@ module.exports = {

CommentPublishTitleEditReplyComment: '修改了回复的评论',
DisabledOnDemoMode: '演示模式中禁用',
DisabledOnDemoMode: '演示模式中禁用,请创建本地项目进行体验',
Draft: '草稿',

@@ -53,0 +53,0 @@ Drafts: '草稿',

{
"name": "egg-born-module-a-base-sync",
"version": "4.8.48",
"version": "4.8.49",
"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