Skip to content

Commit

Permalink
chore: cleanup (#15)
Browse files Browse the repository at this point in the history
* fix(security): fixed some vulnerabilities

Fixed a few vulnerabilities, bumped dependencies and added some security measures

* chore(label): removed files no longer needed

* feat(extract): added a normaliser to `extract`

* chore(yarn): rebuilt the lock file
  • Loading branch information
Berkmann18 authored Jul 18, 2019
1 parent 412e924 commit 2b08af1
Show file tree
Hide file tree
Showing 6 changed files with 1,113 additions and 1,922 deletions.
4 changes: 4 additions & 0 deletions .snyk
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.
version: v1.13.5
ignore: {}
patch: {}
16 changes: 9 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@
"scripts": {
"build": "kcd-scripts build",
"lint": "kcd-scripts lint",
"test": "kcd-scripts test",
"test": "snyk test && kcd-scripts test",
"validate": "kcd-scripts validate",
"commit": "git-cz",
"doc:lint": "documentation lint src/index.js",
"doc:gen": "documentation readme src/index.js -s Documentation",
"doc": "yarn doc:lint && yarn doc:gen"
"doc": "yarn doc:lint && yarn doc:gen",
"prepare": "snyk protect"
},
"husky": {
"hooks": {
Expand All @@ -40,7 +41,7 @@
"all-contributors"
],
"dependencies": {
"@babel/runtime": "^7.4.5",
"@babel/runtime": "^7.5.4",
"camel-case": "^3.0.0",
"chalk": "^2.4.2",
"clui": "^0.3.6",
Expand All @@ -53,11 +54,12 @@
"devDependencies": {
"codecov": "^3.5.0",
"cz-conventional-changelog": "^2.1.0",
"documentation": "^11.0.0",
"eslint-config-kentcdodds": "^14.3.2",
"git-cz": "^3.0.1",
"documentation": "^12.0.1",
"eslint-config-kentcdodds": "^14.3.4",
"git-cz": "^3.2.1",
"kcd-scripts": "^1.5.2",
"semantic-release": "^15.13.16"
"semantic-release": "^15.13.18",
"snyk": "^1.193.1"
},
"eslintIgnore": [
"node_modules",
Expand Down
3 changes: 2 additions & 1 deletion src/extract.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@ const wordExtractor = (input, features) => {
return tokens
}

//@TODO compare/benchmark it to `wordExtractor` again
const extract = (input, features) => {
const tokens = tokenize(input)
const extraction = tokens.map(token => lemmatizer.only_lemmas(token)[0])
extraction.forEach(word => {
features[word] = 1
features[word.toLowerCase()] = 1
})
return extraction
}
Expand Down
31 changes: 0 additions & 31 deletions src/labelUpdate.js

This file was deleted.

Loading

0 comments on commit 2b08af1

Please sign in to comment.