New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

sayt

Package Overview
Dependencies
Maintainers
1
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.0.5 to 0.1.1

42

dist/commonjs/core/sayt.js

@@ -35,28 +35,2 @@ "use strict";

});
// const response = jsonp(`${this.url}?${qs.stringify({
// query,
// collection: finalConfig.collection,
// searchItems: finalConfig.numSearchTerms,
// navigationItems: finalConfig.numNavigations,
// alphabetize: finalConfig.sortAlphabetically,
// fuzzy: finalConfig.fuzzyMatch,
//
// productItems: 0
// })}`, (err, data) => {
//
// });
// const response = axios({
// url: this.url,
// method: 'get',
// data: {
// query,
// collection: finalConfig.collection,
// searchItems: finalConfig.numSearchTerms,
// navigationItems: finalConfig.numNavigations,
// alphabetize: finalConfig.sortAlphabetically,
// fuzzy: finalConfig.fuzzyMatch,
//
// productItems: 0
// }
// }).then(res => res.data);
return this.callbackOrPromise(response, cb);

@@ -76,16 +50,2 @@ };

});
// const response = axios({
// url: this.url,
// method: 'get',
// data: {
// query,
// collection: finalConfig.collection,
// area: finalConfig.area,
// refinements: finalConfig.refinements,
// productItems: finalConfig.numProducts,
//
// searchItems: 0,
// navigationItems: 0
// }
// }).then(res => res.data);
return this.callbackOrPromise(response, cb);

@@ -112,2 +72,2 @@ };

//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNvcmUvc2F5dC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsc0JBQXNCLGdCQUFnQixDQUFDLENBQUE7QUFFdkMsSUFBTSxRQUFRLEdBQUcsc0NBQXNDLENBQUM7QUFFeEQ7SUFBQTtRQUVVLFdBQU0sR0FBZ0I7WUFDNUIsWUFBWSxFQUFFO2dCQUNaLGNBQWMsRUFBRSxDQUFDO2dCQUNqQixjQUFjLEVBQUUsQ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p6eU1hdGNoPzogYm9vbGVhbjtcbn1cblxuZXhwb3J0IGludGVyZmFjZSBJUHJvZHVjdFNlYXJjaENvbmZpZyB7XG4gIGFyZWE/OiBzdHJpbmc7XG4gIG51bVByb2R1Y3RzPzogbnVtYmVyO1xuICBwcm9kdWN0U29ydD86IGFueTtcbn1cblxuZXhwb3J0IHR5cGUgSVF1ZXJ5VGltZUF1dG9jb21wbGV0ZUNvbmZpZyA9IElBdXRvY29tcGxldGVDb25maWcgJiB7IGNvbGxlY3Rpb24/OiBzdHJpbmcgfTtcbmV4cG9ydCB0eXBlIElRdWVyeVRpbWVQcm9kdWN0U2VhcmNoQ29uZmlnID0gSVByb2R1Y3RTZWFyY2hDb25maWcgJiB7IGNvbGxlY3Rpb24/OiBzdHJpbmcsIHJlZmluZW1lbnRzPzogc3RyaW5nIH07XG5leHBvcnQgdHlwZSBTZWFyY2hDYWxsYmFjayA9IChlcnI6IEVycm9yLCByZXM/OiBhbnkpID0+IHZvaWQ7XG4iXSwic291cmNlUm9vdCI6Ii9zb3VyY2UvIn0=

6

dist/commonjs/sayt.d.ts

@@ -12,4 +12,4 @@ // Generated by dts-bundle v0.3.0

configure(config?: ISaytConfig): void;
autocomplete(query?: string, config?: IQueryTimeAutocompleteConfig, cb?: SearchCallback): Axios.IPromise<Axios.AxiosXHR<any>>;
productSearch(query?: string, config?: IQueryTimeProductSearchConfig, cb?: SearchCallback): Axios.IPromise<any>;
autocomplete(query?: string, config?: IQueryTimeAutocompleteConfig, cb?: SearchCallback): Promise<any>;
productSearch(query?: string, config?: IQueryTimeProductSearchConfig, cb?: SearchCallback): Promise<any>;
}

@@ -41,4 +41,4 @@ export interface ISaytConfig {

};
export type SearchCallback = (err: Error, res?: Axios.AxiosXHR<any>) => void;
export type SearchCallback = (err: Error, res?: any) => void;
}
{
"name": "sayt",
"version": "0.0.5",
"version": "0.1.1",
"description": "Client for the SAYT API.",

@@ -80,2 +80,2 @@ "typescript": {

}
}
}
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