@vite-hub/kv 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/vite.js +1 -0
  2. package/package.json +2 -2
package/dist/vite.js CHANGED
@@ -85,6 +85,7 @@ function deleteOwnedFields(value, ownership) {
85
85
  return next;
86
86
  }
87
87
  function getKeyedArrayEntryValue(value, key) {
88
+ if (key === void 0) return value === null || typeof value === "boolean" || typeof value === "number" || typeof value === "string" ? value : void 0;
88
89
  if (!isProviderJsonRecord(value)) return;
89
90
  const entryValue = value[key];
90
91
  return entryValue === null || typeof entryValue === "boolean" || typeof entryValue === "number" || typeof entryValue === "string" ? entryValue : void 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vite-hub/kv",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "Vite-first key-value storage primitives and integration for ViteHub.",
5
5
  "keywords": [
6
6
  "cloudflare",
@@ -36,7 +36,7 @@
36
36
  "dependencies": {
37
37
  "defu": "^6.1.7",
38
38
  "unstorage": "^2.0.0-alpha.7",
39
- "@vite-hub/runtime": "0.0.2"
39
+ "@vite-hub/runtime": "0.0.3"
40
40
  },
41
41
  "devDependencies": {
42
42
  "ofetch": "^1.5.1",