@radiantearth/stac-migrate 2.0.1 → 2.0.2

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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/migrate.js +1 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  A library to update STAC files to the latest version (**1.1.0** at the moment of writing).
4
4
  Supports updating **STAC versions 0.6.0 and later**.
5
5
 
6
- Version of this library: **2.0.1**
6
+ Version of this library: **2.0.2**
7
7
 
8
8
  ## Usage
9
9
 
package/migrate.js CHANGED
@@ -401,7 +401,7 @@ var _ = {
401
401
  if (!(date instanceof Date)) {
402
402
  date = new Date(date);
403
403
  }
404
- return date.toISOString().replace(/\.0+/, ''); // Don't export milliseconds if not needed
404
+ return date.toISOString().replace(/\.0+(?=[-\+Z])/, ''); // Don't export milliseconds if not needed
405
405
  },
406
406
 
407
407
  formatString(obj, key, format) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@radiantearth/stac-migrate",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "A library to update STAC files to the latest version.",
5
5
  "main": "migrate.js",
6
6
  "bin": {