text-to-map 1.1.7 → 1.1.8

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.
@@ -36,6 +36,7 @@ function main() {
36
36
  };
37
37
  console.time("downloadAndImportAllLatestAddressPoints");
38
38
  const { municipality } = yield getNewMunicipality("Česká Lípa");
39
+ console.log(municipality.founder.schools[0].locations);
39
40
  const addressPoints = yield parseOrdinanceToAddressPoints(lines, {
40
41
  // currentMunicipality: municipality,
41
42
  }, reportErrors, reportWarnings);
@@ -130,10 +130,10 @@ export const getAddressPointById = (addressPointId) => __awaiter(void 0, void 0,
130
130
  const knex = getKnexDb();
131
131
  const row = yield knex.raw(`${addressPointSelect}
132
132
  WHERE a.id = ?`, [addressPointId]);
133
- if (!row) {
133
+ if (row.length === 0) {
134
134
  return null;
135
135
  }
136
- return rowToAddressPoint(row);
136
+ return rowToAddressPoint(row[0]);
137
137
  });
138
138
  let lastFounder = null;
139
139
  let allStreets = [];
package/package.json CHANGED
@@ -53,7 +53,7 @@
53
53
  },
54
54
  "name": "text-to-map",
55
55
  "description": "Text To Map usiluje o lepší, strojově zpracovatelné využití částí vyhlášek s výčtem ulic a dalších lokací. Jde o rozšiřitelnou sadu konceptů a nástrojů, které zajistí hladký převod výčtu ulic a jejich rozsahů v lidsky srozumitelném jazyce do strojově zpracovatelného, uchopitelného formátu.",
56
- "version": "1.1.7",
56
+ "version": "1.1.8",
57
57
  "main": "dist/index.js",
58
58
  "types": "dist/index.d.ts",
59
59
  "files": [