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 3.0.0 to 3.1.0

test/dotTest.raml

2

lib/utils/RAML.js

@@ -202,2 +202,4 @@ 'use strict';

classFunction = camelize(classFunction);
//Remove "." from function names and replace with "-"
classFunction = classFunction.replace('.', '_');

@@ -204,0 +206,0 @@ debug('Resource classFunction is ' + classFunction);

2

package.json
{
"name": "hapi-raml",
"version": "3.0.0",
"version": "3.1.0",
"description": "Create HAPI bindings from RAML specs automatically",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -89,6 +89,8 @@ /*eslint-env mocha */

let rootTestRAML = fs.readFileSync(path.resolve(__dirname, './rootTest.raml'));
let dotTestRAML = fs.readFileSync(path.resolve(__dirname, './dotTest.raml'));
mockFS({
'test.raml': testRAML,
'rootTest.raml': rootTestRAML
'rootTest.raml': rootTestRAML,
'dotTest.raml': dotTestRAML
});

@@ -151,2 +153,15 @@

it('should rename routes with "." to "-"', () => {
let routeStub = sinon.stub(fakeServer, 'route', () => {});
fakeControllersMap = {
'ControllerTest': {
'list': () => {}
}
};
hapiRaml = new HapiRaml(fakeServer, fakeControllersMap, './dotTest.raml');
return expect(hapiRaml.hookup()).to.be.rejectedWith(/Tried to find 'test_type' on Controller '\w+' but it did not exist/);
});
it('should map a sub level collection to the Controller for that collection name', () => {

@@ -153,0 +168,0 @@ fakeControllersMap = {

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