You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

vue3-smart-captcha

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue3-smart-captcha - npm Package Compare versions

Comparing version

to
1.1.2

22

dist/SmartCaptcha.d.ts

@@ -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 @@

{
"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"
}
}