@sanity/util
Advanced tools
Comparing version 3.58.0 to 3.58.1-canary.22
{ | ||
"name": "@sanity/util", | ||
"version": "3.58.0", | ||
"version": "3.58.1-canary.22+6a7349b855", | ||
"description": "Utilities shared across projects of Sanity", | ||
@@ -120,3 +120,3 @@ "keywords": [ | ||
"prepublishOnly": "turbo run build", | ||
"test": "jest", | ||
"test": "vitest run", | ||
"watch": "pkg-utils watch" | ||
@@ -126,3 +126,3 @@ }, | ||
"@sanity/client": "^6.21.3", | ||
"@sanity/types": "3.58.0", | ||
"@sanity/types": "3.58.1-canary.22+6a7349b855", | ||
"get-random-values-esm": "1.0.2", | ||
@@ -133,6 +133,7 @@ "moment": "^2.29.4", | ||
"devDependencies": { | ||
"@jest/globals": "^29.7.0", | ||
"@repo/package.config": "3.58.0", | ||
"@repo/test-config": "3.57.4", | ||
"@types/moment": "^2.13.0", | ||
"rimraf": "^3.0.2" | ||
"rimraf": "^3.0.2", | ||
"vitest": "^2.1.1" | ||
}, | ||
@@ -142,3 +143,3 @@ "engines": { | ||
}, | ||
"gitHead": "63e101bd68bfcb4e04be616c99da64e99cb11354" | ||
"gitHead": "6a7349b85515db7618c31512117700d2b95e0c8b" | ||
} |
import {types} from 'node:util' | ||
import {describe, expect, it, jest} from '@jest/globals' | ||
import {createClient, type SanityClient} from '@sanity/client' | ||
import {firstValueFrom, from} from 'rxjs' | ||
import {describe, expect, it, vi} from 'vitest' | ||
@@ -20,3 +20,3 @@ import {createClientConcurrencyLimiter} from '../createClientConcurrencyLimiter' | ||
const mockClient = { | ||
fetch: jest.fn(() => deferredPromise), | ||
fetch: vi.fn(() => deferredPromise), | ||
} as unknown as SanityClient | ||
@@ -49,3 +49,3 @@ | ||
observable: { | ||
fetch: jest.fn(() => from(deferredPromise)), | ||
fetch: vi.fn(() => from(deferredPromise)), | ||
}, | ||
@@ -52,0 +52,0 @@ } as unknown as SanityClient |
@@ -1,2 +0,3 @@ | ||
import {it, expect} from '@jest/globals' | ||
import {expect, it} from 'vitest' | ||
import {isDeepEmpty} from '../isDeepEmpty' | ||
@@ -3,0 +4,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
176081
5
1
1
- Removed@sanity/types@3.58.0(transitive)
- Removed@types/prop-types@15.7.13(transitive)
- Removed@types/react@18.3.12(transitive)
- Removedcsstype@3.1.3(transitive)