Comparing version 0.0.4 to 0.0.5
@@ -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
8259
103