@abp/core 5.3.0-rc.1 → 5.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/abp.js +10 -0
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "5.3.0
|
|
2
|
+
"version": "5.3.0",
|
|
3
3
|
"name": "@abp/core",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"access": "public"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@abp/utils": "~5.3.0
|
|
13
|
+
"@abp/utils": "~5.3.0"
|
|
14
14
|
},
|
|
15
15
|
"gitHead": "bb4ea17d5996f01889134c138d00b6c8f858a431"
|
|
16
16
|
}
|
package/src/abp.js
CHANGED
|
@@ -773,4 +773,14 @@ var abp = abp || {};
|
|
|
773
773
|
return abp.features.values[name];
|
|
774
774
|
};
|
|
775
775
|
|
|
776
|
+
/* GLOBAL FEATURES *************************************************/
|
|
777
|
+
|
|
778
|
+
abp.globalFeatures = abp.globalFeatures || {};
|
|
779
|
+
|
|
780
|
+
abp.globalFeatures.enabledFeatures = abp.globalFeatures.enabledFeatures || [];
|
|
781
|
+
|
|
782
|
+
abp.globalFeatures.isEnabled = function(name){
|
|
783
|
+
return abp.globalFeatures.enabledFeatures.indexOf(name) != -1;
|
|
784
|
+
}
|
|
785
|
+
|
|
776
786
|
})();
|