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

@internetarchive/search-service

Package Overview
Dependencies
Maintainers
18
Versions
158
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@internetarchive/search-service - npm Package Compare versions

Comparing version 1.2.5-alpha.0 to 1.2.5-alpha.1

dist/src/responses/account-extra-info.d.ts

23

dist/src/responses/search-response-details.d.ts

@@ -5,2 +5,4 @@ import { Aggregation } from '../models/aggregation';

import type { SearchHitSchema } from './search-hit-schema';
import { AccountExtraInfo } from './account-extra-info';
import { PageElementMap, SearchResponseHits } from './page-elements';
/**

@@ -10,16 +12,10 @@ * The structure of the response body returned from the PPS endpoint.

export interface SearchResponseBody {
hits: SearchResponseHits;
hits?: SearchResponseHits;
aggregations?: Record<string, Aggregation>;
collection_titles?: Record<string, string>;
collection_extra_info?: CollectionExtraInfo;
account_extra_info?: AccountExtraInfo;
page_elements?: PageElementMap;
}
/**
* The structure of the response body `hits` object returned from the PPS endpoint.
*/
export interface SearchResponseHits {
total: number;
returned: number;
hits: Record<string, any>[];
}
/**
* This is the search response details inside the SearchResponse object that contains

@@ -61,2 +57,11 @@ * the search results, under the `results` key.

/**
* Extra info about the target account, returned when the page type is
* `account_details`.
*/
accountExtraInfo?: AccountExtraInfo;
/**
* Specific page elements requested from the PPS will be present in this map
*/
pageElements?: PageElementMap;
/**
* The hit schema for this response

@@ -63,0 +68,0 @@ */

@@ -34,2 +34,8 @@ /* eslint-disable @typescript-eslint/no-explicit-any */

}
if (body === null || body === void 0 ? void 0 : body.account_extra_info) {
this.accountExtraInfo = body.account_extra_info;
}
if (body === null || body === void 0 ? void 0 : body.page_elements) {
this.pageElements = body.page_elements;
}
}

@@ -36,0 +42,0 @@ /**

{
"name": "@internetarchive/search-service",
"version": "1.2.5-alpha.0",
"version": "1.2.5-alpha.1",
"description": "A search service for the Internet Archive",

@@ -5,0 +5,0 @@ "license": "AGPL-3.0-only",

@@ -0,0 +0,0 @@ /* eslint-disable @typescript-eslint/no-explicit-any */

@@ -9,2 +9,4 @@ /* eslint-disable @typescript-eslint/no-explicit-any */

import type { SearchHitSchema } from './search-hit-schema';
import { AccountExtraInfo } from './account-extra-info';
import { PageElementMap, SearchResponseHits } from './page-elements';

@@ -15,18 +17,11 @@ /**

export interface SearchResponseBody {
hits: SearchResponseHits;
hits?: SearchResponseHits;
aggregations?: Record<string, Aggregation>;
collection_titles?: Record<string, string>;
collection_extra_info?: CollectionExtraInfo;
account_extra_info?: AccountExtraInfo;
page_elements?: PageElementMap;
}
/**
* The structure of the response body `hits` object returned from the PPS endpoint.
*/
export interface SearchResponseHits {
total: number;
returned: number;
hits: Record<string, any>[];
}
/**
* This is the search response details inside the SearchResponse object that contains

@@ -74,2 +69,13 @@ * the search results, under the `results` key.

/**
* Extra info about the target account, returned when the page type is
* `account_details`.
*/
accountExtraInfo?: AccountExtraInfo;
/**
* Specific page elements requested from the PPS will be present in this map
*/
pageElements?: PageElementMap;
/**
* The hit schema for this response

@@ -108,2 +114,10 @@ */

}
if (body?.account_extra_info) {
this.accountExtraInfo = body.account_extra_info;
}
if (body?.page_elements) {
this.pageElements = body.page_elements;
}
}

@@ -110,0 +124,0 @@

@@ -0,0 +0,0 @@ /* eslint-disable @typescript-eslint/no-explicit-any */

@@ -156,4 +156,3 @@ export interface AggregateSearchParam {

| 'collection_details'
| 'account_details'
;
| 'account_details';

@@ -160,0 +159,0 @@ /**

@@ -0,0 +0,0 @@ /* eslint-disable @typescript-eslint/no-unused-vars */

@@ -0,0 +0,0 @@ /* eslint-disable @typescript-eslint/no-unused-vars */

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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