Socket
Socket
Sign inDemoInstall

lisan

Package Overview
Dependencies
1
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.34-aplha.1 to 0.0.34

2

dist/index.esm.js

@@ -1,2 +0,2 @@

var t=function(){return(t=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++)for(var i in n=arguments[r])Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);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}},o=["zero","one","other"],i=function(){function i(){this.reset()}return i.prototype.reset=function(){this._e={},this._c=t({},r),this._f={}},i.prototype.use=function(t){t.call(null,this)},i.prototype.add=function(n){var r=n.entries;return this._e=t(t({},this._e),r),this},i.prototype.addConditions=function(t){var r=this;return Object.keys(t).forEach((function(i){if(!o.includes(i)){var e=t[i];"function"!=typeof e&&n('Invalid condition function: "'+i+'"'),r._c[i]=e}})),this},i.prototype.addFormatters=function(n){return this._f=t(t({},this._f),n),this},i.prototype.r=function(n,r,o){return void 0===r?n:"function"==typeof r?r(o,t(t({},this._f),{t:this.t,c:this.c})):r},i.prototype.t=function(t,n){void 0===n&&(n={});var r=this._e[t];return this.r(t,r,n)},i.prototype.c=function(t,r,o){void 0===o&&(o={});var i=this._e[t];if("object"!=typeof i)return n('Invalid conditional group key: "'+t+'"');for(var e="other",c=Object.keys(i),u=c.length,s=0;s<u;s+=1){var f=c[s],h=this._c[f];if("other"!==f&&!0===h(r)){e=f;break}}var p=i[e];return this.r(t+"."+e,p,o)},i}(),e=new i,c=e.t.bind(e),u=e.c.bind(e);export{i as Lisan,u as c,e as lisan,c as t};
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};
//# 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 r,n=1,o=arguments.length;n<o;n++)for(var e in r=arguments[n])Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e]);return t}).apply(this,arguments)},r=function(t){throw new Error(t)},n={zero:function(t){return 0===t},one:function(t){return 1===t}},o=["zero","one","other"],e=function(){function e(){this.reset()}return e.prototype.reset=function(){this._e={},this._c=t({},n),this._f={}},e.prototype.use=function(t){t.call(null,this)},e.prototype.add=function(r){var n=r.entries;return this._e=t(t({},this._e),n),this},e.prototype.addConditions=function(t){var n=this;return Object.keys(t).forEach((function(e){if(!o.includes(e)){var i=t[e];"function"!=typeof i&&r('Invalid condition function: "'+e+'"'),n._c[e]=i}})),this},e.prototype.addFormatters=function(r){return this._f=t(t({},this._f),r),this},e.prototype.r=function(r,n,o){return void 0===n?r:"function"==typeof n?n(o,t(t({},this._f),{t:this.t,c:this.c})):n},e.prototype.t=function(t,r){void 0===r&&(r={});var n=this._e[t];return this.r(t,n,r)},e.prototype.c=function(t,n,o){void 0===o&&(o={});var e=this._e[t];if("object"!=typeof e)return r('Invalid conditional group key: "'+t+'"');for(var i="other",s=Object.keys(e),c=s.length,u=0;u<c;u+=1){var f=s[u],p=this._c[f];if("other"!==f&&!0===p(n)){i=f;break}}var h=e[i];return this.r(t+"."+i,h,o)},e}(),i=new e,s=i.t.bind(i),c=i.c.bind(i);exports.Lisan=e,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,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;
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((t=t||self).lisanJS={})}(this,(function(t){"use strict";var n=function(){return(n=Object.assign||function(t){for(var n,e=1,o=arguments.length;e<o;e++)for(var r in n=arguments[e])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t}).apply(this,arguments)},e=function(t){throw new Error(t)},o={zero:function(t){return 0===t},one:function(t){return 1===t}},r=["zero","one","other"],i=function(){function t(){this.reset()}return t.prototype.reset=function(){this._e={},this._c=n({},o),this._f={}},t.prototype.use=function(t){t.call(null,this)},t.prototype.add=function(t){var e=t.entries;return this._e=n(n({},this._e),e),this},t.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},t.prototype.addFormatters=function(t){return this._f=n(n({},this._f),t),this},t.prototype.r=function(t,e,o){return void 0===e?t:"function"==typeof e?e(o,n(n({},this._f),{t:this.t,c:this.c})):e},t.prototype.t=function(t,n){void 0===n&&(n={});var e=this._e[t];return this.r(t,e,n)},t.prototype.c=function(t,n,o){void 0===o&&(o={});var r=this._e[t];if("object"!=typeof r)return e('Invalid conditional group key: "'+t+'"');for(var i="other",f=Object.keys(r),s=f.length,c=0;c<s;c+=1){var u=f[c],p=this._c[u];if("other"!==u&&!0===p(n)){i=u;break}}var h=r[i];return this.r(t+"."+i,h,o)},t}(),f=new i,s=f.t.bind(f),c=f.c.bind(f);t.Lisan=i,t.c=c,t.lisan=f,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,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})}));
//# sourceMappingURL=index.umd.js.map

@@ -6,6 +6,8 @@ import * as TSLisan from 'lisan-types';

private _f;
private _l?;
constructor();
reset(): void;
localeName(localeName?: string): string | undefined;
use(fn: TSLisan.Plugin<Lisan>): void;
add({ entries }: TSLisan.Dictionary): this;
add({ locale, entries }: TSLisan.Dictionary): this;
addConditions(conditions: TSLisan.Conditions): this;

@@ -12,0 +14,0 @@ addFormatters(formatters: TSLisan.FormatFunctions): this;

{
"name": "lisan",
"version": "0.0.34-aplha.1",
"version": "0.0.34",
"description": "Lisan - A Blazing fast i18n library",

@@ -41,3 +41,3 @@ "keywords": [

},
"gitHead": "2d3baa939569b6c42ba796403a4f86c11624d8c2"
"gitHead": "3df8848031e220f0e952c7e986f12955e4236d19"
}

@@ -85,5 +85,5 @@ <p align="center">

- [`lisan-plugin-l10n`](https://lisanjs.com/docs/lisan-plugin-l10n):
add helper functions for localization.
adds localization formatters.
- [`lisan-plugin-loader`](https://lisanjs.com/docs/lisan-plugin-loader):
add loading methods to _dynamically import_ javascript files.
adds loading methods to _dynamically import_ javascript files.

@@ -90,0 +90,0 @@ ## Installation

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc