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

@italentjs/italent-header

Package Overview
Dependencies
Maintainers
4
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@italentjs/italent-header - npm Package Compare versions

Comparing version 1.0.72 to 1.0.75

15

app/scripts/vendor/components/italent-header/index.js

@@ -276,2 +276,13 @@ /*

if (newMsg.reminds.remindList && newMsg.reminds.remindList.length) {
// 兼容已转码和非转码两种数据
// 若反转后跟正文相同,视为没做转码,强行转码一次
// 若反转后跟正文不同,视为转码过,原样输出
_.each(newMsg.reminds.remindList, function(item) {
if (item.taskContent === _.unescape(item.taskContent)) {
item.taskContent = _.escape(item.taskContent);
}
if (item.teskName === _.unescape(item.teskName)) {
item.teskName = _.escape(item.teskName);
}
});
this.listRegion.show(new TodosItems(newMsg))

@@ -820,3 +831,5 @@ } else {

reloadMessage: function(newMsg) {
this[newMsg.type]["messageRenew"](newMsg)
if(this[newMsg.type] && typeof this[newMsg.type]["messageRenew"] === 'function') {
this[newMsg.type]["messageRenew"](newMsg);
}
},

@@ -823,0 +836,0 @@ _checkIEVersion: function() {

3

app/scripts/views/common/page-regions/header-view.js

@@ -202,2 +202,3 @@ define(["talent", "templates/common", "header"], function(Talent, jst, Header) {

],
showDot: true
}

@@ -265,3 +266,3 @@ },

taskContent:
"视觉设计验收任务视觉设计验收任务视觉设计验收任务视觉设计验收任务视觉设计验收任务视觉设计验收任务",
"<script>alert(1)</script>视觉设计验收任务视觉设计验收任务视觉设计验收任务视觉设计验收任务视觉设计验收任务视觉设计验收任务",
href: "#",

@@ -268,0 +269,0 @@ avatar: {

@@ -276,2 +276,13 @@ /*

if (newMsg.reminds.remindList && newMsg.reminds.remindList.length) {
// 兼容已转码和非转码两种数据
// 若反转后跟正文相同,视为没做转码,强行转码一次
// 若反转后跟正文不同,视为转码过,原样输出
_.each(newMsg.reminds.remindList, function(item) {
if (item.taskContent === _.unescape(item.taskContent)) {
item.taskContent = _.escape(item.taskContent);
}
if (item.teskName === _.unescape(item.teskName)) {
item.teskName = _.escape(item.teskName);
}
});
this.listRegion.show(new TodosItems(newMsg))

@@ -820,3 +831,5 @@ } else {

reloadMessage: function(newMsg) {
this[newMsg.type]["messageRenew"](newMsg)
if(this[newMsg.type] && typeof this[newMsg.type]["messageRenew"] === 'function') {
this[newMsg.type]["messageRenew"](newMsg);
}
},

@@ -823,0 +836,0 @@ _checkIEVersion: function() {

@@ -8,8 +8,7 @@ {

"configUser": "ux",
"version": "1.0.72",
"version": "1.0.75",
"scripts": {
"build-prod": "rm -rf index.css && rm -rf index.js && grunt build",
"auto-publish": "npm run build-prod && git add . && git commit -m 'fix: 修复一些已知问题' && npm version patch && npm publish",
"start": "grunt dev",
"prepublish": "grunt build"
"start": "grunt dev"
},

@@ -16,0 +15,0 @@ "dependencies": {

@@ -126,3 +126,5 @@ /** 头部组件入口 **/

reloadMessage: function(newMsg) {
this[newMsg.type]["messageRenew"](newMsg)
if(this[newMsg.type] && typeof this[newMsg.type]["messageRenew"] === 'function') {
this[newMsg.type]["messageRenew"](newMsg);
}
},

@@ -129,0 +131,0 @@ _checkIEVersion: function() {

@@ -38,2 +38,13 @@ var Todos = BaseView.extend({

if (newMsg.reminds.remindList && newMsg.reminds.remindList.length) {
// 兼容已转码和非转码两种数据
// 若反转后跟正文相同,视为没做转码,强行转码一次
// 若反转后跟正文不同,视为转码过,原样输出
_.each(newMsg.reminds.remindList, function(item) {
if (item.taskContent === _.unescape(item.taskContent)) {
item.taskContent = _.escape(item.taskContent);
}
if (item.teskName === _.unescape(item.teskName)) {
item.teskName = _.escape(item.teskName);
}
});
this.listRegion.show(new TodosItems(newMsg))

@@ -40,0 +51,0 @@ } else {

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