Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sayt

Package Overview
Dependencies
Maintainers
12
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sayt - npm Package Compare versions

Comparing version 0.1.9 to 0.2.0

1

dist/src/core/sayt.d.ts

@@ -23,2 +23,3 @@ export declare class Sayt {

fuzzyMatch?: boolean;
matchPrefix?: boolean;
}

@@ -25,0 +26,0 @@ export interface ProductSearchConfig {

37

dist/src/core/sayt.js
"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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc