@bothrs/airtable
Advanced tools
Comparing version 0.3.3 to 0.3.4
@@ -59,4 +59,4 @@ var $7aDPw$querystring = require("query-string"); | ||
return { | ||
Authorization: 'Bearer ' + key, | ||
Accept: 'application/json', | ||
'Authorization': 'Bearer ' + key, | ||
'Accept': 'application/json', | ||
'Content-Type': 'application/json' | ||
@@ -95,3 +95,2 @@ }; | ||
}); | ||
// TODO: Fix typings | ||
const { records: records } = response.data; | ||
@@ -108,3 +107,2 @@ if (records) return records.map($50ec0a944e93cc52$export$417857010dc9287f); | ||
}); | ||
// TODO: Fix typings | ||
const { offset: offset , records: records } = response.data; | ||
@@ -111,0 +109,0 @@ if (offset) return $50ec0a944e93cc52$export$90aca4adda6ff0f5(env, tableName, { |
@@ -40,4 +40,4 @@ import $lXay8$querystring from "query-string"; | ||
return { | ||
Authorization: 'Bearer ' + key, | ||
Accept: 'application/json', | ||
'Authorization': 'Bearer ' + key, | ||
'Accept': 'application/json', | ||
'Content-Type': 'application/json' | ||
@@ -76,3 +76,2 @@ }; | ||
}); | ||
// TODO: Fix typings | ||
const { records: records } = response.data; | ||
@@ -89,3 +88,2 @@ if (records) return records.map($db9fa288d1a4fa49$export$417857010dc9287f); | ||
}); | ||
// TODO: Fix typings | ||
const { offset: offset , records: records } = response.data; | ||
@@ -92,0 +90,0 @@ if (offset) return $db9fa288d1a4fa49$export$90aca4adda6ff0f5(env, tableName, { |
@@ -32,2 +32,6 @@ export type AirtableRecord = { | ||
}; | ||
export interface SelectAllResponse<T = FieldSet> { | ||
records: Packed<T>[]; | ||
offset: number; | ||
} | ||
export type Packed<T extends FieldSet> = { | ||
@@ -34,0 +38,0 @@ id: string; |
{ | ||
"name": "@bothrs/airtable", | ||
"repository": "git@github.com:bothrs/open-source.git", | ||
"version": "0.3.3", | ||
"version": "0.3.4", | ||
"source": "src/index.ts", | ||
@@ -49,2 +49,3 @@ "main": "dist/index.js", | ||
"@types/jest": "^27.0.2", | ||
"@types/node": "^12.20.37", | ||
"axios": "^0.24.0", | ||
@@ -59,3 +60,3 @@ "jest": "^27.2.4", | ||
}, | ||
"gitHead": "09306acb9e9783c0ea427b2461ee6a3086769367" | ||
"gitHead": "3e88d3f44722ef6776e8741e3f7f4eda6ec3d350" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43507
10