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/lib/defs.js CHANGED
@@ -75,11 +75,14 @@ function defs(name) {
75
75
  } else {
76
76
  defs[/** @type {string} */ (name)] = wkt(arguments[1]);
77
77
  }
78
- } else if (typeof def === 'object' && !('projName' in def)) {
78
+ } else if (def && typeof def === 'object' && !('projName' in def)) {
79
79
  // PROJJSON
80
80
  defs[/** @type {string} */ (name)] = wkt(arguments[1]);
81
81
  } else {
82
82
  defs[/** @type {string} */ (name)] = def;
83
+ if (!def) {
84
+ delete defs[/** @type {string} */ (name)];
85
+ }
83
86
  }
84
87
  } else if (arguments.length === 1) {
85
88
  if (Array.isArray(name)) {
package/package.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://proj4js.github.io/proj4js/",
6
6
  "main": "dist/proj4-src.js",