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

seer-dynamic-component

Package Overview
Dependencies
Maintainers
6
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

seer-dynamic-component - npm Package Compare versions

Comparing version 1.7.0 to 1.7.1

53

lib/utils.js

@@ -242,3 +242,3 @@ import "core-js/modules/es6.object.keys.js";

var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(_ref2) {
var groupCode, tenantid, langApi, lang, packJs, callback, includeFw, diworkContext, userInfo, locale, langInit, initResponse, initPackLangJson, jsonLocale;
var groupCode, tenantid, langApi, lang, packJs, callback, includeFw, diworkContext, userInfo;
return _regeneratorRuntime.wrap(function _callee2$(_context2) {

@@ -305,30 +305,19 @@ while (1) switch (_context2.prev = _context2.next) {

case 27:
locale = getLocale("locale");
if (!(!inDiwork() && groupCode && locale)) {
_context2.next = 44;
break;
}
langInit = {};
_context2.prev = 30;
_context2.next = 33;
return request('GET', "/iuap-data-common/ucf-wh/intelliv/static/js/lang/".concat(groupCode, "/").concat(locale, ".json"));
case 33:
initResponse = _context2.sent;
if (initResponse.body && initResponse.statusCode === 200) {
initPackLangJson = JSON.parse(initResponse.body) || {};
jsonLocale = locale.toLowerCase().replace(/_/, '');
langInit[jsonLocale] = initPackLangJson;
}
_context2.next = 40;
break;
case 37:
_context2.prev = 37;
_context2.t0 = _context2["catch"](30);
console.error('获取多语错误');
case 40:
lang.init(langInit);
callback && callback();
_context2.next = 47;
break;
case 44:
//let locale = getLocale("locale");
// if(!inDiwork() && groupCode && locale) {
// let langInit = {};
// try {
// let initResponse = await request('GET', `/iuap-data-common/ucf-wh/intelliv/static/js/lang/${groupCode}/${locale}.json`);
// if(initResponse.body && initResponse.statusCode === 200){
// let initPackLangJson = JSON.parse(initResponse.body) || {};
// let jsonLocale = locale.toLowerCase().replace(/_/, '');
// langInit[jsonLocale] = initPackLangJson;
// }
// } catch(error) {
// console.error('获取多语错误');
// }
// lang.init(langInit);
// callback && callback();
// } else {
langApi = langApi || getLangOrign() + "/iuap-apcom-i18n";

@@ -339,3 +328,3 @@ lang.init(packJs || {});

}, 'YS', includeFw);
case 47:
//}
//把已经加载过的多语模块存入全局变量中

@@ -348,7 +337,7 @@ window.seerConfig = window.seerConfig || {};

return _context2.abrupt("return", true);
case 51:
case 34:
case "end":
return _context2.stop();
}
}, _callee2, null, [[30, 37]]);
}, _callee2);
}));

@@ -355,0 +344,0 @@ return function getLangData(_x2) {

{
"name": "seer-dynamic-component",
"version": "1.7.0",
"version": "1.7.1",
"description": "",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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