slider-captcha-sdk 1.0.0 → 1.0.2

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,18 +1,30 @@
1
1
  {
2
2
  "name": "slider-captcha-sdk",
3
- "version": "1.0.0",
4
- "description": "纯JavaScript滑块验证码SDK,无依赖,支持多种模块格式",
3
+ "version": "1.0.2",
4
+ "description": "纯JavaScript滑块验证码SDK和密码校验工具,无依赖,支持多种模块格式",
5
5
  "type": "module",
6
- "main": "dist/slider-captcha.cjs.js",
7
- "module": "dist/slider-captcha.esm.js",
8
- "browser": "dist/slider-captcha.min.js",
6
+ "main": "dist/index.cjs.js",
7
+ "module": "dist/index.esm.js",
8
+ "browser": "dist/index.min.js",
9
9
  "types": "dist/index.d.ts",
10
10
  "exports": {
11
11
  ".": {
12
+ "import": "./dist/index.esm.js",
13
+ "require": "./dist/index.cjs.js",
14
+ "browser": "./dist/index.min.js",
15
+ "types": "./dist/index.d.ts"
16
+ },
17
+ "./slider-captcha": {
12
18
  "import": "./dist/slider-captcha.esm.js",
13
19
  "require": "./dist/slider-captcha.cjs.js",
14
20
  "browser": "./dist/slider-captcha.min.js",
15
- "types": "./dist/index.d.ts"
21
+ "types": "./dist/slider-captcha.d.ts"
22
+ },
23
+ "./password-validator": {
24
+ "import": "./dist/password-validator.esm.js",
25
+ "require": "./dist/password-validator.cjs.js",
26
+ "browser": "./dist/password-validator.min.js",
27
+ "types": "./dist/password-validator.d.ts"
16
28
  }
17
29
  },
18
30
  "files": [
@@ -27,7 +39,7 @@
27
39
  "dev": "rollup -c -w",
28
40
  "prepublishOnly": "npm run build:prod",
29
41
  "test": "echo \"Error: no test specified\" && exit 1",
30
- "lint": "echo \"Linting not configured\"",
42
+ "lint": "eslint src --ext .js --fix",
31
43
  "clean": "rm -rf dist"
32
44
  },
33
45
  "keywords": [
@@ -39,12 +51,15 @@
39
51
  "security",
40
52
  "frontend",
41
53
  "validation",
42
- "puzzle"
54
+ "puzzle",
55
+ "password",
56
+ "validator",
57
+ "encryption",
58
+ "rsa"
43
59
  ],
44
60
  "author": {
45
61
  "name": "wql",
46
- "email": "weiqinlin627@gmail.com",
47
- "url": "https://github.com/yourusername"
62
+ "email": "weiqinlin627@gmail.com"
48
63
  },
49
64
  "license": "MIT",
50
65
  "engines": {
@@ -53,12 +68,17 @@
53
68
  "devDependencies": {
54
69
  "@rollup/plugin-node-resolve": "^15.0.0",
55
70
  "@rollup/plugin-terser": "^0.4.0",
71
+ "eslint": "^8.0.0",
72
+ "eslint-plugin-vue": "^9.0.0",
56
73
  "rollup": "^3.0.0",
57
74
  "rollup-plugin-copy": "^3.4.0"
58
75
  },
76
+ "dependencies": {
77
+ "jsencrypt": "^3.3.2"
78
+ },
59
79
  "repository": {
60
80
  "type": "git",
61
- "url": "git+https://github.com/yourusername/slider-captcha-sdk.git"
81
+ "url": "http://106.55.220.25:8080/weiqinlin/slider-captcha-sdk.git"
62
82
  },
63
83
  "publishConfig": {
64
84
  "registry": "https://registry.npmjs.org/"