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.17.0 to 2.17.1

4

angular-translate-interpolation-messageformat.js
/*!
* angular-translate - v2.17.0 - 2017-12-21
* angular-translate - v2.17.1 - 2018-04-16
*
* Copyright (c) 2017 The angular-translate team, Pascal Precht; Licensed MIT
* Copyright (c) 2018 The angular-translate team, Pascal Precht; Licensed MIT
*/

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

/*!
* angular-translate - v2.17.0 - 2017-12-21
* angular-translate - v2.17.1 - 2018-04-16
*
* Copyright (c) 2017 The angular-translate team, Pascal Precht; Licensed MIT
* Copyright (c) 2018 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(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.17.0",
"version": "2.17.1",
"main": "./angular-translate-interpolation-messageformat.js",

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

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

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

"dependencies": {
"angular-translate": "~2.17.0",
"angular-translate": "~2.17.1",
"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