@verdocs/js-sdk 3.6.9 → 3.6.11

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.
@@ -1,4 +1,4 @@
1
- import { IStar, ITemplatesSummary } from './Types';
1
+ import { IStar, ITemplateSummaryEntry } from './Types';
2
2
  import { VerdocsEndpoint } from '../VerdocsEndpoint';
3
3
  /**
4
4
  * Get the template stars for a template.
@@ -7,4 +7,4 @@ export declare const getStars: (endpoint: VerdocsEndpoint, templateId: string) =
7
7
  /**
8
8
  * Toggle the template star for a template.
9
9
  */
10
- export declare const toggleStar: (endpoint: VerdocsEndpoint, templateId: string) => Promise<ITemplatesSummary>;
10
+ export declare const toggleStar: (endpoint: VerdocsEndpoint, templateId: string) => Promise<ITemplateSummaryEntry>;
package/Utils/DateTime.js CHANGED
@@ -22,20 +22,20 @@ export var formatShortTimeAgo = function (val) {
22
22
  if (timeDiff >= YEAR) {
23
23
  return Math.floor(timeDiff / YEAR) + 'Y';
24
24
  }
25
- if (timeDiff >= MONTH) {
26
- return Math.floor(timeDiff / MONTH) + 'M';
27
- }
25
+ // if (timeDiff >= MONTH) {
26
+ // return Math.floor(timeDiff / MONTH) + 'M';
27
+ // }
28
28
  if (timeDiff >= WEEK) {
29
29
  return Math.floor(timeDiff / WEEK) + 'W';
30
30
  }
31
31
  if (timeDiff >= DAY) {
32
- return Math.floor(timeDiff / DAY) + 'Y';
32
+ return Math.floor(timeDiff / DAY) + 'D';
33
33
  }
34
34
  if (timeDiff >= HOUR) {
35
- return Math.floor(timeDiff / HOUR) + 'Y';
35
+ return Math.floor(timeDiff / HOUR) + 'H';
36
36
  }
37
37
  if (timeDiff >= MINUTE) {
38
- return Math.floor(timeDiff / MINUTE) + 'Y';
38
+ return Math.floor(timeDiff / MINUTE) + 'M';
39
39
  }
40
40
  return "".concat(timeDiff, "S");
41
41
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verdocs/js-sdk",
3
- "version": "3.6.9",
3
+ "version": "3.6.11",
4
4
  "private": false,
5
5
  "homepage": "https://github.com/Verdocs/js-sdk",
6
6
  "description": "Verdocs JS SDK",