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
17
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 0.4.6 to 0.4.7-alpha.1

6

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

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

aggregations?: Record<string, Aggregation>;
collection_titles?: Record<string, string>;
}

@@ -47,2 +48,7 @@ /**

/**
* A map from collection identifiers (those present on the hits/aggregations)
* to their titles.
*/
collectionTitles?: Record<string, string>;
/**
* The hit schema for this response

@@ -49,0 +55,0 @@ */

5

dist/src/responses/search-response-details.js

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

constructor(body, schema) {
var _a, _b, _c, _d, _e, _f, _g;
var _a, _b, _c, _d, _e, _f, _g, _h;
this.schema = schema;

@@ -19,4 +19,5 @@ const hitType = schema === null || schema === void 0 ? void 0 : schema.hit_type;

this.returnedCount = (_d = (_c = body === null || body === void 0 ? void 0 : body.hits) === null || _c === void 0 ? void 0 : _c.returned) !== null && _d !== void 0 ? _d : 0;
this.collectionTitles = (_e = body === null || body === void 0 ? void 0 : body.collection_titles) !== null && _e !== void 0 ? _e : {};
this.results =
(_g = (_f = (_e = body === null || body === void 0 ? void 0 : body.hits) === null || _e === void 0 ? void 0 : _e.hits) === null || _f === void 0 ? void 0 : _f.map((hit) => SearchResponseDetails.createResult(hitType, hit))) !== null && _g !== void 0 ? _g : [];
(_h = (_g = (_f = body === null || body === void 0 ? void 0 : body.hits) === null || _f === void 0 ? void 0 : _f.hits) === null || _g === void 0 ? void 0 : _g.map((hit) => SearchResponseDetails.createResult(hitType, hit))) !== null && _h !== void 0 ? _h : [];
// Construct Aggregation objects

@@ -23,0 +24,0 @@ if (body === null || body === void 0 ? void 0 : body.aggregations) {

2

package.json
{
"name": "@internetarchive/search-service",
"version": "0.4.6",
"version": "0.4.7-alpha.1",
"description": "A search service for the Internet Archive",

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

@@ -0,0 +0,0 @@ import { Memoize } from 'typescript-memoize';

@@ -14,2 +14,3 @@ /* eslint-disable @typescript-eslint/no-explicit-any */

aggregations?: Record<string, Aggregation>;
collection_titles?: Record<string, string>;
}

@@ -57,2 +58,8 @@

/**
* A map from collection identifiers (those present on the hits/aggregations)
* to their titles.
*/
collectionTitles?: Record<string, string>;
/**
* The hit schema for this response

@@ -68,2 +75,4 @@ */

this.returnedCount = body?.hits?.returned ?? 0;
this.collectionTitles = body?.collection_titles ?? {};
this.results =

@@ -70,0 +79,0 @@ body?.hits?.hits?.map((hit: SearchResult) =>

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

@@ -0,0 +0,0 @@ import { SearchResponse } from './responses/search-response';

@@ -0,0 +0,0 @@ import { expect } from '@open-wc/testing';

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

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