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

webdetta

Package Overview
Dependencies
Maintainers
1
Versions
483
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.117 to 0.0.118

2

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

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

@@ -46,23 +46,17 @@ import { parseFn } from './common.js';

const stateValue = (handlerId, initial, sync) => {
const initval = [
const init = [
`const V = this["#internals"]["#vals"] ??= {};`,
`const H = ${JSON.stringify(handlerId)};`,
`if (!(H in V)) V[H] = ${JSON.stringify(initial)};`,
];
].join('');
return {
rpcHandler: !sync ? null : new Function('...a', [
...initval,
`return a.length > 0 ? (V[H] = a[0]) : V[H];`
].join('')),
rpcHandler: !sync ? null : new Function('...a',
init + `return a.length > 0 ? (V[H] = a[0]) : V[H];`
),
instanceProperty: {
get: new Function([
...initval,
`return V[H];`
].join('')),
set: new Function('value', [
...initval,
`V[H] = value;`,
!sync ? '' :
`this["#internals"].cast(${JSON.stringify(handlerId)}, value);`
].join('')),
get: new Function(init + `return V[H];`),
set: new Function('value', (
(init + `V[H] = value;`) +
(!sync ? '' : `this["#internals"].cast(H, value);`)
)),
}

@@ -69,0 +63,0 @@ };

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