Socket
Socket
Sign inDemoInstall

@sanity/migrate

Package Overview
Dependencies
Maintainers
51
Versions
183
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.39.1 to 3.40.0

8

./lib/index.js

@@ -62,6 +62,6 @@ "use strict";

if (buf += chunk, buf.includes(delimiter)) {
const lastIndex = buf.lastIndexOf(delimiter), parts = buf.substring(0, lastIndex).split(delimiter);
const lastIndex = buf.lastIndexOf(delimiter), parts = buf.slice(0, Math.max(0, lastIndex)).split(delimiter);
for (const part of parts)
yield part;
buf = buf.substring(lastIndex + delimiter.length);
buf = buf.slice(Math.max(0, lastIndex + delimiter.length));
}

@@ -399,3 +399,3 @@ yield buf;

return new Uint8Array(0);
totalLength = arrays.reduce((accumulator, currentValue) => accumulator + currentValue.length, 0);
totalLength != null || (totalLength = arrays.reduce((accumulator, currentValue) => accumulator + currentValue.length, 0));
const returnValue = new Uint8Array(totalLength);

@@ -758,3 +758,3 @@ let offset = 0;

constructor(statusCode, message) {
super(message), __publicField(this, "statusCode"), this.statusCode = statusCode;
super(message), __publicField(this, "statusCode"), this.name = "HTTPError", this.statusCode = statusCode;
}

@@ -761,0 +761,0 @@ }

@@ -48,6 +48,6 @@ import { fromString } from "@sanity/util/paths";

if (buf += chunk, buf.includes(delimiter)) {
const lastIndex = buf.lastIndexOf(delimiter), parts = buf.substring(0, lastIndex).split(delimiter);
const lastIndex = buf.lastIndexOf(delimiter), parts = buf.slice(0, Math.max(0, lastIndex)).split(delimiter);
for (const part of parts)
yield part;
buf = buf.substring(lastIndex + delimiter.length);
buf = buf.slice(Math.max(0, lastIndex + delimiter.length));
}

@@ -385,3 +385,3 @@ yield buf;

return new Uint8Array(0);
totalLength = arrays.reduce((accumulator, currentValue) => accumulator + currentValue.length, 0);
totalLength != null || (totalLength = arrays.reduce((accumulator, currentValue) => accumulator + currentValue.length, 0));
const returnValue = new Uint8Array(totalLength);

@@ -744,3 +744,3 @@ let offset = 0;

constructor(statusCode, message) {
super(message), __publicField(this, "statusCode"), this.statusCode = statusCode;
super(message), __publicField(this, "statusCode"), this.name = "HTTPError", this.statusCode = statusCode;
}

@@ -747,0 +747,0 @@ }

@@ -62,6 +62,6 @@ "use strict";

if (buf += chunk, buf.includes(delimiter)) {
const lastIndex = buf.lastIndexOf(delimiter), parts = buf.substring(0, lastIndex).split(delimiter);
const lastIndex = buf.lastIndexOf(delimiter), parts = buf.slice(0, Math.max(0, lastIndex)).split(delimiter);
for (const part of parts)
yield part;
buf = buf.substring(lastIndex + delimiter.length);
buf = buf.slice(Math.max(0, lastIndex + delimiter.length));
}

@@ -399,3 +399,3 @@ yield buf;

return new Uint8Array(0);
totalLength = arrays.reduce((accumulator, currentValue) => accumulator + currentValue.length, 0);
totalLength != null || (totalLength = arrays.reduce((accumulator, currentValue) => accumulator + currentValue.length, 0));
const returnValue = new Uint8Array(totalLength);

@@ -758,3 +758,3 @@ let offset = 0;

constructor(statusCode, message) {
super(message), __publicField(this, "statusCode"), this.statusCode = statusCode;
super(message), __publicField(this, "statusCode"), this.name = "HTTPError", this.statusCode = statusCode;
}

@@ -761,0 +761,0 @@ }

{
"name": "@sanity/migrate",
"version": "3.39.1",
"version": "3.40.0",
"description": "Tooling for running data migrations on Sanity.io projects",

@@ -55,8 +55,8 @@ "keywords": [

"@sanity/client": "^6.15.20",
"@sanity/types": "3.39.1",
"@sanity/util": "3.39.1",
"@sanity/types": "3.40.0",
"@sanity/util": "3.40.0",
"arrify": "^2.0.1",
"debug": "^4.3.4",
"fast-fifo": "^1.3.2",
"groq-js": "^1.7.0",
"groq-js": "^1.8.0",
"p-map": "^7.0.1"

@@ -66,3 +66,3 @@ },

"@jest/globals": "^29.7.0",
"@repo/package.config": "3.39.1",
"@repo/package.config": "3.40.0",
"@types/arrify": "^2.0.1",

@@ -75,3 +75,3 @@ "@types/debug": "^4.1.12",

},
"gitHead": "aa02ae80de3cc588857272d2bed42bb5cd28a09a"
"gitHead": "46a02e2eb70ec8c5cc22b45188fc4ba5446f1d58"
}

@@ -12,2 +12,3 @@ import {streamToAsyncIterator} from '../utils/streamToAsyncIterator'

super(message)
this.name = 'HTTPError'
this.statusCode = statusCode

@@ -14,0 +15,0 @@ }

@@ -10,3 +10,3 @@ export async function* split(

const lastIndex = buf.lastIndexOf(delimiter)
const parts = buf.substring(0, lastIndex).split(delimiter)
const parts = buf.slice(0, Math.max(0, lastIndex)).split(delimiter)

@@ -16,3 +16,3 @@ for (const part of parts) {

}
buf = buf.substring(lastIndex + delimiter.length)
buf = buf.slice(Math.max(0, lastIndex + delimiter.length))
}

@@ -19,0 +19,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

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