@lumikmz/kmz-file 0.5.0 → 0.6.0

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.
Files changed (2) hide show
  1. package/dist/index.mjs +0 -2
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -1200,7 +1200,6 @@ function decodePlacemark(raw) {
1200
1200
  }
1201
1201
  function decodeFolder(raw) {
1202
1202
  const placemarks = toArray(raw.Placemark);
1203
- if (placemarks.length === 0) throw new KmzError(`Folder "${raw["wpml:waylineId"]}" has no Placemark`);
1204
1203
  return {
1205
1204
  templateId: parseNum(raw["wpml:templateId"], "templateId"),
1206
1205
  waylineId: parseNum(raw["wpml:waylineId"], "waylineId"),
@@ -1214,7 +1213,6 @@ function decodeWaylines(raw) {
1214
1213
  const doc = raw.kml.Document;
1215
1214
  if (!doc["wpml:missionConfig"]) throw new KmzError("Missing wpml:missionConfig in waylines");
1216
1215
  const folders = toArray(doc.Folder);
1217
- if (folders.length === 0) throw new KmzError("No Folder in waylines document");
1218
1216
  return {
1219
1217
  missionConfig: decodeMissionConfig(doc["wpml:missionConfig"]),
1220
1218
  Folder: folders.map(decodeFolder)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lumikmz/kmz-file",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "DJI KMZ file pack/unpack — Rust WASM + spec-aligned TypeScript codec",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -24,7 +24,7 @@
24
24
  "./package.json": "./package.json"
25
25
  },
26
26
  "dependencies": {
27
- "@lumikmz/kmz": "0.5.0"
27
+ "@lumikmz/kmz": "0.6.0"
28
28
  },
29
29
  "devDependencies": {
30
30
  "vite-plus": "latest",