Socket
Socket
Sign inDemoInstall

swrr

Package Overview
Dependencies
4
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.4 to 0.0.5

9

index.js

@@ -7,3 +7,3 @@ 'use strict';

const make_id = (...key) => key.join('__');
const make_id = (...key) => key.join('::');
const make = (binding, context) => {

@@ -18,6 +18,5 @@ return (name, handler, options) => {

async apply(target, this_arg, args_array) {
const hashed_args = args_array.length
? await objectIdentity.identify(args_array, crypto.SHA1)
: '';
const key = make_id(name, hashed_args);
const key = args_array.length
? make_id(name, await objectIdentity.identify(args_array, crypto.SHA1))
: name;
const result = await cfw_kv.read(binding, key, {

@@ -24,0 +23,0 @@ metadata: true,

{
"name": "swrr",
"version": "0.0.4",
"version": "0.0.5",
"sideEffects": false,

@@ -5,0 +5,0 @@ "exports": {

Sorry, the diff of this file is not supported yet

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