ogcopenapis 0.0.5 → 0.0.6

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.
@@ -4,6 +4,6 @@ declare class OgcOpenApiCrsTools {
4
4
  * @param uriOrName
5
5
  * @private
6
6
  */
7
- static getReferenceName(uriOrNameI: string): string;
7
+ static getReferenceName(uriOrNameI: string): any;
8
8
  }
9
9
  export { OgcOpenApiCrsTools };
@@ -5,9 +5,13 @@ class OgcOpenApiCrsTools {
5
5
  * @private
6
6
  */
7
7
  static getReferenceName(uriOrNameI) {
8
- if (typeof uriOrNameI === "undefined")
9
- return uriOrNameI;
10
- const uriOrName = uriOrNameI.replace(/[<>]/g, '');
8
+ let uriOrName;
9
+ if (typeof uriOrNameI === "undefined") {
10
+ uriOrName = "http://www.opengis.net/def/crs/OGC/1.3/CRS84";
11
+ }
12
+ else {
13
+ uriOrName = uriOrNameI.replace(/[<>]/g, '');
14
+ }
11
15
  if (!uriOrName.startsWith('http')) {
12
16
  return uriOrName;
13
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ogcopenapis",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "Implements OGC OPEN API Features/Maps/Tiles capabilities and models for LuciadRIA",
5
5
  "files": [
6
6
  "lib/"