angular-translate-loader-url
Advanced tools
Comparing version 2.15.1 to 2.15.2
/*! | ||
* angular-translate - v2.15.1 - 2017-03-04 | ||
* angular-translate - v2.15.2 - 2017-06-22 | ||
* | ||
@@ -12,3 +12,3 @@ * Copyright (c) 2017 The angular-translate team, Pascal Precht; Licensed MIT | ||
}); | ||
} else if (typeof exports === 'object') { | ||
} else if (typeof module === 'object' && module.exports) { | ||
// Node. Does not work with strict CommonJS, but | ||
@@ -15,0 +15,0 @@ // only CommonJS-like environments that support module.exports, |
/*! | ||
* angular-translate - v2.15.1 - 2017-03-04 | ||
* angular-translate - v2.15.2 - 2017-06-22 | ||
* | ||
* Copyright (c) 2017 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 a.$inject=["$q","$http"],angular.module("pascalprecht.translate").factory("$translateUrlLoader",a),a.displayName="$translateUrlLoader","pascalprecht.translate"}); | ||
!function(a,b){"function"==typeof define&&define.amd?define([],function(){return b()}):"object"==typeof module&&module.exports?module.exports=b():b()}(0,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.15.1", | ||
"version": "2.15.2", | ||
"main": "./angular-translate-loader-url.js", | ||
@@ -10,4 +10,4 @@ "ignore": [], | ||
"dependencies": { | ||
"angular-translate": "~2.15.1" | ||
"angular-translate": "~2.15.2" | ||
} | ||
} |
{ | ||
"name": "angular-translate-loader-url", | ||
"version": "2.15.1", | ||
"version": "2.15.2", | ||
"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.15.1" | ||
"angular-translate": "~2.15.2" | ||
} | ||
} |
4795
Updatedangular-translate@~2.15.2