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.1 to 0.0.2

6

index.js
'use strict';
const objectIdentity = require('object-identity');
const cfw_kv = require('worktop/cfw.kv');
const crypto = require('worktop/crypto');

@@ -18,6 +19,7 @@

const key = make_id(name, hashed_args);
const result = await binding.getWithMetadata(key, type);
// @ts-expect-error TS2769
const result = await cfw_kv.read(binding, key, { metadata: true, type });
async function call() {
const raw_result = await Reflect.apply(target, thisArg, argsArray);
context.waitUntil(binding.put(key, raw_result, {
context.waitUntil(cfw_kv.write(binding, key, raw_result, {
metadata: { ttl: Date.now() + lifetimes.ttl * 1000 },

@@ -24,0 +26,0 @@ expirationTtl: lifetimes.maxTtl

{
"name": "swrr",
"version": "0.0.1",
"version": "0.0.2",
"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