@aliyun-sls/runtime
Advanced tools
'use strict'; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
require('reflect-metadata'); | ||
var _ = require('lodash'); | ||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } | ||
var ___default = /*#__PURE__*/_interopDefaultLegacy(_); | ||
function getConfig(key) { | ||
@@ -1517,10 +1511,26 @@ window.ALIYUN_SLS_CONSOLE_CONFIG = window.ALIYUN_SLS_CONSOLE_CONFIG || {}; | ||
} | ||
} // 仪表盘历史版本功能 | ||
}, // 仪表盘历史版本功能 | ||
{ | ||
id: 'feature:trace_inspection', | ||
status: true, | ||
attribute: { | ||
regions: [], | ||
uid: true | ||
} | ||
}, // trace智能巡检 | ||
{ | ||
id: 'feature:auto-transform-map-sdk', | ||
status: true, | ||
attribute: { | ||
regions: [], | ||
uid: true | ||
} | ||
} // map SDK 更新 | ||
]; | ||
var newSwitch = ___default["default"].isArray(getConfig('graySwitch')) ? getConfig('graySwitch') : []; | ||
var newSwitch = _.isArray(getConfig('graySwitch')) ? getConfig('graySwitch') : []; | ||
var init$1 = function init() { | ||
newSwitch.forEach(function (item) { | ||
var index = ___default["default"].findIndex(graySwitch, function (obj) { | ||
var index = _.findIndex(graySwitch, function (obj) { | ||
return obj.id === item.id; | ||
@@ -1531,3 +1541,3 @@ }); | ||
graySwitch[index].status = item.status; | ||
graySwitch[index].attribute = ___default["default"].assign(graySwitch[index].attribute, item.attribute); | ||
graySwitch[index].attribute = _.assign(graySwitch[index].attribute, item.attribute); | ||
} else { | ||
@@ -1583,7 +1593,7 @@ graySwitch.push(item); | ||
if (isZHLang) { | ||
window.ALIYUN_SLS_MAGIC_MESSAGE = ___default["default"].assign(message, window.ALIYUN_SLS_MAGIC_MESSAGE || {}); | ||
window.ALIYUN_SLS_MAGIC_MESSAGE = _.assign(message, window.ALIYUN_SLS_MAGIC_MESSAGE || {}); | ||
} else if (isENLang) { | ||
window.ALIYUN_SLS_MAGIC_MESSAGE = ___default["default"].assign(message$1, window.ALIYUN_SLS_MAGIC_MESSAGE || {}); | ||
window.ALIYUN_SLS_MAGIC_MESSAGE = _.assign(message$1, window.ALIYUN_SLS_MAGIC_MESSAGE || {}); | ||
} else { | ||
window.ALIYUN_SLS_MAGIC_MESSAGE = ___default["default"].assign(message, window.ALIYUN_SLS_MAGIC_MESSAGE || {}); | ||
window.ALIYUN_SLS_MAGIC_MESSAGE = _.assign(message, window.ALIYUN_SLS_MAGIC_MESSAGE || {}); | ||
} | ||
@@ -1669,7 +1679,8 @@ }; | ||
'sls.audit.cloudconfig.open.url': '//config.console.aliyun.com', | ||
'sls.audit.cloudconfig.resource.url': '//config.console.aliyun.com' | ||
'sls.audit.cloudconfig.resource.url': '//config.console.aliyun.com', | ||
'sls.nas.log.bussiness.help.url': '//help.aliyun.com/noticelist/articleid/1062413605.html' | ||
}; | ||
var init = function init() { | ||
window.ALIYUN_SLS_CONSOLE_LINKS = ___default["default"].assign(links$1, window.ALIYUN_SLS_CONSOLE_LINKS || {}); | ||
window.ALIYUN_SLS_CONSOLE_LINKS = _.assign(links$1, window.ALIYUN_SLS_CONSOLE_LINKS || {}); | ||
}; | ||
@@ -1734,3 +1745,4 @@ | ||
YUNDUNNEXT_SAS: getLinks('sls.domain.yundun.sas.next.url'), | ||
YUNDUNNEXT_CFW: getLinks('sls.domain.yundun.cfw.next.url') | ||
YUNDUNNEXT_CFW: getLinks('sls.domain.yundun.cfw.next.url'), | ||
NASLOGBUSINESSHELP: getLinks('sls.nas.log.bussiness.help.url') | ||
}; | ||
@@ -1737,0 +1749,0 @@ |
@@ -58,2 +58,3 @@ export declare namespace links { | ||
const YUNDUNNEXT_CFW: any; | ||
const NASLOGBUSINESSHELP: any; | ||
} | ||
@@ -60,0 +61,0 @@ |
{ | ||
"name": "@aliyun-sls/runtime", | ||
"version": "0.2.8", | ||
"version": "0.2.9-dev-1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/runtime.cjs.js", |
38215
0.21%1799
0.9%