@sanity/migrate
Advanced tools
Comparing version 3.44.1-canary.21 to 3.44.1-canary.30
@@ -927,3 +927,4 @@ "use strict"; | ||
client: client2, | ||
filtered: filteredDocumentsClient | ||
filtered: filteredDocumentsClient, | ||
dryRun: !0 | ||
} | ||
@@ -1049,3 +1050,4 @@ ), abortController.abort(); | ||
client: client2, | ||
filtered: filteredDocumentsClient | ||
filtered: filteredDocumentsClient, | ||
dryRun: !1 | ||
}), (muts) => { | ||
@@ -1052,0 +1054,0 @@ var _a2; |
@@ -510,2 +510,3 @@ import {KeyedSegment} from '@sanity/types' | ||
} | ||
dryRun: boolean | ||
} | ||
@@ -512,0 +513,0 @@ |
@@ -913,3 +913,4 @@ import { fromString } from "@sanity/util/paths"; | ||
client, | ||
filtered: filteredDocumentsClient | ||
filtered: filteredDocumentsClient, | ||
dryRun: !0 | ||
} | ||
@@ -1035,3 +1036,4 @@ ), abortController.abort(); | ||
client, | ||
filtered: filteredDocumentsClient | ||
filtered: filteredDocumentsClient, | ||
dryRun: !1 | ||
}), (muts) => { | ||
@@ -1038,0 +1040,0 @@ var _a2; |
@@ -927,3 +927,4 @@ "use strict"; | ||
client: client2, | ||
filtered: filteredDocumentsClient | ||
filtered: filteredDocumentsClient, | ||
dryRun: !0 | ||
} | ||
@@ -1049,3 +1050,4 @@ ), abortController.abort(); | ||
client: client2, | ||
filtered: filteredDocumentsClient | ||
filtered: filteredDocumentsClient, | ||
dryRun: !1 | ||
}), (muts) => { | ||
@@ -1052,0 +1054,0 @@ var _a2; |
{ | ||
"name": "@sanity/migrate", | ||
"version": "3.44.1-canary.21+755294d534", | ||
"version": "3.44.1-canary.30+a154d9ea75", | ||
"description": "Tooling for running data migrations on Sanity.io projects", | ||
@@ -55,4 +55,4 @@ "keywords": [ | ||
"@sanity/client": "^6.19.1", | ||
"@sanity/types": "3.44.1-canary.21+755294d534", | ||
"@sanity/util": "3.44.1-canary.21+755294d534", | ||
"@sanity/types": "3.44.1-canary.30+a154d9ea75", | ||
"@sanity/util": "3.44.1-canary.30+a154d9ea75", | ||
"arrify": "^2.0.1", | ||
@@ -74,3 +74,3 @@ "debug": "^4.3.4", | ||
}, | ||
"gitHead": "755294d53490488afc37f19100b00172bf48a3f6" | ||
"gitHead": "a154d9ea757f553d108217bb3dfe76af4bda4e19" | ||
} |
@@ -8,3 +8,3 @@ import {type SanityDocument} from '@sanity/types' | ||
import {fromExportEndpoint, safeJsonParser} from '../sources/fromExportEndpoint' | ||
import {type APIConfig, type Migration} from '../types' | ||
import {type APIConfig, type Migration, type MigrationContext} from '../types' | ||
import {asyncIterableToStream} from '../utils/asyncIterableToStream' | ||
@@ -47,5 +47,6 @@ import {streamToAsyncIterator} from '../utils/streamToAsyncIterator' | ||
const filteredDocumentsClient = createFilteredDocumentsClient(createReader) | ||
const context = { | ||
const context: MigrationContext = { | ||
client, | ||
filtered: filteredDocumentsClient, | ||
dryRun: true, | ||
} | ||
@@ -52,0 +53,0 @@ |
@@ -16,3 +16,8 @@ import {type MultipleMutationResult} from '@sanity/client' | ||
import {fromExportEndpoint, safeJsonParser} from '../sources/fromExportEndpoint' | ||
import {type APIConfig, type Migration, type MigrationProgress} from '../types' | ||
import { | ||
type APIConfig, | ||
type Migration, | ||
type MigrationContext, | ||
type MigrationProgress, | ||
} from '../types' | ||
import {asyncIterableToStream} from '../utils/asyncIterableToStream' | ||
@@ -96,5 +101,6 @@ import {streamToAsyncIterator} from '../utils/streamToAsyncIterator' | ||
const filteredDocumentsClient = createFilteredDocumentsClient(createReader) | ||
const context = { | ||
const context: MigrationContext = { | ||
client, | ||
filtered: filteredDocumentsClient, | ||
dryRun: false, | ||
} | ||
@@ -101,0 +107,0 @@ |
@@ -64,2 +64,3 @@ import {type MultipleMutationResult, type Mutation as RawMutation} from '@sanity/client' | ||
} | ||
dryRun: boolean | ||
} | ||
@@ -66,0 +67,0 @@ |
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
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
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
6324655
8717