@signal24/vue-foundation 4.21.1 → 4.23.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/eslint.config.mjs CHANGED
@@ -3,6 +3,7 @@ import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'
3
3
  import simpleImportSort from 'eslint-plugin-simple-import-sort';
4
4
  import unusedImports from 'eslint-plugin-unused-imports';
5
5
  import pluginVue from 'eslint-plugin-vue';
6
+ import globals from 'globals';
6
7
  import tseslint from 'typescript-eslint';
7
8
 
8
9
  export default tseslint.config(
@@ -27,11 +28,13 @@ export default tseslint.config(
27
28
  projectService: true
28
29
  },
29
30
 
30
- // not sure why some of these TS generics are needed.
31
- // will circle back when Vue officially updates to ESLint 9
32
31
  globals: {
32
+ // not sure why some of these TS generics are needed.
33
+ // will circle back when Vue officially updates to ESLint 9
33
34
  Omit: false,
34
- Record: false
35
+ Record: false,
36
+
37
+ ...globals.browser
35
38
  }
36
39
  }
37
40
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@signal24/vue-foundation",
3
3
  "type": "module",
4
- "version": "4.21.1",
4
+ "version": "4.23.0",
5
5
  "description": "Common components, directives, and helpers for Vue 3 apps",
6
6
  "module": "./dist/vue-foundation.es.js",
7
7
  "exports": {
@@ -43,38 +43,38 @@
43
43
  "vue": "^3.4.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@eslint/js": "9.21.0",
46
+ "@eslint/js": "9.26.0",
47
47
  "@nabla/vite-plugin-eslint": "^2.0.5",
48
- "@signal24/openapi-client-codegen": "^2.2.1",
49
- "@tsconfig/node22": "^22.0.0",
48
+ "@signal24/openapi-client-codegen": "^2.5.0",
49
+ "@tsconfig/node22": "^22.0.1",
50
50
  "@types/jsdom": "^21.1.7",
51
51
  "@types/lodash": "^4.17.16",
52
- "@types/node": "^22.13.8",
52
+ "@types/node": "^22.15.18",
53
53
  "@types/uuid": "^10.0.0",
54
- "@vitejs/plugin-vue": "^5.2.1",
54
+ "@vitejs/plugin-vue": "^5.2.4",
55
55
  "@vue/eslint-config-prettier": "^10.2.0",
56
- "@vue/eslint-config-typescript": "^14.4.0",
56
+ "@vue/eslint-config-typescript": "^14.5.0",
57
57
  "@vue/test-utils": "^2.4.6",
58
58
  "@vue/tsconfig": "^0.7.0",
59
- "cypress": "^14.1.0",
59
+ "cypress": "^14.3.3",
60
60
  "date-fns": "^4.1.0",
61
- "eslint": "9.21.0",
62
- "eslint-plugin-cypress": "^4.1.0",
61
+ "eslint": "9.26.0",
62
+ "eslint-plugin-cypress": "^4.3.0",
63
63
  "eslint-plugin-simple-import-sort": "^12.1.1",
64
64
  "eslint-plugin-unused-imports": "^4.1.4",
65
- "eslint-plugin-vue": "^9.32.0",
66
- "jsdom": "^26.0.0",
65
+ "eslint-plugin-vue": "^10.1.0",
66
+ "jsdom": "^26.1.0",
67
67
  "lodash": "^4.17.21",
68
- "prettier": "^3.5.2",
69
- "sass": "^1.85.1",
70
- "start-server-and-test": "^2.0.10",
71
- "type-fest": "^4.36.0",
68
+ "prettier": "^3.5.3",
69
+ "sass": "^1.88.0",
70
+ "start-server-and-test": "^2.0.11",
71
+ "type-fest": "^4.41.0",
72
72
  "typescript": "~5.8",
73
- "typescript-eslint": "^8.25.0",
74
- "vite": "^6.2.0",
75
- "vitest": "^3.0.7",
73
+ "typescript-eslint": "^8.32.1",
74
+ "vite": "^6.3.5",
75
+ "vitest": "^3.1.3",
76
76
  "vue": "^3.5.13",
77
- "vue-tsc": "^2.2.4"
77
+ "vue-tsc": "^2.2.10"
78
78
  },
79
79
  "packageManager": "yarn@4.6.0"
80
80
  }
@@ -20,7 +20,14 @@ export function formatError(err: any): string {
20
20
 
21
21
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
22
22
  export function toError(err: any) {
23
- return err instanceof Error ? err : new Error(String(err));
23
+ if (isError(err)) return err;
24
+ return new Error(String(err));
25
+ }
26
+
27
+ export function isError(err: unknown): err is Error {
28
+ if (err instanceof Error) return true;
29
+ if (typeof err === 'object' && err !== null && 'message' in err && 'name' in err) return true;
30
+ return false;
24
31
  }
25
32
 
26
33
  interface IErrorAlertOptions {