@takeshape/util 8.75.1 → 8.77.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.
package/es/unix-to-iso.js CHANGED
@@ -1,3 +1,6 @@
1
1
  export function unixToISO(unix) {
2
2
  return new Date(unix * 1000).toISOString();
3
+ }
4
+ export function unixToISODateOnly(unix) {
5
+ return unixToISO(unix).slice(0, 10);
3
6
  }
@@ -1,2 +1,3 @@
1
1
  export declare function unixToISO(unix: number): string;
2
+ export declare function unixToISODateOnly(unix: number): string;
2
3
  //# sourceMappingURL=unix-to-iso.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"unix-to-iso.d.ts","sourceRoot":"","sources":["../../src/unix-to-iso.ts"],"names":[],"mappings":"AAAA,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE9C"}
1
+ {"version":3,"file":"unix-to-iso.d.ts","sourceRoot":"","sources":["../../src/unix-to-iso.ts"],"names":[],"mappings":"AAAA,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE9C;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEtD"}
@@ -4,7 +4,12 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.unixToISO = unixToISO;
7
+ exports.unixToISODateOnly = unixToISODateOnly;
7
8
 
8
9
  function unixToISO(unix) {
9
10
  return new Date(unix * 1000).toISOString();
11
+ }
12
+
13
+ function unixToISODateOnly(unix) {
14
+ return unixToISO(unix).slice(0, 10);
10
15
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@takeshape/util",
3
- "version": "8.75.1",
3
+ "version": "8.77.2",
4
4
  "description": "Shared utilities",
5
5
  "homepage": "https://www.takeshape.io",
6
6
  "repository": {
@@ -21,7 +21,7 @@
21
21
  "es"
22
22
  ],
23
23
  "dependencies": {
24
- "@takeshape/routing": "8.75.1",
24
+ "@takeshape/routing": "8.77.2",
25
25
  "@types/url-parse": "^1.4.4",
26
26
  "aws-sdk": "^2.802.0",
27
27
  "classnames": "^2.2.5",