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

Commit

Permalink
Merge pull request #293 from apiaryio/greenkeeper/initial
Browse files Browse the repository at this point in the history
Update dependencies, drop Node 6, fix some errors
  • Loading branch information
honzajavorek authored Jun 3, 2019
2 parents 06cba70 + 237690d commit df0c80d
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 13 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
/coverage
node_modules
dredd-transactions-*.tgz
/test/fixtures/**/*.json
4 changes: 0 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ jobs:
env: "JOB=quality_checks"
script: "npm run ci:lint"

- env: "JOB=node6"
node_js: "6"
script: "npm run ci:test"

- env: "JOB=node8"
node_js: "8"
script: "npm run ci:test"
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Compiles HTTP Transactions (Request-Response pairs) from an API description document",
"main": "index.js",
"engines": {
"node": ">= 6"
"node": ">= 8"
},
"scripts": {
"prepack": "node ./scripts/prepack.js",
Expand All @@ -31,17 +31,17 @@
"dependencies": {
"fury": "3.0.0-beta.10",
"fury-adapter-apib-parser": "0.14.0",
"fury-adapter-oas3-parser": "0.7.5",
"fury-adapter-oas3-parser": "0.7.7",
"fury-adapter-swagger": "0.25.1",
"uri-template": "1.0.1"
},
"bundledDependencies": [
"fury-adapter-apib-parser"
],
"devDependencies": {
"@commitlint/cli": "7.6.1",
"@commitlint/config-conventional": "7.6.0",
"@commitlint/travis-cli": "7.6.1",
"@commitlint/cli": "8.0.0",
"@commitlint/config-conventional": "8.0.0",
"@commitlint/travis-cli": "8.0.0",
"chai": "4.2.0",
"chai-json-schema": "1.5.1",
"coveralls": "3.0.3",
Expand Down
2 changes: 1 addition & 1 deletion scripts/pretest.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function getJSONPath(fixturePath) {

function parseFixture(fixturePath) {
return new Promise((resolve, reject) => {
const fixture = fs.readFileSync(fixturePath, { encoding: 'utf8' });
const fixture = fs.readFileSync(fixturePath, 'utf8');
parse(fixture, (err, result) => {
if (err) reject(err);
else resolve(result.apiElements);
Expand Down
1 change: 0 additions & 1 deletion test/fixtures/.gitignore

This file was deleted.

4 changes: 2 additions & 2 deletions test/fixtures/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const FORMATS = {


function readAPIelements(apiElementsPath) {
const contents = fs.readFileSync(apiElementsPath, { encoding: 'utf8' });
const contents = fs.readFileSync(apiElementsPath, 'utf8');
return fury.minim.fromRefract(JSON.parse(contents));
}

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

Expand Down

0 comments on commit df0c80d

Please sign in to comment.