Skip to content
This repository was archived by the owner on Nov 8, 2024. It is now read-only.

Commit df0c80d

Browse files
authored
Merge pull request #293 from apiaryio/greenkeeper/initial
Update dependencies, drop Node 6, fix some errors
2 parents 06cba70 + 237690d commit df0c80d

File tree

6 files changed

+9
-13
lines changed

6 files changed

+9
-13
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
/coverage
33
node_modules
44
dredd-transactions-*.tgz
5+
/test/fixtures/**/*.json

.travis.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ jobs:
1111
env: "JOB=quality_checks"
1212
script: "npm run ci:lint"
1313

14-
- env: "JOB=node6"
15-
node_js: "6"
16-
script: "npm run ci:test"
17-
1814
- env: "JOB=node8"
1915
node_js: "8"
2016
script: "npm run ci:test"

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Compiles HTTP Transactions (Request-Response pairs) from an API description document",
55
"main": "index.js",
66
"engines": {
7-
"node": ">= 6"
7+
"node": ">= 8"
88
},
99
"scripts": {
1010
"prepack": "node ./scripts/prepack.js",
@@ -31,17 +31,17 @@
3131
"dependencies": {
3232
"fury": "3.0.0-beta.10",
3333
"fury-adapter-apib-parser": "0.14.0",
34-
"fury-adapter-oas3-parser": "0.7.5",
34+
"fury-adapter-oas3-parser": "0.7.7",
3535
"fury-adapter-swagger": "0.25.1",
3636
"uri-template": "1.0.1"
3737
},
3838
"bundledDependencies": [
3939
"fury-adapter-apib-parser"
4040
],
4141
"devDependencies": {
42-
"@commitlint/cli": "7.6.1",
43-
"@commitlint/config-conventional": "7.6.0",
44-
"@commitlint/travis-cli": "7.6.1",
42+
"@commitlint/cli": "8.0.0",
43+
"@commitlint/config-conventional": "8.0.0",
44+
"@commitlint/travis-cli": "8.0.0",
4545
"chai": "4.2.0",
4646
"chai-json-schema": "1.5.1",
4747
"coveralls": "3.0.3",

scripts/pretest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function getJSONPath(fixturePath) {
2525

2626
function parseFixture(fixturePath) {
2727
return new Promise((resolve, reject) => {
28-
const fixture = fs.readFileSync(fixturePath, { encoding: 'utf8' });
28+
const fixture = fs.readFileSync(fixturePath, 'utf8');
2929
parse(fixture, (err, result) => {
3030
if (err) reject(err);
3131
else resolve(result.apiElements);

test/fixtures/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

test/fixtures/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const FORMATS = {
1212

1313

1414
function readAPIelements(apiElementsPath) {
15-
const contents = fs.readFileSync(apiElementsPath, { encoding: 'utf8' });
15+
const contents = fs.readFileSync(apiElementsPath, 'utf8');
1616
return fury.minim.fromRefract(JSON.parse(contents));
1717
}
1818

@@ -36,7 +36,7 @@ function fixtures(basename) {
3636
// scripts/pretest.js should be ran to mitigate the issue)
3737
.filter(fixture => fs.existsSync(fixture.apiDescriptionPath))
3838
.map(fixture => Object.assign({
39-
apiDescription: fs.readFileSync(fixture.apiDescriptionPath, { encoding: 'utf8' }),
39+
apiDescription: fs.readFileSync(fixture.apiDescriptionPath, 'utf8'),
4040
apiElements: readAPIelements(fixture.apiElementsPath),
4141
}, fixture));
4242

0 commit comments

Comments
 (0)