Comparing version 0.0.6 to 0.0.7
{ | ||
"name": "stac-js", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "JS drop-in classes with utilities for STAC", | ||
@@ -5,0 +5,0 @@ "author": "Matthias Mohr", |
@@ -9,3 +9,3 @@ # stac-js | ||
- **Package version:** 0.0.6 | ||
- **Package version:** 0.0.7 | ||
- **STAC versions:** >= 0.6.0 (through [stac-migrate](https://github.com/stac-utils/stac-migrate)). | ||
@@ -12,0 +12,0 @@ - **Documentation:** <https://m-mohr.github.io/stac-js/latest/> |
@@ -22,4 +22,13 @@ import STACHypermedia from './hypermedia.js'; | ||
/** | ||
* Returns all STAC entities in this list. | ||
* | ||
* @returns {Array.<STAC>} All STAC entities | ||
*/ | ||
getAll() { | ||
return []; | ||
} | ||
} | ||
export default APICollection; |
@@ -35,17 +35,17 @@ import Collection from './collection.js'; | ||
/** | ||
* Check whether this given object is a STAC Collection of Collections (i.e. API Collections). | ||
* Returns all collections. | ||
* | ||
* @returns {boolean} `true` if the object is a STAC CollectionCollection, `false` otherwise. | ||
* @returns {Array.<Collection>} All STAC Collections | ||
*/ | ||
isCollectionCollection() { | ||
return true; | ||
getAll() { | ||
return this.collections; | ||
} | ||
/** | ||
* Returns all collections. | ||
* Check whether this given object is a STAC Collection of Collections (i.e. API Collections). | ||
* | ||
* @returns {Array.<Collection>} All STAC Collections | ||
* @returns {boolean} `true` if the object is a STAC CollectionCollection, `false` otherwise. | ||
*/ | ||
getCollections() { | ||
return this.collections; | ||
isCollectionCollection() { | ||
return true; | ||
} | ||
@@ -52,0 +52,0 @@ |
@@ -28,3 +28,2 @@ function toObject(bbox) { | ||
* | ||
* @todo | ||
* @param {BoundingBox|Array.<BoundingBox>} bboxes | ||
@@ -31,0 +30,0 @@ * @returns {Object|null} |
@@ -5,2 +5,3 @@ import Migrate from '@radiantearth/stac-migrate'; | ||
import Catalog from './catalog.js'; | ||
import CatalogLike from './cataloglike.js'; | ||
import Collection from './collection.js'; | ||
@@ -51,2 +52,3 @@ import CollectionCollection from './collectioncollection.js'; | ||
Catalog, | ||
CatalogLike, | ||
Collection, | ||
@@ -53,0 +55,0 @@ CollectionCollection, |
@@ -40,3 +40,3 @@ import { unionDateTime } from './datetime.js'; | ||
*/ | ||
getItems() { | ||
getAll() { | ||
return this.features; | ||
@@ -43,0 +43,0 @@ } |
@@ -43,3 +43,2 @@ import { geotiffMediaTypes, isMediaType } from './mediatypes.js'; | ||
* | ||
* @todo | ||
* @param {boolean} allowUndefined | ||
@@ -46,0 +45,0 @@ * @returns {Array.<Link>} |
77741
2218