tardis-machine
Advanced tools
Comparing version 3.3.11 to 3.3.12
@@ -186,2 +186,11 @@ "use strict"; | ||
exports.wait = wait; | ||
const oldToISOString = Date.prototype.toISOString; | ||
// if Date provides microseconds add those to ISO date | ||
Date.prototype.toISOString = function () { | ||
if (this.μs !== undefined) { | ||
const isoString = oldToISOString.apply(this); | ||
return isoString.slice(0, isoString.length - 1) + this.μs.toString().padStart(3, '0') + 'Z'; | ||
} | ||
return oldToISOString.apply(this); | ||
}; | ||
//# sourceMappingURL=helpers.js.map |
{ | ||
"name": "tardis-machine", | ||
"version": "3.3.11", | ||
"version": "3.3.12", | ||
"engines": { | ||
@@ -5,0 +5,0 @@ "node": ">=12" |
@@ -243,1 +243,13 @@ import { | ||
export const wait = (delayMS: number) => new Promise((resolve) => setTimeout(resolve, delayMS)) | ||
const oldToISOString = Date.prototype.toISOString | ||
// if Date provides microseconds add those to ISO date | ||
Date.prototype.toISOString = function () { | ||
if (this.μs !== undefined) { | ||
const isoString = oldToISOString.apply(this) | ||
return isoString.slice(0, isoString.length - 1) + this.μs.toString().padStart(3, '0') + 'Z' | ||
} | ||
return oldToISOString.apply(this) | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
166770
2867