@dra2020/baseclient 1.0.157 → 1.0.159

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/lib/geo/geo.ts CHANGED
@@ -536,6 +536,8 @@ export class GeoMultiCollection
536
536
  let e = this.nthEntry(0);
537
537
  if (n == 1)
538
538
  {
539
+ // Note that this is potentially invalid shortcut when some features are hidden from base geometry.
540
+ // Could test overall count of objects vs. this count to check.
539
541
  this.all.topo = this._topo(e);
540
542
  this.all.col = this.all.col || e.col;
541
543
  this.all.map = this.all.map || e.map;
package/lib/util/util.ts CHANGED
@@ -589,7 +589,19 @@ export function deepCopy(src: any): any
589
589
 
590
590
  if (typeof src === 'object')
591
591
  {
592
- if (Array.isArray(src))
592
+ if (src instanceof Set)
593
+ {
594
+ let dst = new Set<any>();
595
+ src.forEach((i: any) => { dst.add(deepCopy(i)) });
596
+ return dst;
597
+ }
598
+ else if (src instanceof Map)
599
+ {
600
+ let dst = new Map<any, any>();
601
+ src.forEach((v: any, k: any) => { dst.set(deepCopy(k), deepCopy(v)) });
602
+ return dst;
603
+ }
604
+ else if (Array.isArray(src))
593
605
  {
594
606
  let dst: any[] = [];
595
607
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dra2020/baseclient",
3
- "version": "1.0.157",
3
+ "version": "1.0.159",
4
4
  "description": "Utility functions for Javascript projects.",
5
5
  "main": "dist/baseclient.js",
6
6
  "types": "./dist/all/all.d.ts",
@@ -32,17 +32,17 @@
32
32
  "@types/geojson": "^7946.0.8",
33
33
  "@types/node": "20.11.30",
34
34
  "@types/object-hash": "^3.0.6",
35
+ "elliptic": "^6.6.1",
36
+ "pbkdf2": "^3.1.3",
35
37
  "source-map-loader": "^5.0.0",
36
38
  "ts-loader": "^9.5.2",
37
39
  "tsify": "^5.0.4",
38
- "pbkdf2":"^3.1.3",
39
- "elliptic": "^6.6.1",
40
40
  "typescript": "^5.8.3",
41
41
  "webpack": "^5.99.5",
42
42
  "webpack-cli": "^5.1.4"
43
43
  },
44
44
  "dependencies": {
45
- "@dra2020/topojson-client": "^3.2.15",
45
+ "@dra2020/topojson-client": "^3.2.16",
46
46
  "@dra2020/topojson-server": "^3.0.103",
47
47
  "@dra2020/topojson-simplify": "^3.0.102",
48
48
  "diff-match-patch": "^1.0.5",