spamscanner 4.0.0 → 5.1.1
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/README.md +79 -8
- package/cedict_1_0_ts_utf-8_mdbg.txt +120853 -0
- package/index.js +284 -119
- package/package.json +37 -73
- package/vocabulary-limit.js +3 -1
package/package.json
CHANGED
|
@@ -1,22 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "spamscanner",
|
|
3
3
|
"description": "Spam Scanner - The Best Anti-Spam Scanning Service and Anti-Spam API",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "5.1.1",
|
|
5
5
|
"author": "Niftylettuce, LLC. <niftylettuce@gmail.com> (https://niftylettuce.com/)",
|
|
6
|
-
"ava": {
|
|
7
|
-
"timeout": "30s",
|
|
8
|
-
"verbose": true,
|
|
9
|
-
"serial": true
|
|
10
|
-
},
|
|
11
6
|
"bugs": {
|
|
12
7
|
"url": "https://github.com/spamscanner/spamscanner/issues",
|
|
13
8
|
"email": "niftylettuce@gmail.com"
|
|
14
9
|
},
|
|
15
|
-
"commitlint": {
|
|
16
|
-
"extends": [
|
|
17
|
-
"@commitlint/config-conventional"
|
|
18
|
-
]
|
|
19
|
-
},
|
|
20
10
|
"contributors": [
|
|
21
11
|
"Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)",
|
|
22
12
|
"Shaun Warman <shaunwarman1@gmail.com> (http://shaunwarman.com/)"
|
|
@@ -24,69 +14,69 @@
|
|
|
24
14
|
"dependencies": {
|
|
25
15
|
"@ladjs/naivebayes": "^0.1.0",
|
|
26
16
|
"bitcoin-regex": "^2.0.0",
|
|
27
|
-
"
|
|
17
|
+
"chinese-tokenizer": "^2.4.0",
|
|
18
|
+
"clamscan": "^2.1.2",
|
|
28
19
|
"credit-card-regex": "^3.0.0",
|
|
29
20
|
"crypto-random-string": "3",
|
|
30
21
|
"currency-codes": "^2.1.0",
|
|
31
|
-
"currency-symbol-map": "^5.0
|
|
32
|
-
"debug": "^4.3.2",
|
|
22
|
+
"currency-symbol-map": "^5.1.0",
|
|
33
23
|
"email-regex-safe": "^1.0.2",
|
|
34
|
-
"emoji-patterns": "^
|
|
24
|
+
"emoji-patterns": "^14.0.1",
|
|
35
25
|
"escape-string-regexp": "4",
|
|
36
26
|
"expand-contractions": "^1.0.1",
|
|
37
27
|
"file-extension": "^4.0.5",
|
|
38
|
-
"file-type": "
|
|
28
|
+
"file-type": "16",
|
|
39
29
|
"floating-point-regex": "^0.1.0",
|
|
40
30
|
"franc": "5",
|
|
41
31
|
"gemoji": "6",
|
|
42
32
|
"hasha": "^5.2.2",
|
|
43
33
|
"hexa-color-regex": "^1.0.0",
|
|
44
34
|
"i18n-locales": "^0.0.5",
|
|
45
|
-
"iconv": "^3.0.
|
|
35
|
+
"iconv": "^3.0.1",
|
|
46
36
|
"into-stream": "6",
|
|
47
|
-
"ip-regex": "
|
|
37
|
+
"ip-regex": "4",
|
|
48
38
|
"is-buffer": "^2.0.5",
|
|
49
39
|
"is-stream": "2",
|
|
50
40
|
"is-string-and-not-blank": "^0.0.2",
|
|
51
41
|
"is-valid-path": "^0.1.1",
|
|
52
42
|
"mac-regex": "^1.0.0",
|
|
53
43
|
"macos-version": "5",
|
|
54
|
-
"mailparser": "^3.
|
|
44
|
+
"mailparser": "^3.5.0",
|
|
55
45
|
"memoizee": "^0.4.15",
|
|
56
|
-
"mime-types": "^2.1.
|
|
46
|
+
"mime-types": "^2.1.35",
|
|
57
47
|
"ms": "^2.1.3",
|
|
58
|
-
"natural": "^5.
|
|
48
|
+
"natural": "^5.2.2",
|
|
59
49
|
"newline-remove": "^1.0.2",
|
|
60
|
-
"node-html-parser": "
|
|
50
|
+
"node-html-parser": "4",
|
|
61
51
|
"node-snowball": "^0.6.0",
|
|
62
52
|
"normalize-url": "5",
|
|
63
|
-
"parse-domain": "
|
|
53
|
+
"parse-domain": "5",
|
|
64
54
|
"phone-regex": "^2.1.0",
|
|
65
55
|
"punycode": "^2.1.1",
|
|
66
|
-
"re2": "^1.
|
|
67
|
-
"sanitize-html": "^2.
|
|
68
|
-
"stopword": "^
|
|
56
|
+
"re2": "^1.17.6",
|
|
57
|
+
"sanitize-html": "^2.7.0",
|
|
58
|
+
"stopword": "^2.0.2",
|
|
69
59
|
"striptags": "^3.2.0",
|
|
70
|
-
"superagent": "^
|
|
60
|
+
"superagent": "^7.1.6",
|
|
71
61
|
"trim-leading-whitespace": "^0.1.1",
|
|
72
62
|
"universalify": "^2.0.0",
|
|
73
|
-
"url-regex-safe": "^
|
|
74
|
-
"validator": "^13.
|
|
63
|
+
"url-regex-safe": "^3.0.0",
|
|
64
|
+
"validator": "^13.7.0",
|
|
65
|
+
"which": "^2.0.2"
|
|
75
66
|
},
|
|
76
67
|
"devDependencies": {
|
|
77
|
-
"@commitlint/cli": "^
|
|
78
|
-
"@commitlint/config-conventional": "^
|
|
68
|
+
"@commitlint/cli": "^17.0.2",
|
|
69
|
+
"@commitlint/config-conventional": "^17.0.2",
|
|
79
70
|
"@ladjs/redis": "^1.0.7",
|
|
80
|
-
"ava": "^3.
|
|
81
|
-
"codecov": "^3.8.3",
|
|
71
|
+
"ava": "^4.3.0",
|
|
82
72
|
"cross-env": "^7.0.3",
|
|
83
73
|
"delay": "^5.0.0",
|
|
84
|
-
"eslint": "^
|
|
85
|
-
"eslint-config-xo-lass": "^
|
|
74
|
+
"eslint": "^8.17.0",
|
|
75
|
+
"eslint-config-xo-lass": "^2.0.1",
|
|
86
76
|
"fixpack": "^4.0.0",
|
|
87
|
-
"husky": "^
|
|
88
|
-
"is-ci": "^3.0.
|
|
89
|
-
"lint-staged": "^
|
|
77
|
+
"husky": "^8.0.1",
|
|
78
|
+
"is-ci": "^3.0.1",
|
|
79
|
+
"lint-staged": "^13.0.1",
|
|
90
80
|
"lookpath": "^1.2.2",
|
|
91
81
|
"make-dir": "^3.1.0",
|
|
92
82
|
"node-mbox": "^1.0.0",
|
|
@@ -94,14 +84,15 @@
|
|
|
94
84
|
"nyc": "^15.1.0",
|
|
95
85
|
"p-map": "4",
|
|
96
86
|
"read-dir-deep": "^7.0.1",
|
|
97
|
-
"remark-cli": "^10.0.
|
|
98
|
-
"remark-preset-github": "^4.0.
|
|
99
|
-
"xo": "0.
|
|
87
|
+
"remark-cli": "^10.0.1",
|
|
88
|
+
"remark-preset-github": "^4.0.4",
|
|
89
|
+
"xo": "^0.50.0"
|
|
100
90
|
},
|
|
101
91
|
"engines": {
|
|
102
|
-
"node": ">=
|
|
92
|
+
"node": ">=14"
|
|
103
93
|
},
|
|
104
94
|
"files": [
|
|
95
|
+
"cedict_1_0_ts_utf-8_mdbg.txt",
|
|
105
96
|
"package.json",
|
|
106
97
|
"index.js",
|
|
107
98
|
"vocabulary-limit.js",
|
|
@@ -114,12 +105,6 @@
|
|
|
114
105
|
"classifier.json"
|
|
115
106
|
],
|
|
116
107
|
"homepage": "https://github.com/spamscanner/spamscanner",
|
|
117
|
-
"husky": {
|
|
118
|
-
"hooks": {
|
|
119
|
-
"pre-commit": "lint-staged",
|
|
120
|
-
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
|
|
121
|
-
}
|
|
122
|
-
},
|
|
123
108
|
"keywords": [
|
|
124
109
|
"adult",
|
|
125
110
|
"api",
|
|
@@ -172,38 +157,17 @@
|
|
|
172
157
|
],
|
|
173
158
|
"license": "Business Source License 1.1",
|
|
174
159
|
"main": "index.js",
|
|
175
|
-
"prettier": {
|
|
176
|
-
"singleQuote": true,
|
|
177
|
-
"bracketSpacing": true,
|
|
178
|
-
"trailingComma": "none"
|
|
179
|
-
},
|
|
180
|
-
"remarkConfig": {
|
|
181
|
-
"plugins": [
|
|
182
|
-
"preset-github"
|
|
183
|
-
]
|
|
184
|
-
},
|
|
185
160
|
"repository": {
|
|
186
161
|
"type": "git",
|
|
187
162
|
"url": "https://github.com/spamscanner/spamscanner"
|
|
188
163
|
},
|
|
189
164
|
"scripts": {
|
|
190
165
|
"ava": "cross-env NODE_ENV=test ava",
|
|
191
|
-
"
|
|
192
|
-
"lint": "xo && remark . -qfo",
|
|
166
|
+
"lint": "xo --fix && remark . -qfo && fixpack",
|
|
193
167
|
"nyc": "cross-env NODE_ENV=test nyc ava",
|
|
194
|
-
"
|
|
168
|
+
"prepare": "husky install",
|
|
169
|
+
"pretest": "npm run lint",
|
|
170
|
+
"test": "npm run test-coverage",
|
|
195
171
|
"test-coverage": "npm run lint && npm run nyc"
|
|
196
|
-
},
|
|
197
|
-
"xo": {
|
|
198
|
-
"prettier": true,
|
|
199
|
-
"space": true,
|
|
200
|
-
"extends": [
|
|
201
|
-
"xo-lass"
|
|
202
|
-
],
|
|
203
|
-
"ignores": [
|
|
204
|
-
"data",
|
|
205
|
-
"classifier.json",
|
|
206
|
-
"bag-of-words.json"
|
|
207
|
-
]
|
|
208
172
|
}
|
|
209
173
|
}
|
package/vocabulary-limit.js
CHANGED