commander-spellbook
Advanced tools
Comparing version 0.6.0 to 0.7.0
@@ -0,1 +1,7 @@ | ||
# 0.7.0 | ||
- `search` | ||
- Restore support for searching by id, but don't limit it to inclusive searching | ||
- Support `-id` to exclude combos with id | ||
# 0.6.0 | ||
@@ -2,0 +8,0 @@ |
@@ -38,2 +38,8 @@ "use strict"; | ||
switch (key) { | ||
case "id": | ||
params.id.includeFilters.push(value); | ||
break; | ||
case "-id": | ||
params.id.excludeFilters.push(value); | ||
break; | ||
case "ci": | ||
@@ -92,2 +98,6 @@ case "-ci": | ||
var parameters = { | ||
id: { | ||
includeFilters: [], | ||
excludeFilters: [], | ||
}, | ||
cards: { | ||
@@ -94,0 +104,0 @@ sizeFilters: [], |
@@ -44,2 +44,3 @@ "use strict"; | ||
var parse_query_1 = __importDefault(require("./parse-query")); | ||
var ids_1 = __importDefault(require("./search-filters/ids")); | ||
var color_identity_1 = __importDefault(require("./search-filters/color-identity")); | ||
@@ -61,2 +62,3 @@ var combo_data_1 = __importDefault(require("./search-filters/combo-data")); | ||
combos = _a.sent(); | ||
combos = ids_1.default(combos, searchParams); | ||
combos = color_identity_1.default(combos, searchParams); | ||
@@ -63,0 +65,0 @@ combos = combo_data_1.default(combos, searchParams); |
@@ -57,2 +57,6 @@ import type CardGrouping from "./models/card-grouping"; | ||
results: Filters; | ||
id: { | ||
includeFilters: string[]; | ||
excludeFilters: string[]; | ||
}; | ||
colorIdentity: { | ||
@@ -59,0 +63,0 @@ sizeFilters: SizeFilter[]; |
{ | ||
"name": "commander-spellbook", | ||
"version": "0.6.0", | ||
"version": "0.7.0", | ||
"description": "A wrapper for parsing the commander spellbook api.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
65947
47
1279