-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed version info so it is retrieved from package.json instead of co…
…nfig
- Loading branch information
Showing
5 changed files
with
60 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,31 +8,36 @@ | |
|
||
const path = require('path'); | ||
const cwd = process.cwd(); | ||
const host = 'http://localhost:3030'; | ||
|
||
module.exports = { | ||
|
||
/* This is the internal URI info ***********************/ | ||
|
||
// The internal scheme is *always* 'http', so | ||
// no need to configure it | ||
/* scheme: 'http', */ | ||
|
||
// The internal host is *always* 'localhost' so | ||
// no need to configure it | ||
/* host: 'localhost', */ | ||
|
||
// The port can change depending on the server | ||
port: 3030, | ||
|
||
loglevel: 'INFO', | ||
|
||
// API info that is used in the /docs pages by hapi-swaggered | ||
// API info that is used in the /docs pages by hapi-swaggered. | ||
// Note: this info is supplemented with info from package.json | ||
info: { | ||
title: 'Zenodeo API documentation for BLR', | ||
description: '`nodejs` interface to the Zenodo/BLR community collection', | ||
version: '2.6.0', | ||
termsOfService: '/tos', | ||
contact: { | ||
name: 'Puneet Kishor', | ||
url: 'https://punkish.org/About', | ||
email: '[email protected]' | ||
}, | ||
license: { | ||
license: { | ||
name: 'CC0 Public Domain Dedication', | ||
url: 'https://creativecommons.org/publicdomain/zero/1.0/legalcode' | ||
} | ||
}, | ||
|
||
'swaggered-scheme': [ 'http' ], | ||
|
||
port: 3030, | ||
loglevel: 'INFO', | ||
|
||
// all queries that take longer than the | ||
// following (in ms) are displayed in red | ||
|
@@ -46,8 +51,9 @@ module.exports = { | |
on: true | ||
}, | ||
|
||
// These are the external URIs | ||
uri: { | ||
zenodeo: `${host}/v1`, | ||
zenodeo: 'http://localhost:3030/v1', | ||
zenodo: 'https://zenodo.org/api' | ||
}, | ||
|
||
|
@@ -68,11 +74,10 @@ module.exports = { | |
}, | ||
|
||
uri: { | ||
zenodeo: `${host}/v2`, | ||
zenodeo: 'http://localhost:3030/v2', | ||
zenodo: 'https://zenodo.org/api' | ||
}, | ||
|
||
|
||
dataDict: path.join(cwd, 'dataDictionary', 'data-dictionary.js'), | ||
schema: path.join(cwd, 'api', 'v2', 'schema.js') | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,23 @@ | ||
{ | ||
"name": "zenodeo", | ||
"version": "2.6.0", | ||
"version": "2.6.1", | ||
"description": "`nodejs` interface to the Zenodo/BLR community collection", | ||
"main": "index.js", | ||
"repository": "https://github.com/punkish/zenodeo", | ||
"author": "Puneet Kishor", | ||
"author": { | ||
"name": "Puneet Kishor", | ||
"email": "[email protected]", | ||
"url": "https://punkish.org" | ||
}, | ||
"license": "CC0-1.0", | ||
"homepage": "https://zenodeo.punkish.org", | ||
"bugs": { | ||
"url": "https://github.com/punkish/zenodeo/issues" | ||
}, | ||
"engines": { | ||
"node": ">= 12.0.0", | ||
"npm": ">= 6.0.0" | ||
}, | ||
"dependencies": { | ||
"@hapi/boom": "^9.1.0", | ||
"@hapi/catbox": "^11.1.0", | ||
|