Skip to content

Commit 46fa7f4

Browse files
committed
refactor(deps): refactor package.json with pinned dependencies and separate NYC file
1 parent fa48867 commit 46fa7f4

2 files changed

Lines changed: 36 additions & 35 deletions

File tree

.nycrc

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"check-coverage": true,
3+
"lines": 0,
4+
"statements": 0,
5+
"functions": 0,
6+
"branches": 0,
7+
"reporter": [
8+
"lcov",
9+
"text-summary"
10+
],
11+
"include": [
12+
"src/*.js",
13+
"src/**/*.js"
14+
],
15+
"exclude": [
16+
"test/*.spec.js",
17+
"coverage/**",
18+
"src/swagger/*.js",
19+
"data/**/*"
20+
],
21+
"all": true
22+
}

package.json

Lines changed: 14 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
"version": "1.0.0",
44
"description": "Example of encrypting/decrypting data thru an API using node.js",
55
"main": "src/index.js",
6+
"private": true,
7+
"snyk": true,
68
"scripts": {
79
"start": "node src/index",
810
"pretest": "eslint ./src",
@@ -35,20 +37,20 @@
3537
},
3638
"homepage": "https://github.com/timoa/nodejs-encryption-api-example#readme",
3739
"dependencies": {
38-
"boom": "^7.3.0",
39-
"crypto": "^1.0.1",
40-
"fastify": "^2.15.1",
41-
"fastify-healthcheck": "^1.0.0",
42-
"fastify-swagger": "^4.0.0",
40+
"boom": "7.3.0",
41+
"crypto": "1.0.1",
42+
"fastify": "2.15.1",
43+
"fastify-healthcheck": "1.0.0",
44+
"fastify-swagger": "4.0.0",
4345
"http": "0.0.0",
44-
"lodash": "^4.17.21",
45-
"mongoose": "^5.12.3",
46-
"snyk": "^1.518.0",
47-
"uuid": "^3.3.2",
48-
"winston": "^3.2.1"
46+
"lodash": "4.17.21",
47+
"mongoose": "5.12.3",
48+
"snyk": "1.518.0",
49+
"uuid": "3.3.2",
50+
"winston": "3.2.1"
4951
},
5052
"engines": {
51-
"node": ">=8.0"
53+
"node": ">=12.0"
5254
},
5355
"os": [
5456
"linux",
@@ -69,28 +71,5 @@
6971
"npm-run-all": "4.1.5",
7072
"nyc": "15.1.0",
7173
"request": "2.88.2"
72-
},
73-
"nyc": {
74-
"check-coverage": true,
75-
"lines": 0,
76-
"statements": 0,
77-
"functions": 0,
78-
"branches": 0,
79-
"reporter": [
80-
"lcov",
81-
"text-summary"
82-
],
83-
"include": [
84-
"src/*.js",
85-
"src/**/*.js"
86-
],
87-
"exclude": [
88-
"test/*.spec.js",
89-
"coverage/**",
90-
"src/swagger/*.js",
91-
"data/**/*"
92-
],
93-
"all": true
94-
},
95-
"snyk": true
74+
}
9675
}

0 commit comments

Comments
 (0)