Socket
Socket
Sign inDemoInstall

@abp/core

Package Overview
Dependencies
Maintainers
2
Versions
210
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@abp/core - npm Package Compare versions

Comparing version 2.6.2 to 2.7.0

6

package.json
{
"version": "2.6.2",
"version": "2.7.0",
"name": "@abp/core",

@@ -8,5 +8,5 @@ "publishConfig": {

"dependencies": {
"@abp/utils": "^2.6.2"
"@abp/utils": "^2.7.0"
},
"gitHead": "eb4a0e507f492e275865b72caeb02ce28d69ae56"
"gitHead": "0ea3895f3b0b489e3ea81fc88f8f0896b22b61bd"
}

@@ -79,6 +79,13 @@ var abp = abp || {};

abp.localization.localize = function (key, sourceName) {
if (sourceName === '_') { //A convention to suppress the localization
return key;
}
sourceName = sourceName || abp.localization.defaultResourceName;
if (!sourceName) {
abp.log.warn('Localization source name is not specified and the defaultResourceName was not defined!');
return key;
}
var source = abp.localization.values[sourceName];
if (!source) {

@@ -101,2 +108,25 @@ abp.log.warn('Could not find localization source: ' + sourceName);

abp.localization.isLocalized = function (key, sourceName) {
if (sourceName === '_') { //A convention to suppress the localization
return true;
}
sourceName = sourceName || abp.localization.defaultResourceName;
if (!sourceName) {
return false;
}
var source = abp.localization.values[sourceName];
if (!source) {
return false;
}
var value = source[key];
if (value === undefined) {
return false;
}
return true;
};
abp.localization.getResource = function (name) {

@@ -103,0 +133,0 @@ return function () {

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