Skip to content

Commit

Permalink
3.20.3
Browse files Browse the repository at this point in the history
2017-01-04 3.20.3

  * fix(agent): ensure algolia agent is not duplicated by successive calls
  • Loading branch information
vvo committed Jan 4, 2017
1 parent 77b9762 commit 00ca65a
Show file tree
Hide file tree
Showing 13 changed files with 43 additions and 29 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
CHANGELOG

2017-01-04 3.20.3

* fix(agent): ensure algolia agent is not duplicated by successive calls

2016-12-19 3.20.2

* fix(nodejs): do not use let, 0.12 does not support it
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "algoliasearch",
"version": "3.20.2",
"version": "3.20.3",
"homepage": "https://github.com/algolia/algoliasearch-client-js",
"authors": [
"Algolia Team <support@algolia.com>"
Expand Down
8 changes: 5 additions & 3 deletions dist/algoliasearch.angular.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! algoliasearch 3.20.2 | © 2014, 2015 Algolia SAS | github.com/algolia/algoliasearch-client-js */
/*! algoliasearch 3.20.3 | © 2014, 2015 Algolia SAS | github.com/algolia/algoliasearch-client-js */
(function(f){var g;if(typeof window!=='undefined'){g=window}else if(typeof self!=='undefined'){g=self}g.ALGOLIA_MIGRATION_LAYER=f()})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){

module.exports = function load (src, opts, cb) {
Expand Down Expand Up @@ -3314,7 +3314,9 @@ AlgoliaSearchCore.prototype.setExtraHeader = function(name, value) {
* @param algoliaAgent the agent to add
*/
AlgoliaSearchCore.prototype.addAlgoliaAgent = function(algoliaAgent) {
this._ua += ';' + algoliaAgent;
if (this._ua.indexOf(';' + algoliaAgent) === -1) {
this._ua += ';' + algoliaAgent;
}
};

/*
Expand Down Expand Up @@ -6270,6 +6272,6 @@ function cleanup() {
},{"1":1}],36:[function(require,module,exports){
'use strict';

module.exports = '3.20.2';
module.exports = '3.20.3';

},{}]},{},[19]);
6 changes: 3 additions & 3 deletions dist/algoliasearch.angular.min.js

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions dist/algoliasearch.jquery.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! algoliasearch 3.20.2 | © 2014, 2015 Algolia SAS | github.com/algolia/algoliasearch-client-js */
/*! algoliasearch 3.20.3 | © 2014, 2015 Algolia SAS | github.com/algolia/algoliasearch-client-js */
(function(f){var g;if(typeof window!=='undefined'){g=window}else if(typeof self!=='undefined'){g=self}g.ALGOLIA_MIGRATION_LAYER=f()})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){

module.exports = function load (src, opts, cb) {
Expand Down Expand Up @@ -3314,7 +3314,9 @@ AlgoliaSearchCore.prototype.setExtraHeader = function(name, value) {
* @param algoliaAgent the agent to add
*/
AlgoliaSearchCore.prototype.addAlgoliaAgent = function(algoliaAgent) {
this._ua += ';' + algoliaAgent;
if (this._ua.indexOf(';' + algoliaAgent) === -1) {
this._ua += ';' + algoliaAgent;
}
};

/*
Expand Down Expand Up @@ -6216,6 +6218,6 @@ function cleanup() {
},{"1":1}],36:[function(require,module,exports){
'use strict';

module.exports = '3.20.2';
module.exports = '3.20.3';

},{}]},{},[19]);
6 changes: 3 additions & 3 deletions dist/algoliasearch.jquery.min.js

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions dist/algoliasearch.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! algoliasearch 3.20.2 | © 2014, 2015 Algolia SAS | github.com/algolia/algoliasearch-client-js */
/*! algoliasearch 3.20.3 | © 2014, 2015 Algolia SAS | github.com/algolia/algoliasearch-client-js */
(function(f){var g;if(typeof window!=='undefined'){g=window}else if(typeof self!=='undefined'){g=self}g.ALGOLIA_MIGRATION_LAYER=f()})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){

module.exports = function load (src, opts, cb) {
Expand Down Expand Up @@ -3314,7 +3314,9 @@ AlgoliaSearchCore.prototype.setExtraHeader = function(name, value) {
* @param algoliaAgent the agent to add
*/
AlgoliaSearchCore.prototype.addAlgoliaAgent = function(algoliaAgent) {
this._ua += ';' + algoliaAgent;
if (this._ua.indexOf(';' + algoliaAgent) === -1) {
this._ua += ';' + algoliaAgent;
}
};

/*
Expand Down Expand Up @@ -6062,7 +6064,7 @@ function cleanup() {
},{"1":1}],35:[function(require,module,exports){
'use strict';

module.exports = '3.20.2';
module.exports = '3.20.3';

},{}]},{},[19])(19)
});
6 changes: 3 additions & 3 deletions dist/algoliasearch.min.js

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions dist/algoliasearch.parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -3343,7 +3343,9 @@ module.exports =
* @param algoliaAgent the agent to add
*/
AlgoliaSearchCore.prototype.addAlgoliaAgent = function(algoliaAgent) {
this._ua += ';' + algoliaAgent;
if (this._ua.indexOf(';' + algoliaAgent) === -1) {
this._ua += ';' + algoliaAgent;
}
};

/*
Expand Down Expand Up @@ -4057,7 +4059,7 @@ module.exports =



module.exports = '3.20.2';
module.exports = '3.20.3';


/***/ }
Expand Down
8 changes: 5 additions & 3 deletions dist/algoliasearchLite.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! algoliasearch 3.20.2 | © 2014, 2015 Algolia SAS | github.com/algolia/algoliasearch-client-js */
/*! algoliasearch 3.20.3 | © 2014, 2015 Algolia SAS | github.com/algolia/algoliasearch-client-js */
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.algoliasearch = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
(function (process){

Expand Down Expand Up @@ -2350,7 +2350,9 @@ AlgoliaSearchCore.prototype.setExtraHeader = function(name, value) {
* @param algoliaAgent the agent to add
*/
AlgoliaSearchCore.prototype.addAlgoliaAgent = function(algoliaAgent) {
this._ua += ';' + algoliaAgent;
if (this._ua.indexOf(';' + algoliaAgent) === -1) {
this._ua += ';' + algoliaAgent;
}
};

/*
Expand Down Expand Up @@ -4080,7 +4082,7 @@ function cleanup() {
},{"1":1}],31:[function(require,module,exports){
'use strict';

module.exports = '3.20.2';
module.exports = '3.20.3';

},{}]},{},[15])(15)
});
6 changes: 3 additions & 3 deletions dist/algoliasearchLite.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "algoliasearch",
"version": "3.20.2",
"version": "3.20.3",
"description": "AlgoliaSearch API JavaScript client",
"main": "index.js",
"browser": {
Expand Down
2 changes: 1 addition & 1 deletion src/version.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
'use strict';

module.exports = '3.20.2';
module.exports = '3.20.3';

0 comments on commit 00ca65a

Please sign in to comment.