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

exa-js

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

exa-js - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

6

dist/index.d.ts

@@ -77,4 +77,4 @@ type BaseSearchOptions = {

*/
search(query: string, options: RegularSearchOptions): Promise<SearchResponse>;
searchAndContents<T extends ContentsOptions>(query: string, options: RegularSearchOptions & T): Promise<SearchResponse<T>>;
search(query: string, options?: RegularSearchOptions): Promise<SearchResponse>;
searchAndContents<T extends ContentsOptions>(query: string, options?: RegularSearchOptions & T): Promise<SearchResponse<T>>;
/**

@@ -87,3 +87,3 @@ * Finds similar links to the provided URL.

findSimilar(url: string, options?: FindSimilarOptions): Promise<SearchResponse>;
findSimilarAndContents<T extends ContentsOptions>(url: string, options: FindSimilarOptions & T): Promise<SearchResponse<T>>;
findSimilarAndContents<T extends ContentsOptions>(url: string, options?: FindSimilarOptions & T): Promise<SearchResponse<T>>;
/**

@@ -90,0 +90,0 @@ * Retrieves contents of documents based on a list of document IDs.

@@ -88,3 +88,3 @@ "use strict";

async searchAndContents(query, options) {
const { text, highlights, ...rest } = options;
const { text, highlights, ...rest } = options || {};
return await this.request("/search", "POST", {

@@ -109,3 +109,3 @@ query,

async findSimilarAndContents(url, options) {
const { text, highlights, ...rest } = options;
const { text, highlights, ...rest } = options || {};
return await this.request("/findSimilar", "POST", {

@@ -112,0 +112,0 @@ url,

{
"name": "exa-js",
"version": "1.0.1",
"version": "1.0.2",
"description": "Exasearch SDK for Node.js and the browser",

@@ -5,0 +5,0 @@ "publishConfig": {

Sorry, the diff of this file is not supported yet

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