osm2geojson-lite 0.8.14 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Makefile CHANGED
@@ -1,2 +1,2 @@
1
1
  osm2geojson-lite.js: lib/index.js package.json
2
- browserify -s osm2geojson lib/index.js | uglifyjs -c -m -o dist/osm2geojson-lite.js
2
+ npx browserify -s osm2geojson lib/index.js | npx uglifyjs -c -m -o dist/osm2geojson-lite.js
@@ -10,8 +10,9 @@ for (let file of xmlFiles) {
10
10
  let osm = fs.readFileSync(`./data/${file}`, 'utf-8');
11
11
  console.log(`---processing time for ${file}---`);
12
12
  let stime = new Date().getTime();
13
- for (let i = 0; i < rounds; i++)
13
+ for (let i = 0; i < rounds; i++) {
14
14
  osm2geojson(osm, {completeFeature: true});
15
+ }
15
16
  let etime = new Date().getTime();
16
17
  console.log(`.${etime - stime}ms was taken for ${rounds} rounds`);
17
18
  }
@@ -22,8 +23,9 @@ for (let file of jsonFiles) {
22
23
  let osm = require(`./data/${file}`);
23
24
  console.log(`---processing time for ${file}---`);
24
25
  let stime = new Date().getTime();
25
- for (let i = 0; i < rounds; i++)
26
+ for (let i = 0; i < rounds; i++) {
26
27
  osm2geojson(osm, {completeFeature: true});
28
+ }
27
29
  etime = new Date().getTime();
28
30
  console.log(`.${etime - stime}ms was taken for ${rounds} rounds`);
29
31
  }