@panoramax/web-viewer 3.2.0-develop-1b7c7072 → 3.2.0-develop-c020028b

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panoramax/web-viewer",
3
- "version": "3.2.0-develop-1b7c7072",
3
+ "version": "3.2.0-develop-c020028b",
4
4
  "description": "Panoramax web viewer for geolocated pictures",
5
5
  "main": "build/index.js",
6
6
  "author": "Panoramax team",
package/src/utils/API.js CHANGED
@@ -116,8 +116,8 @@ export default class API {
116
116
  throw new Error("API Landing page doesn't contain 'links' list");
117
117
  }
118
118
 
119
- if(!landing.stac_version.startsWith("1.0")) {
120
- throw new Error(`API is not in a supported STAC version (Panoramax viewer supports only 1.0, API is ${landing.stac_version})`);
119
+ if(!landing.stac_version.startsWith("1.")) {
120
+ throw new Error(`API is not in a supported STAC version (Panoramax viewer supports only 1.x, API is ${landing.stac_version})`);
121
121
  }
122
122
 
123
123
  // Read metadata
@@ -180,7 +180,7 @@ describe("_parseLanding", () => {
180
180
  it("fails if API version is not supported", () => {
181
181
  const api = new API (ENDPOINT, { skipReadLanding: true });
182
182
  const landing = { stac_version: "0.1", links: [] };
183
- expect(() => api._parseLanding(landing)).toThrow("API is not in a supported STAC version (Panoramax viewer supports only 1.0, API is 0.1)");
183
+ expect(() => api._parseLanding(landing)).toThrow("API is not in a supported STAC version (Panoramax viewer supports only 1.x, API is 0.1)");
184
184
  });
185
185
 
186
186
  it("fails if mandatory links are not set", () => {