@azrico/global 1.3.68 → 1.3.69

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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.clear_translation=clear_translation,exports.get_translation=get_translation,exports.set_translation=set_translation,exports.set_translation_provider=set_translation_provider;var _index=require("../core/index"),lname="trnsl-",lprovidername="trnsl-prov-";/* -------------------------------------------------------------------------- */function set_translation(a,b,c){return a=lname+a,_index.GlobalStorage.Global_set(a,b,c)}function set_translation_provider(a,b){return _index.GlobalStorage.Global_set(lprovidername,a,b)}function get_translation(a,b){a=lname+a;/* ------------------------- get direct translation ------------------------- */var c=_index.GlobalStorage.Global_get(a,b);if("function"==typeof c&&(c=c()),null!=c)return c;/* ------------------------- try to use the provider ------------------------ */var d=_index.GlobalStorage.Global_get(lprovidername,a);return"function"==typeof d?d(b):b;/* --------------------------------- default -------------------------------- */}function clear_translation(a,b){return a=lname+a,_index.GlobalStorage.Global_set(a,b||!0,void 0)}
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.clear_translation=clear_translation,exports.get_translation=get_translation,exports.set_translation=set_translation,exports.set_translation_provider=set_translation_provider;var _index=require("../core/index"),lname="trnsl-",lprovidername="trnsl-prov-";/* -------------------------------------------------------------------------- */function set_translation(a,b,c){return a=lname+a,_index.GlobalStorage.Global_set(a,b,c)}function set_translation_provider(a,b){return _index.GlobalStorage.Global_set(lprovidername,a,b)}function get_translation(a,b){a=lname+a;/* ------------------------- get direct translation ------------------------- */var c=_index.GlobalStorage.Global_get(a,b);/* ------------------------- try to use the provider ------------------------ */if("function"==typeof c&&(c=c()),null==c){var d=_index.GlobalStorage.Global_get(lprovidername,a);"function"==typeof d&&(c=d(b))}/* --------------------------------- default -------------------------------- */return b}function clear_translation(a,b){return a=lname+a,_index.GlobalStorage.Global_set(a,b||!0,void 0)}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azrico/global",
3
- "version": "1.3.68",
3
+ "version": "1.3.69",
4
4
  "description": "Simple global functions and helpers",
5
5
  "author": "Azrideus",
6
6
  "license": "MIT",