@lumikmz/kmz-file 0.9.0 → 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/dist/index.mjs +9 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -602,6 +602,10 @@ function encodeTemplate(template) {
|
|
|
602
602
|
...template.author !== void 0 ? { "wpml:author": template.author } : {},
|
|
603
603
|
...template.createTime !== void 0 ? { "wpml:createTime": String(template.createTime) } : {},
|
|
604
604
|
...template.updateTime !== void 0 ? { "wpml:updateTime": String(template.updateTime) } : {},
|
|
605
|
+
...template.jnCustom !== void 0 ? { "wpml:jnCustom": {
|
|
606
|
+
...template.jnCustom.airportId !== void 0 ? { "wpml:airportId": template.jnCustom.airportId } : {},
|
|
607
|
+
...template.jnCustom.airportSn !== void 0 ? { "wpml:airportSn": template.jnCustom.airportSn } : {}
|
|
608
|
+
} } : {},
|
|
605
609
|
"wpml:missionConfig": encodeMissionConfig(template.missionConfig),
|
|
606
610
|
Folder: encodeTemplateFolder(template)
|
|
607
611
|
}
|
|
@@ -1232,7 +1236,11 @@ function decodeTemplate(raw) {
|
|
|
1232
1236
|
missionConfig: decodeMissionConfig(doc["wpml:missionConfig"]),
|
|
1233
1237
|
...doc["wpml:author"] !== void 0 ? { author: doc["wpml:author"] } : {},
|
|
1234
1238
|
...doc["wpml:createTime"] !== void 0 ? { createTime: parseNum(doc["wpml:createTime"], "createTime") } : {},
|
|
1235
|
-
...doc["wpml:updateTime"] !== void 0 ? { updateTime: parseNum(doc["wpml:updateTime"], "updateTime") } : {}
|
|
1239
|
+
...doc["wpml:updateTime"] !== void 0 ? { updateTime: parseNum(doc["wpml:updateTime"], "updateTime") } : {},
|
|
1240
|
+
...doc["wpml:jnCustom"] !== void 0 ? { jnCustom: {
|
|
1241
|
+
...doc["wpml:jnCustom"]["wpml:airportId"] !== void 0 ? { airportId: doc["wpml:jnCustom"]["wpml:airportId"] } : {},
|
|
1242
|
+
...doc["wpml:jnCustom"]["wpml:airportSn"] !== void 0 ? { airportSn: doc["wpml:jnCustom"]["wpml:airportSn"] } : {}
|
|
1243
|
+
} } : {}
|
|
1236
1244
|
};
|
|
1237
1245
|
}
|
|
1238
1246
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lumikmz/kmz-file",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.1",
|
|
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.9.
|
|
27
|
+
"@lumikmz/kmz": "0.9.1"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"vite-plus": "latest",
|