Comparing version 0.1.9 to 0.2.0
@@ -23,2 +23,3 @@ export declare class Sayt { | ||
fuzzyMatch?: boolean; | ||
matchPrefix?: boolean; | ||
} | ||
@@ -25,0 +26,0 @@ export interface ProductSearchConfig { |
"use strict"; | ||
var __assign = (this && this.__assign) || function () { | ||
__assign = Object.assign || function(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
}; | ||
var __rest = (this && this.__rest) || function (s, e) { | ||
var t = {}; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) | ||
t[p] = s[p]; | ||
if (s != null && typeof Object.getOwnPropertySymbols === "function") | ||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { | ||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) | ||
t[p[i]] = s[p[i]]; | ||
} | ||
return t; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -28,12 +50,9 @@ var utils_1 = require("./utils"); | ||
var finalConfig = Object.assign({ collection: this.config.collection }, this.config.autocomplete, config); | ||
var response = utils_1.jsonp(this.url, { | ||
alphabetize: finalConfig.sortAlphabetically, | ||
collection: finalConfig.collection, | ||
fuzzy: finalConfig.fuzzyMatch, | ||
var alphabetize = finalConfig.sortAlphabetically, collection = finalConfig.collection, fuzzy = finalConfig.fuzzyMatch, language = finalConfig.language, navigationItems = finalConfig.numNavigations, searchItems = finalConfig.numSearchTerms, rest = __rest(finalConfig, ["sortAlphabetically", "collection", "fuzzyMatch", "language", "numNavigations", "numSearchTerms"]); | ||
var response = utils_1.jsonp(this.url, __assign({ alphabetize: alphabetize, | ||
collection: collection, | ||
fuzzy: fuzzy, | ||
query: query, | ||
language: finalConfig.language, | ||
navigationItems: finalConfig.numNavigations, | ||
productItems: 0, | ||
searchItems: finalConfig.numSearchTerms, | ||
}); | ||
language: language, | ||
navigationItems: navigationItems, productItems: 0, searchItems: searchItems }, rest)); | ||
return this.callbackOrPromise(response, cb); | ||
@@ -40,0 +59,0 @@ }; |
{ | ||
"name": "sayt", | ||
"version": "0.1.9", | ||
"version": "0.2.0", | ||
"description": "Client for the SAYT API.", | ||
@@ -5,0 +5,0 @@ "typings": "dist/src/index.d.ts", |
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
272388
227