You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

@internetarchive/search-service

Package Overview
Dependencies
Maintainers
0
Versions
161
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

to
2.0.0

2

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

@@ -8,2 +8,4 @@ /**

account_details: UserAccountDetails;
/** Whether the target account either has privs or is internal to archive.org */
is_archivist: boolean;
/** User-editable metadata about the user account (title and description) */

@@ -10,0 +12,0 @@ user_item_metadata: UserItemMetadata;

4

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

@@ -120,2 +120,3 @@ import { expect } from '@open-wc/testing';

},
is_archivist: false,
policy_settings: {

@@ -408,5 +409,6 @@ is_archive_user: true,

it('provides access to account extra info', () => {
var _a, _b;
var _a, _b, _c;
const details = new SearchResponseDetails(accountUploadsResponseBody, itemSchema);
expect((_b = (_a = details.accountExtraInfo) === null || _a === void 0 ? void 0 : _a.user_item_metadata) === null || _b === void 0 ? void 0 : _b.description).to.equal('Foo bar baz');
expect((_c = details.accountExtraInfo) === null || _c === void 0 ? void 0 : _c.is_archivist).to.be.false;
});

@@ -413,0 +415,0 @@ it('account extra info is optional', () => {

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

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

@@ -8,2 +8,4 @@ /**

account_details: UserAccountDetails;
/** Whether the target account either has privs or is internal to archive.org */
is_archivist: boolean;
/** User-editable metadata about the user account (title and description) */

@@ -10,0 +12,0 @@ user_item_metadata: UserItemMetadata;

@@ -132,2 +132,3 @@ import { expect } from '@open-wc/testing';

},
is_archivist: false,
policy_settings: {

@@ -461,2 +462,3 @@ is_archive_user: true,

);
expect(details.accountExtraInfo?.is_archivist).to.be.false;
});

@@ -463,0 +465,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet