swcombine.js 0.0.9 → 0.0.10
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/index.cjs.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -265,7 +265,7 @@ const _SwcTimestamp = class _SwcTimestamp {
|
|
|
265
265
|
* 'shortDay': Y26 D60
|
|
266
266
|
* @param format format to use
|
|
267
267
|
*/
|
|
268
|
-
toString(format) {
|
|
268
|
+
toString(format = "full") {
|
|
269
269
|
switch (format) {
|
|
270
270
|
case "full":
|
|
271
271
|
return `Year ${this.year} Day ${this.day}, ${this.hour}:${this.minute.toString().padStart(2, "0")}:${this.second.toString().padStart(2, "0")}`;
|
package/dist/index.d.ts
CHANGED
|
@@ -452,7 +452,7 @@ export declare class SwcTimestamp {
|
|
|
452
452
|
* 'shortDay': Y26 D60
|
|
453
453
|
* @param format format to use
|
|
454
454
|
*/
|
|
455
|
-
toString(format
|
|
455
|
+
toString(format?: 'full' | 'minute' | 'day' | 'shortFull' | 'shortMinute' | 'shortDay'): string;
|
|
456
456
|
/**
|
|
457
457
|
* @returns {number}
|
|
458
458
|
* @private
|
package/dist/index.esm.js
CHANGED
|
@@ -263,7 +263,7 @@ const _SwcTimestamp = class _SwcTimestamp {
|
|
|
263
263
|
* 'shortDay': Y26 D60
|
|
264
264
|
* @param format format to use
|
|
265
265
|
*/
|
|
266
|
-
toString(format) {
|
|
266
|
+
toString(format = "full") {
|
|
267
267
|
switch (format) {
|
|
268
268
|
case "full":
|
|
269
269
|
return `Year ${this.year} Day ${this.day}, ${this.hour}:${this.minute.toString().padStart(2, "0")}:${this.second.toString().padStart(2, "0")}`;
|