proj4 2.20.0 → 2.20.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/bower.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "proj4",
3
- "version": "2.20.0",
3
+ "version": "2.20.1",
4
4
  "description": "Proj4js is a JavaScript library to transform point coordinates from one coordinate system to another, including datum transformations.",
5
5
  "homepage": "https://github.com/proj4js/proj4js",
6
6
  "main": "dist/proj4.js",
package/component.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "proj4",
3
- "version": "2.20.0",
3
+ "version": "2.20.1",
4
4
  "description": "Proj4js is a JavaScript library to transform point coordinates from one coordinate system to another, including datum transformations.",
5
5
  "repo": "proj4js/proj4js",
6
6
  "keywords": [
package/dist/proj4-src.js CHANGED
@@ -1543,11 +1543,14 @@
1543
1543
  } else {
1544
1544
  defs[/** @type {string} */ (name)] = wkt(arguments[1]);
1545
1545
  }
1546
- } else if (typeof def === 'object' && !('projName' in def)) {
1546
+ } else if (def && typeof def === 'object' && !('projName' in def)) {
1547
1547
  // PROJJSON
1548
1548
  defs[/** @type {string} */ (name)] = wkt(arguments[1]);
1549
1549
  } else {
1550
1550
  defs[/** @type {string} */ (name)] = def;
1551
+ if (!def) {
1552
+ delete defs[/** @type {string} */ (name)];
1553
+ }
1551
1554
  }
1552
1555
  } else if (arguments.length === 1) {
1553
1556
  if (Array.isArray(name)) {
@@ -10526,7 +10529,7 @@
10526
10529
  nadgrid,
10527
10530
  transform,
10528
10531
  mgrs,
10529
- version: '2.20.0'
10532
+ version: '2.20.1'
10530
10533
  });
10531
10534
  includedProjections(proj4);
10532
10535