angular-translate-interpolation-messageformat
Advanced tools
Comparing version 2.15.2 to 2.16.0
/*! | ||
* angular-translate - v2.15.2 - 2017-06-22 | ||
* angular-translate - v2.16.0 - 2017-11-01 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) 2017 The angular-translate team, Pascal Precht; Licensed MIT |
/*! | ||
* angular-translate - v2.15.2 - 2017-06-22 | ||
* angular-translate - v2.16.0 - 2017-11-01 | ||
* | ||
* Copyright (c) 2017 The angular-translate team, Pascal Precht; Licensed MIT | ||
*/ | ||
!function(a,b){"function"==typeof define&&define.amd?define(["messageformat"],function(a){return b(a)}):"object"==typeof module&&module.exports?module.exports=b(require("messageformat")):b(a.MessageFormat)}(this,function(a){function b(){"use strict";var a;this.messageFormatConfigurer=function(b){a=b},this.$get=["$translateSanitization","$cacheFactory","TRANSLATE_MF_INTERPOLATION_CACHE",function(b,d,e){return c(b,d,e,a)}]}function c(b,c,d,e){"use strict";var f={},g=c.get(d),h=new a("en");return angular.isFunction(e)&&e(h),g||(g=c(d)),g.put("en",h),f.setLocale=function(b){(h=g.get(b))||(h=new a(b),angular.isFunction(e)&&e(h),g.put(b,h))},f.getInterpolationIdentifier=function(){return"messageformat"},f.useSanitizeValueStrategy=function(a){return b.useStrategy(a),this},f.interpolate=function(a,c,d,e){c=c||{},c=b.sanitize(c,"params",e);var f=g.get("mf:"+a);if(!f){for(var i in c)if(c.hasOwnProperty(i)){var j=parseInt(c[i],10);angular.isNumber(j)&&""+j===c[i]&&(c[i]=j)}f=h.compile(a),g.put("mf:"+a,f)}var k=f(c);return b.sanitize(k,"text",e)},f}return angular.module("pascalprecht.translate").constant("TRANSLATE_MF_INTERPOLATION_CACHE","$translateMessageFormatInterpolation").provider("$translateMessageFormatInterpolation",b),c.displayName="$translateMessageFormatInterpolation","pascalprecht.translate"}); | ||
!function(t,e){"function"==typeof define&&define.amd?define(["messageformat"],function(t){return e(t)}):"object"==typeof module&&module.exports?module.exports=e(require("messageformat")):e(t.MessageFormat)}(this,function(t){function e(e,n,a,r){"use strict";var i={},o=n.get(a),s=new t("en");return angular.isFunction(r)&&r(s),o||(o=n(a)),o.put("en",s),i.setLocale=function(e){(s=o.get(e))||(s=new t(e),angular.isFunction(r)&&r(s),o.put(e,s))},i.getInterpolationIdentifier=function(){return"messageformat"},i.useSanitizeValueStrategy=function(t){return e.useStrategy(t),this},i.interpolate=function(t,n,a,r){n=n||{},n=e.sanitize(n,"params",r);var i=o.get("mf:"+t);if(!i){for(var u in n)if(n.hasOwnProperty(u)){var c=parseInt(n[u],10);angular.isNumber(c)&&""+c===n[u]&&(n[u]=c)}i=s.compile(t),o.put("mf:"+t,i)}var f=i(n);return e.sanitize(f,"text",r)},i}return angular.module("pascalprecht.translate").constant("TRANSLATE_MF_INTERPOLATION_CACHE","$translateMessageFormatInterpolation").provider("$translateMessageFormatInterpolation",function(){"use strict";var t;this.messageFormatConfigurer=function(e){t=e},this.$get=["$translateSanitization","$cacheFactory","TRANSLATE_MF_INTERPOLATION_CACHE",function(n,a,r){return e(n,a,r,t)}]}),e.displayName="$translateMessageFormatInterpolation","pascalprecht.translate"}); |
{ | ||
"name": "angular-translate-interpolation-messageformat", | ||
"description": "A plugin for Angular Translate", | ||
"version": "2.15.2", | ||
"version": "2.16.0", | ||
"main": "./angular-translate-interpolation-messageformat.js", | ||
@@ -10,5 +10,5 @@ "ignore": [], | ||
"dependencies": { | ||
"angular-translate": "~2.15.2", | ||
"angular-translate": "~2.16.0", | ||
"messageformat": "~1.0.2" | ||
} | ||
} |
{ | ||
"name": "angular-translate-interpolation-messageformat", | ||
"version": "2.15.2", | ||
"version": "2.16.0", | ||
"description": "Uses MessageFormat.js to interpolate strings against some values.", | ||
@@ -22,5 +22,5 @@ "main": "angular-translate-interpolation-messageformat.js", | ||
"dependencies": { | ||
"angular-translate": "~2.15.2", | ||
"angular-translate": "~2.16.0", | ||
"messageformat": "~1.0.2" | ||
} | ||
} |
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
9899
+ Addedangular-translate@2.16.0(transitive)
- Removedangular-translate@2.15.2(transitive)
Updatedangular-translate@~2.16.0