Skip to content

Commit

Permalink
fixup! V0.10.0 (Airtable#216)
Browse files Browse the repository at this point in the history
  • Loading branch information
mzgoddard committed Oct 14, 2020
1 parent a6f0878 commit 91712d6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
3 changes: 2 additions & 1 deletion src/abort-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ let AbortController: new () => AbortController;
if (typeof window === 'undefined') {
AbortController = require('abort-controller');
} else if ('signal' in new Request('')) {
AbortController = window.AbortController;
AbortController = window.AbortController;
} else {
/* eslint-disable-next-line */
const polyfill = require('abortcontroller-polyfill/dist/cjs-ponyfill');
AbortController = polyfill.AbortController;
}
Expand Down
4 changes: 2 additions & 2 deletions src/airtable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ class Airtable {
return Base.createFunctor(this, baseId);
}

static default_config(): {
static default_config(): ({
endpointUrl: string,
apiVersion: string,
apiKey: string,
noRetryIfRateLimited: boolean,
requestTimeout: number,
} {
}) {
return {
endpointUrl: process.env.AIRTABLE_ENDPOINT_URL || 'https://api.airtable.com',
apiVersion: '0.1.0',
Expand Down
6 changes: 3 additions & 3 deletions src/airtable_base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Base from './base';

export type AirtableBase = {
(tableName: string): Table;
getId: Base["getId"];
makeRequest: Base["makeRequest"];
table: Base["table"];
getId: Base['getId'];
makeRequest: Base['makeRequest'];
table: Base['table'];
};
1 change: 1 addition & 0 deletions src/package_version.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// This will become package_version_browser.js when doing a browser build.
// See <https://github.com/Airtable/airtable.js/pull/132> for more.
// eslint-disable-next-line
export = require('../package.json').version;

0 comments on commit 91712d6

Please sign in to comment.