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

webdetta

Package Overview
Dependencies
Maintainers
0
Versions
479
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webdetta - npm Package Compare versions

Comparing version 0.0.66 to 0.0.67

2

package.json
{
"name": "webdetta",
"version": "0.0.66",
"version": "0.0.67",
"author": "Fedot Kriutchenko <fodyadev@gmail.com>",

@@ -5,0 +5,0 @@ "description": "",

@@ -7,3 +7,3 @@ import { processCall } from '../rpc/proto.js';

export const parseFn = val => {
const { args, defaults, body, isArrow } = parser.parse(val);
const { args, defaults, body, isArrow, isAsync } = parser.parse(val);
if (isArrow) throw new Error('Arrow functions are not allowed.');

@@ -13,3 +13,3 @@ const args_ = args

.join(', ');
return { args: args_, body };
return { args: args_, body, isAsync };
}

@@ -16,0 +16,0 @@

@@ -7,4 +7,7 @@ import { validateSdkEntry } from './defs.js';

if (typeof obj == 'function') {
const { args, body } = parseFn(obj);
return `function (${args}) {var ${vars.join(',')};${body.trim()}}`;
const { args, body, isAsync } = parseFn(obj);
return (
`${isAsync ? 'async' : ''} function (${args})` +
`{var ${vars.join(',')};${body.trim()}}`
);
}

@@ -11,0 +14,0 @@ if (Array.isArray(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