Skip to content

Commit c06fa6c

Browse files
committed
Go back to using lydell's json-stringify-pretty-compact
This now seems updated more recently than @AitoDotAI's, and we only use the `maxLength` option anyway.
1 parent a569a27 commit c06fa6c

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ const isStrict = loco.strict; // getter: return the current value
270270

271271
<a name="stringify" href="#stringify">#</a> <i>loco</i>.<b>stringify</b>(<i>object</i>, <i>options</i>)
272272

273-
Convenience method that wraps [json-stringify-pretty-compact](https://www.npmjs.com/package/@aitodotai/json-stringify-pretty-compact) to stringify the given object. Optional `options` parameter gets passed through to json-stringify-pretty-compact.
273+
Convenience method that wraps [json-stringify-pretty-compact](https://github.com/lydell/json-stringify-pretty-compact) to stringify the given object. Optional `options` parameter gets passed through to json-stringify-pretty-compact.
274274

275275
```js
276276
loco.stringify(someGeoJson, { maxLength: 100 }); // Make it pretty!

bun.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@
3737
"test": "bun test --dots --coverage ./test"
3838
},
3939
"dependencies": {
40-
"@aitodotai/json-stringify-pretty-compact": "^1.3.0",
4140
"@mapbox/geojson-area": "^0.2.2",
4241
"@rapideditor/country-coder": "^5.6.0",
4342
"circle-to-polygon": "^2.2.0",
4443
"geojson-precision": "^1.0.0",
44+
"json-stringify-pretty-compact": "^4.0.0",
4545
"polyclip-ts": "~0.16.8"
4646
},
4747
"devDependencies": {

src/location-conflation.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import * as Polyclip from 'polyclip-ts';
44
import calcArea from '@mapbox/geojson-area';
55
import circleToPolygon from 'circle-to-polygon';
66
import precision from 'geojson-precision';
7-
import prettyStringify from '@aitodotai/json-stringify-pretty-compact';
7+
import prettyStringify from 'json-stringify-pretty-compact';
88

99

1010
export class LocationConflation {

0 commit comments

Comments
 (0)