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

hapi-raml

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hapi-raml - npm Package Compare versions

Comparing version 2.0.4 to 2.0.5

5

package.json
{
"name": "hapi-raml",
"version": "2.0.4",
"version": "2.0.5",
"description": "Create HAPI bindings from RAML specs automatically",
"main": "index.js",
"scripts": {
"preversion": "npm test",
"version": "npm run build && git diff-index --quiet --cached HEAD || (git add lib/ && git commit -m 'Rebuild lib')",
"preversion": "npm test && npm run build && git diff --exit-code --quiet",
"postversion": "git push && git push --tags",

@@ -10,0 +9,0 @@ "pretest": "./node_modules/.bin/eslint src/",

4

test/index.test.js

@@ -90,2 +90,6 @@ /*eslint-env mocha */

it('should return a Promise', () => {
expect(hapiRaml.hookup()).to.be.an.instanceOf(Promise);
});
it('should reject if the RAML file is not parseable', () => {

@@ -92,0 +96,0 @@ mockFS.restore();

@@ -84,2 +84,6 @@ /*eslint-env mocha */

it('should return a Promise', () => {
expect(newRAML.loadRAMLFile()).to.be.an.instanceOf(Promise);
});
it('should load the file content and pass it to the parser', () => {

@@ -157,2 +161,6 @@ let loadStub = sinon.stub(mockParser, 'loadFile', () => {

it('should return a Promise', () => {
expect(newRAML.getRouteMap()).to.be.an.instanceOf(Promise);
});
it('should eventually resolve with an Array', () => {

@@ -159,0 +167,0 @@ return expect(newRAML.getRouteMap()).to.eventually.be.an('Array');

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