@raytio/decrypt-helper 5.0.0 → 5.1.0

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/CHANGELOG.md CHANGED
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## 5.1.0 (2022-08-13)
11
+
12
+ - update raytio/core so that `repairDate` is used on dates
13
+
10
14
  ## 5.0.0 (2022-07-12)
11
15
 
12
16
  - 💥 BREAKING CHANGE: !185 use `accessToken` instead of `idToken` when communicating with the Raytio API
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.transform = exports.IS_ARRAY_OF_OBJECTS = exports.IS_IMAGE = void 0;
4
+ const core_1 = require("@raytio/core");
4
5
  const locales_1 = require("../../locales");
5
6
  const general_1 = require("./general");
6
7
  exports.IS_IMAGE = Symbol.for("image");
@@ -28,7 +29,7 @@ function transform(key, value, pdfConfig, imageFieldNames) {
28
29
  switch (key) {
29
30
  case "start_date":
30
31
  case "end_date": {
31
- return (0, general_1.formatDate)(new Date(`${value}Z`), pdfConfig.DATE_FORMAT, pdfConfig.TIMEZONE);
32
+ return (0, general_1.formatDate)((0, core_1.repairDate)(value), pdfConfig.DATE_FORMAT, pdfConfig.TIMEZONE);
32
33
  }
33
34
  default: {
34
35
  return value;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raytio/decrypt-helper",
3
- "version": "5.0.0",
3
+ "version": "5.1.0",
4
4
  "author": "Raytio",
5
5
  "description": "A helper to decrypt data shared by Raytio users",
6
6
  "main": "dist",
@@ -23,7 +23,7 @@
23
23
  "dependencies": {
24
24
  "@aws-amplify/auth": "3.4.25",
25
25
  "@peculiar/webcrypto": "^1.4.0",
26
- "@raytio/core": "^10.0.1",
26
+ "@raytio/core": "^10.1.0",
27
27
  "@raytio/maxcryptor": "^3.1.0",
28
28
  "@raytio/types": "^6.0.2",
29
29
  "aws-sdk": "^2.754.0",