Skip to content

Commit

Permalink
Merge pull request #9 from sergiufp/patch-1
Browse files Browse the repository at this point in the history
Fix geojsonFlatten not a function
  • Loading branch information
Taku Suzuki committed Jul 8, 2021
2 parents a551c59 + 84b5e0d commit 35605b0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ var geojsonNormalize = require('@mapbox/geojson-normalize'),
geojsonFlatten = require('geojson-flatten'),
flatten = require('./flatten');

if (!(geojsonFlatten instanceof Function)) geojsonFlatten = geojsonFlatten.default;

module.exports = function(_) {
if (!_) return [];
var normalized = geojsonFlatten(geojsonNormalize(_)),
Expand Down

0 comments on commit 35605b0

Please sign in to comment.