Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.nyc_output
coverage
dist
node_modules
.yo-rc.json
.yo-rc.json
10 changes: 10 additions & 0 deletions dist/LobidClient.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
import { LobidGndQueryOptions } from './LobidQueryOptions';
/**
* Prepare the query URI
* @param query Query string passed in by the user
* @param queryOptions Optional additional query options
*/
export declare function prepareSearchGnd(query: string, queryOptions?: LobidGndQueryOptions): string;
/**
*
* @param query Query string passed in by the user
* @param queryOptions Optional additional query options
*/
export declare function searchGnd(query: string, queryOptions?: LobidGndQueryOptions): Promise<any>;
export default searchGnd;
11 changes: 11 additions & 0 deletions dist/LobidClient.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/LobidClient.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion dist/LobidConstants.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/LobidConstants.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion dist/LobidQueryBuilder.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,13 @@ export declare function prepareQueryOptions(userQueryOptions: LobidGndQueryOptio
*/
export declare function buildFilters(userQueryOptions: LobidGndQueryOptions): string;
/**
* Build the pagination paraemter substring
* Build the pagination parameter substring
* @param userQueryOptions Query options passed in by the user
*/
export declare function buildPagination(userQueryOptions: LobidGndQueryOptions): string;
/**
* Build the format parameter
* @param userQueryOptions Query options passed in by the user
*/
export declare function buildFormat(userQueryOptions: LobidGndQueryOptions): string;
export default buildLobidGndQuery;
18 changes: 16 additions & 2 deletions dist/LobidQueryBuilder.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/LobidQueryBuilder.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/LobidQueryOptions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export interface LobidGndQueryOptions {
size?: number;
from?: number;
format?: string;
formatFields?: string[];
}
export declare const lobidDefaultGndQueryOptions: LobidGndQueryOptions;
export declare const allowedLobidGndFormats: string[];
Expand Down
1 change: 1 addition & 0 deletions dist/LobidQueryOptions.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/LobidQueryOptions.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 12 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,19 @@
"author": "Oliver Pohl, TELOTA",
"license": "Apache 2.0",
"repository": {
"type" : "git",
"url" : "https://github.com/telota/lobid-client"
"type": "git",
"url": "https://github.com/telota/lobid-client"
},
"keywords": ["gnd", "lobid", "typescript", "authority files", "Gemeinsame Normdatei"],
"keywords": [
"gnd",
"lobid",
"typescript",
"authority files",
"Gemeinsame Normdatei"
],
"scripts": {
"build": "tsc --declaration",
"prepare" : "npm run build",
"build": "npx tsc --declaration",
"lint": "tslint -c tslint.json src/**/*.ts --project tsconfig.json",
"test": "mocha --require ts-node/register test/**/*.spec.ts",
"coverage": "nyc mocha"
Expand All @@ -37,7 +44,7 @@
"typescript": "^3.1.6"
},
"dependencies": {
"axios": "^0.18.0",
"axios": "^0.27.2",
"lodash": "^4.17.11"
},
"nyc": {
Expand Down
2 changes: 1 addition & 1 deletion src/LobidConstants.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const lobidGndApi: string = 'http://lobid.org/gnd/search?q=';
export const lobidGndApi: string = 'https://lobid.org/gnd/search?q=';

export default {
lobidGndApi,
Expand Down
Loading