diff --git a/README.md b/README.md
index 007f539..12bd51e 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-# `zenodraft/action@0.13.3` PRERELEASE
+# `zenodraft/action@0.14.0` PRERELEASE
Automates drafting depositions on Zenodo or Zenodo Sandbox.
@@ -36,7 +36,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ZENODO_SANDBOX_ACCESS_TOKEN: ${{ secrets.ZENODO_SANDBOX_ACCESS_TOKEN }}
- uses: zenodraft/action@0.13.3
+ uses: zenodraft/action@0.14.0
with:
concept: 1234567
metadata: .zenodo.json
diff --git a/node_modules/.package-lock.json b/node_modules/.package-lock.json
index 1ccbd1e..16b9a5e 100644
--- a/node_modules/.package-lock.json
+++ b/node_modules/.package-lock.json
@@ -1,7 +1,7 @@
{
"name": "action",
- "version": "0.13.3",
- "lockfileVersion": 2,
+ "version": "0.14.0",
+ "lockfileVersion": 3,
"requires": true,
"packages": {
"node_modules/@actions/core": {
@@ -169,6 +169,37 @@
"integrity": "sha512-do4Z1r2OVhuI0ihJhQ8Hg+yPWnBYEBNuFNCrvtPKoYT1w81jD7pBXgGe86lYuuNirkDHb0Nxt+zt4O5GiFJfgA==",
"deprecated": "Use @octokit/webhooks-types, @octokit/webhooks-schemas, or @octokit/webhooks-examples instead. See https://github.com/octokit/webhooks/issues/447"
},
+ "node_modules/ajv": {
+ "version": "8.12.0",
+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz",
+ "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==",
+ "dependencies": {
+ "fast-deep-equal": "^3.1.1",
+ "json-schema-traverse": "^1.0.0",
+ "require-from-string": "^2.0.2",
+ "uri-js": "^4.2.2"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/epoberezkin"
+ }
+ },
+ "node_modules/ajv-formats": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz",
+ "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==",
+ "dependencies": {
+ "ajv": "^8.0.0"
+ },
+ "peerDependencies": {
+ "ajv": "^8.0.0"
+ },
+ "peerDependenciesMeta": {
+ "ajv": {
+ "optional": true
+ }
+ }
+ },
"node_modules/argparse": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
@@ -200,6 +231,11 @@
"node": ">=10"
}
},
+ "node_modules/fast-deep-equal": {
+ "version": "3.1.3",
+ "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
+ "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q=="
+ },
"node_modules/is-plain-object": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.0.0.tgz",
@@ -219,6 +255,11 @@
"js-yaml": "bin/js-yaml.js"
}
},
+ "node_modules/json-schema-traverse": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",
+ "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug=="
+ },
"node_modules/node-fetch": {
"version": "2.7.0",
"resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz",
@@ -265,6 +306,22 @@
"wrappy": "1"
}
},
+ "node_modules/punycode": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz",
+ "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/require-from-string": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz",
+ "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
"node_modules/tunnel": {
"version": "0.0.6",
"resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz",
@@ -301,6 +358,14 @@
"resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.0.tgz",
"integrity": "sha512-isyNax3wXoKaulPDZWHQqbmIx1k2tb9fb3GGDBRxCscfYV2Ch7WxPArBsFEG8s/safwXTT7H4QGhaIkTp9447w=="
},
+ "node_modules/uri-js": {
+ "version": "4.4.1",
+ "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz",
+ "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==",
+ "dependencies": {
+ "punycode": "^2.1.0"
+ }
+ },
"node_modules/uuid": {
"version": "8.3.2",
"resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz",
@@ -315,10 +380,12 @@
"integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8="
},
"node_modules/zenodraft": {
- "version": "0.13.3",
- "resolved": "https://registry.npmjs.org/zenodraft/-/zenodraft-0.13.3.tgz",
- "integrity": "sha512-HuqTf6HX3Kg7vWp0fLvICu7ITvahiZp+BKMqYgv1CBK+Q+YwJyycnHWxl8i6y8kcnD1HUVjMGOQ1LTpiSF8tLQ==",
+ "version": "0.14.0",
+ "resolved": "https://registry.npmjs.org/zenodraft/-/zenodraft-0.14.0.tgz",
+ "integrity": "sha512-tNjYcB1lbI/QtL66TSIAFwe3zHslWe9zLZbSDEW1gIa7ynRwOtcwgicArLGzu/PBzlyXWGCHEKcJrNYJupsfCw==",
"dependencies": {
+ "ajv": "^8.12.0",
+ "ajv-formats": "^2.1.1",
"commander": "^7.2.0",
"dotenv": "^10.0.0",
"node-fetch": "^2.6.7"
@@ -328,8 +395,8 @@
"zenodraft-autocomplete": "bin/autocomplete.js"
},
"engines": {
- "node": ">=12.16.0",
- "npm": ">=6.13.4"
+ "node": ">=20.0.0",
+ "npm": ">=10.0.0"
}
}
}
diff --git a/node_modules/zenodraft/README.cli-usage.md b/node_modules/zenodraft/README.cli-usage.md
deleted file mode 100644
index 1e98513..0000000
--- a/node_modules/zenodraft/README.cli-usage.md
+++ /dev/null
@@ -1,121 +0,0 @@
-# CLI Usage
-
-The usage examples below differentiate between an identifier for the concept `CONCEPT_ID` and
-the identifier for a depostion `VERSION_ID`.
-
-You can get these numbers from the Zenodo page of your deposition:
-
-
-
-All commands require an access token, [see the section in the main README](README.md#access-tokens).
-
-## Creating new draft depositions
-
-As the first version in a new concept:
-
-```shell
-zenodraft deposition create concept --sandbox
-zenodraft deposition create concept
-```
-
-As a new version in an existing concept:
-
-```shell
-zenodraft deposition create version --sandbox $CONCEPT_ID
-zenodraft deposition create version $CONCEPT_ID
-```
-
-These commands print the `VERSION_ID` of the created version if they finish successfully.
-
-## Deleting a draft version
-
-```shell
-zenodraft deposition delete --sandbox $VERSION_ID
-zenodraft deposition delete $VERSION_ID
-```
-
-## Publishing a draft version
-
-```shell
-zenodraft deposition publish --sandbox $VERSION_ID
-zenodraft deposition publish $VERSION_ID
-```
-
-## Getting the details of a version
-
-```shell
-zenodraft deposition show details --sandbox $VERSION_ID
-zenodraft deposition show details $VERSION_ID
-```
-
-## Getting the id of a draft version in a concept
-
-```shell
-zenodraft deposition show draft --sandbox $CONCEPT_ID
-zenodraft deposition show draft $CONCEPT_ID
-```
-
-Either returns the id of the draft version, or an empty string in case there is no draft version in the concept.
-
-Typical usage in automation is to capture the printed value like so:
-
-```shell
-VERSION_ID=$(zenodraft deposition show draft --sandbox $CONCEPT_ID)
-VERSION_ID=$(zenodraft deposition show draft $CONCEPT_ID)
-```
-
-## Getting the list of filenames of a version
-
-```shell
-zenodraft deposition show files --sandbox $VERSION_ID
-zenodraft deposition show files $VERSION_ID
-```
-
-## Getting the prereserved doi for a version:
-
-```shell
-zenodraft deposition show prereserved --sandbox $VERSION_ID
-zenodraft deposition show prereserved $VERSION_ID
-```
-
-Returns the prereserved doi of the version with id `$VERSION_ID`.
-
-Typical usage in automation is to capture the printed value like so:
-
-```shell
-PRERESERVED=$(zenodraft deposition show prereserved --sandbox $VERSION_ID)
-PRERESERVED=$(zenodraft deposition show prereserved $VERSION_ID)
-```
-
-## Adding a local file to an existing draft version:
-
-```shell
-zenodraft file add --sandbox $VERSION_ID file.txt
-zenodraft file add $VERSION_ID file.txt
-```
-
-## Removing a file from an existing draft version
-
-```shell
-zenodraft file delete --sandbox $VERSION_ID file.txt
-zenodraft file delete $VERSION_ID file.txt
-```
-
-## Clearing a version's metadata
-
-```shell
-zenodraft metadata clear --sandbox $VERSION_ID
-zenodraft metadata clear $VERSION_ID
-```
-
-## Updating a version with metadata from a local file
-
-```shell
-zenodraft metadata update --sandbox $VERSION_ID .zenodo.json
-zenodraft metadata update $VERSION_ID .zenodo.json
-```
-
-The file needs to be a valid JSON file in Zenodo metadata format. A JSONschema for the upload metadata file is available
-here: https://github.com/zenodraft/zenodo-upload-metadata-schema. Use https://jsonlint.com/ to check if your document is
-valid JSON, then use a JSONschema linter like https://jsonschemalint.com to check if the JSON is compliant with the
-aforementioned schema.
diff --git a/node_modules/zenodraft/README.dev.md b/node_modules/zenodraft/README.dev.md
index a81fb55..d7acbc7 100644
--- a/node_modules/zenodraft/README.dev.md
+++ b/node_modules/zenodraft/README.dev.md
@@ -3,7 +3,8 @@
## Install
```
-git clone https://github.com/zenodraft/zenodraft
+cd some-empty-dir
+git clone https://github.com/zenodraft/zenodraft .
git checkout -b
npm install
```
@@ -23,7 +24,6 @@ modules (`dist/**/*.mjs`):
npm run build
```
-
Package the contents from `dist/` into a distributable tarball:
```
@@ -72,7 +72,7 @@ npx zenodraft --help
### Using CommonJS `require`
-In a new directory, make a file e.g. `index.js` with the following contents:
+Make a file e.g. `index.js` with the following contents:
```javascript
// file: index.js
@@ -88,19 +88,20 @@ Should show something like:
```shell
{
- cli: [Function: cli],
- deposition_create_concept: [Function: deposition_create_concept],
- deposition_create_version: [Function: deposition_create_version],
- deposition_delete: [Function: deposition_delete],
- deposition_publish: [Function: deposition_publish],
- deposition_show_details: [Function: deposition_show_details],
- deposition_show_prereserved: [Function: deposition_show_prereserved],
- file_add: [Function: file_add],
- file_delete: [Function: file_delete],
- helpers_get_access_token_from_environment: [Function: helpers_get_access_token_from_environment],
- helpers_get_api: [Function: helpers_get_api],
- helpers_validate_in_concept_value: [Function: helpers_validate_in_concept_value],
- metadata_update: [Function: metadata_update]
+ deposition_create_concept: [Getter],
+ deposition_create_version: [Getter],
+ deposition_delete: [Getter],
+ deposition_publish: [Getter],
+ deposition_show_details: [Getter],
+ deposition_show_draft: [Getter],
+ deposition_show_files: [Getter],
+ deposition_show_prereserved: [Getter],
+ file_add: [Getter],
+ file_delete: [Getter],
+ helpers_get_access_token_from_environment: [Getter],
+ helpers_get_api: [Getter],
+ metadata_update: [Getter],
+ metadata_validate: [Getter]
}
```
@@ -108,7 +109,7 @@ Should show something like:
### Using ES6 `import`
-In a new directory, make a file e.g. `index.mjs` with the following contents (you may use a
+Make a file e.g. `index.mjs` with the following contents (you may use a
different filename but the extension needs to be `.mjs`):
```javascript
@@ -118,11 +119,7 @@ console.info(zenodraft);
```
```shell
-# node v14
node index.mjs
-
-# node v12
-node --experimental-modules index.mjs
```
Should show the same as listed above for `require`.
@@ -138,43 +135,37 @@ Order of publishing
### Preparation
-Before you begin, make sure that everything that needs to be part of the release has been
-pushed to GitHub and has been merged into the default branch `main`.
-
-### Publishing to Zenodo
-
-Manually triggering the `publishing.yml` workflow will send a snapshot of the repository to Zenodo.
-As part of the process, the workflow will also update the citation metadata with the prereserved DOI
-that Zenodo supplies, and commit it back to the repository.
-
-Once the workflow finishes, log in to Zenodo to publish the deposition there.
-
-### Publishing to GitHub
-
-After the `publishing` workflow from the previous step finishes, check that the DOI has been updated,
-then use GitHub's _Draft a new release_ button to make a release.
-
-### Publishing to NPM
+Before you begin, make sure that
+1. everything that needs to be part of the release has been
+pushed to GitHub and has been merged into the default branch `main`.
+1. the citation metadata (e.g. dates, `version`) has been updated
+1. the version indicators are consistent throughout the whole directory tree, e.g.
+ - `CITATION.cff`
+ - `Dockerfile`
+ - `package-lock.json`
+ - `package.json`
+ - `README.md`
+ - `tests/cli.test.ts`
+ - possibly other files
+
+Then, follow the steps below.
```shell
-# uninstall any globally installed versions of zenodraft
+# Uninstall any globally installed versions of zenodraft
npm uninstall -g zenodraft
-# check that it's gone, should return empty
+# Check that it's gone, should return empty
which zenodraft
-# delete any environment variables that store Zenodo / Zenodo Sandbox tokens
+# Delete any environment variables that store Zenodo / Zenodo Sandbox tokens
unset ZENODO_ACCESS_TOKEN
unset ZENODO_SANDBOX_ACCESS_TOKEN
-# log out of npm
-npm logout
-
-# make a temporary directory
-cd $(mktemp -d --tmpdir zenodraft-release-prep.XXXXXX)
+# Make a temporary directory, change into it
+cd $(mktemp -d --tmpdir zenodraft-preparation.XXXXXX)
-# clone the repo in the empty temporary directory
+# Clone the repo in the empty temporary directory
git clone https://github.com/zenodraft/zenodraft .
# Install dependencies
@@ -183,17 +174,48 @@ npm install
# Generate the JavaScript, package it up into a tarball
npm run all
-# Install zenodraft globally
-npm install -g zenodraft-*.tgz
+# Verify the tarball has the right set of files
+less zenodraft-*.tgz
+
+# Make a new temporary directory
+cd $(mktemp -d --tmpdir zenodraft-testing.XXXXXX)
+
+# Install zenodraft globally using the tarball we just made
+npm install -g ../zenodraft-preparation.XXXXXX/zenodraft-*.tgz
-# Open a new shell to get any new autocomplete related functionality
-bash
+# Source the autocomplete script
+TMPFILE=$(mktemp)
+zenodraft-autocomplete > $TMPFILE
+source $TMPFILE
```
-Test the functionality of the release candidate.
+1. Test whether the autocomplete functionality works correctly (see section [_Autocomplete_ from README.md](README.md#autocomplete)).
+1. Test whether CLI commands work as expected (see section [_CLI usage_ from README.md](README.md#cli-usage)).
+1. Test whether `zenodraft` can be used as a library (see section [_Library usage_ from README.md](README.md#library-usage)).
+
+### Publishing to Zenodo
+
+Manually triggering the `publishing.yml` workflow will send a snapshot of the repository to Zenodo.
+As part of the process, the workflow will also update the citation metadata with the prereserved DOI
+that Zenodo supplies, and commit it back to the repository.
+
+Once the workflow finishes, log in to Zenodo to publish the deposition there.
+
+### Publishing to GitHub
+
+After the `publishing` workflow from the previous step finishes, check that the DOI has been updated,
+then use GitHub's _Draft a new release_ button to make a release.
+
+### Publishing to NPM
```shell
-# choose your identity and log in to npm
+# Go back to the directory with the tarball
+cd ../zenodraft-preparation.XXXXXX/zenodraft-*.tgz
+
+# Log out of npm
+npm logout
+
+# Choose your identity and log in to npm
npm login
# FINAL STEP, THERE IS NO UNDO: publish the tarball to npmjs.com
diff --git a/node_modules/zenodraft/README.library-usage.md b/node_modules/zenodraft/README.library-usage.md
deleted file mode 100644
index 8efb23b..0000000
--- a/node_modules/zenodraft/README.library-usage.md
+++ /dev/null
@@ -1,60 +0,0 @@
-# `zenodraft` as a library
-
-## Using CommonJS `require`
-
-Make a file e.g. `index.js` with the following contents:
-
-```javascript
-// file: index.js
-const zenodraft = require('zenodraft');
-console.info(zenodraft);
-```
-
-Running
-
-```shell
-$ node index.js
-```
-
-should output
-
-```shell
-{
- cli: [Getter],
- deposition_create_concept: [Getter],
- deposition_create_version: [Getter],
- deposition_delete: [Getter],
- deposition_publish: [Getter],
- deposition_show_details: [Getter],
- deposition_show_draft: [Getter],
- deposition_show_files: [Getter],
- deposition_show_prereserved: [Getter],
- file_add: [Getter],
- file_delete: [Getter],
- helpers_get_access_token_from_environment: [Getter],
- helpers_get_api: [Getter],
- metadata_update: [Getter]
-}
-```
-
-## Using ES6 `import`
-
-Make a file e.g. `index.mjs` with the following contents (you may use a different filename but the extension needs to be `.mjs`):
-
-```javascript
-// file: index.mjs
-import zenodraft from 'zenodraft';
-console.info(zenodraft);
-```
-
-Running
-
-```shell
-# node v14
-node index.mjs
-
-# node v12
-node --experimental-modules index.mjs
-```
-
-should output the same as listed above for `require`.
diff --git a/node_modules/zenodraft/README.md b/node_modules/zenodraft/README.md
index b637642..28acb9a 100644
--- a/node_modules/zenodraft/README.md
+++ b/node_modules/zenodraft/README.md
@@ -4,10 +4,14 @@
+
-
+
+
+
+
You are welcome to leave feedback at https://github.com/zenodraft/zenodraft/issues.
@@ -15,20 +19,21 @@ You are welcome to leave feedback at https://github.com/zenodraft/zenodraft/issu
-## CLI to manage depositions on Zenodo
+# CLI to manage depositions on Zenodo
-### Features
+## Features
Use the command line to
1. create depositions on Zenodo
1. add files to depositions on Zenodo
+1. validate Zenodo metadata from a local file
1. update metadata to depositions on Zenodo
1. finalize/publish depositions on Zenodo
-Everything also works on Zenodo Sandbox via the `--sandbox` flag. You'll need access tokens for either platform (see below).
+Everything also works on Zenodo Sandbox via the `--sandbox` flag. You'll need an access token for the platform you choose (see [below](#access-tokens)).
-### Usage example
+## Usage example
```shell
# make sure you have the access token available as the
@@ -51,6 +56,10 @@ echo -e '{
"title": "My deposition"
}' > .zenodo.json
+# check that the metadata is valid (no output means you're
+# good to go)
+zenodraft metadata validate .zenodo.json
+
# update the metadata of the draft version
zenodraft metadata update 123456 .zenodo.json
@@ -67,7 +76,7 @@ Here is the result when viewed on Zenodo:
-### CLI overview
+## CLI overview
```shell
zenodraft deposition create concept [--sandbox]
@@ -86,9 +95,9 @@ zenodraft metadata update [--sandbox]
Additionally, use `--version` to show zenodraft's version and use `--help` to show the help on any command.
-For a complete overview of the command line interface, see [here](README.cli-usage.md).
+For a complete overview of the command line interface, see section _CLI Usage_ [below](#cli-usage).
-### Access tokens
+## Access tokens
To use `zenodraft`, a personal access token is required, one for each platform you plan on using.
`zenodraft` looks for the access token first in the environment variables named
@@ -102,10 +111,12 @@ You can get your access tokens at
- https://sandbox.zenodo.org/account/settings/applications/ (Zenodo Sandbox; for testing and development)
- https://zenodo.org/account/settings/applications/ (Zenodo; for production)
-### Prerequisites:
+## Install
-- node v14 (other versions may work)
-- npm v7 (other versions may work)
+Prerequisites:
+
+- node >= v20
+- npm >= v10
### System install (recommended)
@@ -124,11 +135,13 @@ zenodraft --help
# etc
```
+The main advantage of installing system-wide is that you get Bash autocomplete, see section _Autocomplete_ [below](#autocomplete).
+
### Project directory install
Install locally without `-g` flag and use `zenodraft` CLI via the
[`npx`](https://nodejs.dev/learn/the-npx-nodejs-package-runner) command. Note that this will create a `node_modules/`
-directory, and that autocomplete only works when `zenodraft` is installed globally:
+directory, and that you don't get Bash autocomplete this way.
```shell
# local install
@@ -155,12 +168,12 @@ npx zenodraft deposition create concept --sandbox
# etc
```
-### Docker
+### Docker
Building the docker container:
```shell
-docker build -t zenodraft https://raw.githubusercontent.com/zenodraft/zenodraft/0.13.3/Dockerfile
+docker build -t zenodraft https://raw.githubusercontent.com/zenodraft/zenodraft/0.14.0/Dockerfile
```
Running the docker container:
@@ -179,7 +192,7 @@ docker run --rm \
# etc
```
-### Autocomplete
+## Autocomplete
An autocomplete script is bundled with the package as `assets/autocomplete.sh`. You can print it to the terminal as follows:
@@ -206,3 +219,182 @@ zenodraft-autocomplete > $TMPFILE
source $TMPFILE
```
You can make the change permanent by copying those 4 lines to the bottom of your `~/.bashrc`.
+
+## CLI Usage
+
+The usage examples below differentiate between an identifier for the concept `CONCEPT_ID` and
+the identifier for a depostion `VERSION_ID`.
+
+You can get these numbers from the Zenodo page of your deposition:
+
+
+
+### Creating new draft depositions
+
+As the first version in a new concept:
+
+```shell
+zenodraft deposition create concept --sandbox
+zenodraft deposition create concept
+```
+
+As a new version in an existing concept:
+
+```shell
+zenodraft deposition create version --sandbox $CONCEPT_ID
+zenodraft deposition create version $CONCEPT_ID
+```
+
+These commands print the `VERSION_ID` of the created version if they finish successfully.
+
+### Deleting a draft version
+
+```shell
+zenodraft deposition delete --sandbox $VERSION_ID
+zenodraft deposition delete $VERSION_ID
+```
+
+### Publishing a draft version
+
+```shell
+zenodraft deposition publish --sandbox $VERSION_ID
+zenodraft deposition publish $VERSION_ID
+```
+
+### Getting the details of a version
+
+```shell
+zenodraft deposition show details --sandbox $VERSION_ID
+zenodraft deposition show details $VERSION_ID
+```
+
+### Getting the id of a draft version in a concept
+
+```shell
+zenodraft deposition show draft --sandbox $CONCEPT_ID
+zenodraft deposition show draft $CONCEPT_ID
+```
+
+Either returns the id of the draft version, or an empty string in case there is no draft version in the concept.
+
+Typical usage in automation is to capture the printed value like so:
+
+```shell
+VERSION_ID=$(zenodraft deposition show draft --sandbox $CONCEPT_ID)
+VERSION_ID=$(zenodraft deposition show draft $CONCEPT_ID)
+```
+
+### Getting the list of filenames of a version
+
+```shell
+zenodraft deposition show files --sandbox $VERSION_ID
+zenodraft deposition show files $VERSION_ID
+```
+
+### Getting the prereserved doi for a version:
+
+```shell
+zenodraft deposition show prereserved --sandbox $VERSION_ID
+zenodraft deposition show prereserved $VERSION_ID
+```
+
+Returns the prereserved doi of the version with id `$VERSION_ID`.
+
+Typical usage in automation is to capture the printed value like so:
+
+```shell
+PRERESERVED=$(zenodraft deposition show prereserved --sandbox $VERSION_ID)
+PRERESERVED=$(zenodraft deposition show prereserved $VERSION_ID)
+```
+
+### Adding a local file to an existing draft version:
+
+```shell
+zenodraft file add --sandbox $VERSION_ID file.txt
+zenodraft file add $VERSION_ID file.txt
+```
+
+### Removing a file from an existing draft version
+
+```shell
+zenodraft file delete --sandbox $VERSION_ID file.txt
+zenodraft file delete $VERSION_ID file.txt
+```
+
+### Clearing a version's metadata
+
+```shell
+zenodraft metadata clear --sandbox $VERSION_ID
+zenodraft metadata clear $VERSION_ID
+```
+
+### Updating a version with metadata from a local file
+
+```shell
+zenodraft metadata update --sandbox $VERSION_ID .zenodo.json
+zenodraft metadata update $VERSION_ID .zenodo.json
+```
+
+### Validating the metadata from a local file
+
+```shell
+zenodraft metadata validate .zenodo.json
+```
+
+## Library usage
+
+### Using CommonJS `require`
+
+Make a file e.g. `index.js` with the following contents:
+
+```javascript
+// file: index.js
+const zenodraft = require('zenodraft');
+console.info(zenodraft);
+```
+
+Running
+
+```shell
+$ node index.js
+```
+
+should output
+
+```shell
+{
+ cli: [Getter],
+ deposition_create_concept: [Getter],
+ deposition_create_version: [Getter],
+ deposition_delete: [Getter],
+ deposition_publish: [Getter],
+ deposition_show_details: [Getter],
+ deposition_show_draft: [Getter],
+ deposition_show_files: [Getter],
+ deposition_show_prereserved: [Getter],
+ file_add: [Getter],
+ file_delete: [Getter],
+ helpers_get_access_token_from_environment: [Getter],
+ helpers_get_api: [Getter],
+ metadata_update: [Getter]
+ metadata_validate: [Getter]
+}
+```
+
+### Using ES6 `import`
+
+Make a file e.g. `index.mjs` with the following contents (you may use a different filename but the extension needs to be `.mjs`):
+
+```javascript
+// file: index.mjs
+import zenodraft from 'zenodraft';
+console.info(zenodraft);
+```
+
+Running
+
+```shell
+node index.mjs
+```
+
+should output the same as listed above for `require`.
diff --git a/node_modules/zenodraft/assets/.zenodo.json.empty b/node_modules/zenodraft/assets/.zenodo.json.empty
deleted file mode 100644
index 99db64b..0000000
--- a/node_modules/zenodraft/assets/.zenodo.json.empty
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "access_right": "open",
- "upload_type": "other"
-}
diff --git a/node_modules/zenodraft/assets/autocomplete.sh b/node_modules/zenodraft/assets/autocomplete.sh
index d9d951e..ae87de0 100644
--- a/node_modules/zenodraft/assets/autocomplete.sh
+++ b/node_modules/zenodraft/assets/autocomplete.sh
@@ -74,7 +74,7 @@ _zenodraft_completions()
COMPREPLY=($(compgen -X "*($used_options)" -W "--help --sandbox --verbose "))
;;
${COMP_WORDS[0]}/metadata/)
- COMPREPLY=($(compgen -X "*($used_options)" -W "--help clear update" -- ${cur}))
+ COMPREPLY=($(compgen -X "*($used_options)" -W "--help clear update validate" -- ${cur}))
;;
${COMP_WORDS[0]}/metadata/clear/)
COMPREPLY=($(compgen -X "*($used_options)" -W "--help --sandbox --verbose " -- ${cur}))
@@ -85,6 +85,9 @@ _zenodraft_completions()
${COMP_WORDS[0]}/metadata/update/${version_id}/)
COMPREPLY=($(compgen -o filenames -A file -- ${cur}))
;;
+ ${COMP_WORDS[0]}/metadata/validate/)
+ COMPREPLY=($(compgen -X "*($used_options)" -W "--help --verbose" -o filenames -A file -- ${cur}))
+ ;;
*)
COMPREPLY=()
;;
diff --git a/node_modules/zenodraft/assets/schema.json b/node_modules/zenodraft/assets/schema.json
new file mode 100644
index 0000000..9c74a5e
--- /dev/null
+++ b/node_modules/zenodraft/assets/schema.json
@@ -0,0 +1,1072 @@
+{
+ "$id": "https://zenodraft.github.io/metadata-schema-zenodo/0.3.0/schema.json",
+ "$schema": "http://json-schema.org/draft-07/schema",
+ "additionalProperties": false,
+ "allOf": [
+ {
+ "if": {
+ "properties": {
+ "access_right": {
+ "const": "embargoed"
+ }
+ },
+ "required": [
+ "access_right"
+ ]
+ },
+ "then": {
+ "required": [
+ "embargo_date",
+ "license"
+ ]
+ }
+ }
+ ],
+ "definitions": {
+ "license-enum": {
+ "enum": [
+ "0BSD",
+ "AAL",
+ "Abstyles",
+ "Adobe-2006",
+ "Adobe-Glyph",
+ "ADSL",
+ "AFL-1.1",
+ "AFL-1.2",
+ "AFL-2.0",
+ "AFL-2.1",
+ "AFL-3.0",
+ "Afmparse",
+ "Against-DRM",
+ "AGPL-1.0",
+ "AGPL-1.0-only",
+ "AGPL-1.0-or-later",
+ "AGPL-3.0",
+ "AGPL-3.0-only",
+ "AGPL-3.0-or-later",
+ "Aladdin",
+ "AMDPLPA",
+ "AML",
+ "AMPAS",
+ "ANTLR-PD",
+ "ANTLR-PD-fallback",
+ "Apache-1.0",
+ "Apache-1.1",
+ "Apache-2.0",
+ "APAFML",
+ "APL-1.0",
+ "App-s2p",
+ "APSL-1.0",
+ "APSL-1.1",
+ "APSL-1.2",
+ "APSL-2.0",
+ "Arphic-1999",
+ "Artistic-1.0",
+ "Artistic-1.0-cl8",
+ "Artistic-1.0-Perl",
+ "Artistic-2.0",
+ "Baekmuk",
+ "Bahyph",
+ "Barr",
+ "Beerware",
+ "BitTorrent-1.0",
+ "BitTorrent-1.1",
+ "blessing",
+ "BlueOak-1.0.0",
+ "Borceux",
+ "BSD-1-Clause",
+ "BSD-2-Clause",
+ "BSD-2-Clause-FreeBSD",
+ "BSD-2-Clause-NetBSD",
+ "BSD-2-Clause-Patent",
+ "BSD-2-Clause-Views",
+ "BSD-3-Clause",
+ "BSD-3-Clause-Attribution",
+ "BSD-3-Clause-Clear",
+ "BSD-3-Clause-LBNL",
+ "BSD-3-Clause-Modification",
+ "BSD-3-Clause-No-Military-License",
+ "BSD-3-Clause-No-Nuclear-License",
+ "BSD-3-Clause-No-Nuclear-License-2014",
+ "BSD-3-Clause-No-Nuclear-Warranty",
+ "BSD-3-Clause-Open-MPI",
+ "BSD-4-Clause",
+ "BSD-4-Clause-Shortened",
+ "BSD-4-Clause-UC",
+ "BSD-Protection",
+ "BSD-Source-Code",
+ "BSL-1.0",
+ "BUSL-1.1",
+ "bzip2-1.0.5",
+ "bzip2-1.0.6",
+ "CAL-1.0",
+ "CAL-1.0-Combined-Work-Exception",
+ "Caldera",
+ "CATOSL-1.1",
+ "CC0-1.0",
+ "CC-BY-1.0",
+ "CC-BY-2.0",
+ "CC-BY-2.5",
+ "CC-BY-2.5-AU",
+ "CC-BY-3.0",
+ "CC-BY-3.0-AT",
+ "CC-BY-3.0-DE",
+ "CC-BY-3.0-NL",
+ "CC-BY-3.0-US",
+ "CC-BY-4.0",
+ "CC-BY-NC-1.0",
+ "CC-BY-NC-2.0",
+ "CC-BY-NC-2.5",
+ "CC-BY-NC-3.0",
+ "CC-BY-NC-3.0-DE",
+ "CC-BY-NC-4.0",
+ "CC-BY-NC-ND-1.0",
+ "CC-BY-NC-ND-2.0",
+ "CC-BY-NC-ND-2.5",
+ "CC-BY-NC-ND-3.0",
+ "CC-BY-NC-ND-3.0-DE",
+ "CC-BY-NC-ND-3.0-IGO",
+ "CC-BY-NC-ND-4.0",
+ "CC-BY-NC-SA-1.0",
+ "CC-BY-NC-SA-2.0",
+ "CC-BY-NC-SA-2.0-FR",
+ "CC-BY-NC-SA-2.0-UK",
+ "CC-BY-NC-SA-2.5",
+ "CC-BY-NC-SA-3.0",
+ "CC-BY-NC-SA-3.0-DE",
+ "CC-BY-NC-SA-3.0-IGO",
+ "CC-BY-NC-SA-4.0",
+ "CC-BY-ND-1.0",
+ "CC-BY-ND-2.0",
+ "CC-BY-ND-2.5",
+ "CC-BY-ND-3.0",
+ "CC-BY-ND-3.0-DE",
+ "CC-BY-ND-4.0",
+ "CC-BY-SA-1.0",
+ "CC-BY-SA-2.0",
+ "CC-BY-SA-2.0-UK",
+ "CC-BY-SA-2.1-JP",
+ "CC-BY-SA-2.5",
+ "CC-BY-SA-3.0",
+ "CC-BY-SA-3.0-AT",
+ "CC-BY-SA-3.0-DE",
+ "CC-BY-SA-4.0",
+ "CC-PDDC",
+ "CDDL-1.0",
+ "CDDL-1.1",
+ "CDL-1.0",
+ "CDLA-Permissive-1.0",
+ "CDLA-Permissive-2.0",
+ "CDLA-Sharing-1.0",
+ "CECILL-1.0",
+ "CECILL-1.1",
+ "CECILL-2.0",
+ "CECILL-2.1",
+ "CECILL-B",
+ "CECILL-C",
+ "CERN-OHL-1.1",
+ "CERN-OHL-1.2",
+ "CERN-OHL-P-2.0",
+ "CERN-OHL-S-2.0",
+ "CERN-OHL-W-2.0",
+ "ClArtistic",
+ "CNRI-Jython",
+ "CNRI-Python",
+ "CNRI-Python-GPL-Compatible",
+ "COIL-1.0",
+ "Community-Spec-1.0",
+ "Condor-1.1",
+ "copyleft-next-0.3.0",
+ "copyleft-next-0.3.1",
+ "CPAL-1.0",
+ "CPL-1.0",
+ "CPOL-1.02",
+ "Crossword",
+ "CrystalStacker",
+ "CUA-OPL-1.0",
+ "Cube",
+ "C-UDA-1.0",
+ "curl",
+ "D-FSL-1.0",
+ "diffmark",
+ "DL-DE-BY-2.0",
+ "dli-model-use",
+ "DOC",
+ "Dotseqn",
+ "DRL-1.0",
+ "DSDP",
+ "DSL",
+ "dvipdfm",
+ "ECL-1.0",
+ "ECL-2.0",
+ "eCos-2.0",
+ "EFL-1.0",
+ "EFL-2.0",
+ "eGenix",
+ "Elastic-2.0",
+ "Entessa",
+ "EPICS",
+ "EPL-1.0",
+ "EPL-2.0",
+ "ErlPL-1.1",
+ "etalab-2.0",
+ "EUDatagrid",
+ "EUPL-1.0",
+ "EUPL-1.1",
+ "EUPL-1.2",
+ "Eurosym",
+ "Fair",
+ "FAL-1.3",
+ "FDK-AAC",
+ "Frameworx-1.0",
+ "FreeBSD-DOC",
+ "FreeImage",
+ "FSFAP",
+ "FSFUL",
+ "FSFULLR",
+ "FTL",
+ "GD",
+ "geogratis",
+ "GFDL-1.1",
+ "GFDL-1.1-invariants-only",
+ "GFDL-1.1-invariants-or-later",
+ "GFDL-1.1-no-invariants-only",
+ "GFDL-1.1-no-invariants-or-later",
+ "GFDL-1.1-only",
+ "GFDL-1.1-or-later",
+ "GFDL-1.2",
+ "GFDL-1.2-invariants-only",
+ "GFDL-1.2-invariants-or-later",
+ "GFDL-1.2-no-invariants-only",
+ "GFDL-1.2-no-invariants-or-later",
+ "GFDL-1.2-only",
+ "GFDL-1.2-or-later",
+ "GFDL-1.3",
+ "GFDL-1.3-invariants-only",
+ "GFDL-1.3-invariants-or-later",
+ "GFDL-1.3-no-cover-texts-no-invariant-sections",
+ "GFDL-1.3-no-invariants-only",
+ "GFDL-1.3-no-invariants-or-later",
+ "GFDL-1.3-only",
+ "GFDL-1.3-or-later",
+ "Giftware",
+ "GL2PS",
+ "Glide",
+ "Glulxe",
+ "GLWTPL",
+ "gnuplot",
+ "GPL-1.0",
+ "GPL-1.0+",
+ "GPL-1.0-only",
+ "GPL-1.0-or-later",
+ "GPL-2.0",
+ "GPL-2.0+",
+ "GPL-2.0-only",
+ "GPL-2.0-or-later",
+ "GPL-2.0-with-autoconf-exception",
+ "GPL-2.0-with-bison-exception",
+ "GPL-2.0-with-classpath-exception",
+ "GPL-2.0-with-font-exception",
+ "GPL-2.0-with-GCC-exception",
+ "GPL-3.0",
+ "GPL-3.0+",
+ "GPL-3.0-only",
+ "GPL-3.0-or-later",
+ "GPL-3.0-with-autoconf-exception",
+ "GPL-3.0-with-GCC-exception",
+ "gSOAP-1.3b",
+ "HaskellReport",
+ "hesa-withrights",
+ "Hippocratic-2.1",
+ "HPND",
+ "HPND-sell-variant",
+ "HTMLTIDY",
+ "IBM-pibs",
+ "ICU",
+ "IJG",
+ "ImageMagick",
+ "iMatix",
+ "Imlib2",
+ "Info-ZIP",
+ "Intel",
+ "Intel-ACPI",
+ "Interbase-1.0",
+ "IPA",
+ "IPL-1.0",
+ "ISC",
+ "Jam",
+ "JasPer-2.0",
+ "JPNIC",
+ "JSON",
+ "KiCad-libraries-exception",
+ "LAL-1.2",
+ "LAL-1.3",
+ "Latex2e",
+ "Leptonica",
+ "LGPL-2.0",
+ "LGPL-2.0+",
+ "LGPL-2.0-only",
+ "LGPL-2.0-or-later",
+ "LGPL-2.1",
+ "LGPL-2.1+",
+ "LGPL-2.1-only",
+ "LGPL-2.1-or-later",
+ "LGPL-3.0",
+ "LGPL-3.0+",
+ "LGPL-3.0-only",
+ "LGPL-3.0-or-later",
+ "LGPLLR",
+ "Libpng",
+ "libpng-2.0",
+ "libselinux-1.0",
+ "libtiff",
+ "LiLiQ-P-1.1",
+ "LiLiQ-R-1.1",
+ "LiLiQ-Rplus-1.1",
+ "Linux-man-pages-copyleft",
+ "Linux-OpenIB",
+ "localauth-withrights",
+ "LO-FR-2.0",
+ "LPL-1.0",
+ "LPL-1.02",
+ "LPPL-1.0",
+ "LPPL-1.1",
+ "LPPL-1.2",
+ "LPPL-1.3a",
+ "LPPL-1.3c",
+ "MakeIndex",
+ "met-office-cp",
+ "MirOS",
+ "MIT",
+ "MIT-0",
+ "MIT-advertising",
+ "MIT-CMU",
+ "MIT-enna",
+ "MIT-feh",
+ "MIT-Modern-Variant",
+ "MITNFA",
+ "MIT-open-group",
+ "mitre",
+ "Motosoto",
+ "mpich2",
+ "MPL-1.0",
+ "MPL-1.1",
+ "MPL-2.0",
+ "MPL-2.0-no-copyleft-exception",
+ "mplus",
+ "MS-PL",
+ "MS-RL",
+ "MTLL",
+ "MulanPSL-1.0",
+ "MulanPSL-2.0",
+ "Multics",
+ "Mup",
+ "NAIST-2003",
+ "NASA-1.3",
+ "Naumen",
+ "NBPL-1.0",
+ "NCGL-UK-2.0",
+ "NCSA",
+ "NetCDF",
+ "Net-SNMP",
+ "Newsletr",
+ "NGPL",
+ "NIST-PD",
+ "NIST-PD-fallback",
+ "NLOD-1.0",
+ "NLOD-2.0",
+ "NLPL",
+ "Nokia",
+ "NOSL",
+ "notspecified",
+ "Noweb",
+ "NPL-1.0",
+ "NPL-1.1",
+ "NPOSL-3.0",
+ "NRL",
+ "NTP",
+ "NTP-0",
+ "Nunit",
+ "OCCT-PL",
+ "OCLC-2.0",
+ "ODbL-1.0",
+ "ODC-By-1.0",
+ "ODC-BY-1.0",
+ "OFL-1.0",
+ "OFL-1.0-no-RFN",
+ "OFL-1.0-RFN",
+ "OFL-1.1",
+ "OFL-1.1-no-RFN",
+ "OFL-1.1-RFN",
+ "OGC-1.0",
+ "OGDL-Taiwan-1.0",
+ "OGL-Canada-2.0",
+ "OGL-UK-1.0",
+ "OGL-UK-2.0",
+ "OGL-UK-3.0",
+ "OGTSL",
+ "OLDAP-1.1",
+ "OLDAP-1.2",
+ "OLDAP-1.3",
+ "OLDAP-1.4",
+ "OLDAP-2.0",
+ "OLDAP-2.0.1",
+ "OLDAP-2.1",
+ "OLDAP-2.2",
+ "OLDAP-2.2.1",
+ "OLDAP-2.2.2",
+ "OLDAP-2.3",
+ "OLDAP-2.4",
+ "OLDAP-2.5",
+ "OLDAP-2.6",
+ "OLDAP-2.7",
+ "OLDAP-2.8",
+ "OML",
+ "OpenSSL",
+ "OPL-1.0",
+ "OPUBL-1.0",
+ "OSET-PL-2.1",
+ "OSL-1.0",
+ "OSL-1.1",
+ "OSL-2.0",
+ "OSL-2.1",
+ "OSL-3.0",
+ "other-at",
+ "other-closed",
+ "other-nc",
+ "other-open",
+ "other-pd",
+ "O-UDA-1.0",
+ "Parity-6.0.0",
+ "Parity-7.0.0",
+ "PDDL-1.0",
+ "PHP-3.0",
+ "PHP-3.01",
+ "Plexus",
+ "PolyForm-Noncommercial-1.0.0",
+ "PolyForm-Small-Business-1.0.0",
+ "PostgreSQL",
+ "PSF-2.0",
+ "psfrag",
+ "psutils",
+ "Python-2.0",
+ "Qhull",
+ "QPL-1.0",
+ "Rdisc",
+ "RHeCos-1.1",
+ "RPL-1.1",
+ "RPL-1.5",
+ "RPSL-1.0",
+ "RSA-MD",
+ "RSCPL",
+ "Ruby",
+ "Saxpath",
+ "SAX-PD",
+ "SCEA",
+ "SchemeReport",
+ "Sendmail",
+ "Sendmail-8.23",
+ "SGI-B-1.0",
+ "SGI-B-1.1",
+ "SGI-B-2.0",
+ "SHL-0.5",
+ "SHL-0.51",
+ "SimPL-2.0",
+ "SISSL",
+ "SISSL-1.2",
+ "Sleepycat",
+ "SMLNJ",
+ "SMPPL",
+ "SNIA",
+ "Spencer-86",
+ "Spencer-94",
+ "Spencer-99",
+ "SPL-1.0",
+ "SSH-OpenSSH",
+ "SSH-short",
+ "SSPL-1.0",
+ "StandardML-NJ",
+ "SugarCRM-1.1.3",
+ "SWL",
+ "Talis",
+ "TAPR-OHL-1.0",
+ "TCL",
+ "TCP-wrappers",
+ "TMate",
+ "TORQUE-1.1",
+ "TOSL",
+ "TU-Berlin-1.0",
+ "TU-Berlin-2.0",
+ "UCL-1.0",
+ "ukclickusepsi",
+ "ukcrown",
+ "ukcrown-withrights",
+ "ukpsi",
+ "Unicode-DFS-2015",
+ "Unicode-DFS-2016",
+ "Unicode-TOU",
+ "Unlicense",
+ "UPL-1.0",
+ "Vim",
+ "VOSTROM",
+ "VSL-1.0",
+ "W3C",
+ "W3C-19980720",
+ "W3C-20150513",
+ "Watcom-1.0",
+ "Wsuipa",
+ "WTFPL",
+ "wxWindows",
+ "WXwindows",
+ "X11",
+ "X11-distribute-modifications-variant",
+ "Xerox",
+ "XFree86-1.1",
+ "xinetd",
+ "Xnet",
+ "xpp",
+ "XSkat",
+ "YPL-1.0",
+ "YPL-1.1",
+ "Zed",
+ "Zend-2.0",
+ "Zimbra-1.3",
+ "Zimbra-1.4",
+ "Zlib",
+ "zlib-acknowledgement",
+ "ZPL-1.1",
+ "ZPL-2.0",
+ "ZPL-2.1"
+ ],
+ "type": "string"
+ }
+ },
+ "properties": {
+ "access_conditions": {
+ "type": "string"
+ },
+ "access_right": {
+ "description": "Open access uploads have considerably higher visibility on Zenodo.",
+ "enum": [
+ "closed",
+ "embargoed",
+ "open",
+ "restricted"
+ ],
+ "type": "string"
+ },
+ "communities": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "identifier": {
+ "type": "string"
+ }
+ },
+ "required": [],
+ "type": "object"
+ },
+ "minItems": 0,
+ "type": "array",
+ "uniqueItems": true
+ },
+ "conference_acronym": {
+ "type": "string"
+ },
+ "conference_dates": {
+ "type": "string"
+ },
+ "conference_place": {
+ "type": "string"
+ },
+ "conference_session": {
+ "type": "string"
+ },
+ "conference_session_part": {
+ "type": "string"
+ },
+ "conference_title": {
+ "type": "string"
+ },
+ "conference_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "contributors": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "affiliation": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "name": {
+ "description": "Family name, given names",
+ "minLength": 1,
+ "type": "string"
+ },
+ "orcid": {
+ "description": "ORCID identifier",
+ "examples": [
+ "0000-0002-1825-0097"
+ ],
+ "pattern": "[0-9]{4}-[0-9]{4}-[0-9]{4}-[0-9]{3}[0-9X]{1}",
+ "type": "string"
+ },
+ "type": {
+ "enum": [
+ "ContactPerson",
+ "DataCollector",
+ "DataCurator",
+ "DataManager",
+ "Distributor",
+ "Editor",
+ "HostingInstitution",
+ "Other",
+ "Producer",
+ "ProjectLeader",
+ "ProjectManager",
+ "ProjectMember",
+ "RegistrationAgency",
+ "RegistrationAuthority",
+ "RelatedPerson",
+ "Researcher",
+ "ResearchGroup",
+ "RightsHolder",
+ "Sponsor",
+ "Supervisor",
+ "WorkPackageLeader"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "type"
+ ],
+ "type": "object"
+ },
+ "minItems": 0,
+ "type": "array",
+ "uniqueItems": true
+ },
+ "creators": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "affiliation": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "name": {
+ "description": "Family name, given names",
+ "minLength": 1,
+ "type": "string"
+ },
+ "orcid": {
+ "description": "ORCID identifier",
+ "examples": [
+ "0000-0002-1825-0097"
+ ],
+ "pattern": "[0-9]{4}-[0-9]{4}-[0-9]{4}-[0-9]{3}[0-9X]{1}",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name"
+ ],
+ "type": "object"
+ },
+ "type": "array",
+ "uniqueItems": true
+ },
+ "description": {
+ "description": "Description",
+ "type": "string"
+ },
+ "doi": {
+ "oneOf": [
+ {
+ "examples": [
+ "10.5281/zenodo.1003150"
+ ],
+ "pattern": "^10\\.\\d{4,9}(\\.\\d+)?/[A-Za-z0-9:/_;\\-\\.\\(\\)\\[\\]\\\\]+$",
+ "type": "string"
+ },
+ {
+ "const": ""
+ }
+ ]
+ },
+ "embargo_date": {
+ "format": "date",
+ "type": "string"
+ },
+ "grants": {
+ "items": {
+ "additionalProperties": false,
+ "examples": [
+ "10.13039/501100000780::675191"
+ ],
+ "properties": {
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "type": "object"
+ },
+ "minItems": 0,
+ "type": "array",
+ "uniqueItems": true
+ },
+ "image_type": {
+ "enum": [
+ "diagram",
+ "drawing",
+ "figure",
+ "other",
+ "photo",
+ "plot"
+ ],
+ "type": "string"
+ },
+ "imprint_isbn": {
+ "type": "string"
+ },
+ "imprint_place": {
+ "type": "string"
+ },
+ "imprint_publisher": {
+ "type": "string"
+ },
+ "journal_issue": {
+ "type": "string"
+ },
+ "journal_pages": {
+ "type": "string"
+ },
+ "journal_title": {
+ "type": "string"
+ },
+ "journal_volume": {
+ "type": "string"
+ },
+ "keywords": {
+ "items": {
+ "type": "string"
+ },
+ "minItems": 0,
+ "type": "array",
+ "uniqueItems": true
+ },
+ "language": {
+ "description": "ISO 639 language identifier.",
+ "examples": [
+ "ada",
+ "eng",
+ "bla"
+ ],
+ "pattern": "^[a-z]{2,3}$",
+ "type": "string"
+ },
+ "license": {
+ "oneOf": [
+ {
+ "$ref": "#/definitions/license-enum"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "$ref": "#/definitions/license-enum"
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "notes": {
+ "minLength": 0,
+ "type": "string"
+ },
+ "partof_pages": {
+ "type": "string"
+ },
+ "partof_title": {
+ "type": "string"
+ },
+ "publication_date": {
+ "description": "Format: YYYY-MM-DD. In case your upload was already published elsewhere, please use the date of first publication.",
+ "examples": [
+ "2013-05-08"
+ ],
+ "format": "date",
+ "type": "string"
+ },
+ "publication_type": {
+ "enum": [
+ "annotationcollection",
+ "article",
+ "book",
+ "conferencepaper",
+ "datamanagementplan",
+ "deliverable",
+ "milestone",
+ "other",
+ "patent",
+ "preprint",
+ "proposal",
+ "report",
+ "section",
+ "softwaredocumentation",
+ "taxonomictreatment",
+ "technicalnote",
+ "thesis",
+ "workingpaper"
+ ],
+ "type": "string"
+ },
+ "references": {
+ "items": {
+ "type": "string"
+ },
+ "minItems": 0,
+ "type": "array",
+ "uniqueItems": true
+ },
+ "related_identifiers": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "identifier": {
+ "type": "string"
+ },
+ "relation": {
+ "enum": [
+ "cites",
+ "compiles",
+ "continues",
+ "describes",
+ "documents",
+ "hasMetadata",
+ "hasPart",
+ "hasVersion",
+ "isAlternateIdentifier",
+ "isCitedBy",
+ "isCompiledBy",
+ "isContinuedBy",
+ "isDerivedFrom",
+ "isDescribedBy",
+ "isDocumentedBy",
+ "isIdenticalTo",
+ "isMetadataFor",
+ "isNewVersionOf",
+ "isObsoletedBy",
+ "isOriginalFormOf",
+ "isPartOf",
+ "isPreviousVersionOf",
+ "isPublishedIn",
+ "isReferencedBy",
+ "isRequiredBy",
+ "isReviewedBy",
+ "isSourceOf",
+ "isSupplementedBy",
+ "isSupplementTo",
+ "isVariantFormOf",
+ "isVersionOf",
+ "obsoletes",
+ "references",
+ "requires",
+ "reviews"
+ ],
+ "type": "string"
+ },
+ "resource_type": {
+ "enum": [
+ "dataset",
+ "image-diagram",
+ "image-drawing",
+ "image-figure",
+ "image-other",
+ "image-photo",
+ "image-plot",
+ "lesson",
+ "other",
+ "physicalobject",
+ "poster",
+ "presentation",
+ "publication-annotationcollection",
+ "publication-article",
+ "publication-book",
+ "publication-conferencepaper",
+ "publication-datamanagementplan",
+ "publication-deliverable",
+ "publication-milestone",
+ "publication-other",
+ "publication-patent",
+ "publication-preprint",
+ "publication-proposal",
+ "publication-report",
+ "publication-section",
+ "publication-softwaredocumentation",
+ "publication-taxonomictreatment",
+ "publication-technicalnote",
+ "publication-thesis",
+ "publication-workingpaper",
+ "software",
+ "video"
+ ],
+ "type": "string"
+ },
+ "scheme": {
+ "enum": [
+ "ads",
+ "ark",
+ "arxiv",
+ "doi",
+ "ean13",
+ "handle",
+ "isbn",
+ "isni",
+ "issn",
+ "istc",
+ "lsid",
+ "orcid",
+ "pmid",
+ "purl",
+ "url",
+ "urn"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "identifier",
+ "relation"
+ ],
+ "type": "object"
+ },
+ "minItems": 0,
+ "type": "array",
+ "uniqueItems": true
+ },
+ "subjects": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "identifier": {
+ "type": "string"
+ },
+ "scheme": {
+ "enum": [
+ "ads",
+ "ark",
+ "arxiv",
+ "ascl",
+ "bioproject",
+ "biosample",
+ "doi",
+ "ean13",
+ "ean8",
+ "ensembl",
+ "genome",
+ "gnd",
+ "hal",
+ "handle",
+ "isbn",
+ "isni",
+ "issn",
+ "istc",
+ "lsid",
+ "orcid",
+ "pmcid",
+ "pmid",
+ "purl",
+ "refseq",
+ "sra",
+ "swh",
+ "uniprot",
+ "url",
+ "urn"
+ ],
+ "type": "string"
+ },
+ "term": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "identifier",
+ "term"
+ ],
+ "type": "object"
+ },
+ "minItems": 0,
+ "type": "array",
+ "uniqueItems": true
+ },
+ "thesis_supervisors": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "affiliation": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "name": {
+ "description": "Family name, given names",
+ "minLength": 1,
+ "type": "string"
+ },
+ "orcid": {
+ "description": "ORCID identifier",
+ "examples": [
+ "0000-0002-1825-0097"
+ ],
+ "pattern": "[0-9]{4}-[0-9]{4}-[0-9]{4}-[0-9]{3}[0-9X]{1}",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name"
+ ],
+ "type": "object"
+ },
+ "minItems": 0,
+ "type": "array",
+ "uniqueItems": true
+ },
+ "thesis_university": {
+ "type": "string"
+ },
+ "title": {
+ "type": "string"
+ },
+ "upload_type": {
+ "enum": [
+ "dataset",
+ "image",
+ "lesson",
+ "other",
+ "physicalobject",
+ "poster",
+ "presentation",
+ "publication",
+ "software",
+ "video"
+ ],
+ "type": "string"
+ },
+ "version": {
+ "type": "string"
+ }
+ },
+ "required": [],
+ "type": "object"
+}
diff --git a/node_modules/zenodraft/dist/cli/deposition.js b/node_modules/zenodraft/dist/cli/deposition.js
index 6873e6d..a255a21 100644
--- a/node_modules/zenodraft/dist/cli/deposition.js
+++ b/node_modules/zenodraft/dist/cli/deposition.js
@@ -9,7 +9,7 @@ const publish_1 = require("./deposition/publish");
const deposition_command = () => {
return new commander.Command()
.name('deposition')
- .description('subcommands for creating a deposition')
+ .description('Subcommands for depositions.')
.addCommand(create_1.deposition_create_command())
.addCommand(show_1.deposition_show_command())
.addCommand(delete_1.deposition_delete_command())
diff --git a/node_modules/zenodraft/dist/cli/deposition.js.map b/node_modules/zenodraft/dist/cli/deposition.js.map
index b8941b9..203aa34 100644
--- a/node_modules/zenodraft/dist/cli/deposition.js.map
+++ b/node_modules/zenodraft/dist/cli/deposition.js.map
@@ -1 +1 @@
-{"version":3,"file":"deposition.js","sourceRoot":"","sources":["../../src/cli/deposition.ts"],"names":[],"mappings":";;;AAAA,uCAAsC;AACtC,gDAA+D;AAC/D,4CAA2D;AAC3D,gDAA+D;AAC/D,kDAAiE;AAG1D,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACnC,OAAO,IAAI,SAAS,CAAC,OAAO,EAAE;SACzB,IAAI,CAAC,YAAY,CAAC;SAClB,WAAW,CAAC,uCAAuC,CAAC;SACpD,UAAU,CAAC,kCAAyB,EAAE,CAAC;SACvC,UAAU,CAAC,8BAAuB,EAAE,CAAC;SACrC,UAAU,CAAC,kCAAyB,EAAE,CAAC;SACvC,UAAU,CAAC,oCAA0B,EAAE,CAAC,CAAA;AACjD,CAAC,CAAA;AARY,QAAA,kBAAkB,sBAQ9B"}
\ No newline at end of file
+{"version":3,"file":"deposition.js","sourceRoot":"","sources":["../../src/cli/deposition.ts"],"names":[],"mappings":";;;AAAA,uCAAsC;AACtC,gDAA+D;AAC/D,4CAA2D;AAC3D,gDAA+D;AAC/D,kDAAiE;AAG1D,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACnC,OAAO,IAAI,SAAS,CAAC,OAAO,EAAE;SACzB,IAAI,CAAC,YAAY,CAAC;SAClB,WAAW,CAAC,8BAA8B,CAAC;SAC3C,UAAU,CAAC,kCAAyB,EAAE,CAAC;SACvC,UAAU,CAAC,8BAAuB,EAAE,CAAC;SACrC,UAAU,CAAC,kCAAyB,EAAE,CAAC;SACvC,UAAU,CAAC,oCAA0B,EAAE,CAAC,CAAA;AACjD,CAAC,CAAA;AARY,QAAA,kBAAkB,sBAQ9B"}
\ No newline at end of file
diff --git a/node_modules/zenodraft/dist/cli/deposition.mjs b/node_modules/zenodraft/dist/cli/deposition.mjs
index 766dd8e..ce68293 100644
--- a/node_modules/zenodraft/dist/cli/deposition.mjs
+++ b/node_modules/zenodraft/dist/cli/deposition.mjs
@@ -6,7 +6,7 @@ import { deposition_publish_command } from './deposition/publish';
export const deposition_command = () => {
return new commander.Command()
.name('deposition')
- .description('subcommands for creating a deposition')
+ .description('Subcommands for depositions.')
.addCommand(deposition_create_command())
.addCommand(deposition_show_command())
.addCommand(deposition_delete_command())
diff --git a/node_modules/zenodraft/dist/cli/deposition/create.js b/node_modules/zenodraft/dist/cli/deposition/create.js
index fee665b..468c800 100644
--- a/node_modules/zenodraft/dist/cli/deposition/create.js
+++ b/node_modules/zenodraft/dist/cli/deposition/create.js
@@ -7,7 +7,7 @@ const version_1 = require("./create/version");
const deposition_create_command = () => {
return new commander.Command()
.name('create')
- .description('subcommands for creating a deposition')
+ .description('Subcommands for creating a deposition.')
.addCommand(concept_1.deposition_create_concept_command())
.addCommand(version_1.deposition_create_version_command());
};
diff --git a/node_modules/zenodraft/dist/cli/deposition/create.js.map b/node_modules/zenodraft/dist/cli/deposition/create.js.map
index 9b8ed5f..b99da6f 100644
--- a/node_modules/zenodraft/dist/cli/deposition/create.js.map
+++ b/node_modules/zenodraft/dist/cli/deposition/create.js.map
@@ -1 +1 @@
-{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../src/cli/deposition/create.ts"],"names":[],"mappings":";;;AAAA,uCAAsC;AACtC,8CAAoE;AACpE,8CAAoE;AAG7D,MAAM,yBAAyB,GAAG,GAAG,EAAE;IAC1C,OAAO,IAAI,SAAS,CAAC,OAAO,EAAE;SACzB,IAAI,CAAC,QAAQ,CAAC;SACd,WAAW,CAAC,uCAAuC,CAAC;SACpD,UAAU,CAAC,2CAAiC,EAAE,CAAC;SAC/C,UAAU,CAAC,2CAAiC,EAAE,CAAC,CAAA;AACxD,CAAC,CAAA;AANY,QAAA,yBAAyB,6BAMrC"}
\ No newline at end of file
+{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../src/cli/deposition/create.ts"],"names":[],"mappings":";;;AAAA,uCAAsC;AACtC,8CAAoE;AACpE,8CAAoE;AAG7D,MAAM,yBAAyB,GAAG,GAAG,EAAE;IAC1C,OAAO,IAAI,SAAS,CAAC,OAAO,EAAE;SACzB,IAAI,CAAC,QAAQ,CAAC;SACd,WAAW,CAAC,wCAAwC,CAAC;SACrD,UAAU,CAAC,2CAAiC,EAAE,CAAC;SAC/C,UAAU,CAAC,2CAAiC,EAAE,CAAC,CAAA;AACxD,CAAC,CAAA;AANY,QAAA,yBAAyB,6BAMrC"}
\ No newline at end of file
diff --git a/node_modules/zenodraft/dist/cli/deposition/create.mjs b/node_modules/zenodraft/dist/cli/deposition/create.mjs
index 3b4bc1f..322bf59 100644
--- a/node_modules/zenodraft/dist/cli/deposition/create.mjs
+++ b/node_modules/zenodraft/dist/cli/deposition/create.mjs
@@ -4,7 +4,7 @@ import { deposition_create_version_command } from './create/version';
export const deposition_create_command = () => {
return new commander.Command()
.name('create')
- .description('subcommands for creating a deposition')
+ .description('Subcommands for creating a deposition.')
.addCommand(deposition_create_concept_command())
.addCommand(deposition_create_version_command());
};
diff --git a/node_modules/zenodraft/dist/cli/deposition/create/concept.js b/node_modules/zenodraft/dist/cli/deposition/create/concept.js
index 7fc21bc..48448fd 100644
--- a/node_modules/zenodraft/dist/cli/deposition/create/concept.js
+++ b/node_modules/zenodraft/dist/cli/deposition/create/concept.js
@@ -18,7 +18,7 @@ const commander = require("commander");
const deposition_create_concept_command = () => {
return new commander.Command()
.name('concept')
- .description('create a new draft deposition in a new concept')
+ .description('Create a new draft deposition in a new concept.')
.option(...options_1.sandboxOption)
.option(...options_1.verboseOption)
.action((opts) => __awaiter(void 0, void 0, void 0, function* () {
@@ -30,6 +30,7 @@ const deposition_create_concept_command = () => {
}
catch (e) {
console.error(e.message);
+ process.exit(-1);
}
}))
.addHelpText('after', tokens_help_text_1.tokensHelpText);
diff --git a/node_modules/zenodraft/dist/cli/deposition/create/concept.js.map b/node_modules/zenodraft/dist/cli/deposition/create/concept.js.map
index 024934e..83cfb39 100644
--- a/node_modules/zenodraft/dist/cli/deposition/create/concept.js.map
+++ b/node_modules/zenodraft/dist/cli/deposition/create/concept.js.map
@@ -1 +1 @@
-{"version":3,"file":"concept.js","sourceRoot":"","sources":["../../../../src/cli/deposition/create/concept.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oEAAkF;AAClF,8GAAkH;AAClH,0DAA2E;AAC3E,4EAAsE;AACtE,uCAAsC;AAI/B,MAAM,iCAAiC,GAAG,GAAG,EAAE;IAClD,OAAO,IAAI,SAAS,CAAC,OAAO,EAAE;SACzB,IAAI,CAAC,SAAS,CAAC;SACf,WAAW,CAAC,gDAAgD,CAAC;SAC7D,MAAM,CAAC,GAAG,uBAAa,CAAC;SACxB,MAAM,CAAC,GAAG,uBAAa,CAAC;SACxB,MAAM,CAAC,CAAO,IAAI,EAAE,EAAE;QACnB,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,IAAI,CAAA;QACjC,IAAI;YACA,MAAM,YAAY,GAAG,6EAAyC,CAAC,OAAO,CAAC,CAAA;YACvE,MAAM,EAAE,GAAG,MAAM,mCAAyB,CAAC,YAAY,EAAE,OAAO,EAAE,OAAO,CAAC,CAAA;YAC1E,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;SAClB;QAAC,OAAO,CAAC,EAAE;YACR,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;SAC3B;IAEL,CAAC,CAAA,CAAC;SACD,WAAW,CAAC,OAAO,EAAE,iCAAc,CAAC,CAAA;AAC7C,CAAC,CAAA;AAlBY,QAAA,iCAAiC,qCAkB7C"}
\ No newline at end of file
+{"version":3,"file":"concept.js","sourceRoot":"","sources":["../../../../src/cli/deposition/create/concept.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oEAAkF;AAClF,8GAAkH;AAClH,0DAA2E;AAC3E,4EAAsE;AACtE,uCAAsC;AAI/B,MAAM,iCAAiC,GAAG,GAAG,EAAE;IAClD,OAAO,IAAI,SAAS,CAAC,OAAO,EAAE;SACzB,IAAI,CAAC,SAAS,CAAC;SACf,WAAW,CAAC,iDAAiD,CAAC;SAC9D,MAAM,CAAC,GAAG,uBAAa,CAAC;SACxB,MAAM,CAAC,GAAG,uBAAa,CAAC;SACxB,MAAM,CAAC,CAAO,IAAI,EAAE,EAAE;QACnB,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,IAAI,CAAA;QACjC,IAAI;YACA,MAAM,YAAY,GAAG,6EAAyC,CAAC,OAAO,CAAC,CAAA;YACvE,MAAM,EAAE,GAAG,MAAM,mCAAyB,CAAC,YAAY,EAAE,OAAO,EAAE,OAAO,CAAC,CAAA;YAC1E,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;SAClB;QAAC,OAAO,CAAC,EAAE;YACR,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;YACxB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAA;SACnB;IAEL,CAAC,CAAA,CAAC;SACD,WAAW,CAAC,OAAO,EAAE,iCAAc,CAAC,CAAA;AAC7C,CAAC,CAAA;AAnBY,QAAA,iCAAiC,qCAmB7C"}
\ No newline at end of file
diff --git a/node_modules/zenodraft/dist/cli/deposition/create/concept.mjs b/node_modules/zenodraft/dist/cli/deposition/create/concept.mjs
index 95b6ae9..80d5932 100644
--- a/node_modules/zenodraft/dist/cli/deposition/create/concept.mjs
+++ b/node_modules/zenodraft/dist/cli/deposition/create/concept.mjs
@@ -15,7 +15,7 @@ import * as commander from 'commander';
export const deposition_create_concept_command = () => {
return new commander.Command()
.name('concept')
- .description('create a new draft deposition in a new concept')
+ .description('Create a new draft deposition in a new concept.')
.option(...sandboxOption)
.option(...verboseOption)
.action((opts) => __awaiter(void 0, void 0, void 0, function* () {
@@ -27,6 +27,7 @@ export const deposition_create_concept_command = () => {
}
catch (e) {
console.error(e.message);
+ process.exit(-1);
}
}))
.addHelpText('after', tokensHelpText);
diff --git a/node_modules/zenodraft/dist/cli/deposition/create/version.js b/node_modules/zenodraft/dist/cli/deposition/create/version.js
index 196851b..a399037 100644
--- a/node_modules/zenodraft/dist/cli/deposition/create/version.js
+++ b/node_modules/zenodraft/dist/cli/deposition/create/version.js
@@ -19,7 +19,7 @@ const deposition_create_version_command = () => {
return new commander.Command()
.name('version')
.arguments('')
- .description('create a new draft deposition as a new version in an existing concept', {
+ .description('Create a new draft deposition as a new version in an existing concept.', {
concept_id: 'id for the concept that the new deposition will be part of.'
})
.option(...options_1.sandboxOption)
@@ -33,6 +33,7 @@ const deposition_create_version_command = () => {
}
catch (e) {
console.error(e.message);
+ process.exit(-1);
}
}))
.addHelpText('after', tokens_help_text_1.tokensHelpText);
diff --git a/node_modules/zenodraft/dist/cli/deposition/create/version.js.map b/node_modules/zenodraft/dist/cli/deposition/create/version.js.map
index e2d9ce4..2053ac6 100644
--- a/node_modules/zenodraft/dist/cli/deposition/create/version.js.map
+++ b/node_modules/zenodraft/dist/cli/deposition/create/version.js.map
@@ -1 +1 @@
-{"version":3,"file":"version.js","sourceRoot":"","sources":["../../../../src/cli/deposition/create/version.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oEAAkF;AAClF,8GAAkH;AAClH,0DAA2E;AAC3E,4EAAsE;AACtE,uCAAsC;AAG/B,MAAM,iCAAiC,GAAG,GAAG,EAAE;IAClD,OAAO,IAAI,SAAS,CAAC,OAAO,EAAE;SACzB,IAAI,CAAC,SAAS,CAAC;SACf,SAAS,CAAC,cAAc,CAAC;SACzB,WAAW,CAAC,uEAAuE,EAAE;QAClF,UAAU,EAAE,6DAA6D;KAC5E,CAAC;SACD,MAAM,CAAC,GAAG,uBAAa,CAAC;SACxB,MAAM,CAAC,GAAG,uBAAa,CAAC;SACxB,MAAM,CAAC,CAAO,UAAU,EAAE,IAAI,EAAE,EAAE;QAC/B,MAAM,EAAC,OAAO,EAAE,OAAO,EAAC,GAAG,IAAI,CAAA;QAC/B,IAAI;YACA,MAAM,YAAY,GAAG,6EAAyC,CAAC,OAAO,CAAC,CAAA;YACvE,MAAM,EAAE,GAAG,MAAM,mCAAyB,CAAC,YAAY,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC,CAAA;YACtF,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;SAClB;QAAC,OAAO,CAAC,EAAE;YACR,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;SAC3B;IACL,CAAC,CAAA,CAAC;SACD,WAAW,CAAC,OAAO,EAAE,iCAAc,CAAC,CAAA;AAC7C,CAAC,CAAA;AApBY,QAAA,iCAAiC,qCAoB7C"}
\ No newline at end of file
+{"version":3,"file":"version.js","sourceRoot":"","sources":["../../../../src/cli/deposition/create/version.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oEAAkF;AAClF,8GAAkH;AAClH,0DAA2E;AAC3E,4EAAsE;AACtE,uCAAsC;AAG/B,MAAM,iCAAiC,GAAG,GAAG,EAAE;IAClD,OAAO,IAAI,SAAS,CAAC,OAAO,EAAE;SACzB,IAAI,CAAC,SAAS,CAAC;SACf,SAAS,CAAC,cAAc,CAAC;SACzB,WAAW,CAAC,wEAAwE,EAAE;QACnF,UAAU,EAAE,6DAA6D;KAC5E,CAAC;SACD,MAAM,CAAC,GAAG,uBAAa,CAAC;SACxB,MAAM,CAAC,GAAG,uBAAa,CAAC;SACxB,MAAM,CAAC,CAAO,UAAU,EAAE,IAAI,EAAE,EAAE;QAC/B,MAAM,EAAC,OAAO,EAAE,OAAO,EAAC,GAAG,IAAI,CAAA;QAC/B,IAAI;YACA,MAAM,YAAY,GAAG,6EAAyC,CAAC,OAAO,CAAC,CAAA;YACvE,MAAM,EAAE,GAAG,MAAM,mCAAyB,CAAC,YAAY,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC,CAAA;YACtF,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;SAClB;QAAC,OAAO,CAAC,EAAE;YACR,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;YACxB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAA;SACnB;IACL,CAAC,CAAA,CAAC;SACD,WAAW,CAAC,OAAO,EAAE,iCAAc,CAAC,CAAA;AAC7C,CAAC,CAAA;AArBY,QAAA,iCAAiC,qCAqB7C"}
\ No newline at end of file
diff --git a/node_modules/zenodraft/dist/cli/deposition/create/version.mjs b/node_modules/zenodraft/dist/cli/deposition/create/version.mjs
index 0f58c5e..54e2f8b 100644
--- a/node_modules/zenodraft/dist/cli/deposition/create/version.mjs
+++ b/node_modules/zenodraft/dist/cli/deposition/create/version.mjs
@@ -16,7 +16,7 @@ export const deposition_create_version_command = () => {
return new commander.Command()
.name('version')
.arguments('')
- .description('create a new draft deposition as a new version in an existing concept', {
+ .description('Create a new draft deposition as a new version in an existing concept.', {
concept_id: 'id for the concept that the new deposition will be part of.'
})
.option(...sandboxOption)
@@ -30,6 +30,7 @@ export const deposition_create_version_command = () => {
}
catch (e) {
console.error(e.message);
+ process.exit(-1);
}
}))
.addHelpText('after', tokensHelpText);
diff --git a/node_modules/zenodraft/dist/cli/deposition/delete.js b/node_modules/zenodraft/dist/cli/deposition/delete.js
index f17ead9..f0a6e09 100644
--- a/node_modules/zenodraft/dist/cli/deposition/delete.js
+++ b/node_modules/zenodraft/dist/cli/deposition/delete.js
@@ -19,7 +19,7 @@ const deposition_delete_command = () => {
return new commander.Command()
.name('delete')
.arguments('')
- .description('delete draft deposition with id ', {
+ .description('Delete draft deposition with id .', {
version_id: 'id of the draft deposition that you want to delete'
})
.option(...options_1.sandboxOption)
@@ -32,6 +32,7 @@ const deposition_delete_command = () => {
}
catch (e) {
console.error(e.message);
+ process.exit(-1);
}
}))
.addHelpText('after', tokens_help_text_1.tokensHelpText);
diff --git a/node_modules/zenodraft/dist/cli/deposition/delete.js.map b/node_modules/zenodraft/dist/cli/deposition/delete.js.map
index 3d93039..167301e 100644
--- a/node_modules/zenodraft/dist/cli/deposition/delete.js.map
+++ b/node_modules/zenodraft/dist/cli/deposition/delete.js.map
@@ -1 +1 @@
-{"version":3,"file":"delete.js","sourceRoot":"","sources":["../../../src/cli/deposition/delete.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAsC;AACtC,2GAA+G;AAC/G,wDAA+D;AAC/D,uDAAwE;AACxE,yEAAmE;AAG5D,MAAM,yBAAyB,GAAG,GAAG,EAAE;IAC1C,OAAO,IAAI,SAAS,CAAC,OAAO,EAAE;SACzB,IAAI,CAAC,QAAQ,CAAC;SACd,SAAS,CAAC,cAAc,CAAC;SACzB,WAAW,CAAC,8CAA8C,EAAE;QACzD,UAAU,EAAE,oDAAoD;KACnE,CAAC;SACD,MAAM,CAAC,GAAG,uBAAa,CAAC;SACxB,MAAM,CAAC,GAAG,uBAAa,CAAC;SACxB,MAAM,CAAC,CAAO,UAAU,EAAE,IAAI,EAAE,EAAE;QAC/B,MAAM,EAAC,OAAO,EAAE,OAAO,EAAC,GAAG,IAAI,CAAA;QAC/B,IAAI;YACA,MAAM,YAAY,GAAG,6EAAyC,CAAC,OAAO,CAAC,CAAA;YACvE,MAAM,0BAAiB,CAAC,YAAY,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC,CAAA;SACtE;QAAC,OAAO,CAAC,EAAE;YACR,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;SAC3B;IACL,CAAC,CAAA,CAAC;SACD,WAAW,CAAC,OAAO,EAAE,iCAAc,CAAC,CAAA;AAC7C,CAAC,CAAA;AAnBY,QAAA,yBAAyB,6BAmBrC"}
\ No newline at end of file
+{"version":3,"file":"delete.js","sourceRoot":"","sources":["../../../src/cli/deposition/delete.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAsC;AACtC,2GAA+G;AAC/G,wDAA+D;AAC/D,uDAAwE;AACxE,yEAAmE;AAG5D,MAAM,yBAAyB,GAAG,GAAG,EAAE;IAC1C,OAAO,IAAI,SAAS,CAAC,OAAO,EAAE;SACzB,IAAI,CAAC,QAAQ,CAAC;SACd,SAAS,CAAC,cAAc,CAAC;SACzB,WAAW,CAAC,+CAA+C,EAAE;QAC1D,UAAU,EAAE,oDAAoD;KACnE,CAAC;SACD,MAAM,CAAC,GAAG,uBAAa,CAAC;SACxB,MAAM,CAAC,GAAG,uBAAa,CAAC;SACxB,MAAM,CAAC,CAAO,UAAU,EAAE,IAAI,EAAE,EAAE;QAC/B,MAAM,EAAC,OAAO,EAAE,OAAO,EAAC,GAAG,IAAI,CAAA;QAC/B,IAAI;YACA,MAAM,YAAY,GAAG,6EAAyC,CAAC,OAAO,CAAC,CAAA;YACvE,MAAM,0BAAiB,CAAC,YAAY,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC,CAAA;SACtE;QAAC,OAAO,CAAC,EAAE;YACR,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;YACxB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAA;SACnB;IACL,CAAC,CAAA,CAAC;SACD,WAAW,CAAC,OAAO,EAAE,iCAAc,CAAC,CAAA;AAC7C,CAAC,CAAA;AApBY,QAAA,yBAAyB,6BAoBrC"}
\ No newline at end of file
diff --git a/node_modules/zenodraft/dist/cli/deposition/delete.mjs b/node_modules/zenodraft/dist/cli/deposition/delete.mjs
index 6498921..f92b599 100644
--- a/node_modules/zenodraft/dist/cli/deposition/delete.mjs
+++ b/node_modules/zenodraft/dist/cli/deposition/delete.mjs
@@ -16,7 +16,7 @@ export const deposition_delete_command = () => {
return new commander.Command()
.name('delete')
.arguments('')
- .description('delete draft deposition with id ', {
+ .description('Delete draft deposition with id .', {
version_id: 'id of the draft deposition that you want to delete'
})
.option(...sandboxOption)
@@ -29,6 +29,7 @@ export const deposition_delete_command = () => {
}
catch (e) {
console.error(e.message);
+ process.exit(-1);
}
}))
.addHelpText('after', tokensHelpText);
diff --git a/node_modules/zenodraft/dist/cli/deposition/publish.js b/node_modules/zenodraft/dist/cli/deposition/publish.js
index 363e1e5..0232878 100644
--- a/node_modules/zenodraft/dist/cli/deposition/publish.js
+++ b/node_modules/zenodraft/dist/cli/deposition/publish.js
@@ -19,7 +19,7 @@ const deposition_publish_command = () => {
return new commander.Command()
.name('publish')
.arguments('')
- .description('publish draft deposition with id ', {
+ .description('Publish draft deposition with id .', {
version_id: 'id of the draft deposition that you want to publish. Note: you cannot make any changes to the files in the deposition after you publish.'
})
.option(...options_1.sandboxOption)
@@ -32,6 +32,7 @@ const deposition_publish_command = () => {
}
catch (e) {
console.error(e.message);
+ process.exit(-1);
}
}))
.addHelpText('after', tokens_help_text_1.tokensHelpText);
diff --git a/node_modules/zenodraft/dist/cli/deposition/publish.js.map b/node_modules/zenodraft/dist/cli/deposition/publish.js.map
index fb0a183..0f58ea8 100644
--- a/node_modules/zenodraft/dist/cli/deposition/publish.js.map
+++ b/node_modules/zenodraft/dist/cli/deposition/publish.js.map
@@ -1 +1 @@
-{"version":3,"file":"publish.js","sourceRoot":"","sources":["../../../src/cli/deposition/publish.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAsC;AACtC,2GAA+G;AAC/G,0DAAiE;AACjE,uDAAwE;AACxE,yEAAmE;AAG5D,MAAM,0BAA0B,GAAG,GAAG,EAAE;IAC3C,OAAO,IAAI,SAAS,CAAC,OAAO,EAAE;SACzB,IAAI,CAAC,SAAS,CAAC;SACf,SAAS,CAAC,cAAc,CAAC;SACzB,WAAW,CAAC,+CAA+C,EAAE;QAC1D,UAAU,EAAE,0IAA0I;KACzJ,CAAC;SACD,MAAM,CAAC,GAAG,uBAAa,CAAC;SACxB,MAAM,CAAC,GAAG,uBAAa,CAAC;SACxB,MAAM,CAAC,CAAO,UAAU,EAAE,IAAI,EAAE,EAAE;QAC/B,MAAM,EAAC,OAAO,EAAE,OAAO,EAAC,GAAG,IAAI,CAAA;QAC/B,IAAI;YACA,MAAM,YAAY,GAAG,6EAAyC,CAAC,OAAO,CAAC,CAAA;YACvE,MAAM,4BAAkB,CAAC,YAAY,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC,CAAA;SACvE;QAAC,OAAO,CAAC,EAAE;YACR,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;SAC3B;IACL,CAAC,CAAA,CAAC;SACD,WAAW,CAAC,OAAO,EAAE,iCAAc,CAAC,CAAA;AAC7C,CAAC,CAAA;AAnBY,QAAA,0BAA0B,8BAmBtC"}
\ No newline at end of file
+{"version":3,"file":"publish.js","sourceRoot":"","sources":["../../../src/cli/deposition/publish.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAsC;AACtC,2GAA+G;AAC/G,0DAAiE;AACjE,uDAAwE;AACxE,yEAAmE;AAG5D,MAAM,0BAA0B,GAAG,GAAG,EAAE;IAC3C,OAAO,IAAI,SAAS,CAAC,OAAO,EAAE;SACzB,IAAI,CAAC,SAAS,CAAC;SACf,SAAS,CAAC,cAAc,CAAC;SACzB,WAAW,CAAC,gDAAgD,EAAE;QAC3D,UAAU,EAAE,0IAA0I;KACzJ,CAAC;SACD,MAAM,CAAC,GAAG,uBAAa,CAAC;SACxB,MAAM,CAAC,GAAG,uBAAa,CAAC;SACxB,MAAM,CAAC,CAAO,UAAU,EAAE,IAAI,EAAE,EAAE;QAC/B,MAAM,EAAC,OAAO,EAAE,OAAO,EAAC,GAAG,IAAI,CAAA;QAC/B,IAAI;YACA,MAAM,YAAY,GAAG,6EAAyC,CAAC,OAAO,CAAC,CAAA;YACvE,MAAM,4BAAkB,CAAC,YAAY,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC,CAAA;SACvE;QAAC,OAAO,CAAC,EAAE;YACR,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;YACxB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAA;SACnB;IACL,CAAC,CAAA,CAAC;SACD,WAAW,CAAC,OAAO,EAAE,iCAAc,CAAC,CAAA;AAC7C,CAAC,CAAA;AApBY,QAAA,0BAA0B,8BAoBtC"}
\ No newline at end of file
diff --git a/node_modules/zenodraft/dist/cli/deposition/publish.mjs b/node_modules/zenodraft/dist/cli/deposition/publish.mjs
index 85c0e8a..0c96db1 100644
--- a/node_modules/zenodraft/dist/cli/deposition/publish.mjs
+++ b/node_modules/zenodraft/dist/cli/deposition/publish.mjs
@@ -16,7 +16,7 @@ export const deposition_publish_command = () => {
return new commander.Command()
.name('publish')
.arguments('')
- .description('publish draft deposition with id ', {
+ .description('Publish draft deposition with id .', {
version_id: 'id of the draft deposition that you want to publish. Note: you cannot make any changes to the files in the deposition after you publish.'
})
.option(...sandboxOption)
@@ -29,6 +29,7 @@ export const deposition_publish_command = () => {
}
catch (e) {
console.error(e.message);
+ process.exit(-1);
}
}))
.addHelpText('after', tokensHelpText);
diff --git a/node_modules/zenodraft/dist/cli/deposition/show.js b/node_modules/zenodraft/dist/cli/deposition/show.js
index 964c3af..fb181dc 100644
--- a/node_modules/zenodraft/dist/cli/deposition/show.js
+++ b/node_modules/zenodraft/dist/cli/deposition/show.js
@@ -9,7 +9,7 @@ const prereserved_1 = require("./show/prereserved");
const deposition_show_command = () => {
return new commander.Command()
.name('show')
- .description('subcommands for showing information about a deposition')
+ .description('Subcommands for showing information about a deposition.')
.addCommand(details_1.deposition_show_details_command())
.addCommand(draft_1.deposition_show_draft_command())
.addCommand(files_1.deposition_show_files_command())
diff --git a/node_modules/zenodraft/dist/cli/deposition/show.js.map b/node_modules/zenodraft/dist/cli/deposition/show.js.map
index d301752..24a84ee 100644
--- a/node_modules/zenodraft/dist/cli/deposition/show.js.map
+++ b/node_modules/zenodraft/dist/cli/deposition/show.js.map
@@ -1 +1 @@
-{"version":3,"file":"show.js","sourceRoot":"","sources":["../../../src/cli/deposition/show.ts"],"names":[],"mappings":";;;AAAA,uCAAsC;AACtC,4CAAgE;AAChE,wCAA4D;AAC5D,wCAA4D;AAC5D,oDAAwE;AAGjE,MAAM,uBAAuB,GAAG,GAAG,EAAE;IACxC,OAAO,IAAI,SAAS,CAAC,OAAO,EAAE;SACzB,IAAI,CAAC,MAAM,CAAC;SACZ,WAAW,CAAC,wDAAwD,CAAC;SACrE,UAAU,CAAC,yCAA+B,EAAE,CAAC;SAC7C,UAAU,CAAC,qCAA6B,EAAE,CAAC;SAC3C,UAAU,CAAC,qCAA6B,EAAE,CAAC;SAC3C,UAAU,CAAC,iDAAmC,EAAE,CAAC,CAAA;AAC1D,CAAC,CAAA;AARY,QAAA,uBAAuB,2BAQnC"}
\ No newline at end of file
+{"version":3,"file":"show.js","sourceRoot":"","sources":["../../../src/cli/deposition/show.ts"],"names":[],"mappings":";;;AAAA,uCAAsC;AACtC,4CAAgE;AAChE,wCAA4D;AAC5D,wCAA4D;AAC5D,oDAAwE;AAGjE,MAAM,uBAAuB,GAAG,GAAG,EAAE;IACxC,OAAO,IAAI,SAAS,CAAC,OAAO,EAAE;SACzB,IAAI,CAAC,MAAM,CAAC;SACZ,WAAW,CAAC,yDAAyD,CAAC;SACtE,UAAU,CAAC,yCAA+B,EAAE,CAAC;SAC7C,UAAU,CAAC,qCAA6B,EAAE,CAAC;SAC3C,UAAU,CAAC,qCAA6B,EAAE,CAAC;SAC3C,UAAU,CAAC,iDAAmC,EAAE,CAAC,CAAA;AAC1D,CAAC,CAAA;AARY,QAAA,uBAAuB,2BAQnC"}
\ No newline at end of file
diff --git a/node_modules/zenodraft/dist/cli/deposition/show.mjs b/node_modules/zenodraft/dist/cli/deposition/show.mjs
index ef20f29..09d485f 100644
--- a/node_modules/zenodraft/dist/cli/deposition/show.mjs
+++ b/node_modules/zenodraft/dist/cli/deposition/show.mjs
@@ -6,7 +6,7 @@ import { deposition_show_prereserved_command } from './show/prereserved';
export const deposition_show_command = () => {
return new commander.Command()
.name('show')
- .description('subcommands for showing information about a deposition')
+ .description('Subcommands for showing information about a deposition.')
.addCommand(deposition_show_details_command())
.addCommand(deposition_show_draft_command())
.addCommand(deposition_show_files_command())
diff --git a/node_modules/zenodraft/dist/cli/deposition/show/details.js b/node_modules/zenodraft/dist/cli/deposition/show/details.js
index 187962c..75c88ca 100644
--- a/node_modules/zenodraft/dist/cli/deposition/show/details.js
+++ b/node_modules/zenodraft/dist/cli/deposition/show/details.js
@@ -19,7 +19,7 @@ const deposition_show_details_command = () => {
return new commander.Command()
.name('details')
.arguments('')
- .description('get details pertaining to deposition with id ', {
+ .description('Get details pertaining to deposition with id .', {
version_id: 'id of the deposition that you want to show the details of'
})
.option(...options_1.sandboxOption)
@@ -33,6 +33,7 @@ const deposition_show_details_command = () => {
}
catch (e) {
console.error(e.message);
+ process.exit(-1);
}
}))
.addHelpText('after', tokens_help_text_1.tokensHelpText);
diff --git a/node_modules/zenodraft/dist/cli/deposition/show/details.js.map b/node_modules/zenodraft/dist/cli/deposition/show/details.js.map
index db717a7..c1140fb 100644
--- a/node_modules/zenodraft/dist/cli/deposition/show/details.js.map
+++ b/node_modules/zenodraft/dist/cli/deposition/show/details.js.map
@@ -1 +1 @@
-{"version":3,"file":"details.js","sourceRoot":"","sources":["../../../../src/cli/deposition/show/details.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kEAA8E;AAC9E,8GAAkH;AAClH,0DAA2E;AAC3E,4EAAsE;AACtE,uCAAsC;AAG/B,MAAM,+BAA+B,GAAG,GAAG,EAAE;IAChD,OAAO,IAAI,SAAS,CAAC,OAAO,EAAE;SACzB,IAAI,CAAC,SAAS,CAAC;SACf,SAAS,CAAC,cAAc,CAAC;SACzB,WAAW,CAAC,2DAA2D,EAAE;QACtE,UAAU,EAAE,2DAA2D;KAC1E,CAAC;SACD,MAAM,CAAC,GAAG,uBAAa,CAAC;SACxB,MAAM,CAAC,GAAG,uBAAa,CAAC;SACxB,MAAM,CAAC,CAAO,UAAU,EAAE,IAAI,EAAE,EAAE;QAC/B,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,IAAI,CAAA;QACjC,IAAI;YACA,MAAM,YAAY,GAAG,6EAAyC,CAAC,OAAO,CAAC,CAAA;YACvE,MAAM,OAAO,GAAG,MAAM,iCAAuB,CAAC,YAAY,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC,CAAA;YACzF,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAA;SAChD;QAAC,OAAO,CAAC,EAAE;YACR,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;SAC3B;IACL,CAAC,CAAA,CAAC;SACD,WAAW,CAAC,OAAO,EAAE,iCAAc,CAAC,CAAA;AAC7C,CAAC,CAAA;AApBY,QAAA,+BAA+B,mCAoB3C"}
\ No newline at end of file
+{"version":3,"file":"details.js","sourceRoot":"","sources":["../../../../src/cli/deposition/show/details.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kEAA8E;AAC9E,8GAAkH;AAClH,0DAA2E;AAC3E,4EAAsE;AACtE,uCAAsC;AAG/B,MAAM,+BAA+B,GAAG,GAAG,EAAE;IAChD,OAAO,IAAI,SAAS,CAAC,OAAO,EAAE;SACzB,IAAI,CAAC,SAAS,CAAC;SACf,SAAS,CAAC,cAAc,CAAC;SACzB,WAAW,CAAC,4DAA4D,EAAE;QACvE,UAAU,EAAE,2DAA2D;KAC1E,CAAC;SACD,MAAM,CAAC,GAAG,uBAAa,CAAC;SACxB,MAAM,CAAC,GAAG,uBAAa,CAAC;SACxB,MAAM,CAAC,CAAO,UAAU,EAAE,IAAI,EAAE,EAAE;QAC/B,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,IAAI,CAAA;QACjC,IAAI;YACA,MAAM,YAAY,GAAG,6EAAyC,CAAC,OAAO,CAAC,CAAA;YACvE,MAAM,OAAO,GAAG,MAAM,iCAAuB,CAAC,YAAY,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC,CAAA;YACzF,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAA;SAChD;QAAC,OAAO,CAAC,EAAE;YACR,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;YACxB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAA;SACnB;IACL,CAAC,CAAA,CAAC;SACD,WAAW,CAAC,OAAO,EAAE,iCAAc,CAAC,CAAA;AAC7C,CAAC,CAAA;AArBY,QAAA,+BAA+B,mCAqB3C"}
\ No newline at end of file
diff --git a/node_modules/zenodraft/dist/cli/deposition/show/details.mjs b/node_modules/zenodraft/dist/cli/deposition/show/details.mjs
index 4891dba..828a67c 100644
--- a/node_modules/zenodraft/dist/cli/deposition/show/details.mjs
+++ b/node_modules/zenodraft/dist/cli/deposition/show/details.mjs
@@ -16,7 +16,7 @@ export const deposition_show_details_command = () => {
return new commander.Command()
.name('details')
.arguments('')
- .description('get details pertaining to deposition with id ', {
+ .description('Get details pertaining to deposition with id .', {
version_id: 'id of the deposition that you want to show the details of'
})
.option(...sandboxOption)
@@ -30,6 +30,7 @@ export const deposition_show_details_command = () => {
}
catch (e) {
console.error(e.message);
+ process.exit(-1);
}
}))
.addHelpText('after', tokensHelpText);
diff --git a/node_modules/zenodraft/dist/cli/deposition/show/draft.js b/node_modules/zenodraft/dist/cli/deposition/show/draft.js
index 3ad41d6..36829ea 100644
--- a/node_modules/zenodraft/dist/cli/deposition/show/draft.js
+++ b/node_modules/zenodraft/dist/cli/deposition/show/draft.js
@@ -19,7 +19,7 @@ const deposition_show_draft_command = () => {
return new commander.Command()
.name('draft')
.arguments('')
- .description('get the draft deposition id of the concept with id ', {
+ .description('Get the draft deposition id of the concept with id .', {
concept_id: 'id of the concept for which we want to retrieve the draft id if there is one'
})
.option(...options_1.sandboxOption)
@@ -34,6 +34,7 @@ const deposition_show_draft_command = () => {
catch (e) {
console.log('');
console.error(e.message);
+ process.exit(-1);
}
}))
.addHelpText('after', tokens_help_text_1.tokensHelpText);
diff --git a/node_modules/zenodraft/dist/cli/deposition/show/draft.js.map b/node_modules/zenodraft/dist/cli/deposition/show/draft.js.map
index c5683cd..47eb648 100644
--- a/node_modules/zenodraft/dist/cli/deposition/show/draft.js.map
+++ b/node_modules/zenodraft/dist/cli/deposition/show/draft.js.map
@@ -1 +1 @@
-{"version":3,"file":"draft.js","sourceRoot":"","sources":["../../../../src/cli/deposition/show/draft.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8DAA0E;AAC1E,8GAAkH;AAClH,0DAA2E;AAC3E,4EAAsE;AACtE,uCAAsC;AAG/B,MAAM,6BAA6B,GAAG,GAAG,EAAE;IAC9C,OAAO,IAAI,SAAS,CAAC,OAAO,EAAE;SACzB,IAAI,CAAC,OAAO,CAAC;SACb,SAAS,CAAC,cAAc,CAAC;SACzB,WAAW,CAAC,iEAAiE,EAAE;QAC5E,UAAU,EAAE,8EAA8E;KAC7F,CAAC;SACD,MAAM,CAAC,GAAG,uBAAa,CAAC;SACxB,MAAM,CAAC,GAAG,uBAAa,CAAC;SACxB,MAAM,CAAC,CAAO,UAAU,EAAE,IAAI,EAAE,EAAE;QAC/B,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,IAAI,CAAA;QACjC,IAAI;YACA,MAAM,YAAY,GAAG,6EAAyC,CAAC,OAAO,CAAC,CAAA;YACvE,MAAM,QAAQ,GAAG,MAAM,6BAAqB,CAAC,YAAY,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC,CAAA;YACxF,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAA;SACxB;QAAC,OAAO,CAAC,EAAE;YACR,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;YACf,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;SAC3B;IACL,CAAC,CAAA,CAAC;SACD,WAAW,CAAC,OAAO,EAAE,iCAAc,CAAC,CAAA;AAC7C,CAAC,CAAA;AArBY,QAAA,6BAA6B,iCAqBzC"}
\ No newline at end of file
+{"version":3,"file":"draft.js","sourceRoot":"","sources":["../../../../src/cli/deposition/show/draft.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8DAA0E;AAC1E,8GAAkH;AAClH,0DAA2E;AAC3E,4EAAsE;AACtE,uCAAsC;AAG/B,MAAM,6BAA6B,GAAG,GAAG,EAAE;IAC9C,OAAO,IAAI,SAAS,CAAC,OAAO,EAAE;SACzB,IAAI,CAAC,OAAO,CAAC;SACb,SAAS,CAAC,cAAc,CAAC;SACzB,WAAW,CAAC,kEAAkE,EAAE;QAC7E,UAAU,EAAE,8EAA8E;KAC7F,CAAC;SACD,MAAM,CAAC,GAAG,uBAAa,CAAC;SACxB,MAAM,CAAC,GAAG,uBAAa,CAAC;SACxB,MAAM,CAAC,CAAO,UAAU,EAAE,IAAI,EAAE,EAAE;QAC/B,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,IAAI,CAAA;QACjC,IAAI;YACA,MAAM,YAAY,GAAG,6EAAyC,CAAC,OAAO,CAAC,CAAA;YACvE,MAAM,QAAQ,GAAG,MAAM,6BAAqB,CAAC,YAAY,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC,CAAA;YACxF,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAA;SACxB;QAAC,OAAO,CAAC,EAAE;YACR,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;YACf,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;YACxB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAA;SACnB;IACL,CAAC,CAAA,CAAC;SACD,WAAW,CAAC,OAAO,EAAE,iCAAc,CAAC,CAAA;AAC7C,CAAC,CAAA;AAtBY,QAAA,6BAA6B,iCAsBzC"}
\ No newline at end of file
diff --git a/node_modules/zenodraft/dist/cli/deposition/show/draft.mjs b/node_modules/zenodraft/dist/cli/deposition/show/draft.mjs
index 2fe3c54..de11ae7 100644
--- a/node_modules/zenodraft/dist/cli/deposition/show/draft.mjs
+++ b/node_modules/zenodraft/dist/cli/deposition/show/draft.mjs
@@ -16,7 +16,7 @@ export const deposition_show_draft_command = () => {
return new commander.Command()
.name('draft')
.arguments('')
- .description('get the draft deposition id of the concept with id ', {
+ .description('Get the draft deposition id of the concept with id .', {
concept_id: 'id of the concept for which we want to retrieve the draft id if there is one'
})
.option(...sandboxOption)
@@ -31,6 +31,7 @@ export const deposition_show_draft_command = () => {
catch (e) {
console.log('');
console.error(e.message);
+ process.exit(-1);
}
}))
.addHelpText('after', tokensHelpText);
diff --git a/node_modules/zenodraft/dist/cli/deposition/show/files.js b/node_modules/zenodraft/dist/cli/deposition/show/files.js
index 742bf88..228b296 100644
--- a/node_modules/zenodraft/dist/cli/deposition/show/files.js
+++ b/node_modules/zenodraft/dist/cli/deposition/show/files.js
@@ -20,7 +20,7 @@ const deposition_show_files_command = () => {
return new commander.Command()
.name('files')
.arguments('')
- .description('get the filenames for the files in deposition with id ', {
+ .description('Get the filenames for the files in deposition with id .', {
version_id: 'id of the deposition for which we want to retrieve the list of filenames'
})
.option(...options_1.sandboxOption)
@@ -34,6 +34,7 @@ const deposition_show_files_command = () => {
}
catch (e) {
console.error(e.message);
+ process.exit(-1);
}
}))
.addHelpText('after', tokens_help_text_1.tokensHelpText);
diff --git a/node_modules/zenodraft/dist/cli/deposition/show/files.js.map b/node_modules/zenodraft/dist/cli/deposition/show/files.js.map
index 85c7be2..782d1a5 100644
--- a/node_modules/zenodraft/dist/cli/deposition/show/files.js.map
+++ b/node_modules/zenodraft/dist/cli/deposition/show/files.js.map
@@ -1 +1 @@
-{"version":3,"file":"files.js","sourceRoot":"","sources":["../../../../src/cli/deposition/show/files.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8DAA0E;AAC1E,8GAAkH;AAClH,0DAA2E;AAC3E,4EAAsE;AACtE,uCAAsC;AACtC,yBAAwB;AAIjB,MAAM,6BAA6B,GAAG,GAAG,EAAE;IAC9C,OAAO,IAAI,SAAS,CAAC,OAAO,EAAE;SACzB,IAAI,CAAC,OAAO,CAAC;SACb,SAAS,CAAC,cAAc,CAAC;SACzB,WAAW,CAAC,oEAAoE,EAAE;QAC/E,UAAU,EAAE,0EAA0E;KACzF,CAAC;SACD,MAAM,CAAC,GAAG,uBAAa,CAAC;SACxB,MAAM,CAAC,GAAG,uBAAa,CAAC;SACxB,MAAM,CAAC,CAAO,UAAU,EAAE,IAAI,EAAE,EAAE;QAC/B,MAAM,EAAC,OAAO,EAAE,OAAO,EAAC,GAAG,IAAI,CAAA;QAC/B,IAAI;YACA,MAAM,YAAY,GAAG,6EAAyC,CAAC,OAAO,CAAC,CAAA;YACvE,MAAM,SAAS,GAAG,MAAM,6BAAqB,CAAC,YAAY,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC,CAAA;YACzF,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAA;SACtC;QAAC,OAAO,CAAC,EAAE;YACR,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;SAC3B;IAEL,CAAC,CAAA,CAAC;SACD,WAAW,CAAC,OAAO,EAAE,iCAAc,CAAC,CAAA;AAC7C,CAAC,CAAA;AArBY,QAAA,6BAA6B,iCAqBzC"}
\ No newline at end of file
+{"version":3,"file":"files.js","sourceRoot":"","sources":["../../../../src/cli/deposition/show/files.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8DAA0E;AAC1E,8GAAkH;AAClH,0DAA2E;AAC3E,4EAAsE;AACtE,uCAAsC;AACtC,yBAAwB;AAIjB,MAAM,6BAA6B,GAAG,GAAG,EAAE;IAC9C,OAAO,IAAI,SAAS,CAAC,OAAO,EAAE;SACzB,IAAI,CAAC,OAAO,CAAC;SACb,SAAS,CAAC,cAAc,CAAC;SACzB,WAAW,CAAC,qEAAqE,EAAE;QAChF,UAAU,EAAE,0EAA0E;KACzF,CAAC;SACD,MAAM,CAAC,GAAG,uBAAa,CAAC;SACxB,MAAM,CAAC,GAAG,uBAAa,CAAC;SACxB,MAAM,CAAC,CAAO,UAAU,EAAE,IAAI,EAAE,EAAE;QAC/B,MAAM,EAAC,OAAO,EAAE,OAAO,EAAC,GAAG,IAAI,CAAA;QAC/B,IAAI;YACA,MAAM,YAAY,GAAG,6EAAyC,CAAC,OAAO,CAAC,CAAA;YACvE,MAAM,SAAS,GAAG,MAAM,6BAAqB,CAAC,YAAY,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC,CAAA;YACzF,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAA;SACtC;QAAC,OAAO,CAAC,EAAE;YACR,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;YACxB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAA;SACnB;IAEL,CAAC,CAAA,CAAC;SACD,WAAW,CAAC,OAAO,EAAE,iCAAc,CAAC,CAAA;AAC7C,CAAC,CAAA;AAtBY,QAAA,6BAA6B,iCAsBzC"}
\ No newline at end of file
diff --git a/node_modules/zenodraft/dist/cli/deposition/show/files.mjs b/node_modules/zenodraft/dist/cli/deposition/show/files.mjs
index fb2f366..0f73ccf 100644
--- a/node_modules/zenodraft/dist/cli/deposition/show/files.mjs
+++ b/node_modules/zenodraft/dist/cli/deposition/show/files.mjs
@@ -17,7 +17,7 @@ export const deposition_show_files_command = () => {
return new commander.Command()
.name('files')
.arguments('')
- .description('get the filenames for the files in deposition with id ', {
+ .description('Get the filenames for the files in deposition with id .', {
version_id: 'id of the deposition for which we want to retrieve the list of filenames'
})
.option(...sandboxOption)
@@ -31,6 +31,7 @@ export const deposition_show_files_command = () => {
}
catch (e) {
console.error(e.message);
+ process.exit(-1);
}
}))
.addHelpText('after', tokensHelpText);
diff --git a/node_modules/zenodraft/dist/cli/deposition/show/prereserved.js b/node_modules/zenodraft/dist/cli/deposition/show/prereserved.js
index 6bf181e..837dddd 100644
--- a/node_modules/zenodraft/dist/cli/deposition/show/prereserved.js
+++ b/node_modules/zenodraft/dist/cli/deposition/show/prereserved.js
@@ -19,7 +19,7 @@ const deposition_show_prereserved_command = () => {
return new commander.Command()
.name('prereserved')
.arguments('')
- .description('get the prereserved doi of the draft deposition with id ', {
+ .description('Get the prereserved doi of the draft deposition with id .', {
version_id: 'id of the deposition whose prereserved doi we want to retrieve'
})
.option(...options_1.sandboxOption)
@@ -33,6 +33,7 @@ const deposition_show_prereserved_command = () => {
}
catch (e) {
console.error(e.message);
+ process.exit(-1);
}
}))
.addHelpText('after', tokens_help_text_1.tokensHelpText);
diff --git a/node_modules/zenodraft/dist/cli/deposition/show/prereserved.js.map b/node_modules/zenodraft/dist/cli/deposition/show/prereserved.js.map
index 71ee811..fd7a075 100644
--- a/node_modules/zenodraft/dist/cli/deposition/show/prereserved.js.map
+++ b/node_modules/zenodraft/dist/cli/deposition/show/prereserved.js.map
@@ -1 +1 @@
-{"version":3,"file":"prereserved.js","sourceRoot":"","sources":["../../../../src/cli/deposition/show/prereserved.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0EAAsF;AACtF,8GAAkH;AAClH,0DAA2E;AAC3E,4EAAsE;AACtE,uCAAsC;AAG/B,MAAM,mCAAmC,GAAG,GAAG,EAAE;IACpD,OAAO,IAAI,SAAS,CAAC,OAAO,EAAE;SACzB,IAAI,CAAC,aAAa,CAAC;SACnB,SAAS,CAAC,cAAc,CAAC;SACzB,WAAW,CAAC,sEAAsE,EAAE;QACjF,UAAU,EAAE,gEAAgE;KAC/E,CAAC;SACD,MAAM,CAAC,GAAG,uBAAa,CAAC;SACxB,MAAM,CAAC,GAAG,uBAAa,CAAC;SACxB,MAAM,CAAC,CAAO,UAAU,EAAE,IAAI,EAAE,EAAE;QAC/B,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,IAAI,CAAA;QACjC,IAAI;YACA,MAAM,YAAY,GAAG,6EAAyC,CAAC,OAAO,CAAC,CAAA;YACvE,MAAM,WAAW,GAAG,MAAM,yCAA2B,CAAC,YAAY,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC,CAAA;YACjG,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,CAAA;SAC3B;QAAC,OAAO,CAAC,EAAE;YACR,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;SAC3B;IACL,CAAC,CAAA,CAAC;SACD,WAAW,CAAC,OAAO,EAAE,iCAAc,CAAC,CAAA;AAC7C,CAAC,CAAA;AApBY,QAAA,mCAAmC,uCAoB/C"}
\ No newline at end of file
+{"version":3,"file":"prereserved.js","sourceRoot":"","sources":["../../../../src/cli/deposition/show/prereserved.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0EAAsF;AACtF,8GAAkH;AAClH,0DAA2E;AAC3E,4EAAsE;AACtE,uCAAsC;AAG/B,MAAM,mCAAmC,GAAG,GAAG,EAAE;IACpD,OAAO,IAAI,SAAS,CAAC,OAAO,EAAE;SACzB,IAAI,CAAC,aAAa,CAAC;SACnB,SAAS,CAAC,cAAc,CAAC;SACzB,WAAW,CAAC,uEAAuE,EAAE;QAClF,UAAU,EAAE,gEAAgE;KAC/E,CAAC;SACD,MAAM,CAAC,GAAG,uBAAa,CAAC;SACxB,MAAM,CAAC,GAAG,uBAAa,CAAC;SACxB,MAAM,CAAC,CAAO,UAAU,EAAE,IAAI,EAAE,EAAE;QAC/B,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,IAAI,CAAA;QACjC,IAAI;YACA,MAAM,YAAY,GAAG,6EAAyC,CAAC,OAAO,CAAC,CAAA;YACvE,MAAM,WAAW,GAAG,MAAM,yCAA2B,CAAC,YAAY,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC,CAAA;YACjG,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,CAAA;SAC3B;QAAC,OAAO,CAAC,EAAE;YACR,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;YACxB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAA;SACnB;IACL,CAAC,CAAA,CAAC;SACD,WAAW,CAAC,OAAO,EAAE,iCAAc,CAAC,CAAA;AAC7C,CAAC,CAAA;AArBY,QAAA,mCAAmC,uCAqB/C"}
\ No newline at end of file
diff --git a/node_modules/zenodraft/dist/cli/deposition/show/prereserved.mjs b/node_modules/zenodraft/dist/cli/deposition/show/prereserved.mjs
index 9a8c692..b62ce43 100644
--- a/node_modules/zenodraft/dist/cli/deposition/show/prereserved.mjs
+++ b/node_modules/zenodraft/dist/cli/deposition/show/prereserved.mjs
@@ -16,7 +16,7 @@ export const deposition_show_prereserved_command = () => {
return new commander.Command()
.name('prereserved')
.arguments('')
- .description('get the prereserved doi of the draft deposition with id ', {
+ .description('Get the prereserved doi of the draft deposition with id .', {
version_id: 'id of the deposition whose prereserved doi we want to retrieve'
})
.option(...sandboxOption)
@@ -30,6 +30,7 @@ export const deposition_show_prereserved_command = () => {
}
catch (e) {
console.error(e.message);
+ process.exit(-1);
}
}))
.addHelpText('after', tokensHelpText);
diff --git a/node_modules/zenodraft/dist/cli/file.js b/node_modules/zenodraft/dist/cli/file.js
index 22d6c85..85df072 100644
--- a/node_modules/zenodraft/dist/cli/file.js
+++ b/node_modules/zenodraft/dist/cli/file.js
@@ -7,7 +7,7 @@ const delete_1 = require("./file/delete");
const file_command = () => {
return new commander.Command()
.name('file')
- .description('subcommands for files')
+ .description('Subcommands for files.')
.addCommand(add_1.file_add_command())
.addCommand(delete_1.file_delete_command());
};
diff --git a/node_modules/zenodraft/dist/cli/file.js.map b/node_modules/zenodraft/dist/cli/file.js.map
index e41c882..51a3b56 100644
--- a/node_modules/zenodraft/dist/cli/file.js.map
+++ b/node_modules/zenodraft/dist/cli/file.js.map
@@ -1 +1 @@
-{"version":3,"file":"file.js","sourceRoot":"","sources":["../../src/cli/file.ts"],"names":[],"mappings":";;;AAAA,uCAAsC;AACtC,oCAA6C;AAC7C,0CAAmD;AAG5C,MAAM,YAAY,GAAG,GAAG,EAAE;IAC7B,OAAO,IAAI,SAAS,CAAC,OAAO,EAAE;SACzB,IAAI,CAAC,MAAM,CAAC;SACZ,WAAW,CAAC,uBAAuB,CAAC;SACpC,UAAU,CAAC,sBAAgB,EAAE,CAAC;SAC9B,UAAU,CAAC,4BAAmB,EAAE,CAAC,CAAA;AAC1C,CAAC,CAAA;AANY,QAAA,YAAY,gBAMxB"}
\ No newline at end of file
+{"version":3,"file":"file.js","sourceRoot":"","sources":["../../src/cli/file.ts"],"names":[],"mappings":";;;AAAA,uCAAsC;AACtC,oCAA6C;AAC7C,0CAAmD;AAG5C,MAAM,YAAY,GAAG,GAAG,EAAE;IAC7B,OAAO,IAAI,SAAS,CAAC,OAAO,EAAE;SACzB,IAAI,CAAC,MAAM,CAAC;SACZ,WAAW,CAAC,wBAAwB,CAAC;SACrC,UAAU,CAAC,sBAAgB,EAAE,CAAC;SAC9B,UAAU,CAAC,4BAAmB,EAAE,CAAC,CAAA;AAC1C,CAAC,CAAA;AANY,QAAA,YAAY,gBAMxB"}
\ No newline at end of file
diff --git a/node_modules/zenodraft/dist/cli/file.mjs b/node_modules/zenodraft/dist/cli/file.mjs
index 7609470..1424639 100644
--- a/node_modules/zenodraft/dist/cli/file.mjs
+++ b/node_modules/zenodraft/dist/cli/file.mjs
@@ -4,7 +4,7 @@ import { file_delete_command } from './file/delete';
export const file_command = () => {
return new commander.Command()
.name('file')
- .description('subcommands for files')
+ .description('Subcommands for files.')
.addCommand(file_add_command())
.addCommand(file_delete_command());
};
diff --git a/node_modules/zenodraft/dist/cli/file/add.js b/node_modules/zenodraft/dist/cli/file/add.js
index 8f0cbd6..33ecab2 100644
--- a/node_modules/zenodraft/dist/cli/file/add.js
+++ b/node_modules/zenodraft/dist/cli/file/add.js
@@ -19,7 +19,7 @@ const file_add_command = () => {
return new commander.Command()
.name('add')
.arguments(' ')
- .description('add a local file with filename to existing draft deposition with id ', {
+ .description('Add a local file with filename to existing draft deposition with id .', {
version_id: 'id of the draft deposition that you want to upload a file to',
local_filename: 'filename of the local file that is going to be added'
})
@@ -33,6 +33,7 @@ const file_add_command = () => {
}
catch (e) {
console.error(e.message);
+ process.exit(-1);
}
}))
.addHelpText('after', tokens_help_text_1.tokensHelpText);
diff --git a/node_modules/zenodraft/dist/cli/file/add.js.map b/node_modules/zenodraft/dist/cli/file/add.js.map
index b4819bd..18602d9 100644
--- a/node_modules/zenodraft/dist/cli/file/add.js.map
+++ b/node_modules/zenodraft/dist/cli/file/add.js.map
@@ -1 +1 @@
-{"version":3,"file":"add.js","sourceRoot":"","sources":["../../../src/cli/file/add.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAA6C;AAC7C,2GAA+G;AAC/G,uDAAwE;AACxE,yEAAmE;AACnE,uCAAsC;AAI/B,MAAM,gBAAgB,GAAG,GAAG,EAAE;IACjC,OAAO,IAAI,SAAS,CAAC,OAAO,EAAE;SACzB,IAAI,CAAC,KAAK,CAAC;SACX,SAAS,CAAC,+BAA+B,CAAC;SAC1C,WAAW,CAAC,mGAAmG,EAAE;QAC9G,UAAU,EAAE,8DAA8D;QAC1E,cAAc,EAAE,sDAAsD;KACzE,CAAC;SACD,MAAM,CAAC,GAAG,uBAAa,CAAC;SACxB,MAAM,CAAC,GAAG,uBAAa,CAAC;SACxB,MAAM,CAAC,CAAO,UAAU,EAAE,cAAc,EAAE,IAAI,EAAE,EAAE;QAC/C,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,IAAI,CAAA;QACjC,IAAI;YACA,MAAM,YAAY,GAAG,6EAAyC,CAAC,OAAO,CAAC,CAAA;YACvE,MAAM,cAAQ,CAAC,YAAY,EAAE,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,OAAO,CAAC,CAAA;SAC7E;QAAC,OAAO,CAAC,EAAE;YACR,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;SAC3B;IACL,CAAC,CAAA,CAAC;SACD,WAAW,CAAC,OAAO,EAAE,iCAAc,CAAC,CAAA;AAC7C,CAAC,CAAA;AApBY,QAAA,gBAAgB,oBAoB5B"}
\ No newline at end of file
+{"version":3,"file":"add.js","sourceRoot":"","sources":["../../../src/cli/file/add.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAA6C;AAC7C,2GAA+G;AAC/G,uDAAwE;AACxE,yEAAmE;AACnE,uCAAsC;AAI/B,MAAM,gBAAgB,GAAG,GAAG,EAAE;IACjC,OAAO,IAAI,SAAS,CAAC,OAAO,EAAE;SACzB,IAAI,CAAC,KAAK,CAAC;SACX,SAAS,CAAC,+BAA+B,CAAC;SAC1C,WAAW,CAAC,oGAAoG,EAAE;QAC/G,UAAU,EAAE,8DAA8D;QAC1E,cAAc,EAAE,sDAAsD;KACzE,CAAC;SACD,MAAM,CAAC,GAAG,uBAAa,CAAC;SACxB,MAAM,CAAC,GAAG,uBAAa,CAAC;SACxB,MAAM,CAAC,CAAO,UAAU,EAAE,cAAc,EAAE,IAAI,EAAE,EAAE;QAC/C,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,IAAI,CAAA;QACjC,IAAI;YACA,MAAM,YAAY,GAAG,6EAAyC,CAAC,OAAO,CAAC,CAAA;YACvE,MAAM,cAAQ,CAAC,YAAY,EAAE,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,OAAO,CAAC,CAAA;SAC7E;QAAC,OAAO,CAAC,EAAE;YACR,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;YACxB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAA;SACnB;IACL,CAAC,CAAA,CAAC;SACD,WAAW,CAAC,OAAO,EAAE,iCAAc,CAAC,CAAA;AAC7C,CAAC,CAAA;AArBY,QAAA,gBAAgB,oBAqB5B"}
\ No newline at end of file
diff --git a/node_modules/zenodraft/dist/cli/file/add.mjs b/node_modules/zenodraft/dist/cli/file/add.mjs
index 68e4cfd..0cac114 100644
--- a/node_modules/zenodraft/dist/cli/file/add.mjs
+++ b/node_modules/zenodraft/dist/cli/file/add.mjs
@@ -16,7 +16,7 @@ export const file_add_command = () => {
return new commander.Command()
.name('add')
.arguments(' ')
- .description('add a local file with filename to existing draft deposition with id ', {
+ .description('Add a local file with filename to existing draft deposition with id .', {
version_id: 'id of the draft deposition that you want to upload a file to',
local_filename: 'filename of the local file that is going to be added'
})
@@ -30,6 +30,7 @@ export const file_add_command = () => {
}
catch (e) {
console.error(e.message);
+ process.exit(-1);
}
}))
.addHelpText('after', tokensHelpText);
diff --git a/node_modules/zenodraft/dist/cli/file/delete.js b/node_modules/zenodraft/dist/cli/file/delete.js
index c43e8f1..da6563c 100644
--- a/node_modules/zenodraft/dist/cli/file/delete.js
+++ b/node_modules/zenodraft/dist/cli/file/delete.js
@@ -19,7 +19,7 @@ const file_delete_command = () => {
return new commander.Command()
.name('delete')
.arguments(' ')
- .description('delete a file with filename from draft deposition with id ', {
+ .description('Delete a file with filename from draft deposition with id .', {
version_id: 'version id',
remote_filename: 'filename of the deposition file that is going to be deleted.'
})
@@ -33,6 +33,7 @@ const file_delete_command = () => {
}
catch (e) {
console.error(e.message);
+ process.exit(-1);
}
}))
.addHelpText('after', tokens_help_text_1.tokensHelpText);
diff --git a/node_modules/zenodraft/dist/cli/file/delete.js.map b/node_modules/zenodraft/dist/cli/file/delete.js.map
index b3eaeb2..ef5ca07 100644
--- a/node_modules/zenodraft/dist/cli/file/delete.js.map
+++ b/node_modules/zenodraft/dist/cli/file/delete.js.map
@@ -1 +1 @@
-{"version":3,"file":"delete.js","sourceRoot":"","sources":["../../../src/cli/file/delete.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAmD;AACnD,2GAA+G;AAC/G,uDAAwE;AACxE,yEAAmE;AACnE,uCAAsC;AAG/B,MAAM,mBAAmB,GAAG,GAAG,EAAE;IACpC,OAAO,IAAI,SAAS,CAAC,OAAO,EAAE;SACzB,IAAI,CAAC,QAAQ,CAAC;SACd,SAAS,CAAC,gCAAgC,CAAC;SAC3C,WAAW,CAAC,0FAA0F,EAAE;QACrG,UAAU,EAAE,YAAY;QACxB,eAAe,EAAE,8DAA8D;KAClF,CAAC;SACD,MAAM,CAAC,GAAG,uBAAa,CAAC;SACxB,MAAM,CAAC,GAAG,uBAAa,CAAC;SACxB,MAAM,CAAC,CAAO,UAAU,EAAE,eAAe,EAAE,IAAI,EAAE,EAAE;QAChD,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,IAAI,CAAA;QACjC,IAAI;YACA,MAAM,YAAY,GAAG,6EAAyC,CAAC,OAAO,CAAC,CAAA;YACvE,MAAM,oBAAW,CAAC,YAAY,EAAE,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,OAAO,CAAC,CAAA;SACjF;QAAC,OAAO,CAAC,EAAE;YACR,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;SAC3B;IACL,CAAC,CAAA,CAAC;SACD,WAAW,CAAC,OAAO,EAAE,iCAAc,CAAC,CAAA;AAE7C,CAAC,CAAA;AArBY,QAAA,mBAAmB,uBAqB/B"}
\ No newline at end of file
+{"version":3,"file":"delete.js","sourceRoot":"","sources":["../../../src/cli/file/delete.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAmD;AACnD,2GAA+G;AAC/G,uDAAwE;AACxE,yEAAmE;AACnE,uCAAsC;AAG/B,MAAM,mBAAmB,GAAG,GAAG,EAAE;IACpC,OAAO,IAAI,SAAS,CAAC,OAAO,EAAE;SACzB,IAAI,CAAC,QAAQ,CAAC;SACd,SAAS,CAAC,gCAAgC,CAAC;SAC3C,WAAW,CAAC,2FAA2F,EAAE;QACtG,UAAU,EAAE,YAAY;QACxB,eAAe,EAAE,8DAA8D;KAClF,CAAC;SACD,MAAM,CAAC,GAAG,uBAAa,CAAC;SACxB,MAAM,CAAC,GAAG,uBAAa,CAAC;SACxB,MAAM,CAAC,CAAO,UAAU,EAAE,eAAe,EAAE,IAAI,EAAE,EAAE;QAChD,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,IAAI,CAAA;QACjC,IAAI;YACA,MAAM,YAAY,GAAG,6EAAyC,CAAC,OAAO,CAAC,CAAA;YACvE,MAAM,oBAAW,CAAC,YAAY,EAAE,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,OAAO,CAAC,CAAA;SACjF;QAAC,OAAO,CAAC,EAAE;YACR,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;YACxB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAA;SACnB;IACL,CAAC,CAAA,CAAC;SACD,WAAW,CAAC,OAAO,EAAE,iCAAc,CAAC,CAAA;AAE7C,CAAC,CAAA;AAtBY,QAAA,mBAAmB,uBAsB/B"}
\ No newline at end of file
diff --git a/node_modules/zenodraft/dist/cli/file/delete.mjs b/node_modules/zenodraft/dist/cli/file/delete.mjs
index 859374b..71b08ae 100644
--- a/node_modules/zenodraft/dist/cli/file/delete.mjs
+++ b/node_modules/zenodraft/dist/cli/file/delete.mjs
@@ -16,7 +16,7 @@ export const file_delete_command = () => {
return new commander.Command()
.name('delete')
.arguments(' ')
- .description('delete a file with filename from draft deposition with id ', {
+ .description('Delete a file with filename from draft deposition with id .', {
version_id: 'version id',
remote_filename: 'filename of the deposition file that is going to be deleted.'
})
@@ -30,6 +30,7 @@ export const file_delete_command = () => {
}
catch (e) {
console.error(e.message);
+ process.exit(-1);
}
}))
.addHelpText('after', tokensHelpText);
diff --git a/node_modules/zenodraft/dist/cli/metadata.js b/node_modules/zenodraft/dist/cli/metadata.js
index c449c5a..c77fc1c 100644
--- a/node_modules/zenodraft/dist/cli/metadata.js
+++ b/node_modules/zenodraft/dist/cli/metadata.js
@@ -2,14 +2,16 @@
Object.defineProperty(exports, "__esModule", { value: true });
exports.metadata_command = void 0;
const commander = require("commander");
-const update_1 = require("./metadata/update");
const clear_1 = require("./metadata/clear");
+const update_1 = require("./metadata/update");
+const validate_1 = require("./metadata/validate");
const metadata_command = () => {
return new commander.Command()
.name('metadata')
- .description('subcommands for metadata')
+ .description('Subcommands for metadata.')
.addCommand(clear_1.metadata_clear_command())
- .addCommand(update_1.metadata_update_command());
+ .addCommand(update_1.metadata_update_command())
+ .addCommand(validate_1.metadata_validate_command());
};
exports.metadata_command = metadata_command;
//# sourceMappingURL=metadata.js.map
\ No newline at end of file
diff --git a/node_modules/zenodraft/dist/cli/metadata.js.map b/node_modules/zenodraft/dist/cli/metadata.js.map
index 5e18817..27d3a5f 100644
--- a/node_modules/zenodraft/dist/cli/metadata.js.map
+++ b/node_modules/zenodraft/dist/cli/metadata.js.map
@@ -1 +1 @@
-{"version":3,"file":"metadata.js","sourceRoot":"","sources":["../../src/cli/metadata.ts"],"names":[],"mappings":";;;AAAA,uCAAsC;AACtC,8CAA2D;AAC3D,4CAAyD;AAGlD,MAAM,gBAAgB,GAAG,GAAG,EAAE;IACjC,OAAO,IAAI,SAAS,CAAC,OAAO,EAAE;SACzB,IAAI,CAAC,UAAU,CAAC;SAChB,WAAW,CAAC,0BAA0B,CAAC;SACvC,UAAU,CAAC,8BAAsB,EAAE,CAAC;SACpC,UAAU,CAAC,gCAAuB,EAAE,CAAC,CAAA;AAC9C,CAAC,CAAA;AANY,QAAA,gBAAgB,oBAM5B"}
\ No newline at end of file
+{"version":3,"file":"metadata.js","sourceRoot":"","sources":["../../src/cli/metadata.ts"],"names":[],"mappings":";;;AAAA,uCAAsC;AACtC,4CAAyD;AACzD,8CAA2D;AAC3D,kDAA+D;AAIxD,MAAM,gBAAgB,GAAG,GAAG,EAAE;IACjC,OAAO,IAAI,SAAS,CAAC,OAAO,EAAE;SACzB,IAAI,CAAC,UAAU,CAAC;SAChB,WAAW,CAAC,2BAA2B,CAAC;SACxC,UAAU,CAAC,8BAAsB,EAAE,CAAC;SACpC,UAAU,CAAC,gCAAuB,EAAE,CAAC;SACrC,UAAU,CAAC,oCAAyB,EAAE,CAAC,CAAA;AAChD,CAAC,CAAA;AAPY,QAAA,gBAAgB,oBAO5B"}
\ No newline at end of file
diff --git a/node_modules/zenodraft/dist/cli/metadata.mjs b/node_modules/zenodraft/dist/cli/metadata.mjs
index aea01a3..8f4efbb 100644
--- a/node_modules/zenodraft/dist/cli/metadata.mjs
+++ b/node_modules/zenodraft/dist/cli/metadata.mjs
@@ -1,10 +1,12 @@
import * as commander from 'commander';
-import { metadata_update_command } from './metadata/update';
import { metadata_clear_command } from './metadata/clear';
+import { metadata_update_command } from './metadata/update';
+import { metadata_validate_command } from './metadata/validate';
export const metadata_command = () => {
return new commander.Command()
.name('metadata')
- .description('subcommands for metadata')
+ .description('Subcommands for metadata.')
.addCommand(metadata_clear_command())
- .addCommand(metadata_update_command());
+ .addCommand(metadata_update_command())
+ .addCommand(metadata_validate_command());
};
diff --git a/node_modules/zenodraft/dist/cli/metadata/clear.js b/node_modules/zenodraft/dist/cli/metadata/clear.js
index 2bb14f0..e58e27f 100644
--- a/node_modules/zenodraft/dist/cli/metadata/clear.js
+++ b/node_modules/zenodraft/dist/cli/metadata/clear.js
@@ -19,7 +19,7 @@ const metadata_clear_command = () => {
return new commander.Command()
.name('clear')
.arguments('')
- .description('clear the metadata of an existing deposition with id ', {
+ .description('Clear the metadata of an existing deposition with id .', {
version_id: 'id of the deposition whose metadata you want to clear'
})
.option(...options_1.sandboxOption)
@@ -32,6 +32,7 @@ const metadata_clear_command = () => {
}
catch (e) {
console.error(e.message);
+ process.exit(-1);
}
}))
.addHelpText('after', tokens_help_text_1.tokensHelpText);
diff --git a/node_modules/zenodraft/dist/cli/metadata/clear.js.map b/node_modules/zenodraft/dist/cli/metadata/clear.js.map
index 7e2117c..354da6c 100644
--- a/node_modules/zenodraft/dist/cli/metadata/clear.js.map
+++ b/node_modules/zenodraft/dist/cli/metadata/clear.js.map
@@ -1 +1 @@
-{"version":3,"file":"clear.js","sourceRoot":"","sources":["../../../src/cli/metadata/clear.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2GAA+G;AAC/G,sDAA2D;AAC3D,uDAAwE;AACxE,yEAAmE;AACnE,uCAAsC;AAI/B,MAAM,sBAAsB,GAAG,GAAG,EAAE;IACvC,OAAO,IAAI,SAAS,CAAC,OAAO,EAAE;SACzB,IAAI,CAAC,OAAO,CAAC;SACb,SAAS,CAAC,cAAc,CAAC;SACzB,WAAW,CAAC,mEAAmE,EAAE;QAC9E,UAAU,EAAE,uDAAuD;KACtE,CAAC;SACD,MAAM,CAAC,GAAG,uBAAa,CAAC;SACxB,MAAM,CAAC,GAAG,uBAAa,CAAC;SACxB,MAAM,CAAC,CAAO,UAAU,EAAE,IAAI,EAAE,EAAE;QAC/B,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,IAAI,CAAA;QACjC,IAAI;YACA,MAAM,YAAY,GAAG,6EAAyC,CAAC,OAAO,CAAC,CAAA;YACvE,MAAM,wBAAe,CAAC,YAAY,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,CAAC,CAAA;SAC/E;QAAC,OAAO,CAAC,EAAE;YACR,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;SAC3B;IACL,CAAC,CAAA,CAAC;SACD,WAAW,CAAC,OAAO,EAAE,iCAAc,CAAC,CAAA;AAE7C,CAAC,CAAA;AApBY,QAAA,sBAAsB,0BAoBlC"}
\ No newline at end of file
+{"version":3,"file":"clear.js","sourceRoot":"","sources":["../../../src/cli/metadata/clear.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2GAA+G;AAC/G,sDAA2D;AAC3D,uDAAwE;AACxE,yEAAmE;AACnE,uCAAsC;AAI/B,MAAM,sBAAsB,GAAG,GAAG,EAAE;IACvC,OAAO,IAAI,SAAS,CAAC,OAAO,EAAE;SACzB,IAAI,CAAC,OAAO,CAAC;SACb,SAAS,CAAC,cAAc,CAAC;SACzB,WAAW,CAAC,oEAAoE,EAAE;QAC/E,UAAU,EAAE,uDAAuD;KACtE,CAAC;SACD,MAAM,CAAC,GAAG,uBAAa,CAAC;SACxB,MAAM,CAAC,GAAG,uBAAa,CAAC;SACxB,MAAM,CAAC,CAAO,UAAU,EAAE,IAAI,EAAE,EAAE;QAC/B,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,IAAI,CAAA;QACjC,IAAI;YACA,MAAM,YAAY,GAAG,6EAAyC,CAAC,OAAO,CAAC,CAAA;YACvE,MAAM,wBAAe,CAAC,YAAY,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,CAAC,CAAA;SAC/E;QAAC,OAAO,CAAC,EAAE;YACR,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;YACxB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAA;SACnB;IACL,CAAC,CAAA,CAAC;SACD,WAAW,CAAC,OAAO,EAAE,iCAAc,CAAC,CAAA;AAE7C,CAAC,CAAA;AArBY,QAAA,sBAAsB,0BAqBlC"}
\ No newline at end of file
diff --git a/node_modules/zenodraft/dist/cli/metadata/clear.mjs b/node_modules/zenodraft/dist/cli/metadata/clear.mjs
index b041fea..4510e35 100644
--- a/node_modules/zenodraft/dist/cli/metadata/clear.mjs
+++ b/node_modules/zenodraft/dist/cli/metadata/clear.mjs
@@ -16,7 +16,7 @@ export const metadata_clear_command = () => {
return new commander.Command()
.name('clear')
.arguments('')
- .description('clear the metadata of an existing deposition with id ', {
+ .description('Clear the metadata of an existing deposition with id .', {
version_id: 'id of the deposition whose metadata you want to clear'
})
.option(...sandboxOption)
@@ -29,6 +29,7 @@ export const metadata_clear_command = () => {
}
catch (e) {
console.error(e.message);
+ process.exit(-1);
}
}))
.addHelpText('after', tokensHelpText);
diff --git a/node_modules/zenodraft/dist/cli/metadata/update.js b/node_modules/zenodraft/dist/cli/metadata/update.js
index 1fa3b0e..a8dede0 100644
--- a/node_modules/zenodraft/dist/cli/metadata/update.js
+++ b/node_modules/zenodraft/dist/cli/metadata/update.js
@@ -19,7 +19,7 @@ const metadata_update_command = () => {
return new commander.Command()
.name('update')
.arguments(' ')
- .description('update the metadata of an existing deposition with id using the metadata from ', {
+ .description('Update the metadata of an existing deposition with id using the metadata from .', {
version_id: 'id of the deposition whose metadata you want to update',
local_filename: 'filename of file holding the metadata in Zenodo metadata format'
})
@@ -33,6 +33,7 @@ const metadata_update_command = () => {
}
catch (e) {
console.error(e.message);
+ process.exit(-1);
}
}))
.addHelpText('after', tokens_help_text_1.tokensHelpText);
diff --git a/node_modules/zenodraft/dist/cli/metadata/update.js.map b/node_modules/zenodraft/dist/cli/metadata/update.js.map
index 098a725..674138b 100644
--- a/node_modules/zenodraft/dist/cli/metadata/update.js.map
+++ b/node_modules/zenodraft/dist/cli/metadata/update.js.map
@@ -1 +1 @@
-{"version":3,"file":"update.js","sourceRoot":"","sources":["../../../src/cli/metadata/update.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2GAA+G;AAC/G,sDAA2D;AAC3D,uDAAwE;AACxE,yEAAmE;AACnE,uCAAsC;AAI/B,MAAM,uBAAuB,GAAG,GAAG,EAAE;IACxC,OAAO,IAAI,SAAS,CAAC,OAAO,EAAE;SACzB,IAAI,CAAC,QAAQ,CAAC;SACd,SAAS,CAAC,+BAA+B,CAAC;SAC1C,WAAW,CAAC,6GAA6G,EAAE;QACxH,UAAU,EAAE,wDAAwD;QACpE,cAAc,EAAE,iEAAiE;KACpF,CAAC;SACD,MAAM,CAAC,GAAG,uBAAa,CAAC;SACxB,MAAM,CAAC,GAAG,uBAAa,CAAC;SACxB,MAAM,CAAC,CAAO,UAAU,EAAE,cAAc,EAAE,IAAI,EAAE,EAAE;QAC/C,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,IAAI,CAAA;QACjC,IAAI;YACA,MAAM,YAAY,GAAG,6EAAyC,CAAC,OAAO,CAAC,CAAA;YACvE,MAAM,wBAAe,CAAC,YAAY,EAAE,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,OAAO,CAAC,CAAA;SACpF;QAAC,OAAO,CAAC,EAAE;YACR,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;SAC3B;IACL,CAAC,CAAA,CAAC;SACD,WAAW,CAAC,OAAO,EAAE,iCAAc,CAAC,CAAA;AAE7C,CAAC,CAAA;AArBY,QAAA,uBAAuB,2BAqBnC"}
\ No newline at end of file
+{"version":3,"file":"update.js","sourceRoot":"","sources":["../../../src/cli/metadata/update.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2GAA+G;AAC/G,sDAA2D;AAC3D,uDAAwE;AACxE,yEAAmE;AACnE,uCAAsC;AAI/B,MAAM,uBAAuB,GAAG,GAAG,EAAE;IACxC,OAAO,IAAI,SAAS,CAAC,OAAO,EAAE;SACzB,IAAI,CAAC,QAAQ,CAAC;SACd,SAAS,CAAC,+BAA+B,CAAC;SAC1C,WAAW,CAAC,8GAA8G,EAAE;QACzH,UAAU,EAAE,wDAAwD;QACpE,cAAc,EAAE,iEAAiE;KACpF,CAAC;SACD,MAAM,CAAC,GAAG,uBAAa,CAAC;SACxB,MAAM,CAAC,GAAG,uBAAa,CAAC;SACxB,MAAM,CAAC,CAAO,UAAU,EAAE,cAAc,EAAE,IAAI,EAAE,EAAE;QAC/C,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,IAAI,CAAA;QACjC,IAAI;YACA,MAAM,YAAY,GAAG,6EAAyC,CAAC,OAAO,CAAC,CAAA;YACvE,MAAM,wBAAe,CAAC,YAAY,EAAE,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,OAAO,CAAC,CAAA;SACpF;QAAC,OAAO,CAAC,EAAE;YACR,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;YACxB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAA;SACnB;IACL,CAAC,CAAA,CAAC;SACD,WAAW,CAAC,OAAO,EAAE,iCAAc,CAAC,CAAA;AAE7C,CAAC,CAAA;AAtBY,QAAA,uBAAuB,2BAsBnC"}
\ No newline at end of file
diff --git a/node_modules/zenodraft/dist/cli/metadata/update.mjs b/node_modules/zenodraft/dist/cli/metadata/update.mjs
index df1ce03..88f01ee 100644
--- a/node_modules/zenodraft/dist/cli/metadata/update.mjs
+++ b/node_modules/zenodraft/dist/cli/metadata/update.mjs
@@ -16,7 +16,7 @@ export const metadata_update_command = () => {
return new commander.Command()
.name('update')
.arguments(' ')
- .description('update the metadata of an existing deposition with id using the metadata from ', {
+ .description('Update the metadata of an existing deposition with id using the metadata from .', {
version_id: 'id of the deposition whose metadata you want to update',
local_filename: 'filename of file holding the metadata in Zenodo metadata format'
})
@@ -30,6 +30,7 @@ export const metadata_update_command = () => {
}
catch (e) {
console.error(e.message);
+ process.exit(-1);
}
}))
.addHelpText('after', tokensHelpText);
diff --git a/node_modules/zenodraft/dist/cli/metadata/validate.d.ts b/node_modules/zenodraft/dist/cli/metadata/validate.d.ts
new file mode 100644
index 0000000..679dfeb
--- /dev/null
+++ b/node_modules/zenodraft/dist/cli/metadata/validate.d.ts
@@ -0,0 +1,2 @@
+import * as commander from 'commander';
+export declare const metadata_validate_command: () => commander.Command;
diff --git a/node_modules/zenodraft/dist/cli/metadata/validate.js b/node_modules/zenodraft/dist/cli/metadata/validate.js
new file mode 100644
index 0000000..e25b7da
--- /dev/null
+++ b/node_modules/zenodraft/dist/cli/metadata/validate.js
@@ -0,0 +1,29 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.metadata_validate_command = void 0;
+const validate_1 = require("../../lib/metadata/validate");
+const options_1 = require("../../lib/helpers/options");
+const tokens_help_text_1 = require("../../lib/helpers/tokens-help-text");
+const commander = require("commander");
+const metadata_validate_command = () => {
+ return new commander.Command()
+ .name('validate')
+ .arguments('')
+ .description('Validate the metadata from .', {
+ local_filename: 'filename of file holding the metadata in Zenodo metadata format'
+ })
+ .option(...options_1.verboseOption)
+ .action((local_filename, opts) => {
+ const { verbose } = opts;
+ try {
+ validate_1.metadata_validate(local_filename, verbose);
+ }
+ catch (e) {
+ console.error(e.message);
+ process.exit(-1);
+ }
+ })
+ .addHelpText('after', tokens_help_text_1.tokensHelpText);
+};
+exports.metadata_validate_command = metadata_validate_command;
+//# sourceMappingURL=validate.js.map
\ No newline at end of file
diff --git a/node_modules/zenodraft/dist/cli/metadata/validate.js.map b/node_modules/zenodraft/dist/cli/metadata/validate.js.map
new file mode 100644
index 0000000..0e35048
--- /dev/null
+++ b/node_modules/zenodraft/dist/cli/metadata/validate.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"validate.js","sourceRoot":"","sources":["../../../src/cli/metadata/validate.ts"],"names":[],"mappings":";;;AAAA,0DAA+D;AAC/D,uDAAyD;AACzD,yEAAmE;AACnE,uCAAsC;AAG/B,MAAM,yBAAyB,GAAG,GAAG,EAAE;IAC1C,OAAO,IAAI,SAAS,CAAC,OAAO,EAAE;SACzB,IAAI,CAAC,UAAU,CAAC;SAChB,SAAS,CAAC,kBAAkB,CAAC;SAC7B,WAAW,CAAC,8CAA8C,EAAE;QACzD,cAAc,EAAE,iEAAiE;KACpF,CAAC;SACD,MAAM,CAAC,GAAG,uBAAa,CAAC;SACxB,MAAM,CAAC,CAAC,cAAc,EAAE,IAAI,EAAE,EAAE;QAC7B,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAA;QACxB,IAAI;YACA,4BAAiB,CAAC,cAAc,EAAE,OAAO,CAAC,CAAA;SAC7C;QAAC,OAAO,CAAC,EAAE;YACR,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;YACxB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAA;SACnB;IACL,CAAC,CAAC;SACD,WAAW,CAAC,OAAO,EAAE,iCAAc,CAAC,CAAA;AAC7C,CAAC,CAAA;AAlBY,QAAA,yBAAyB,6BAkBrC"}
\ No newline at end of file
diff --git a/node_modules/zenodraft/dist/cli/metadata/validate.mjs b/node_modules/zenodraft/dist/cli/metadata/validate.mjs
new file mode 100644
index 0000000..df16f15
--- /dev/null
+++ b/node_modules/zenodraft/dist/cli/metadata/validate.mjs
@@ -0,0 +1,24 @@
+import { metadata_validate } from '../../lib/metadata/validate';
+import { verboseOption } from '../../lib/helpers/options';
+import { tokensHelpText } from '../../lib/helpers/tokens-help-text';
+import * as commander from 'commander';
+export const metadata_validate_command = () => {
+ return new commander.Command()
+ .name('validate')
+ .arguments('')
+ .description('Validate the metadata from .', {
+ local_filename: 'filename of file holding the metadata in Zenodo metadata format'
+ })
+ .option(...verboseOption)
+ .action((local_filename, opts) => {
+ const { verbose } = opts;
+ try {
+ metadata_validate(local_filename, verbose);
+ }
+ catch (e) {
+ console.error(e.message);
+ process.exit(-1);
+ }
+ })
+ .addHelpText('after', tokensHelpText);
+};
diff --git a/node_modules/zenodraft/dist/lib/helpers/tokens-help-text.js b/node_modules/zenodraft/dist/lib/helpers/tokens-help-text.js
index c597dfd..f048ba5 100644
--- a/node_modules/zenodraft/dist/lib/helpers/tokens-help-text.js
+++ b/node_modules/zenodraft/dist/lib/helpers/tokens-help-text.js
@@ -1,7 +1,7 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.tokensHelpText = void 0;
-exports.tokensHelpText = '\nAll commands require a personal access token, which you can get here:\n' +
+exports.tokensHelpText = '\nAlmost all commands require a personal access token, which you can get here:\n' +
'- Zenodo Sandbox (testing): https://sandbox.zenodo.org/account/settings/applications\n' +
'- Zenodo (production) : https://zenodo.org/account/settings/applications\n' +
'You only need access tokens for the platforms you plan on using.';
diff --git a/node_modules/zenodraft/dist/lib/helpers/tokens-help-text.js.map b/node_modules/zenodraft/dist/lib/helpers/tokens-help-text.js.map
index 13630d2..4c6bb8b 100644
--- a/node_modules/zenodraft/dist/lib/helpers/tokens-help-text.js.map
+++ b/node_modules/zenodraft/dist/lib/helpers/tokens-help-text.js.map
@@ -1 +1 @@
-{"version":3,"file":"tokens-help-text.js","sourceRoot":"","sources":["../../../src/lib/helpers/tokens-help-text.ts"],"names":[],"mappings":";;;AAAa,QAAA,cAAc,GACvB,2EAA2E;IAC3E,wFAAwF;IACxF,gFAAgF;IAChF,kEAAkE,CAAA"}
\ No newline at end of file
+{"version":3,"file":"tokens-help-text.js","sourceRoot":"","sources":["../../../src/lib/helpers/tokens-help-text.ts"],"names":[],"mappings":";;;AAAa,QAAA,cAAc,GACvB,kFAAkF;IAClF,wFAAwF;IACxF,gFAAgF;IAChF,kEAAkE,CAAA"}
\ No newline at end of file
diff --git a/node_modules/zenodraft/dist/lib/helpers/tokens-help-text.mjs b/node_modules/zenodraft/dist/lib/helpers/tokens-help-text.mjs
index 346900e..1bf918b 100644
--- a/node_modules/zenodraft/dist/lib/helpers/tokens-help-text.mjs
+++ b/node_modules/zenodraft/dist/lib/helpers/tokens-help-text.mjs
@@ -1,4 +1,4 @@
-export const tokensHelpText = '\nAll commands require a personal access token, which you can get here:\n' +
+export const tokensHelpText = '\nAlmost all commands require a personal access token, which you can get here:\n' +
'- Zenodo Sandbox (testing): https://sandbox.zenodo.org/account/settings/applications\n' +
'- Zenodo (production) : https://zenodo.org/account/settings/applications\n' +
'You only need access tokens for the platforms you plan on using.';
diff --git a/node_modules/zenodraft/dist/lib/index.d.ts b/node_modules/zenodraft/dist/lib/index.d.ts
index 23e17fd..6676811 100644
--- a/node_modules/zenodraft/dist/lib/index.d.ts
+++ b/node_modules/zenodraft/dist/lib/index.d.ts
@@ -11,3 +11,4 @@ export { file_delete } from './file/delete';
export { helpers_get_access_token_from_environment } from './helpers/get-access-token-from-environment';
export { helpers_get_api } from './helpers/get-api';
export { metadata_update } from './metadata/update';
+export { metadata_validate } from './metadata/validate';
diff --git a/node_modules/zenodraft/dist/lib/index.js b/node_modules/zenodraft/dist/lib/index.js
index 99b5325..0a33efa 100644
--- a/node_modules/zenodraft/dist/lib/index.js
+++ b/node_modules/zenodraft/dist/lib/index.js
@@ -1,6 +1,6 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
-exports.metadata_update = exports.helpers_get_api = exports.helpers_get_access_token_from_environment = exports.file_delete = exports.file_add = exports.deposition_show_prereserved = exports.deposition_show_files = exports.deposition_show_draft = exports.deposition_show_details = exports.deposition_publish = exports.deposition_delete = exports.deposition_create_version = exports.deposition_create_concept = void 0;
+exports.metadata_validate = exports.metadata_update = exports.helpers_get_api = exports.helpers_get_access_token_from_environment = exports.file_delete = exports.file_add = exports.deposition_show_prereserved = exports.deposition_show_files = exports.deposition_show_draft = exports.deposition_show_details = exports.deposition_publish = exports.deposition_delete = exports.deposition_create_version = exports.deposition_create_concept = void 0;
var concept_1 = require("./deposition/create/concept");
Object.defineProperty(exports, "deposition_create_concept", { enumerable: true, get: function () { return concept_1.deposition_create_concept; } });
var version_1 = require("./deposition/create/version");
@@ -27,4 +27,6 @@ var get_api_1 = require("./helpers/get-api");
Object.defineProperty(exports, "helpers_get_api", { enumerable: true, get: function () { return get_api_1.helpers_get_api; } });
var update_1 = require("./metadata/update");
Object.defineProperty(exports, "metadata_update", { enumerable: true, get: function () { return update_1.metadata_update; } });
+var validate_1 = require("./metadata/validate");
+Object.defineProperty(exports, "metadata_validate", { enumerable: true, get: function () { return validate_1.metadata_validate; } });
//# sourceMappingURL=index.js.map
\ No newline at end of file
diff --git a/node_modules/zenodraft/dist/lib/index.js.map b/node_modules/zenodraft/dist/lib/index.js.map
index 99eb3d0..6c01d4d 100644
--- a/node_modules/zenodraft/dist/lib/index.js.map
+++ b/node_modules/zenodraft/dist/lib/index.js.map
@@ -1 +1 @@
-{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":";;;AAAA,uDAAuE;AAA9D,oHAAA,yBAAyB,OAAA;AAClC,uDAAuE;AAA9D,oHAAA,yBAAyB,OAAA;AAClC,8CAAuD;AAA9C,2GAAA,iBAAiB,OAAA;AAC1B,gDAAyD;AAAhD,6GAAA,kBAAkB,OAAA;AAC3B,qDAAmE;AAA1D,kHAAA,uBAAuB,OAAA;AAChC,iDAA+D;AAAtD,8GAAA,qBAAqB,OAAA;AAC9B,iDAA+D;AAAtD,8GAAA,qBAAqB,OAAA;AAC9B,6DAA2E;AAAlE,0HAAA,2BAA2B,OAAA;AACpC,kCAAqC;AAA5B,+FAAA,QAAQ,OAAA;AACjB,wCAA2C;AAAlC,qGAAA,WAAW,OAAA;AACpB,iGAAuG;AAA9F,8JAAA,yCAAyC,OAAA;AAClD,6CAAmD;AAA1C,0GAAA,eAAe,OAAA;AACxB,4CAAmD;AAA1C,yGAAA,eAAe,OAAA"}
\ No newline at end of file
+{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":";;;AAAA,uDAAuE;AAA9D,oHAAA,yBAAyB,OAAA;AAClC,uDAAuE;AAA9D,oHAAA,yBAAyB,OAAA;AAClC,8CAAuD;AAA9C,2GAAA,iBAAiB,OAAA;AAC1B,gDAAyD;AAAhD,6GAAA,kBAAkB,OAAA;AAC3B,qDAAmE;AAA1D,kHAAA,uBAAuB,OAAA;AAChC,iDAA+D;AAAtD,8GAAA,qBAAqB,OAAA;AAC9B,iDAA+D;AAAtD,8GAAA,qBAAqB,OAAA;AAC9B,6DAA2E;AAAlE,0HAAA,2BAA2B,OAAA;AACpC,kCAAqC;AAA5B,+FAAA,QAAQ,OAAA;AACjB,wCAA2C;AAAlC,qGAAA,WAAW,OAAA;AACpB,iGAAuG;AAA9F,8JAAA,yCAAyC,OAAA;AAClD,6CAAmD;AAA1C,0GAAA,eAAe,OAAA;AACxB,4CAAmD;AAA1C,yGAAA,eAAe,OAAA;AACxB,gDAAuD;AAA9C,6GAAA,iBAAiB,OAAA"}
\ No newline at end of file
diff --git a/node_modules/zenodraft/dist/lib/index.mjs b/node_modules/zenodraft/dist/lib/index.mjs
index 23e17fd..6676811 100644
--- a/node_modules/zenodraft/dist/lib/index.mjs
+++ b/node_modules/zenodraft/dist/lib/index.mjs
@@ -11,3 +11,4 @@ export { file_delete } from './file/delete';
export { helpers_get_access_token_from_environment } from './helpers/get-access-token-from-environment';
export { helpers_get_api } from './helpers/get-api';
export { metadata_update } from './metadata/update';
+export { metadata_validate } from './metadata/validate';
diff --git a/node_modules/zenodraft/dist/lib/metadata/update.js b/node_modules/zenodraft/dist/lib/metadata/update.js
index 116a03a..5524a1c 100644
--- a/node_modules/zenodraft/dist/lib/metadata/update.js
+++ b/node_modules/zenodraft/dist/lib/metadata/update.js
@@ -14,7 +14,7 @@ const node_fetch_1 = require("node-fetch");
const details_1 = require("../deposition/show/details");
const get_api_1 = require("../helpers/get-api");
const fs = require("fs");
-const path = require("path");
+const validate_1 = require("../metadata/validate");
const metadata_update = (token, sandbox, version_id, filename, verbose = false) => __awaiter(void 0, void 0, void 0, function* () {
const msg_clearing = `clearing metadata from deposition with id ${version_id}...`;
const msg_updating = `adding metadata from ${filename} to deposition with id ${version_id}...`;
@@ -26,20 +26,22 @@ const metadata_update = (token, sandbox, version_id, filename, verbose = false)
console.log(msg_updating);
}
}
+ if (filename !== undefined) {
+ validate_1.metadata_validate(filename, verbose);
+ }
const deposition = yield details_1.deposition_show_details(token, sandbox, version_id, verbose);
const api = get_api_1.helpers_get_api(sandbox);
const url = `${api}/deposit/depositions/${version_id}`;
- const minimal_metadata_filename = path.join(__dirname, '..', '..', '..', 'assets', '.zenodo.json.empty');
- const minimal_metadata = JSON.parse(fs.readFileSync(minimal_metadata_filename, 'utf8'));
const user_metadata = filename === undefined ? {} : JSON.parse(fs.readFileSync(filename, 'utf8'));
- const metadata = Object.assign(Object.assign(Object.assign({}, minimal_metadata), { "title": `Untitled in ${deposition.conceptrecid}` }), user_metadata);
const response = yield node_fetch_1.default(url, {
method: 'PUT',
headers: {
'Authorization': `Bearer ${token}`,
'Content-Type': 'application/json',
},
- body: JSON.stringify({ metadata })
+ body: JSON.stringify({
+ metadata: Object.assign({ "title": `Untitled in ${deposition.conceptrecid}` }, user_metadata)
+ })
});
if (response.ok !== true) {
throw new Error(`(errid 13) Something went wrong on PUT to ${url}: ${response.status} - ${response.statusText}`);
diff --git a/node_modules/zenodraft/dist/lib/metadata/update.js.map b/node_modules/zenodraft/dist/lib/metadata/update.js.map
index 0affa1f..ef09151 100644
--- a/node_modules/zenodraft/dist/lib/metadata/update.js.map
+++ b/node_modules/zenodraft/dist/lib/metadata/update.js.map
@@ -1 +1 @@
-{"version":3,"file":"update.js","sourceRoot":"","sources":["../../../src/lib/metadata/update.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA6C;AAC7C,wDAAoE;AACpE,gDAAoD;AACpD,yBAAwB;AACxB,6BAA4B;AAIrB,MAAM,eAAe,GAAG,CAAO,KAAa,EAAE,OAAgB,EAAE,UAAkB,EAAE,QAAiB,EAAE,OAAO,GAAG,KAAK,EAAiB,EAAE;IAC5I,MAAM,YAAY,GAAG,6CAA6C,UAAU,KAAK,CAAA;IACjF,MAAM,YAAY,GAAG,wBAAwB,QAAQ,0BAA0B,UAAU,KAAK,CAAA;IAC9F,IAAI,OAAO,EAAE;QACT,IAAI,QAAQ,KAAK,SAAS,EAAE;YACxB,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAA;SAC5B;aAAM;YACH,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAA;SAC5B;KACJ;IACD,MAAM,UAAU,GAAG,MAAM,iCAAuB,CAAC,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC,CAAA;IACrF,MAAM,GAAG,GAAG,yBAAe,CAAC,OAAO,CAAC,CAAA;IACpC,MAAM,GAAG,GAAG,GAAG,GAAG,wBAAwB,UAAU,EAAE,CAAA;IACtD,MAAM,yBAAyB,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,oBAAoB,CAAC,CAAA;IACxG,MAAM,gBAAgB,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,yBAAyB,EAAE,MAAM,CAAC,CAAC,CAAA;IACvF,MAAM,aAAa,GAAG,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAA;IACjG,MAAM,QAAQ,iDAAO,gBAAgB,KAAE,OAAO,EAAE,eAAe,UAAU,CAAC,YAAY,EAAE,KAAK,aAAa,CAAC,CAAA;IAC3G,MAAM,QAAQ,GAAG,MAAM,oBAAK,CAAC,GAAG,EAAE;QAC9B,MAAM,EAAE,KAAK;QACb,OAAO,EAAE;YACL,eAAe,EAAE,UAAU,KAAK,EAAE;YAClC,cAAc,EAAE,kBAAkB;SACrC;QACD,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,EAAC,QAAQ,EAAC,CAAC;KACnC,CAAC,CAAA;IACF,IAAI,QAAQ,CAAC,EAAE,KAAK,IAAI,EAAE;QACtB,MAAM,IAAI,KAAK,CAAC,6CAA6C,GAAG,KAAK,QAAQ,CAAC,MAAM,MAAM,QAAQ,CAAC,UAAU,EAAE,CAAC,CAAA;KACnH;IACD,IAAI,OAAO,EAAE;QACT,IAAI,QAAQ,KAAK,SAAS,EAAE;YACxB,OAAO,CAAC,GAAG,CAAC,GAAG,YAAY,MAAM,CAAC,CAAA;SACrC;aAAM;YACH,OAAO,CAAC,GAAG,CAAC,GAAG,YAAY,MAAM,CAAC,CAAA;SACrC;KACJ;AACL,CAAC,CAAA,CAAA;AAnCY,QAAA,eAAe,mBAmC3B"}
\ No newline at end of file
+{"version":3,"file":"update.js","sourceRoot":"","sources":["../../../src/lib/metadata/update.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA6C;AAC7C,wDAAoE;AACpE,gDAAoD;AACpD,yBAAwB;AACxB,mDAAwD;AAIjD,MAAM,eAAe,GAAG,CAAO,KAAa,EAAE,OAAgB,EAAE,UAAkB,EAAE,QAAiB,EAAE,OAAO,GAAG,KAAK,EAAiB,EAAE;IAC5I,MAAM,YAAY,GAAG,6CAA6C,UAAU,KAAK,CAAA;IACjF,MAAM,YAAY,GAAG,wBAAwB,QAAQ,0BAA0B,UAAU,KAAK,CAAA;IAC9F,IAAI,OAAO,EAAE;QACT,IAAI,QAAQ,KAAK,SAAS,EAAE;YACxB,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAA;SAC5B;aAAM;YACH,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAA;SAC5B;KACJ;IACD,IAAI,QAAQ,KAAK,SAAS,EAAE;QACxB,4BAAiB,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAA;KACvC;IACD,MAAM,UAAU,GAAG,MAAM,iCAAuB,CAAC,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC,CAAA;IACrF,MAAM,GAAG,GAAG,yBAAe,CAAC,OAAO,CAAC,CAAA;IACpC,MAAM,GAAG,GAAG,GAAG,GAAG,wBAAwB,UAAU,EAAE,CAAA;IACtD,MAAM,aAAa,GAAG,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAA;IACjG,MAAM,QAAQ,GAAG,MAAM,oBAAK,CAAC,GAAG,EAAE;QAC9B,MAAM,EAAE,KAAK;QACb,OAAO,EAAE;YACL,eAAe,EAAE,UAAU,KAAK,EAAE;YAClC,cAAc,EAAE,kBAAkB;SACrC;QACD,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC;YACjB,QAAQ,kBACJ,OAAO,EAAE,eAAe,UAAU,CAAC,YAAY,EAAE,IAC9C,aAAa,CACnB;SACJ,CAAC;KACL,CAAC,CAAA;IACF,IAAI,QAAQ,CAAC,EAAE,KAAK,IAAI,EAAE;QACtB,MAAM,IAAI,KAAK,CAAC,6CAA6C,GAAG,KAAK,QAAQ,CAAC,MAAM,MAAM,QAAQ,CAAC,UAAU,EAAE,CAAC,CAAA;KACnH;IACD,IAAI,OAAO,EAAE;QACT,IAAI,QAAQ,KAAK,SAAS,EAAE;YACxB,OAAO,CAAC,GAAG,CAAC,GAAG,YAAY,MAAM,CAAC,CAAA;SACrC;aAAM;YACH,OAAO,CAAC,GAAG,CAAC,GAAG,YAAY,MAAM,CAAC,CAAA;SACrC;KACJ;AACL,CAAC,CAAA,CAAA;AAxCY,QAAA,eAAe,mBAwC3B"}
\ No newline at end of file
diff --git a/node_modules/zenodraft/dist/lib/metadata/update.mjs b/node_modules/zenodraft/dist/lib/metadata/update.mjs
index bdc6023..9f4f8c9 100644
--- a/node_modules/zenodraft/dist/lib/metadata/update.mjs
+++ b/node_modules/zenodraft/dist/lib/metadata/update.mjs
@@ -11,7 +11,7 @@ import { default as fetch } from 'node-fetch';
import { deposition_show_details } from '../deposition/show/details';
import { helpers_get_api } from '../helpers/get-api';
import * as fs from 'fs';
-import * as path from 'path';
+import { metadata_validate } from '../metadata/validate';
export const metadata_update = (token, sandbox, version_id, filename, verbose = false) => __awaiter(void 0, void 0, void 0, function* () {
const msg_clearing = `clearing metadata from deposition with id ${version_id}...`;
const msg_updating = `adding metadata from ${filename} to deposition with id ${version_id}...`;
@@ -23,20 +23,22 @@ export const metadata_update = (token, sandbox, version_id, filename, verbose =
console.log(msg_updating);
}
}
+ if (filename !== undefined) {
+ metadata_validate(filename, verbose);
+ }
const deposition = yield deposition_show_details(token, sandbox, version_id, verbose);
const api = helpers_get_api(sandbox);
const url = `${api}/deposit/depositions/${version_id}`;
- const minimal_metadata_filename = path.join(__dirname, '..', '..', '..', 'assets', '.zenodo.json.empty');
- const minimal_metadata = JSON.parse(fs.readFileSync(minimal_metadata_filename, 'utf8'));
const user_metadata = filename === undefined ? {} : JSON.parse(fs.readFileSync(filename, 'utf8'));
- const metadata = Object.assign(Object.assign(Object.assign({}, minimal_metadata), { "title": `Untitled in ${deposition.conceptrecid}` }), user_metadata);
const response = yield fetch(url, {
method: 'PUT',
headers: {
'Authorization': `Bearer ${token}`,
'Content-Type': 'application/json',
},
- body: JSON.stringify({ metadata })
+ body: JSON.stringify({
+ metadata: Object.assign({ "title": `Untitled in ${deposition.conceptrecid}` }, user_metadata)
+ })
});
if (response.ok !== true) {
throw new Error(`(errid 13) Something went wrong on PUT to ${url}: ${response.status} - ${response.statusText}`);
diff --git a/node_modules/zenodraft/dist/lib/metadata/validate.d.ts b/node_modules/zenodraft/dist/lib/metadata/validate.d.ts
new file mode 100644
index 0000000..c76baa3
--- /dev/null
+++ b/node_modules/zenodraft/dist/lib/metadata/validate.d.ts
@@ -0,0 +1 @@
+export declare const metadata_validate: (filename: string, verbose?: boolean) => void;
diff --git a/node_modules/zenodraft/dist/lib/metadata/validate.js b/node_modules/zenodraft/dist/lib/metadata/validate.js
new file mode 100644
index 0000000..af69001
--- /dev/null
+++ b/node_modules/zenodraft/dist/lib/metadata/validate.js
@@ -0,0 +1,37 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.metadata_validate = void 0;
+const fs = require("fs");
+const path = require("path");
+const ajv_1 = require("ajv");
+const ajv_formats_1 = require("ajv-formats");
+const load_metadata = (filename) => {
+ return JSON.parse(fs.readFileSync(filename, 'utf8'));
+};
+const load_schema = () => {
+ const filename = path.join(__dirname, '..', '..', '..', 'assets', 'schema.json');
+ return JSON.parse(fs.readFileSync(filename, 'utf8'));
+};
+const metadata_validate = (filename, verbose = false) => {
+ const msg = `validating metadata from ${filename}...`;
+ if (verbose) {
+ console.log(msg);
+ }
+ const ajv = new ajv_1.default();
+ ajv_formats_1.default(ajv);
+ const schema = load_schema();
+ const data = load_metadata(filename);
+ const validate = ajv.compile(schema);
+ const isvalid = validate(data);
+ if (isvalid === false) {
+ validate.errors.forEach(error => {
+ console.log(error);
+ });
+ throw new Error('(errid 14) Validation error');
+ }
+ if (verbose) {
+ console.log(`${msg}done`);
+ }
+};
+exports.metadata_validate = metadata_validate;
+//# sourceMappingURL=validate.js.map
\ No newline at end of file
diff --git a/node_modules/zenodraft/dist/lib/metadata/validate.js.map b/node_modules/zenodraft/dist/lib/metadata/validate.js.map
new file mode 100644
index 0000000..2243e01
--- /dev/null
+++ b/node_modules/zenodraft/dist/lib/metadata/validate.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"validate.js","sourceRoot":"","sources":["../../../src/lib/metadata/validate.ts"],"names":[],"mappings":";;;AAAA,yBAAwB;AACxB,6BAA4B;AAC5B,6BAAqB;AACrB,6CAAoC;AAGpC,MAAM,aAAa,GAAG,CAAC,QAAgB,EAAU,EAAE;IAC/C,OAAO,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAA;AACxD,CAAC,CAAA;AAED,MAAM,WAAW,GAAG,GAAW,EAAE;IAC7B,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,aAAa,CAAC,CAAA;IAChF,OAAO,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAA;AACxD,CAAC,CAAA;AAGM,MAAM,iBAAiB,GAAG,CAAC,QAAgB,EAAE,OAAO,GAAG,KAAK,EAAQ,EAAE;IACzE,MAAM,GAAG,GAAG,4BAA4B,QAAQ,KAAK,CAAA;IACrD,IAAI,OAAO,EAAE;QACT,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;KACnB;IACD,MAAM,GAAG,GAAG,IAAI,aAAG,EAAE,CAAA;IACrB,qBAAU,CAAC,GAAG,CAAC,CAAA;IACf,MAAM,MAAM,GAAG,WAAW,EAAE,CAAA;IAC5B,MAAM,IAAI,GAAG,aAAa,CAAC,QAAQ,CAAC,CAAA;IACpC,MAAM,QAAQ,GAAG,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,CAAA;IACpC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAA;IAC9B,IAAI,OAAO,KAAK,KAAK,EAAE;QACnB,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;YAC5B,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAA;QACtB,CAAC,CAAC,CAAA;QACF,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAA;KACjD;IACD,IAAI,OAAO,EAAE;QACT,OAAO,CAAC,GAAG,CAAC,GAAG,GAAG,MAAM,CAAC,CAAA;KAC5B;AACL,CAAC,CAAA;AApBY,QAAA,iBAAiB,qBAoB7B"}
\ No newline at end of file
diff --git a/node_modules/zenodraft/dist/lib/metadata/validate.mjs b/node_modules/zenodraft/dist/lib/metadata/validate.mjs
new file mode 100644
index 0000000..c1d6fa3
--- /dev/null
+++ b/node_modules/zenodraft/dist/lib/metadata/validate.mjs
@@ -0,0 +1,32 @@
+import * as fs from 'fs';
+import * as path from 'path';
+import Ajv from 'ajv';
+import addFormats from 'ajv-formats';
+const load_metadata = (filename) => {
+ return JSON.parse(fs.readFileSync(filename, 'utf8'));
+};
+const load_schema = () => {
+ const filename = path.join(__dirname, '..', '..', '..', 'assets', 'schema.json');
+ return JSON.parse(fs.readFileSync(filename, 'utf8'));
+};
+export const metadata_validate = (filename, verbose = false) => {
+ const msg = `validating metadata from ${filename}...`;
+ if (verbose) {
+ console.log(msg);
+ }
+ const ajv = new Ajv();
+ addFormats(ajv);
+ const schema = load_schema();
+ const data = load_metadata(filename);
+ const validate = ajv.compile(schema);
+ const isvalid = validate(data);
+ if (isvalid === false) {
+ validate.errors.forEach(error => {
+ console.log(error);
+ });
+ throw new Error('(errid 14) Validation error');
+ }
+ if (verbose) {
+ console.log(`${msg}done`);
+ }
+};
diff --git a/node_modules/zenodraft/package.json b/node_modules/zenodraft/package.json
index 7fe97dc..7f0bbac 100644
--- a/node_modules/zenodraft/package.json
+++ b/node_modules/zenodraft/package.json
@@ -8,6 +8,8 @@
"url": "https://github.com/zenodraft/zenodraft/issues"
},
"dependencies": {
+ "ajv": "^8.12.0",
+ "ajv-formats": "^2.1.1",
"commander": "^7.2.0",
"dotenv": "^10.0.0",
"node-fetch": "^2.6.7"
@@ -24,8 +26,8 @@
"typescript": "^4.3.2"
},
"engines": {
- "node": ">=12.16.0",
- "npm": ">=6.13.4"
+ "node": ">=20.0.0",
+ "npm": ">=10.0.0"
},
"files": [
"assets",
@@ -49,12 +51,12 @@
"build": "npm run mjs && npm run cjs",
"coverage": "jest --config jest.config.js --collectCoverage=true",
"cjs": "tsc --module commonjs -p tsconfig.json --sourceMap",
- "clean": "rm -rf dist",
+ "clean": "rm -rf dist coverage",
"mjs": "tsc --module es6 --declaration -p tsconfig.json && for filename in `find dist -type f -name '*\\.js'`; do mv -- \"$filename\" \"${filename%.js}.mjs\"; done",
"pretest": "unset ZENODO_SANDBOX_ACCESS_TOKEN && unset ZENODO_ACCESS_TOKEN",
"test": "jest --config jest.config.js",
"tests": "npm run test"
},
"types": "dist/lib/index.d.ts",
- "version": "0.13.3"
+ "version": "0.14.0"
}
diff --git a/package-lock.json b/package-lock.json
index f81f5b4..d5c081d 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "action",
- "version": "0.13.3",
+ "version": "0.14.0",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "action",
- "version": "0.13.3",
+ "version": "0.14.0",
"license": "Apache-2.0",
"dependencies": {
"@actions/core": "^1.4.0",
@@ -15,7 +15,7 @@
"@octokit/webhooks-definitions": "^3.67.3",
"js-yaml": "^4.1.0",
"typescript": "^4.3.2",
- "zenodraft": "0.13.3"
+ "zenodraft": "0.14.0"
},
"devDependencies": {
"@types/jest": "^26.0.23",
@@ -1452,6 +1452,37 @@
"node": ">= 6.0.0"
}
},
+ "node_modules/ajv": {
+ "version": "8.12.0",
+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz",
+ "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==",
+ "dependencies": {
+ "fast-deep-equal": "^3.1.1",
+ "json-schema-traverse": "^1.0.0",
+ "require-from-string": "^2.0.2",
+ "uri-js": "^4.2.2"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/epoberezkin"
+ }
+ },
+ "node_modules/ajv-formats": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz",
+ "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==",
+ "dependencies": {
+ "ajv": "^8.0.0"
+ },
+ "peerDependencies": {
+ "ajv": "^8.0.0"
+ },
+ "peerDependenciesMeta": {
+ "ajv": {
+ "optional": true
+ }
+ }
+ },
"node_modules/ansi-escapes": {
"version": "4.3.2",
"resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz",
@@ -2161,6 +2192,11 @@
"url": "https://github.com/chalk/ansi-styles?sponsor=1"
}
},
+ "node_modules/fast-deep-equal": {
+ "version": "3.1.3",
+ "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
+ "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q=="
+ },
"node_modules/fast-json-stable-stringify": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",
@@ -3307,6 +3343,11 @@
"node": ">=4"
}
},
+ "node_modules/json-schema-traverse": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",
+ "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug=="
+ },
"node_modules/json5": {
"version": "2.2.3",
"resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",
@@ -3803,7 +3844,6 @@
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz",
"integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==",
- "dev": true,
"engines": {
"node": ">=6"
}
@@ -3829,6 +3869,14 @@
"node": ">=0.10.0"
}
},
+ "node_modules/require-from-string": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz",
+ "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
"node_modules/requires-port": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz",
@@ -4319,6 +4367,14 @@
"node": ">= 4.0.0"
}
},
+ "node_modules/uri-js": {
+ "version": "4.4.1",
+ "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz",
+ "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==",
+ "dependencies": {
+ "punycode": "^2.1.0"
+ }
+ },
"node_modules/url-parse": {
"version": "1.5.10",
"resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz",
@@ -4563,10 +4619,12 @@
}
},
"node_modules/zenodraft": {
- "version": "0.13.3",
- "resolved": "https://registry.npmjs.org/zenodraft/-/zenodraft-0.13.3.tgz",
- "integrity": "sha512-HuqTf6HX3Kg7vWp0fLvICu7ITvahiZp+BKMqYgv1CBK+Q+YwJyycnHWxl8i6y8kcnD1HUVjMGOQ1LTpiSF8tLQ==",
+ "version": "0.14.0",
+ "resolved": "https://registry.npmjs.org/zenodraft/-/zenodraft-0.14.0.tgz",
+ "integrity": "sha512-tNjYcB1lbI/QtL66TSIAFwe3zHslWe9zLZbSDEW1gIa7ynRwOtcwgicArLGzu/PBzlyXWGCHEKcJrNYJupsfCw==",
"dependencies": {
+ "ajv": "^8.12.0",
+ "ajv-formats": "^2.1.1",
"commander": "^7.2.0",
"dotenv": "^10.0.0",
"node-fetch": "^2.6.7"
@@ -4576,8 +4634,8 @@
"zenodraft-autocomplete": "bin/autocomplete.js"
},
"engines": {
- "node": ">=12.16.0",
- "npm": ">=6.13.4"
+ "node": ">=20.0.0",
+ "npm": ">=10.0.0"
}
}
},
@@ -5752,6 +5810,25 @@
"debug": "4"
}
},
+ "ajv": {
+ "version": "8.12.0",
+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz",
+ "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==",
+ "requires": {
+ "fast-deep-equal": "^3.1.1",
+ "json-schema-traverse": "^1.0.0",
+ "require-from-string": "^2.0.2",
+ "uri-js": "^4.2.2"
+ }
+ },
+ "ajv-formats": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz",
+ "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==",
+ "requires": {
+ "ajv": "^8.0.0"
+ }
+ },
"ansi-escapes": {
"version": "4.3.2",
"resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz",
@@ -6289,6 +6366,11 @@
}
}
},
+ "fast-deep-equal": {
+ "version": "3.1.3",
+ "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
+ "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q=="
+ },
"fast-json-stable-stringify": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",
@@ -7173,6 +7255,11 @@
"integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==",
"dev": true
},
+ "json-schema-traverse": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",
+ "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug=="
+ },
"json5": {
"version": "2.2.3",
"resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",
@@ -7541,8 +7628,7 @@
"punycode": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz",
- "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==",
- "dev": true
+ "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A=="
},
"querystringify": {
"version": "2.2.0",
@@ -7562,6 +7648,11 @@
"integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=",
"dev": true
},
+ "require-from-string": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz",
+ "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw=="
+ },
"requires-port": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz",
@@ -7931,6 +8022,14 @@
"integrity": "sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==",
"dev": true
},
+ "uri-js": {
+ "version": "4.4.1",
+ "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz",
+ "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==",
+ "requires": {
+ "punycode": "^2.1.0"
+ }
+ },
"url-parse": {
"version": "1.5.10",
"resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz",
@@ -8120,10 +8219,12 @@
"dev": true
},
"zenodraft": {
- "version": "0.13.3",
- "resolved": "https://registry.npmjs.org/zenodraft/-/zenodraft-0.13.3.tgz",
- "integrity": "sha512-HuqTf6HX3Kg7vWp0fLvICu7ITvahiZp+BKMqYgv1CBK+Q+YwJyycnHWxl8i6y8kcnD1HUVjMGOQ1LTpiSF8tLQ==",
+ "version": "0.14.0",
+ "resolved": "https://registry.npmjs.org/zenodraft/-/zenodraft-0.14.0.tgz",
+ "integrity": "sha512-tNjYcB1lbI/QtL66TSIAFwe3zHslWe9zLZbSDEW1gIa7ynRwOtcwgicArLGzu/PBzlyXWGCHEKcJrNYJupsfCw==",
"requires": {
+ "ajv": "^8.12.0",
+ "ajv-formats": "^2.1.1",
"commander": "^7.2.0",
"dotenv": "^10.0.0",
"node-fetch": "^2.6.7"
diff --git a/package.json b/package.json
index f61f26f..81f05e1 100644
--- a/package.json
+++ b/package.json
@@ -10,7 +10,7 @@
"@octokit/webhooks-definitions": "^3.67.3",
"js-yaml": "^4.1.0",
"typescript": "^4.3.2",
- "zenodraft": "0.13.3"
+ "zenodraft": "0.14.0"
},
"description": "GitHub action to automate making draft depositions on Zenodo or Zenodo Sandbox",
"homepage": "https://github.com/zenodraft/action#readme",
@@ -35,7 +35,7 @@
"transpile": "tsc -p tsconfig.json",
"deps": "echo '\nupdating dependencies for production\n' && rm -rf node_modules && npm install --production && git add node_modules --force && git status"
},
- "version": "0.13.3",
+ "version": "0.14.0",
"devDependencies": {
"@types/jest": "^26.0.23",
"@types/js-yaml": "^4.0.1",