Skip to content

Commit

Permalink
v0.5.7 (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kasra Kyanzadeh authored and EvanHahn committed Oct 9, 2018
1 parent 2a8e95f commit 2dffb8b
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 27 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# v0.5.7
* Support dotenv for loading config (#59)
* Improve error message is select() is called without args (#70)
* Update dependencies (#73)

# v0.5.6
* Fix crash when specifying sort direction or cellFormat options

Expand Down
28 changes: 17 additions & 11 deletions build/airtable.browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,11 @@ function callbackToPromise(fn, context, callbackArgIndex) {
fn.apply(context, arguments);
} else {
var args = [];
for (var i = 0; i < arguments.length; i++) {
// If an explicit callbackArgIndex is set, but the function is called
// with too few arguments, we want to push undefined onto args so that
// our constructed callback ends up at the right index.
var argLen = Math.max(arguments.length, callbackArgIndex);
for (var i = 0; i < argLen; i++) {
args.push(arguments[i]);
}
return new Promise(function(resolve, reject) {
Expand All @@ -141,7 +145,7 @@ function callbackToPromise(fn, context, callbackArgIndex) {
module.exports = callbackToPromise;

},{}],4:[function(require,module,exports){
/*jshint strict:false */
// jshint ignore: start

/* Simple JavaScript Inheritance
* By John Resig http://ejohn.org/
Expand Down Expand Up @@ -21021,7 +21025,7 @@ var Airtable = Class.extend({
init: function(opts) {
opts = opts || {};

const default_config = Airtable.default_config();
var default_config = Airtable.default_config();

this._apiKey = opts.apiKey || Airtable.apiKey || default_config.apiKey;
this._endpointUrl = opts.endpointUrl || Airtable.endpointUrl || default_config.endpointUrl;
Expand All @@ -21039,14 +21043,16 @@ var Airtable = Class.extend({
}
});

Airtable.default_config = () => ({
endpointUrl: undefined || 'https://api.airtable.com',
apiVersion: '0.1.0',
apiKey: undefined,
allowUnauthorizedSsl: false,
noRetryIfRateLimited: false,
requestTimeout: 300 * 1000, // 5 minutes
});
Airtable.default_config = function () {
return {
endpointUrl: undefined || 'https://api.airtable.com',
apiVersion: '0.1.0',
apiKey: undefined,
allowUnauthorizedSsl: false,
noRetryIfRateLimited: false,
requestTimeout: 300 * 1000, // 5 minutes
};
};

Airtable.configure = function(opts) {
Airtable.apiKey = opts.apiKey;
Expand Down
28 changes: 14 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "airtable",
"version": "0.5.6",
"version": "0.5.7",
"homepage": "https://github.com/airtable/airtable.js",
"repository": "git://github.com/airtable/airtable.js.git",
"private": false,
Expand Down Expand Up @@ -35,4 +35,4 @@
"engines": {
"node": ">= 0.10.0"
}
}
}

0 comments on commit 2dffb8b

Please sign in to comment.