New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

raml2obj

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

raml2obj - npm Package Compare versions

Comparing version 2.1.0 to 2.2.0

.eslintrc

3

changelog.md

@@ -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
[![NPM version](http://img.shields.io/npm/v/raml2obj.svg)](https://www.npmjs.org/package/raml2obj)
[![js-standard-style](https://img.shields.io/badge/code%20style-airbnb-blue.svg?style=flat)](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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc