angular-translate-loader-url
Advanced tools
Comparing version 2.10.0 to 2.11.0
/*! | ||
* angular-translate - v2.10.0 - 2016-02-28 | ||
* angular-translate - v2.11.0 - 2016-03-20 | ||
* | ||
@@ -22,2 +22,3 @@ * Copyright (c) 2016 The angular-translate team, Pascal Precht; Licensed MIT | ||
$translateUrlLoader.$inject = ['$q', '$http']; | ||
angular.module('pascalprecht.translate') | ||
@@ -69,3 +70,2 @@ /** | ||
} | ||
$translateUrlLoader.$inject = ['$q', '$http']; | ||
@@ -72,0 +72,0 @@ $translateUrlLoader.displayName = '$translateUrlLoader'; |
/*! | ||
* angular-translate - v2.10.0 - 2016-02-28 | ||
* angular-translate - v2.11.0 - 2016-03-20 | ||
* | ||
* Copyright (c) 2016 The angular-translate team, Pascal Precht; Licensed MIT | ||
*/ | ||
!function(a,b){"function"==typeof define&&define.amd?define([],function(){return b()}):"object"==typeof exports?module.exports=b():b()}(this,function(){function a(a,b){"use strict";return function(c){if(!c||!c.url)throw new Error("Couldn't use urlLoader since no url is given!");var d={};return d[c.queryParameter||"lang"]=c.key,b(angular.extend({url:c.url,params:d,method:"GET"},c.$http)).then(function(a){return a.data},function(){return a.reject(c.key)})}}return angular.module("pascalprecht.translate").factory("$translateUrlLoader",a),a.$inject=["$q","$http"],a.displayName="$translateUrlLoader","pascalprecht.translate"}); | ||
!function(a,b){"function"==typeof define&&define.amd? | ||
// AMD. Register as an anonymous module unless amdModuleId is set | ||
define([],function(){return b()}):"object"==typeof exports? | ||
// Node. Does not work with strict CommonJS, but | ||
// only CommonJS-like environments that support module.exports, | ||
// like Node. | ||
module.exports=b():b()}(this,function(){function a(a,b){"use strict";return function(c){if(!c||!c.url)throw new Error("Couldn't use urlLoader since no url is given!");var d={};return d[c.queryParameter||"lang"]=c.key,b(angular.extend({url:c.url,params:d,method:"GET"},c.$http)).then(function(a){return a.data},function(){return a.reject(c.key)})}}return a.$inject=["$q","$http"],angular.module("pascalprecht.translate").factory("$translateUrlLoader",a),a.displayName="$translateUrlLoader","pascalprecht.translate"}); |
{ | ||
"name": "angular-translate-loader-url", | ||
"description": "A plugin for Angular Translate", | ||
"version": "2.10.0", | ||
"version": "2.11.0", | ||
"main": "./angular-translate-loader-url.js", | ||
@@ -10,4 +10,4 @@ "ignore": [], | ||
"dependencies": { | ||
"angular-translate": "~2.10.0" | ||
"angular-translate": "~2.11.0" | ||
} | ||
} |
{ | ||
"name": "angular-translate-loader-url", | ||
"version": "2.10.0", | ||
"version": "2.11.0", | ||
"description": "Creates a loading function for a typical dynamic url pattern: \"locale.php?lang=en_US\", \"locale.php?lang=de_DE\", \"locale.php?language=nl_NL\" etc. Prefixing the specified url, the current requested, language id will be applied with \"?{queryParameter}={key}\". Using this service, the response of these urls must be an object of key-value pairs.", | ||
@@ -22,4 +22,4 @@ "main": "angular-translate-loader-url.js", | ||
"dependencies": { | ||
"angular-translate": "~2.10.0" | ||
"angular-translate": "~2.11.0" | ||
} | ||
} |
4961
86
+ Addedangular-translate@2.11.1(transitive)
- Removedangular-translate@2.10.0(transitive)
Updatedangular-translate@~2.11.0