Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@internetarchive/search-service

Package Overview
Dependencies
Maintainers
11
Versions
157
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.2 to 0.0.1-alpha.3

13

dist/src/models/file.d.ts

@@ -0,1 +1,2 @@

import { DurationField, NumberField } from './metadata-fields/field-types';
/**

@@ -16,5 +17,13 @@ * This represents an Internet Archive File

sha1: string;
original: string;
size: string;
original?: string;
size?: NumberField;
title?: string;
length?: DurationField;
height?: NumberField;
width?: NumberField;
track?: NumberField;
externalIdentifier?: string;
creator?: string;
album?: string;
constructor(json: any);
}
/* eslint-disable @typescript-eslint/no-explicit-any */
import { DurationField, NumberField } from './metadata-fields/field-types';
/**

@@ -19,5 +20,13 @@ * This represents an Internet Archive File

this.original = json.original;
this.size = json.size;
this.size = json.size ? new NumberField(json.size) : undefined;
this.title = json.title;
this.length = json.length ? new DurationField(json.length) : undefined;
this.height = json.height ? new NumberField(json.height) : undefined;
this.width = json.width ? new NumberField(json.width) : undefined;
this.track = json.track ? new NumberField(json.track) : undefined;
this.externalIdentifier = json['external-identifier'];
this.creator = json.creator;
this.album = json.album;
}
}
//# sourceMappingURL=file.js.map

2

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

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

/* eslint-disable @typescript-eslint/no-explicit-any */
import { DurationField, NumberField } from './metadata-fields/field-types';
/**

@@ -26,6 +28,22 @@ * This represents an Internet Archive File

original: string;
original?: string;
size: string;
size?: NumberField;
title?: string;
length?: DurationField;
height?: NumberField;
width?: NumberField;
track?: NumberField;
externalIdentifier?: string;
creator?: string;
album?: string;
constructor(json: any) {

@@ -41,4 +59,12 @@ this.name = json.name;

this.original = json.original;
this.size = json.size;
this.size = json.size ? new NumberField(json.size) : undefined;
this.title = json.title;
this.length = json.length ? new DurationField(json.length) : undefined;
this.height = json.height ? new NumberField(json.height) : undefined;
this.width = json.width ? new NumberField(json.width) : undefined;
this.track = json.track ? new NumberField(json.track) : undefined;
this.externalIdentifier = json['external-identifier'];
this.creator = json.creator;
this.album = json.album;
}
}

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