@dmptool/types 3.1.0 → 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/dmp/index.js +2 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -24,7 +24,7 @@ The available question schemas/types are:
|
|
|
24
24
|
- `DateQuestion` A date field. Supports `YYYY-MM-DD` format.
|
|
25
25
|
- `DateRangeQuestion` A series of 2 date fields. Meant to capture "From" and "To" or "Start" and "End" dates.
|
|
26
26
|
- `EmailQuestion` An email address. Supports multiple emails that are comma separated.
|
|
27
|
-
- `LicenseSearch` A GraphQL enabled question to
|
|
27
|
+
- `LicenseSearch` A GraphQL enabled question to fetch all Licenses
|
|
28
28
|
- `MetadataStandardSearch` A GraphQL enabled question to search for relevant Metadata Standards
|
|
29
29
|
- `MultiselectBoxQuestion` A select box that allows for multiple selections
|
|
30
30
|
- `NumberQuestion` A numeric field. Supports both integers and floats.
|
package/dist/dmp/index.js
CHANGED
|
@@ -30,10 +30,8 @@ catch (_a) {
|
|
|
30
30
|
// Fallback for environments that need runtime resolution
|
|
31
31
|
if (typeof window === 'undefined') {
|
|
32
32
|
// Only try fs operations on server
|
|
33
|
-
|
|
34
|
-
const
|
|
35
|
-
/* eslint-disable @typescript-eslint/no-require-imports */
|
|
36
|
-
const path = require("path");
|
|
33
|
+
const fs = eval('require')("fs"); // eval prevents bundlers from trying to include fs in browser builds
|
|
34
|
+
const path = eval('require')("path");
|
|
37
35
|
// Convert the downloaded JSON schema into types
|
|
38
36
|
// First try resolving via the package export (works when installed from GitHub branch or npm)
|
|
39
37
|
function resolveSchemaPath() {
|