Skip to content

Commit d34b9fe

Browse files
committed
Bugfixes and 0.3.0 release
1 parent b89c86d commit d34b9fe

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.gitmodules

Whitespace-only changes.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Simple proof-of-concept to validate STAC Items, Catalogs, Collections and core e
77
| STAC Node Validator Version | Supported STAC Versions |
88
| --------------------------- | ----------------------- |
99
| 0.2.1 | 1.0.0-beta.1 |
10-
| 0.3.0-beta.1 | >= 1.0.0-beta.2 |
10+
| 0.3.0 | >= 1.0.0-beta.2 |
1111

1212
## Setup
1313

index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ async function run() {
7777
let fileValid = true;
7878
for(let name of names) {
7979
try {
80-
let validate = await loadSchema(dev ? 'dev' : version, name, schemaFolder);
80+
let validate = await loadSchema(dev ? 'dev' : "v" + version, name, schemaFolder);
8181
var valid = validate(data);
8282
if (!valid) {
8383
console.log('---- ' + name + ": invalid");
@@ -93,7 +93,7 @@ async function run() {
9393
console.info('---- ' + name + ": valid");
9494
}
9595
} catch (error) {
96-
console.exception(error);
96+
console.error(error);
9797
}
9898
}
9999
fileValid ? stats.valid++ : stats.invalid++;
@@ -105,7 +105,7 @@ async function run() {
105105
process.exit(stats.invalid);
106106
}
107107
catch(error) {
108-
console.exception(error);
108+
console.error(error);
109109
process.exit(1);
110110
}
111111
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "stac-node-validator",
3-
"version": "0.3.0-beta.1",
3+
"version": "0.3.0",
44
"description": "STAC Validator for NodeJS",
55
"author": "Matthias Mohr",
66
"license": "Apache-2.0",

0 commit comments

Comments
 (0)