@grouparoo/app-templates
Advanced tools
Comparing version 0.8.1-alpha.1 to 0.8.1-alpha.2
@@ -7,5 +7,2 @@ "use strict"; | ||
const sourceOptions = async ({ connection, appOptions, appId, }) => { | ||
const response = { | ||
[pluginMethods_1.tableNameKey]: { type: "list", options: [] }, | ||
}; | ||
const map = await getTables({ | ||
@@ -16,5 +13,6 @@ connection, | ||
}); | ||
for (const tableName in map) { | ||
response[pluginMethods_1.tableNameKey].options.push(tableName); | ||
} | ||
const tableNames = Object.keys(map).sort(); | ||
const response = { | ||
[pluginMethods_1.tableNameKey]: { type: "typeahead", options: tableNames }, | ||
}; | ||
// TODO later: const getMore = extraSourceOptions?.method | ||
@@ -21,0 +19,0 @@ const extra = (extraSourceOptions === null || extraSourceOptions === void 0 ? void 0 : extraSourceOptions.options) || []; |
@@ -5,3 +5,3 @@ { | ||
"description": "Common patterns for Grouparoo plugins that contribute apps", | ||
"version": "0.8.1-alpha.1", | ||
"version": "0.8.1-alpha.2", | ||
"license": "MPL-2.0", | ||
@@ -32,4 +32,4 @@ "private": false, | ||
"devDependencies": { | ||
"@grouparoo/core": "0.8.1-alpha.1", | ||
"@grouparoo/spec-helper": "0.8.1-alpha.1", | ||
"@grouparoo/core": "0.8.1-alpha.2", | ||
"@grouparoo/spec-helper": "0.8.1-alpha.2", | ||
"@types/jest": "*", | ||
@@ -39,3 +39,3 @@ "@types/node": "16.*.*", | ||
"actionhero": "28.1.7", | ||
"jest": "27.4.5", | ||
"jest": "27.5.1", | ||
"nock": "13.2.2", | ||
@@ -47,3 +47,3 @@ "prettier": "2.5.1", | ||
}, | ||
"gitHead": "a95f9a45dbb6708ede0fabcc26939cff871299f1" | ||
"gitHead": "c0d858ed9a8593f694fb0e6d4264a9994fdf3ae6" | ||
} |
@@ -28,5 +28,2 @@ import { | ||
}) => { | ||
const response: SourceOptionsMethodResponse = { | ||
[tableNameKey]: { type: "list", options: [] }, | ||
}; | ||
const map: TableDefinitionMap = await getTables({ | ||
@@ -37,5 +34,8 @@ connection, | ||
}); | ||
for (const tableName in map) { | ||
response[tableNameKey].options.push(tableName); | ||
} | ||
const tableNames = Object.keys(map).sort(); | ||
const response: SourceOptionsMethodResponse = { | ||
[tableNameKey]: { type: "typeahead", options: tableNames }, | ||
}; | ||
// TODO later: const getMore = extraSourceOptions?.method | ||
@@ -42,0 +42,0 @@ const extra = extraSourceOptions?.options || []; |
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
241547
6510