Comparing version 2.1.0 to 2.2.0
@@ -0,1 +1,4 @@ | ||
2.2.0 - July 16, 2015 | ||
- Update third party dependencies | ||
2.1.0 - May 22, 2015 | ||
@@ -2,0 +5,0 @@ - Renamed raml2obj.js to index.js |
14
index.js
@@ -88,6 +88,6 @@ #!/usr/bin/env node | ||
return raml.loadFile(source); | ||
} else { | ||
// Parse as string or buffer | ||
return raml.load('' + source); | ||
} | ||
// Parse as string or buffer | ||
return raml.load('' + source); | ||
} else if (source instanceof Buffer) { | ||
@@ -101,7 +101,7 @@ // Parse as buffer | ||
}); | ||
} else { | ||
return Q.fcall(function() { | ||
throw new Error('_sourceToRamlObj: You must supply either file, url, data or obj as source.'); | ||
}); | ||
} | ||
return Q.fcall(function() { | ||
throw new Error('_sourceToRamlObj: You must supply either file, url, data or obj as source.'); | ||
}); | ||
} | ||
@@ -108,0 +108,0 @@ |
{ | ||
"name": "raml2obj", | ||
"description": "RAML to object", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"author": { | ||
@@ -13,8 +13,7 @@ "name": "Kevin Renskers", | ||
"dependencies": { | ||
"q": "1.2.x", | ||
"q": "1.4.x", | ||
"raml-parser": "0.8.x" | ||
}, | ||
"devDependencies": { | ||
"jscs": "1.12.x", | ||
"jshint": "2.6.x" | ||
"eslint": "0.24.x" | ||
}, | ||
@@ -33,4 +32,4 @@ "homepage": "https://github.com/kevinrenskers/raml2obj", | ||
"scripts": { | ||
"lint": "jscs index.js && jshint index.js" | ||
"lint": "eslint ./" | ||
} | ||
} |
# RAML to object | ||
[](https://www.npmjs.org/package/raml2obj) | ||
[](https://github.com/airbnb/javascript) | ||
@@ -5,0 +6,0 @@ A thin wrapper around [raml-parser](https://www.npmjs.org/package/raml-parser), adding extra properties to the resulting |
@@ -0,1 +1,3 @@ | ||
'use strict'; | ||
var raml2obj = require('..'); | ||
@@ -2,0 +4,0 @@ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
1
43
0
24003
10
100