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
12
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.0.1-alpha.18 to 0.0.1-alpha.19

20

dist/src/models/metadata.d.ts

@@ -42,4 +42,24 @@ import { BooleanField } from './metadata-fields/field-types/boolean';

audio_sample_rate?: NumberField;
/**
* All of the collections that an Item is in, including
* all of the side-loaded collections from the ListAPI
* and SimpleListsAPI like `fav-*`
*
* @type {StringField}
* @memberof Metadata
*/
collection?: StringField;
/**
* The "natural" collections for an item before augmentation
* by side-loaded collections like ListsAPI and SimpleLists
*
* The `collection` field above includes things like all of
* the `fav-*` collections, whereas this is only the collections
* that have been directly added in the hierarchy.
*
* @type {StringField}
* @memberof Metadata
*/
collections_raw?: StringField;
/**
* The size of a collection in bytes

@@ -46,0 +66,0 @@ *

3

dist/src/models/metadata.js

@@ -39,2 +39,5 @@ /* eslint-disable @typescript-eslint/camelcase */

: undefined;
this.collections_raw = json.collections_raw
? new StringField(json.collections_raw)
: undefined;
this.collection_size = json.collection_size

@@ -41,0 +44,0 @@ ? new ByteField(json.collection_size)

2

package.json
{
"name": "@internetarchive/search-service",
"version": "0.0.1-alpha.18",
"version": "0.0.1-alpha.19",
"description": "A search service for the Internet Archive",

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

@@ -50,5 +50,26 @@ /* eslint-disable @typescript-eslint/camelcase */

/**
* All of the collections that an Item is in, including
* all of the side-loaded collections from the ListAPI
* and SimpleListsAPI like `fav-*`
*
* @type {StringField}
* @memberof Metadata
*/
collection?: StringField;
/**
* The "natural" collections for an item before augmentation
* by side-loaded collections like ListsAPI and SimpleLists
*
* The `collection` field above includes things like all of
* the `fav-*` collections, whereas this is only the collections
* that have been directly added in the hierarchy.
*
* @type {StringField}
* @memberof Metadata
*/
collections_raw?: StringField;
/**
* The size of a collection in bytes

@@ -198,2 +219,5 @@ *

: undefined;
this.collections_raw = json.collections_raw
? new StringField(json.collections_raw)
: undefined;
this.collection_size = json.collection_size

@@ -200,0 +224,0 @@ ? new ByteField(json.collection_size)

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

private getSuccessResult(
json: any
): Result<any, SearchServiceError> {
private getSuccessResult(json: any): Result<any, SearchServiceError> {
return new Result<any, SearchServiceError>(json, undefined);

@@ -100,0 +98,0 @@ }

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