@pluralsight/react-utils
Advanced tools
Comparing version 0.7.1-next-2e189d to 0.7.1-next-2ef340
@@ -19,5 +19,5 @@ // src/helpers/createResource.ts | ||
switch (status) { | ||
case "pending": | ||
case "error": | ||
throw result; | ||
case "pending": | ||
case "success": | ||
@@ -24,0 +24,0 @@ return result; |
@@ -19,5 +19,5 @@ // src/helpers/createResource.ts | ||
switch (status) { | ||
case "pending": | ||
case "error": | ||
throw result; | ||
case "pending": | ||
case "success": | ||
@@ -24,0 +24,0 @@ return result; |
{ | ||
"name": "@pluralsight/react-utils", | ||
"version": "0.7.1-next-2e189d", | ||
"version": "0.7.1-next-2ef340", | ||
"description": "A set of React custom hooks for Pando.", | ||
@@ -60,3 +60,3 @@ "browserslist": "> 0.25%, not dead", | ||
"license": "Apache 2.0", | ||
"packageManager": "bun@1.0.14", | ||
"packageManager": "pnpm@8.15.1", | ||
"scripts": { | ||
@@ -63,0 +63,0 @@ "build": "tsup --experimental-dts", |
@@ -30,3 +30,3 @@ # React utils | ||
This project uses bun so there are no setup commands needed. If you get any errors, you may need to run an initial `bun install` or ensure you are using Node >= 18. | ||
This project uses pnPm so there are no setup commands needed. If you get any errors, you may need to run an initial `pnpm install` or ensure you are using Node >= 18. | ||
@@ -40,3 +40,3 @@ ## Development | ||
```bash | ||
bun run start:sandbox | ||
pnpm run start:sandbox | ||
``` | ||
@@ -49,3 +49,3 @@ | ||
```bash | ||
bun test packages/react-utils/tests | ||
pnpm test packages/react-utils/tests | ||
``` | ||
@@ -52,0 +52,0 @@ |
@@ -24,6 +24,6 @@ import { loadImage, preloadImgResource } from './loaders' | ||
switch (status) { | ||
case 'pending': | ||
case 'error': | ||
throw result | ||
case 'pending': | ||
case 'success': | ||
@@ -30,0 +30,0 @@ return result |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
247878
0