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

hapi-methods

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hapi-methods - npm Package Compare versions

Comparing version 1.0.1 to 2.0.0

8

index.js

@@ -1,2 +0,3 @@

var _ = require('underscore');
var _ = require('underscore'),
sha = require("sha1");

@@ -14,3 +15,6 @@ exports.register = function(server, cache, methods){

generateKey: function() {
return JSON.stringify(_.take(arguments, arguments.length-2));
var args = _.take(arguments, arguments.length-2);
var sha = sha(JSON.stringify(args));
server.log(["key-generate"], { args: args, key: sha });
return sha;
}

@@ -17,0 +21,0 @@ });

{
"name": "hapi-methods",
"version": "1.0.1",
"version": "2.0.0",
"description": "server method helper",

@@ -31,4 +31,5 @@ "main": "index.js",

"dependencies": {
"sha1": "^1.1.0",
"underscore": "^1.6.0"
}
}

@@ -37,5 +37,5 @@ var should = require('should'),

it('should log a cachemiss', function(){
it('should include the method name on the log', function(){
logs[0].method.should.eql('myMethod');
});
});
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