Skip to content
This repository has been archived by the owner on Jun 23, 2019. It is now read-only.

Commit

Permalink
Merge pull request #24 from refractproject/kylef/minim-0.19
Browse files Browse the repository at this point in the history
Support minim 0.19
  • Loading branch information
tjanc authored Aug 7, 2017
2 parents bc80f39 + c63e2b0 commit 4fc7b52
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 0.8.0

- Add support for minim 0.19 and minim-api-description 0.6.

# 0.7.0

- Compatibility with Minim 0.18 and minim-api-description 0.5.
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "minim-parse-result",
"version": "0.7.0",
"version": "0.8.0",
"description": "Minim Parse Result Namespace",
"main": "./lib/parse-result.js",
"repository": {
Expand All @@ -17,12 +17,12 @@
},
"dependencies": {
"babel-runtime": "^6.23.0",
"minim-api-description": "^0.5.0"
"minim-api-description": "^0.6.0"
},
"devDependencies": {
"babel-plugin-array-includes": "^2.0.3",
"chai": "^3.2.0",
"minim": "^0.18.0",
"minim": "^0.19.0",
"peasant": "^1.1.0"
},
"engines": {
Expand Down
4 changes: 2 additions & 2 deletions src/parse-result.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export function namespace(options) {
}

get api() {
return this.children.filter(item => item.classes.contains('api')).first();
return this.children.filter(item => item.classes.contains('api')).first;
}

get annotations() {
Expand Down Expand Up @@ -77,7 +77,7 @@ export function namespace(options) {
const sourceMap = this.attributes.get('sourceMap');

if (sourceMap) {
return sourceMap.first().toValue();
return sourceMap.first.toValue();
}

return undefined;
Expand Down
2 changes: 1 addition & 1 deletion test/parse-result.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ describe('Parse result namespace', () => {
});

it('should have the source map location', () => {
expect(sourceMaps.first().toValue()).to.deep.equal([[1, 2]]);
expect(sourceMaps.first.toValue()).to.deep.equal([[1, 2]]);
});

it('should have a convenience method for retrieving source map', () => {
Expand Down

0 comments on commit 4fc7b52

Please sign in to comment.