@sanity/mutator
Advanced tools
Comparing version 3.52.3-update-pkg-utils.13 to 3.52.3-update-pkg-utils.14
@@ -1,2 +0,7 @@ | ||
/// <reference types="react" /> | ||
import {CreateIfNotExistsMutation} from '@sanity/types' | ||
import {CreateMutation} from '@sanity/types' | ||
import {CreateOrReplaceMutation} from '@sanity/types' | ||
import {DeleteMutation} from '@sanity/types' | ||
import {PatchMutation} from '@sanity/types' | ||
import {Path} from '@sanity/types' | ||
@@ -85,34 +90,2 @@ /** | ||
/** @internal */ | ||
declare interface CreateIfNotExistsMutation { | ||
createIfNotExists: { | ||
_id: string | ||
_type: string | ||
[key: string]: unknown | ||
} | ||
} | ||
/** @internal */ | ||
declare interface CreateMutation { | ||
create: { | ||
_id?: string | ||
_type: string | ||
[key: string]: unknown | ||
} | ||
} | ||
/** @internal */ | ||
declare interface CreateOrReplaceMutation { | ||
createOrReplace: { | ||
_id: string | ||
_type: string | ||
[key: string]: unknown | ||
} | ||
} | ||
/** @internal */ | ||
declare interface DeleteMutation { | ||
delete: MutationSelection | ||
} | ||
/** | ||
@@ -259,25 +232,2 @@ * Sanity document with a guaranteed `_id` and `_type` | ||
/** @public */ | ||
declare type IndexTuple = [number | '', number | ''] | ||
/** @internal */ | ||
declare type InsertPatch = | ||
| { | ||
before: string | ||
items: unknown[] | ||
} | ||
| { | ||
after: string | ||
items: unknown[] | ||
} | ||
| { | ||
replace: string | ||
items: unknown[] | ||
} | ||
/** @public */ | ||
declare type KeyedSegment = { | ||
_key: string | ||
} | ||
/** | ||
@@ -351,56 +301,3 @@ * Internal mutation body representation - note that theoretically a | ||
/** @internal */ | ||
declare type MutationSelection = | ||
| { | ||
query: string | ||
params?: Record<string, unknown> | ||
} | ||
| { | ||
id: string | ||
} | ||
/** @internal */ | ||
declare interface PatchMutation { | ||
patch: PatchMutationOperation | ||
} | ||
/** @internal */ | ||
declare type PatchMutationOperation = PatchOperations & MutationSelection | ||
/** | ||
* NOTE: this is actually incorrect/invalid, but implemented as-is for backwards compatibility | ||
* | ||
* @internal | ||
*/ | ||
declare interface PatchOperations { | ||
set?: { | ||
[key: string]: unknown | ||
} | ||
setIfMissing?: { | ||
[key: string]: unknown | ||
} | ||
merge?: { | ||
[key: string]: unknown | ||
} | ||
diffMatchPatch?: { | ||
[key: string]: string | ||
} | ||
unset?: string[] | ||
inc?: { | ||
[key: string]: number | ||
} | ||
dec?: { | ||
[key: string]: number | ||
} | ||
insert?: InsertPatch | ||
ifRevisionID?: string | ||
} | ||
/** @public */ | ||
declare type Path = PathSegment[] | ||
/** @public */ | ||
declare type PathSegment = string | number | KeyedSegment | IndexTuple | ||
/** | ||
* Implements a buffer for mutations that incrementally optimises the mutations by | ||
@@ -407,0 +304,0 @@ * eliminating set-operations that overwrite earlier set-operations, and rewrite |
{ | ||
"name": "@sanity/mutator", | ||
"version": "3.52.3-update-pkg-utils.13+6362a71b56", | ||
"version": "3.52.3-update-pkg-utils.14+8d73ac54a4", | ||
"description": "A set of models to make it easier to utilize the powerful real time collaborative features of Sanity", | ||
@@ -60,3 +60,3 @@ "keywords": [ | ||
"@repo/package.config": "3.52.2", | ||
"@sanity/types": "3.52.3-update-pkg-utils.13+6362a71b56", | ||
"@sanity/types": "3.52.3-update-pkg-utils.14+8d73ac54a4", | ||
"@types/debug": "^4.1.5", | ||
@@ -66,3 +66,6 @@ "@types/lodash": "^4.17.7", | ||
}, | ||
"gitHead": "6362a71b568140b0a873be1e27111551de438e52" | ||
"peerDependencies": { | ||
"@sanity/types": "workspace:*" | ||
}, | ||
"gitHead": "8d73ac54a477d6f0378015ad9d2995d385622b13" | ||
} |
Sorry, the diff of this file is not supported yet
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
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
795591
5
8592