@anzusystems/common-admin 1.47.0-beta.dev-1771894840 → 1.47.0-beta.dev-1775683200
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
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"./eslint": "./src/eslint/plugin.mjs",
|
|
21
21
|
"./*": "./*"
|
|
22
22
|
},
|
|
23
|
-
"version": "1.47.0-beta.dev-
|
|
23
|
+
"version": "1.47.0-beta.dev-1775683200",
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"repository": {
|
|
26
26
|
"type": "git",
|
|
@@ -69,9 +69,9 @@
|
|
|
69
69
|
"@types/sortablejs": "^1.15.9",
|
|
70
70
|
"@types/webfontloader": "^1.6.38",
|
|
71
71
|
"@vitejs/plugin-vue": "^6.0.5",
|
|
72
|
-
"@vitest/browser": "^4.1.
|
|
73
|
-
"@vitest/browser-playwright": "^4.1.
|
|
74
|
-
"@vitest/ui": "^4.1.
|
|
72
|
+
"@vitest/browser": "^4.1.4",
|
|
73
|
+
"@vitest/browser-playwright": "^4.1.4",
|
|
74
|
+
"@vitest/ui": "^4.1.4",
|
|
75
75
|
"@vue/eslint-config-typescript": "^14.7.0",
|
|
76
76
|
"@vue/language-server": "3.2.6",
|
|
77
77
|
"@vue/test-utils": "^2.4.6",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"@vuelidate/validators": "^2.0.4",
|
|
81
81
|
"@vueuse/core": "^14.2.1",
|
|
82
82
|
"@vueuse/integrations": "^14.2.1",
|
|
83
|
-
"axios": "1.
|
|
83
|
+
"axios": "1.15.0",
|
|
84
84
|
"cropperjs": "^1.6.2",
|
|
85
85
|
"dayjs": "1.11.20",
|
|
86
86
|
"eslint": "^10.2.0",
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
"vite-plugin-dts": "4.5.4",
|
|
110
110
|
"vite-plugin-vuetify": "^2.1.3",
|
|
111
111
|
"vitepress": "1.6.4",
|
|
112
|
-
"vitest": "^4.1.
|
|
112
|
+
"vitest": "^4.1.4",
|
|
113
113
|
"vue": "3.5.32",
|
|
114
114
|
"vue-eslint-parser": "^10.4.0",
|
|
115
115
|
"vue-i18n": "11.3.2",
|
package/src/eslint/plugin.mjs
CHANGED
|
@@ -272,6 +272,13 @@ const anzuPlugin = {
|
|
|
272
272
|
const hasFatalCheck = parts.some(
|
|
273
273
|
(part) => part.type === 'CallExpression' && part.callee.name === 'isAnzuFatalError'
|
|
274
274
|
)
|
|
275
|
+
const hasInstanceofErrorCheck = parts.some(
|
|
276
|
+
(part) =>
|
|
277
|
+
part.type === 'BinaryExpression' &&
|
|
278
|
+
part.operator === 'instanceof' &&
|
|
279
|
+
part.right.type === 'Identifier' &&
|
|
280
|
+
part.right.name === 'Error'
|
|
281
|
+
)
|
|
275
282
|
const hasAxiosCheck = parts.some(
|
|
276
283
|
(part) =>
|
|
277
284
|
part.type === 'CallExpression' &&
|
|
@@ -280,11 +287,11 @@ const anzuPlugin = {
|
|
|
280
287
|
part.callee.property.name === 'isAxiosError'
|
|
281
288
|
)
|
|
282
289
|
|
|
283
|
-
if (
|
|
290
|
+
if (hasAxiosCheck && (hasFatalCheck || hasInstanceofErrorCheck)) {
|
|
284
291
|
context.report({
|
|
285
292
|
node,
|
|
286
293
|
message:
|
|
287
|
-
'Replace
|
|
294
|
+
'Replace error type check && axios.isAxiosError(error.cause)' +
|
|
288
295
|
' with isAnzuApiAxiosError(error).' +
|
|
289
296
|
' Labs API throws AnzuApiAxiosError with typed AxiosError cause.',
|
|
290
297
|
})
|