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

@suspensive/react-await

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@suspensive/react-await - npm Package Compare versions

Comparing version 0.0.9 to 0.0.10

8

dist/Await.d.ts

@@ -1,5 +0,5 @@

import * as react from 'react';
import * as react_jsx_runtime from 'react/jsx-runtime';
import { FunctionComponent } from 'react';
type Tuple<T = unknown> = T[] | readonly T[];
type Tuple<TItem = unknown> = TItem[] | readonly TItem[];

@@ -29,3 +29,3 @@ type Key = Tuple;

*/
declare const Await: <TData, TKey extends Key>({ children, options }: AwaitProps<TData, TKey>) => react.FunctionComponentElement<Awaited<TData>>;
declare const Await: <TData, TKey extends Key>({ children: Children, options }: AwaitProps<TData, TKey>) => react_jsx_runtime.JSX.Element;
declare class AwaitClient {

@@ -50,2 +50,2 @@ private cache;

export { Await, AwaitProps, Key, awaitClient, useAwait };
export { Await, type AwaitProps, type Key, awaitClient, useAwait };

@@ -23,3 +23,3 @@ "use client"

// src/Await.tsx
import { createElement, useMemo } from "react";
import { useMemo } from "react";
import { useSyncExternalStore } from "use-sync-external-store/shim";

@@ -57,2 +57,3 @@

// src/Await.tsx
import { jsx } from "react/jsx-runtime";
var useAwait = (options) => {

@@ -74,3 +75,3 @@ const syncData = () => awaitClient.suspend(options);

};
var Await = ({ children, options }) => createElement(children, useAwait(options));
var Await = ({ children: Children, options }) => /* @__PURE__ */ jsx(Children, __spreadValues({}, useAwait(options)));
var AwaitClient = class {

@@ -77,0 +78,0 @@ constructor() {

export { Await, AwaitProps, awaitClient, useAwait } from './Await.js';
import 'react/jsx-runtime';
import 'react';

@@ -23,3 +23,3 @@ "use client"

// src/Await.tsx
import { createElement, useMemo } from "react";
import { useMemo } from "react";
import { useSyncExternalStore } from "use-sync-external-store/shim";

@@ -57,2 +57,3 @@

// src/Await.tsx
import { jsx } from "react/jsx-runtime";
var useAwait = (options) => {

@@ -74,3 +75,3 @@ const syncData = () => awaitClient.suspend(options);

};
var Await = ({ children, options }) => createElement(children, useAwait(options));
var Await = ({ children: Children, options }) => /* @__PURE__ */ jsx(Children, __spreadValues({}, useAwait(options)));
var AwaitClient = class {

@@ -77,0 +78,0 @@ constructor() {

{
"name": "@suspensive/react-await",
"version": "0.0.9",
"version": "0.0.10",
"description": "Useful interfaces for React Suspense",

@@ -51,3 +51,3 @@ "keywords": [

"devDependencies": {
"@types/react": "^18.2.37",
"@types/react": "^18.2.42",
"@types/react-dom": "^18.2.15",

@@ -57,3 +57,4 @@ "@types/use-sync-external-store": "^0.0.6",

"react-dom": "^18.2.0",
"@suspensive/react": "1.20.4"
"@suspensive/package-json-name": "0.0.0",
"@suspensive/react": "1.20.6"
},

@@ -60,0 +61,0 @@ "peerDependencies": {

@@ -1,1 +0,1 @@

export type Tuple<T = unknown> = T[] | readonly T[]
export type Tuple<TItem = unknown> = TItem[] | readonly TItem[]

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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