dgeoutils 2.4.21 → 2.4.22

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/cjs/utils.js CHANGED
@@ -274,6 +274,7 @@ var parseDegreesMinutesSeconds = function (i) {
274
274
  }
275
275
  finally { if (e_1) throw e_1.error; }
276
276
  }
277
- return d + m / 60 + s / 3600;
277
+ var h = d < 0 ? -1 : 1;
278
+ return d + h * m / 60 + h * s / 3600;
278
279
  };
279
280
  exports.parseDegreesMinutesSeconds = parseDegreesMinutesSeconds;
@@ -202,5 +202,6 @@ export const parseDegreesMinutesSeconds = (i) => {
202
202
  default:
203
203
  }
204
204
  }
205
- return d + m / 60 + s / 3600;
205
+ const h = d < 0 ? -1 : 1;
206
+ return d + h * m / 60 + h * s / 3600;
206
207
  };
package/dist/esm/utils.js CHANGED
@@ -260,5 +260,6 @@ export var parseDegreesMinutesSeconds = function (i) {
260
260
  }
261
261
  finally { if (e_1) throw e_1.error; }
262
262
  }
263
- return d + m / 60 + s / 3600;
263
+ var h = d < 0 ? -1 : 1;
264
+ return d + h * m / 60 + h * s / 3600;
264
265
  };