@honua/app-platform 0.2.1 → 0.2.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@honua/app-platform",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "Honua application-platform surfaces: app-shell, workspace, scene, operator, studio, and hosted-product clients",
5
5
  "keywords": [
6
6
  "gis",
@@ -121,7 +121,7 @@
121
121
  "proj4": "^2.20.9"
122
122
  },
123
123
  "peerDependencies": {
124
- "@honua/sdk": "0.2.1",
124
+ "@honua/sdk": "0.2.3",
125
125
  "@bufbuild/protobuf": "^2.0.0",
126
126
  "@connectrpc/connect": "^2.0.0",
127
127
  "@connectrpc/connect-web": "^2.0.0",
@@ -1 +1 @@
1
- {"version":3,"file":"canonical.d.ts","sourceRoot":"","sources":["../../../src/query-planner/canonical.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,kFAAkF;AAClF,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,SAAS,GAAG,MAAM,CAE3D;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,SAAM,GAAG,SAAS,CAEjE;AA6DD,iFAAiF;AACjF,wBAAgB,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,UAAU,MAAM,EAAE,CA6DxD"}
1
+ {"version":3,"file":"canonical.d.ts","sourceRoot":"","sources":["../../../src/query-planner/canonical.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,kFAAkF;AAClF,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,SAAS,GAAG,MAAM,CAE3D;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,SAAM,GAAG,SAAS,CAEjE;AAqDD,iFAAiF;AACjF,wBAAgB,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,UAAU,MAAM,EAAE,CA6DxD"}
@@ -33,20 +33,17 @@ function convertJson(value, path, ancestors) {
33
33
  throw new TypeError(`${path} must contain only plain JSON objects`);
34
34
  }
35
35
  ancestors.add(value);
36
- const converted = {};
36
+ const entries = [];
37
37
  for (const key of Object.keys(value).sort()) {
38
38
  const entry = value[key];
39
39
  if (entry !== undefined) {
40
- Object.defineProperty(converted, key, {
41
- value: convertJson(entry, `${path}.${key}`, ancestors),
42
- enumerable: true,
43
- writable: true,
44
- configurable: true,
45
- });
40
+ entries.push([key, convertJson(entry, `${path}.${key}`, ancestors)]);
46
41
  }
47
42
  }
48
43
  ancestors.delete(value);
49
- return converted;
44
+ // Native data-property creation keeps special keys inert without allocating
45
+ // a property descriptor for every member of every detached object.
46
+ return Object.fromEntries(entries);
50
47
  }
51
48
  throw new TypeError(`${path} contains unsupported ${typeof value}`);
52
49
  }
@@ -55,16 +52,11 @@ function sortJson(value) {
55
52
  return value.map(sortJson);
56
53
  if (value !== null && typeof value === "object") {
57
54
  const object = value;
58
- const sorted = {};
55
+ const entries = [];
59
56
  for (const key of Object.keys(object).sort()) {
60
- Object.defineProperty(sorted, key, {
61
- value: sortJson(object[key]),
62
- enumerable: true,
63
- writable: true,
64
- configurable: true,
65
- });
57
+ entries.push([key, sortJson(object[key])]);
66
58
  }
67
- return sorted;
59
+ return Object.fromEntries(entries);
68
60
  }
69
61
  return value;
70
62
  }