Socket
Socket
Sign inDemoInstall

@tinypudding/puddy-lib

Package Overview
Dependencies
44
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.39 to 1.1.40

13

http/auth.js

@@ -24,6 +24,5 @@ module.exports = function(data, callback) {

// Custom Error
// Function
res.set('WWW-Authenticate', 'Basic realm="401"');
res.status(401);
if (typeof data.customError === "function") {

@@ -33,12 +32,2 @@ await data.customError(req, res);

// String
else if (typeof data.customError === "string") {
res.status(401).send(data.customError);
}
// Default
else {
res.status(401).send('Authentication required.');
}
// Return Error

@@ -45,0 +34,0 @@ if (typeof callback === "function") {

2

package.json
{
"name": "@tinypudding/puddy-lib",
"version": "1.1.39",
"version": "1.1.40",
"description": "Essential codes to run the other repositories from the Tiny Pudding Account.",

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

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc