Skip to content

Commit

Permalink
removing es2017 from the tsconfig lib array
Browse files Browse the repository at this point in the history
  • Loading branch information
drewdaemon committed May 11, 2020
1 parent 7131d91 commit 8f13db0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/sites/src/domains/_lookup-portal.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { searchItems } from "@esri/arcgis-rest-portal";
import { IHubRequestOptions } from "@esri/hub-common";
import { IHubRequestOptions, includes } from "@esri/hub-common";

/**
* Lookup a domain in Portal
Expand Down Expand Up @@ -29,7 +29,7 @@ export function _lookupPortal(
// since the search api stems the terms, we need to verify
// by looking at the results
return res.results.filter(r => {
return r.typeKeywords.includes(queryTerm);
return includes(r.typeKeywords, queryTerm);
})[0];
})
.then(site => {
Expand Down
3 changes: 1 addition & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
"module": "es2015", /* Specify module code generation: 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
"lib": [
"dom",
"es2015",
"es2017"
"es2015"
], /* Specify library files to be included in the compilation: */
// "allowJs": true, /* Allow javascript files to be compiled. */
// "checkJs": true, /* Report errors in .js files. */
Expand Down

0 comments on commit 8f13db0

Please sign in to comment.