Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sanity/migrate

Package Overview
Dependencies
Maintainers
61
Versions
222
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sanity/migrate - npm Package Compare versions

Comparing version 3.58.0 to 3.58.1-canary.22

15

package.json
{
"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'

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc