akeyless-client-commons 1.0.146 → 1.0.147

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.
@@ -1097,6 +1097,9 @@ function cn() {
1097
1097
  var import_firestore2 = require("firebase/firestore");
1098
1098
  var import_moment_timezone = __toESM(require("moment-timezone"));
1099
1099
  function timestamp_to_string(firebaseTimestamp, options) {
1100
+ if (!firebaseTimestamp) {
1101
+ return "-";
1102
+ }
1100
1103
  var date;
1101
1104
  if (_instanceof(firebaseTimestamp, import_firestore2.Timestamp)) {
1102
1105
  date = firebaseTimestamp.toDate();
@@ -884,6 +884,9 @@ function cn() {
884
884
  import { Timestamp as Timestamp2 } from "firebase/firestore";
885
885
  import moment2 from "moment-timezone";
886
886
  function timestamp_to_string(firebaseTimestamp, options) {
887
+ if (!firebaseTimestamp) {
888
+ return "-";
889
+ }
887
890
  var date;
888
891
  if (_instanceof(firebaseTimestamp, Timestamp2)) {
889
892
  date = firebaseTimestamp.toDate();
@@ -2012,6 +2012,9 @@ function cn() {
2012
2012
  var import_firestore2 = require("firebase/firestore");
2013
2013
  var import_moment_timezone = __toESM(require("moment-timezone"));
2014
2014
  function timestamp_to_string(firebaseTimestamp, options) {
2015
+ if (!firebaseTimestamp) {
2016
+ return "-";
2017
+ }
2015
2018
  var date;
2016
2019
  if (_instanceof(firebaseTimestamp, import_firestore2.Timestamp)) {
2017
2020
  date = firebaseTimestamp.toDate();
@@ -1681,6 +1681,9 @@ function cn() {
1681
1681
  import { Timestamp as Timestamp2 } from "firebase/firestore";
1682
1682
  import moment2 from "moment-timezone";
1683
1683
  function timestamp_to_string(firebaseTimestamp, options) {
1684
+ if (!firebaseTimestamp) {
1685
+ return "-";
1686
+ }
1684
1687
  var date;
1685
1688
  if (_instanceof(firebaseTimestamp, Timestamp2)) {
1686
1689
  date = firebaseTimestamp.toDate();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "akeyless-client-commons",
3
- "version": "1.0.146",
3
+ "version": "1.0.147",
4
4
  "scripts": {
5
5
  "build": "tsup",
6
6
  "deploy": "npm run build && npm version patch --no-git-tag-version && npm publish",