Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cher-tools

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cher-tools - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

2

package.json
{
"name": "cher-tools",
"version": "0.2.0",
"version": "0.2.1",
"description": "Tools and utilities for the Cher platform",

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

@@ -164,2 +164,20 @@ 'use strict';

// Utility function to respond with jsonp format
exports.jsonpResponse = ( res, results, err ) => {
let code;
let response;
let toFormat;
if ( err ) {
toFormat = err;
code = 500;
} else {
toFormat = results;
code = 200;
}
response = responseObj( toFormat );
res.status( code ).jsonp( response );
};
function responseObj( results ) {

@@ -166,0 +184,0 @@ let obj = {};

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