@cstar.help/react
Advanced tools
+1
-3
@@ -234,5 +234,3 @@ "use strict"; | ||
| seenIdsRef.current.add(msg.id); | ||
| setMessages( | ||
| (prev) => prev.map((m) => m.id === optimistic.id ? msg : m) | ||
| ); | ||
| setMessages((prev) => prev.map((m) => m.id === optimistic.id ? msg : m)); | ||
| return msg; | ||
@@ -239,0 +237,0 @@ } catch (err) { |
+1
-3
@@ -195,5 +195,3 @@ // src/context.tsx | ||
| seenIdsRef.current.add(msg.id); | ||
| setMessages( | ||
| (prev) => prev.map((m) => m.id === optimistic.id ? msg : m) | ||
| ); | ||
| setMessages((prev) => prev.map((m) => m.id === optimistic.id ? msg : m)); | ||
| return msg; | ||
@@ -200,0 +198,0 @@ } catch (err) { |
+2
-2
| { | ||
| "name": "@cstar.help/react", | ||
| "version": "0.1.1", | ||
| "version": "0.2.0", | ||
| "description": "React hooks for the cStar customer support platform", | ||
@@ -33,3 +33,3 @@ "type": "module", | ||
| "react": ">=18.0.0", | ||
| "@cstar.help/js": ">=0.1.0" | ||
| "@cstar.help/js": ">=0.2.0" | ||
| }, | ||
@@ -36,0 +36,0 @@ "devDependencies": { |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
53405
-0.07%1129
-0.35%