Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hono

Package Overview
Dependencies
Maintainers
1
Versions
342
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hono - npm Package Compare versions

Comparing version 4.0.9 to 4.0.10

11

dist/cjs/jsx/hooks/index.js

@@ -43,2 +43,3 @@ "use strict";

const STASH_MEMO = 4;
const STASH_REF = 5;
const resolvedPromiseValueMap = /* @__PURE__ */ new WeakMap();

@@ -230,3 +231,11 @@ const isDepsChanged = (prevDeps, deps) => !prevDeps || !deps || prevDeps.length !== deps.length || deps.some((dep, i) => dep !== prevDeps[i]);

const useRef = (initialValue) => {
return { current: initialValue };
var _a;
const buildData = import_render.buildDataStack.at(-1);
if (!buildData) {
return { current: initialValue };
}
const [, node] = buildData;
const refArray = (_a = node[import_constants.DOM_STASH][1])[STASH_REF] || (_a[STASH_REF] = []);
const hookIndex = node[import_constants.DOM_STASH][0]++;
return refArray[hookIndex] || (refArray[hookIndex] = { current: initialValue });
};

@@ -233,0 +242,0 @@ const use = (promise) => {

@@ -9,2 +9,3 @@ // src/jsx/hooks/index.ts

var STASH_MEMO = 4;
var STASH_REF = 5;
var resolvedPromiseValueMap = /* @__PURE__ */ new WeakMap();

@@ -196,3 +197,11 @@ var isDepsChanged = (prevDeps, deps) => !prevDeps || !deps || prevDeps.length !== deps.length || deps.some((dep, i) => dep !== prevDeps[i]);

var useRef = (initialValue) => {
return { current: initialValue };
var _a;
const buildData = buildDataStack.at(-1);
if (!buildData) {
return { current: initialValue };
}
const [, node] = buildData;
const refArray = (_a = node[DOM_STASH][1])[STASH_REF] || (_a[STASH_REF] = []);
const hookIndex = node[DOM_STASH][0]++;
return refArray[hookIndex] || (refArray[hookIndex] = { current: initialValue });
};

@@ -199,0 +208,0 @@ var use = (promise) => {

2

package.json
{
"name": "hono",
"version": "4.0.9",
"version": "4.0.10",
"description": "Ultrafast web framework for the Edges",

@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js",

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