@sanity/migrate
Advanced tools
Comparing version 3.58.0 to 3.58.1-canary.22
{ | ||
"name": "@sanity/migrate", | ||
"version": "3.58.0", | ||
"version": "3.58.1-canary.22+6a7349b855", | ||
"description": "Tooling for running data migrations on Sanity.io projects", | ||
@@ -49,3 +49,3 @@ "keywords": [ | ||
"prepublishOnly": "turbo run build", | ||
"test": "jest", | ||
"test": "vitest", | ||
"watch": "pkg-utils watch" | ||
@@ -56,4 +56,4 @@ }, | ||
"@sanity/mutate": "^0.10.0", | ||
"@sanity/types": "3.58.0", | ||
"@sanity/util": "3.58.0", | ||
"@sanity/types": "3.58.1-canary.22+6a7349b855", | ||
"@sanity/util": "3.58.1-canary.22+6a7349b855", | ||
"arrify": "^2.0.1", | ||
@@ -66,7 +66,8 @@ "debug": "^4.3.4", | ||
"devDependencies": { | ||
"@jest/globals": "^29.7.0", | ||
"@repo/package.config": "3.58.0", | ||
"@repo/test-config": "3.57.4", | ||
"@types/arrify": "^2.0.1", | ||
"@types/debug": "^4.1.12", | ||
"rimraf": "^3.0.2" | ||
"rimraf": "^3.0.2", | ||
"vitest": "^2.1.1" | ||
}, | ||
@@ -76,3 +77,3 @@ "engines": { | ||
}, | ||
"gitHead": "63e101bd68bfcb4e04be616c99da64e99cb11354" | ||
"gitHead": "6a7349b85515db7618c31512117700d2b95e0c8b" | ||
} |
@@ -1,2 +0,2 @@ | ||
import {expect, test} from '@jest/globals' | ||
import {expect, test} from 'vitest' | ||
@@ -28,6 +28,8 @@ import {assert2xx} from '../fetchStream' | ||
} | ||
expect(assert2xx(mockResponse as unknown as Response)).rejects.toThrowError({ | ||
statusCode: 400, | ||
message: 'Error message: More details', | ||
}) | ||
expect(assert2xx(mockResponse as unknown as Response)).rejects.toThrowError( | ||
expect.objectContaining({ | ||
statusCode: 400, | ||
message: 'Error message: More details', | ||
}), | ||
) | ||
}) | ||
@@ -41,6 +43,8 @@ | ||
} | ||
expect(assert2xx(mockResponse as unknown as Response)).rejects.toThrowError({ | ||
statusCode: 500, | ||
message: 'HTTP Error 500: Internal Server Error', | ||
}) | ||
expect(assert2xx(mockResponse as unknown as Response)).rejects.toThrowError( | ||
expect.objectContaining({ | ||
statusCode: 500, | ||
message: 'HTTP Error 500: Internal Server Error', | ||
}), | ||
) | ||
}) | ||
@@ -61,6 +65,8 @@ | ||
} | ||
expect(assert2xx(mockResponse as unknown as Response)).rejects.toThrowError({ | ||
statusCode: 500, | ||
message: 'validationError: Document is not of valid type', | ||
}) | ||
expect(assert2xx(mockResponse as unknown as Response)).rejects.toThrowError( | ||
expect.objectContaining({ | ||
statusCode: 500, | ||
message: 'validationError: Document is not of valid type', | ||
}), | ||
) | ||
}) |
@@ -5,3 +5,3 @@ /* eslint-disable no-constant-condition */ | ||
import {describe, expect, test} from '@jest/globals' | ||
import {describe, expect, test} from 'vitest' | ||
@@ -204,3 +204,3 @@ import {decodeText, parse} from '../../it-utils' | ||
).rejects.toThrowErrorMatchingInlineSnapshot( | ||
`"Cannot create new buffered readers on aborted stream"`, | ||
`[Error: Cannot create new buffered readers on aborted stream]`, | ||
) | ||
@@ -207,0 +207,0 @@ }) |
@@ -1,2 +0,2 @@ | ||
import {expect, test} from '@jest/globals' | ||
import {expect, test} from 'vitest' | ||
@@ -3,0 +3,0 @@ import {decodeText} from '../decodeText' |
@@ -1,2 +0,2 @@ | ||
import {expect, test} from '@jest/globals' | ||
import {expect, test} from 'vitest' | ||
@@ -3,0 +3,0 @@ import {parseJSON} from '../json' |
@@ -1,2 +0,2 @@ | ||
import {expect, test} from '@jest/globals' | ||
import {expect, test} from 'vitest' | ||
@@ -3,0 +3,0 @@ import {split} from '../split' |
@@ -1,2 +0,2 @@ | ||
import {expect, test} from '@jest/globals' | ||
import {expect, test} from 'vitest' | ||
@@ -3,0 +3,0 @@ import {decodeText, parse, toArray} from '../../it-utils' |
@@ -1,2 +0,2 @@ | ||
import {expect, test} from '@jest/globals' | ||
import {expect, test} from 'vitest' | ||
@@ -22,3 +22,3 @@ import {readFileAsWebStream} from '../../fs-webstream/readFileAsWebStream' | ||
}).rejects.toThrowErrorMatchingInlineSnapshot( | ||
`"Unexpected end of tar file. Expected 512 bytes of headers."`, | ||
`[Error: Unexpected end of tar file. Expected 512 bytes of headers.]`, | ||
) | ||
@@ -35,3 +35,3 @@ }) | ||
}).rejects.toThrowErrorMatchingInlineSnapshot( | ||
`"Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?"`, | ||
`[Error: Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?]`, | ||
) | ||
@@ -48,4 +48,4 @@ }) | ||
}).rejects.toThrowErrorMatchingInlineSnapshot( | ||
`"Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?"`, | ||
`[Error: Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?]`, | ||
) | ||
}) |
@@ -1,2 +0,2 @@ | ||
import {expect, test} from '@jest/globals' | ||
import {expect, test} from 'vitest' | ||
@@ -3,0 +3,0 @@ import {readFileAsWebStream} from '../../fs-webstream/readFileAsWebStream' |
@@ -1,2 +0,2 @@ | ||
import {expect, test} from '@jest/globals' | ||
import {expect, test} from 'vitest' | ||
@@ -3,0 +3,0 @@ import {readFileAsWebStream} from '../../fs-webstream/readFileAsWebStream' |
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
6277014
7581
221
27
42
4
221
6
1
6
- Removed@sanity/types@3.58.0(transitive)
- Removed@sanity/util@3.58.0(transitive)
- Removed@types/prop-types@15.7.13(transitive)
- Removed@types/react@18.3.12(transitive)
- Removedcsstype@3.1.3(transitive)
- Removeddom-walk@0.1.2(transitive)
- Removedget-random-values@1.2.2(transitive)
- Removedget-random-values-esm@1.0.2(transitive)
- Removedglobal@4.4.0(transitive)
- Removedmin-document@2.19.0(transitive)
- Removedmoment@2.30.1(transitive)
- Removedprocess@0.11.10(transitive)