Skip to content

Commit

Permalink
Update CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Oct 25, 2023
1 parent 50fd62c commit 3d9054e
Show file tree
Hide file tree
Showing 9 changed files with 237 additions and 185 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@

## Version History

### v4.5.0

- :rocket: Use user provided `where` parameter where possible

### v4.4.1

- :bug: Include built version
Expand Down
Empty file modified dist/cli.js
100755 → 100644
Empty file.
1 change: 1 addition & 0 deletions dist/lib/fetch.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/lib/fetch.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions dist/lib/geometry.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/lib/geometry.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions lib/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ export default async function Fetch(
url: URL,
opts: FetchRequest = {}
): Promise<any> {
url = new URL(url);

if (!config.headers) config.headers = {};
if (!config.params) config.params = {};

Expand Down
4 changes: 2 additions & 2 deletions lib/geometry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default class Geometry extends EventEmitter {

const url = new URL(String(this.baseUrl) + '/query');
url.searchParams.append('returnCountOnly', 'true');
url.searchParams.append('where', '1=1');
if (!config.params.where) url.searchParams.append('where', '1=1');

if (process.env.DEBUG) console.error(String(url));
const res = await Fetch(config, url);
Expand All @@ -74,7 +74,7 @@ export default class Geometry extends EventEmitter {
let attempts = 0;

const url = new URL(String(this.baseUrl) + '/query');
url.searchParams.append('where', '1=1');
if (!config.params.where) url.searchParams.append('where', '1=1');
url.searchParams.append('geometryPrecision', '7');
url.searchParams.append('returnGeometry', 'true');
url.searchParams.append('outSR', '4326');
Expand Down
401 changes: 222 additions & 179 deletions package-lock.json

Large diffs are not rendered by default.

0 comments on commit 3d9054e

Please sign in to comment.