Comparing version 1.0.3 to 1.0.4
11
index.js
@@ -14,7 +14,7 @@ // @ts-ignore | ||
if (a.status === 'ACCEPTED') { | ||
return 1; | ||
return -1; | ||
} | ||
if (b.status === 'ACCEPTED') { | ||
return -1; | ||
return 1; | ||
} | ||
@@ -83,3 +83,8 @@ | ||
if (gbifQuery) { | ||
gbifId = await getGBIFIDFromQuery(gbifQuery); | ||
try { | ||
gbifId = await getGBIFIDFromQuery(gbifQuery); | ||
this.setAttribute('gbif-id', gbifId); | ||
} catch (e) { | ||
console.log('Could not find species from query...'); | ||
} | ||
} | ||
@@ -86,0 +91,0 @@ |
{ | ||
"name": "gbif-map", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6787
93