vue3-smart-captcha
Advanced tools
Comparing version
@@ -72,3 +72,3 @@ import { ComponentOptionsMixin } from 'vue'; | ||
declare type ShieldPosition = | ||
export declare type ShieldPosition = | ||
| 'top-left' | ||
@@ -114,3 +114,3 @@ | 'center-left' | ||
*/ | ||
declare type SubscribeEvent = | ||
export declare type SubscribeEvent = | ||
| 'challenge-visible' | ||
@@ -125,3 +125,3 @@ | 'challenge-hidden' | ||
declare type SupportedLang = | ||
export declare type SupportedLang = | ||
| 'ru' | ||
@@ -167,5 +167,15 @@ | 'en' | ||
subscribe(widgetId: WidgetId, event: 'success', callback: SuccessEventCallback): () => void | ||
subscribe(widgetId: WidgetId, event: 'javascript-error', callback: JavascriptErrorEventCallback): () => void | ||
subscribe(widgetId: WidgetId, event: Exclude<SubscribeEvent, 'success', 'javascript-error'>, callback: BaseEventCallback): () => void | ||
/** | ||
* if event === 'success', cb will be SuccessEventCallback | ||
* if event === 'javascript-error', cb will be JavascriptErrorEventCallback | ||
* otherwise BaseEventCallback | ||
*/ | ||
subscribe: <T extends SubscribeEvent = SubscribeEvent>( | ||
widgetId: WidgetId, | ||
event: T, | ||
callback: | ||
T extends 'success' ? SuccessEventCallback : | ||
T extends 'javascript-error' ? JavascriptErrorEventCallback : | ||
BaseEventCallback | ||
) => void | ||
} | ||
@@ -172,0 +182,0 @@ |
103
package.json
{ | ||
"name": "vue3-smart-captcha", | ||
"description": "Yandex Smart Captcha for Vue3 projects", | ||
"keywords": [ | ||
"captcha", | ||
"component", | ||
"smart-captcha", | ||
"vue", | ||
"vue3" | ||
], | ||
"license": "MIT", | ||
"version": "1.1.1", | ||
"type": "module", | ||
"main": "./dist/index.cjs", | ||
"module": "./dist/index.js", | ||
"types": "./dist/SmartCaptcha.d.ts", | ||
"files": [ | ||
"dist" | ||
], | ||
"scripts": { | ||
"dev": "vite", | ||
"build": "vue-tsc && vite build", | ||
"lint": "eslint ./src --fix", | ||
"test": "vitest run", | ||
"prepare": "node .husky/install.mjs" | ||
}, | ||
"lint-staged": { | ||
"*.{ts,vue}": "eslint ./src --fix" | ||
}, | ||
"dependencies": { | ||
"vue": "^3.5.13" | ||
}, | ||
"devDependencies": { | ||
"@stylistic/eslint-plugin-ts": "^2.11.0", | ||
"@types/node": "^20.17.9", | ||
"@typescript-eslint/eslint-plugin": "^8.16.0", | ||
"@typescript-eslint/parser": "^8.16.0", | ||
"@vitejs/plugin-vue": "^5.2.1", | ||
"@vue/test-utils": "^2.4.6", | ||
"@vue/tsconfig": "^0.5.1", | ||
"eslint": "^8.57.1", | ||
"eslint-plugin-vue": "^9.32.0", | ||
"husky": "^9.1.7", | ||
"jsdom": "^25.0.1", | ||
"lint-staged": "^15.2.10", | ||
"typescript": "5.6.2", | ||
"vite": "^5.4.11", | ||
"vite-plugin-dts": "^3.9.1", | ||
"vitest": "^1.6.0", | ||
"vue-eslint-parser": "^9.4.3", | ||
"vue-tsc": "2.0.29" | ||
} | ||
"name": "vue3-smart-captcha", | ||
"description": "Yandex Smart Captcha for Vue3 projects", | ||
"keywords": [ | ||
"captcha", | ||
"component", | ||
"smart-captcha", | ||
"vue", | ||
"vue3" | ||
], | ||
"license": "MIT", | ||
"version": "1.1.2", | ||
"type": "module", | ||
"main": "./dist/index.cjs", | ||
"module": "./dist/index.js", | ||
"types": "./dist/SmartCaptcha.d.ts", | ||
"files": [ | ||
"dist" | ||
], | ||
"scripts": { | ||
"dev": "vite", | ||
"build": "vue-tsc && vite build", | ||
"lint": "eslint ./src --fix", | ||
"test": "vitest run", | ||
"type-check": "vue-tsc --noEmit", | ||
"prepare": "node .husky/install.mjs" | ||
}, | ||
"lint-staged": { | ||
"*.{ts,vue}": "eslint ./src --fix" | ||
}, | ||
"dependencies": { | ||
"vue": "^3.5.13" | ||
}, | ||
"devDependencies": { | ||
"@stylistic/eslint-plugin-ts": "^2.11.0", | ||
"@types/node": "^20.17.9", | ||
"@typescript-eslint/eslint-plugin": "^8.16.0", | ||
"@typescript-eslint/parser": "^8.16.0", | ||
"@vitejs/plugin-vue": "^5.2.1", | ||
"@vue/test-utils": "^2.4.6", | ||
"@vue/tsconfig": "^0.5.1", | ||
"eslint": "^8.57.1", | ||
"eslint-plugin-vue": "^9.32.0", | ||
"husky": "^9.1.7", | ||
"jsdom": "^25.0.1", | ||
"lint-staged": "^15.2.10", | ||
"typescript": "5.6.2", | ||
"vite": "^5.4.11", | ||
"vite-plugin-dts": "^3.9.1", | ||
"vitest": "^1.6.0", | ||
"vue-eslint-parser": "^9.4.3", | ||
"vue-tsc": "2.0.29" | ||
} | ||
} |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
29978
1.17%328
3.14%0
-100%