Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

angular-translate-interpolation-messageformat

Package Overview
Dependencies
Maintainers
2
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-translate-interpolation-messageformat - npm Package Compare versions

Comparing version 2.18.3 to 2.18.4

4

angular-translate-interpolation-messageformat.js
/*!
* angular-translate - v2.18.3 - 2020-07-08
* angular-translate - v2.18.4 - 2021-01-14
*
* Copyright (c) 2020 The angular-translate team, Pascal Precht; Licensed MIT
* Copyright (c) 2021 The angular-translate team, Pascal Precht; Licensed MIT
*/

@@ -6,0 +6,0 @@ (function (root, factory) {

/*!
* angular-translate - v2.18.3 - 2020-07-08
* angular-translate - v2.18.4 - 2021-01-14
*
* Copyright (c) 2020 The angular-translate team, Pascal Precht; Licensed MIT
* Copyright (c) 2021 The angular-translate team, Pascal Precht; Licensed MIT
*/
!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(r){function i(u,t,e,n){"use strict";var a={},c=t.get(e),f=new r("en");return angular.isFunction(n)&&n(f),c||(c=t(e)),c.put("en",f),a.setLocale=function(t){(f=c.get(t))||(f=new r(t),angular.isFunction(n)&&n(f),c.put(t,f))},a.getInterpolationIdentifier=function(){return"messageformat"},a.useSanitizeValueStrategy=function(t){return u.useStrategy(t),this},a.interpolate=function(t,e,n,a){e=e||{},e=u.sanitize(e,"params",a);var r=c.get("mf:"+t);if(!r){for(var i in e)if(e.hasOwnProperty(i)){var o=parseInt(e[i],10);angular.isNumber(o)&&""+o===e[i]&&(e[i]=o)}r=f.compile(t),c.put("mf:"+t,r)}var s=r(e);return u.sanitize(s,"text",a)},a}return angular.module("pascalprecht.translate").constant("TRANSLATE_MF_INTERPOLATION_CACHE","$translateMessageFormatInterpolation").provider("$translateMessageFormatInterpolation",function(){"use strict";var a;this.messageFormatConfigurer=function(t){a=t},this.$get=["$translateSanitization","$cacheFactory","TRANSLATE_MF_INTERPOLATION_CACHE",function(t,e,n){return i(t,e,n,a)}]}),i.displayName="$translateMessageFormatInterpolation","pascalprecht.translate"});
{
"name": "angular-translate-interpolation-messageformat",
"description": "A plugin for Angular Translate",
"version": "2.18.3",
"version": "2.18.4",
"main": "./angular-translate-interpolation-messageformat.js",

@@ -10,5 +10,5 @@ "ignore": [],

"dependencies": {
"angular-translate": "~2.18.3",
"angular-translate": "~2.18.4",
"messageformat": "~1.0.2"
}
}
{
"name": "angular-translate-interpolation-messageformat",
"version": "2.18.3",
"version": "2.18.4",
"description": "Uses MessageFormat.js to interpolate strings against some values.",

@@ -22,5 +22,5 @@ "main": "angular-translate-interpolation-messageformat.js",

"dependencies": {
"angular-translate": "~2.18.3",
"angular-translate": "~2.18.4",
"messageformat": "~1.0.2"
}
}
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc