@sedoo/unidoo 0.1.63 → 0.1.65

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sedoo/unidoo",
3
- "version": "0.1.63",
3
+ "version": "0.1.65",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "build": "npm run build:unidoo && npm run build:auth",
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <v-dialog v-model="confirmDialog" persistent :width="width">
2
+ <v-dialog v-model="confirmDialog" persistent :width="width" @keydown.enter="confirm">
3
3
  <v-card>
4
4
  <v-card-title :class="titleClasses">{{title}}</v-card-title>
5
5
  <v-card-text>{{message}}</v-card-text>
package/src/utils.js CHANGED
@@ -17,8 +17,10 @@ export function dateToSpecificTimeZone(date) {
17
17
  * @returns
18
18
  */
19
19
  export const isEmpty = (obj) => {
20
- if (obj?.length || obj?.size) return false;
20
+ if ((obj && obj.length) || (obj && obj.size)) return false;
21
21
  if (typeof obj !== "object") return true;
22
- for (const key in obj) if (Object.hasOwn(obj, key)) return false;
22
+ for (const key in obj) {
23
+ if (Object.hasOwn(obj, key)) return false;
24
+ }
23
25
  return true;
24
26
  };