Comparing version 0.0.35 to 0.0.36
import Lisan from './Lisan'; | ||
declare const lisan: Lisan; | ||
declare const t: (dictionaryEntryKey: string, placeholders?: import("lisan-types/dictionary").Placeholders) => string; | ||
declare const c: (conditionalGroupKey: string, value: any, placeholders?: import("lisan-types/dictionary").Placeholders) => string; | ||
declare const t: (dictionaryEntryKey: string, placeholders?: import("lisan-types/dictionary").Placeholders | undefined) => string; | ||
declare const c: (conditionalGroupKey: string, value: any, placeholders?: import("lisan-types/dictionary").Placeholders | undefined) => string; | ||
export { lisan, t, c, Lisan }; |
@@ -1,2 +0,2 @@ | ||
var t=function(){return(t=Object.assign||function(t){for(var n,o=1,r=arguments.length;o<r;o++)for(var e in n=arguments[o])Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e]);return t}).apply(this,arguments)},n=function(t){throw new Error(t)},o={zero:function(t){return 0===t},one:function(t){return 1===t}},r=["zero","one","other"],e=function(){function e(){this.reset()}return e.prototype.reset=function(){this._e={},this._c=t({},o),this._f={}},e.prototype.localeName=function(t){return t&&(this._l=t),this._l},e.prototype.use=function(t){t.call(null,this)},e.prototype.add=function(o){var r=o.locale,e=o.entries,i=this._l;return i&&r&&r!==i&&n('Dictionary locale "'+r+'" is different than selected locale "'+i+'"'),this._e=t(t({},this._e),e),this},e.prototype.addConditions=function(t){var o=this;return Object.keys(t).forEach((function(e){if(!r.includes(e)){var i=t[e];"function"!=typeof i&&n('Invalid condition function: "'+e+'"'),o._c[e]=i}})),this},e.prototype.addFormatters=function(n){return this._f=t(t({},this._f),n),this},e.prototype.r=function(n,o,r){return void 0===o?n:"function"==typeof o?o(r,t(t({},this._f),{t:this.t,c:this.c})):o},e.prototype.t=function(t,n){void 0===n&&(n={});var o=this._e[t];return this.r(t,o,n)},e.prototype.c=function(t,o,r){void 0===r&&(r={});var e=this._e[t];if("object"!=typeof e)return n('Invalid conditional group key: "'+t+'"');for(var i="other",c=Object.keys(e),s=c.length,u=0;u<s;u+=1){var f=c[u],h=this._c[f];if("other"!==f&&h&&!0===h(o)){i=f;break}}var a=e[i];return this.r(t+"."+i,a,r)},e}(),i=new e,c=i.t.bind(i),s=i.c.bind(i);export{e as Lisan,s as c,i as lisan,c as t}; | ||
var t=function(){return(t=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++)for(var o in n=arguments[r])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t}).apply(this,arguments)},n=function(t){throw new Error(t)},r={zero:function(t){return 0===t},one:function(t){return 1===t}},i=["zero","one","other"],o=function(){function o(){this.reset(),this._h={t:this.t.bind(this),c:this.c.bind(this)}}return o.prototype.reset=function(){this._e={},this._c=t({},r),this._f={}},o.prototype.localeName=function(t){return t&&(this._l=t),this._l},o.prototype.use=function(t){t.call(null,this)},o.prototype.add=function(r){var i=r.locale,o=r.entries,e=this._l;return e&&i&&i!==e&&n('Dictionary locale "'+i+'" is different than selected locale "'+e+'"'),this._e=t(t({},this._e),o),this},o.prototype.addConditions=function(t){var r=this;return Object.keys(t).forEach((function(o){if(!i.includes(o)){var e=t[o];"function"!=typeof e&&n('Invalid condition function: "'+o+'"'),r._c[o]=e}})),this},o.prototype.addFormatters=function(n){return this._f=t(t({},this._f),n),this},o.prototype.r=function(n,r,i){return void 0===i&&(i={}),void 0===r?n:"function"==typeof r?r(i,t(t({},this._f),this._h)):r},o.prototype.t=function(t,n){var r=this._e[t];return this.r(t,r,n)},o.prototype.c=function(t,r,i){var o=this._e[t];if("object"!=typeof o)return n('Invalid conditional group key: "'+t+'"');for(var e="other",c=Object.keys(o),s=c.length,h=0;h<s;h+=1){var u=c[h],f=this._c[u];if("other"!==u&&f&&!0===f(r)){e=u;break}}var a=o[e];return this.r(t+"."+e,a,i)},o}(),e=new o,c=e.t.bind(e),s=e.c.bind(e);export{o as Lisan,s as c,e as lisan,c as t}; | ||
//# sourceMappingURL=index.esm.js.map |
@@ -1,2 +0,2 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=function(){return(t=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},e=function(t){throw new Error(t)},r={zero:function(t){return 0===t},one:function(t){return 1===t}},n=["zero","one","other"],o=function(){function o(){this.reset()}return o.prototype.reset=function(){this._e={},this._c=t({},r),this._f={}},o.prototype.localeName=function(t){return t&&(this._l=t),this._l},o.prototype.use=function(t){t.call(null,this)},o.prototype.add=function(r){var n=r.locale,o=r.entries,i=this._l;return i&&n&&n!==i&&e('Dictionary locale "'+n+'" is different than selected locale "'+i+'"'),this._e=t(t({},this._e),o),this},o.prototype.addConditions=function(t){var r=this;return Object.keys(t).forEach((function(o){if(!n.includes(o)){var i=t[o];"function"!=typeof i&&e('Invalid condition function: "'+o+'"'),r._c[o]=i}})),this},o.prototype.addFormatters=function(e){return this._f=t(t({},this._f),e),this},o.prototype.r=function(e,r,n){return void 0===r?e:"function"==typeof r?r(n,t(t({},this._f),{t:this.t,c:this.c})):r},o.prototype.t=function(t,e){void 0===e&&(e={});var r=this._e[t];return this.r(t,r,e)},o.prototype.c=function(t,r,n){void 0===n&&(n={});var o=this._e[t];if("object"!=typeof o)return e('Invalid conditional group key: "'+t+'"');for(var i="other",s=Object.keys(o),c=s.length,u=0;u<c;u+=1){var f=s[u],a=this._c[f];if("other"!==f&&a&&!0===a(r)){i=f;break}}var h=o[i];return this.r(t+"."+i,h,n)},o}(),i=new o,s=i.t.bind(i),c=i.c.bind(i);exports.Lisan=o,exports.c=c,exports.lisan=i,exports.t=s; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=function(){return(t=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},e=function(t){throw new Error(t)},n={zero:function(t){return 0===t},one:function(t){return 1===t}},r=["zero","one","other"],o=function(){function o(){this.reset(),this._h={t:this.t.bind(this),c:this.c.bind(this)}}return o.prototype.reset=function(){this._e={},this._c=t({},n),this._f={}},o.prototype.localeName=function(t){return t&&(this._l=t),this._l},o.prototype.use=function(t){t.call(null,this)},o.prototype.add=function(n){var r=n.locale,o=n.entries,i=this._l;return i&&r&&r!==i&&e('Dictionary locale "'+r+'" is different than selected locale "'+i+'"'),this._e=t(t({},this._e),o),this},o.prototype.addConditions=function(t){var n=this;return Object.keys(t).forEach((function(o){if(!r.includes(o)){var i=t[o];"function"!=typeof i&&e('Invalid condition function: "'+o+'"'),n._c[o]=i}})),this},o.prototype.addFormatters=function(e){return this._f=t(t({},this._f),e),this},o.prototype.r=function(e,n,r){return void 0===r&&(r={}),void 0===n?e:"function"==typeof n?n(r,t(t({},this._f),this._h)):n},o.prototype.t=function(t,e){var n=this._e[t];return this.r(t,n,e)},o.prototype.c=function(t,n,r){var o=this._e[t];if("object"!=typeof o)return e('Invalid conditional group key: "'+t+'"');for(var i="other",s=Object.keys(o),c=s.length,h=0;h<c;h+=1){var u=s[h],f=this._c[u];if("other"!==u&&f&&!0===f(n)){i=u;break}}var a=o[i];return this.r(t+"."+i,a,r)},o}(),i=new o,s=i.t.bind(i),c=i.c.bind(i);exports.Lisan=o,exports.c=c,exports.lisan=i,exports.t=s; | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).lisanJS={})}(this,(function(t){"use strict";var e=function(){return(e=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},n=function(t){throw new Error(t)},o={zero:function(t){return 0===t},one:function(t){return 1===t}},i=["zero","one","other"],r=function(){function t(){this.reset()}return t.prototype.reset=function(){this._e={},this._c=e({},o),this._f={}},t.prototype.localeName=function(t){return t&&(this._l=t),this._l},t.prototype.use=function(t){t.call(null,this)},t.prototype.add=function(t){var o=t.locale,i=t.entries,r=this._l;return r&&o&&o!==r&&n('Dictionary locale "'+o+'" is different than selected locale "'+r+'"'),this._e=e(e({},this._e),i),this},t.prototype.addConditions=function(t){var e=this;return Object.keys(t).forEach((function(o){if(!i.includes(o)){var r=t[o];"function"!=typeof r&&n('Invalid condition function: "'+o+'"'),e._c[o]=r}})),this},t.prototype.addFormatters=function(t){return this._f=e(e({},this._f),t),this},t.prototype.r=function(t,n,o){return void 0===n?t:"function"==typeof n?n(o,e(e({},this._f),{t:this.t,c:this.c})):n},t.prototype.t=function(t,e){void 0===e&&(e={});var n=this._e[t];return this.r(t,n,e)},t.prototype.c=function(t,e,o){void 0===o&&(o={});var i=this._e[t];if("object"!=typeof i)return n('Invalid conditional group key: "'+t+'"');for(var r="other",c=Object.keys(i),s=c.length,f=0;f<s;f+=1){var u=c[f],a=this._c[u];if("other"!==u&&a&&!0===a(e)){r=u;break}}var h=i[r];return this.r(t+"."+r,h,o)},t}(),c=new r,s=c.t.bind(c),f=c.c.bind(c);t.Lisan=r,t.c=f,t.lisan=c,t.t=s,Object.defineProperty(t,"__esModule",{value:!0})})); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).lisanJS={})}(this,(function(t){"use strict";var e=function(){return(e=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},n=function(t){throw new Error(t)},i={zero:function(t){return 0===t},one:function(t){return 1===t}},o=["zero","one","other"],r=function(){function t(){this.reset(),this._h={t:this.t.bind(this),c:this.c.bind(this)}}return t.prototype.reset=function(){this._e={},this._c=e({},i),this._f={}},t.prototype.localeName=function(t){return t&&(this._l=t),this._l},t.prototype.use=function(t){t.call(null,this)},t.prototype.add=function(t){var i=t.locale,o=t.entries,r=this._l;return r&&i&&i!==r&&n('Dictionary locale "'+i+'" is different than selected locale "'+r+'"'),this._e=e(e({},this._e),o),this},t.prototype.addConditions=function(t){var e=this;return Object.keys(t).forEach((function(i){if(!o.includes(i)){var r=t[i];"function"!=typeof r&&n('Invalid condition function: "'+i+'"'),e._c[i]=r}})),this},t.prototype.addFormatters=function(t){return this._f=e(e({},this._f),t),this},t.prototype.r=function(t,n,i){return void 0===i&&(i={}),void 0===n?t:"function"==typeof n?n(i,e(e({},this._f),this._h)):n},t.prototype.t=function(t,e){var n=this._e[t];return this.r(t,n,e)},t.prototype.c=function(t,e,i){var o=this._e[t];if("object"!=typeof o)return n('Invalid conditional group key: "'+t+'"');for(var r="other",s=Object.keys(o),c=s.length,f=0;f<c;f+=1){var u=s[f],h=this._c[u];if("other"!==u&&h&&!0===h(e)){r=u;break}}var a=o[r];return this.r(t+"."+r,a,i)},t}(),s=new r,c=s.t.bind(s),f=s.c.bind(s);t.Lisan=r,t.c=f,t.lisan=s,t.t=c,Object.defineProperty(t,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=index.umd.js.map |
@@ -7,2 +7,3 @@ import * as TSLisan from 'lisan-types'; | ||
private _l?; | ||
private _h; | ||
constructor(); | ||
@@ -9,0 +10,0 @@ reset(): void; |
{ | ||
"name": "lisan", | ||
"version": "0.0.35", | ||
"version": "0.0.36", | ||
"description": "Lisan - A Blazing fast i18n library", | ||
@@ -39,5 +39,5 @@ "keywords": [ | ||
"dependencies": { | ||
"lisan-types": "^0.0.35" | ||
"lisan-types": "^0.0.36" | ||
}, | ||
"gitHead": "febf84caed8c70fa8884660b5215259c1ebe327d" | ||
"gitHead": "4872282c21852106abd1979ee6dc6586f1923bda" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34660
70
+ Addedlisan-types@0.0.36(transitive)
- Removedlisan-types@0.0.35(transitive)
Updatedlisan-types@^0.0.36