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

@nuxtjs/sanity

Package Overview
Dependencies
Maintainers
1
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nuxtjs/sanity - npm Package Compare versions

Comparing version 0.8.0 to 0.9.0

12

CHANGELOG.md

@@ -0,1 +1,13 @@

## [0.9.0](https://github.com/nuxt-community/sanity-module/compare/0.8.0...0.9.0) (2021-04-11)
### Features
* add `<SanityFile>` component to assist with auto-generating file URLs ([0b2d353](https://github.com/nuxt-community/sanity-module/commit/0b2d35391433752b57085a852abc859a49ece803)), closes [#70](https://github.com/nuxt-community/sanity-module/issues/70)
### Bug Fixes
* list rendering fixes for SanityContent ([db4408a](https://github.com/nuxt-community/sanity-module/commit/db4408ad3fb36a0ba690d6aaa129636b72bd1705)), closes [#102](https://github.com/nuxt-community/sanity-module/issues/102)
## [0.8.0](https://github.com/nuxt-community/sanity-module/compare/0.7.1...0.8.0) (2021-03-31)

@@ -2,0 +14,0 @@

38

dist/components/sanity-content.js

@@ -92,20 +92,26 @@ 'use strict';

}
function renderBlocks(h, blocks, serializers, nested = false) {
const nestedBlocks = nested ? blocks : blocks.reduce((blocks2, block) => {
const {length} = blocks2;
if (block.level && length) {
const {_type, children} = blocks2[length - 1];
if (_type === "list" && children) {
children.push(block);
} else {
blocks2.push({
_type: "list",
children: [block]
});
}
function walkList(blocks, block) {
const {length} = blocks;
if (!block.level) {
blocks.push(block);
return blocks;
}
const {_type, children, level: level2} = blocks[length - 1] || {};
if (_type === "list" && children) {
if (level2 === block.level) {
children.push(block);
} else {
blocks2.push(block);
walkList(children, block);
}
return blocks2;
}, []);
} else {
blocks.push({
_type: "list",
children: [block],
level: block.level
});
}
return blocks;
}
function renderBlocks(h, blocks, serializers, nested = false) {
const nestedBlocks = nested ? blocks : blocks.reduce(walkList, []);
return nestedBlocks.map((block) => {

@@ -112,0 +118,0 @@ const node = wrapStyle(h, block, serializers, wrapInSerializer(h, block, block._type === "block" ? (block.children || []).map((child) => wrapMarks(h, child.text, child.marks, serializers, block.markDefs)) : [], serializers));

@@ -8,3 +8,3 @@ import { bold } from 'chalk';

var name = "@nuxtjs/sanity";
var version = "0.8.0";
var version = "0.9.0";

@@ -11,0 +11,0 @@ const isProd = process.env.NODE_ENV === "production";

@@ -17,3 +17,3 @@ 'use strict';

var name = "@nuxtjs/sanity";
var version = "0.8.0";
var version = "0.9.0";

@@ -20,0 +20,0 @@ const isProd = process.env.NODE_ENV === "production";

{
"name": "@nuxtjs/sanity",
"version": "0.8.0",
"version": "0.9.0",
"description": "Sanity integration for Nuxt.js",

@@ -47,20 +47,20 @@ "keywords": [

"dependencies": {
"chalk": "^4.1.0",
"consola": "^2.15.0",
"chalk": "4.1.0",
"consola": "2.15.3",
"defu": "3.2.2",
"fs-extra": "^9.1.0",
"fs-extra": "9.1.0",
"upath": "2.0.1"
},
"devDependencies": {
"@babel/plugin-transform-runtime": "7.13.10",
"@babel/preset-env": "7.13.12",
"@babel/plugin-transform-runtime": "7.13.15",
"@babel/preset-env": "7.13.15",
"@babel/preset-typescript": "7.13.0",
"@nuxt/test-utils": "0.2.0",
"@nuxt/types": "2.15.3",
"@nuxt/test-utils": "0.2.2",
"@nuxt/types": "2.15.4",
"@nuxt/typescript-build": "2.1.0",
"@nuxtjs/eslint-config-typescript": "6.0.0",
"@nuxtjs/tailwindcss": "4.0.2",
"@nuxtjs/tailwindcss": "4.0.3",
"@release-it/conventional-changelog": "2.0.1",
"@sanity/client": "2.7.1",
"@types/fs-extra": "9.0.9",
"@types/fs-extra": "9.0.10",
"@types/jest": "26.0.22",

@@ -70,11 +70,11 @@ "@types/webpack-env": "1.16.0",

"babel-jest": "26.6.3",
"eslint": "7.23.0",
"husky": "^6.0.0",
"eslint": "7.24.0",
"husky": "6.0.0",
"jest": "26.6.3",
"jest-serializer-vue-tjw": "3.17.0",
"jest-serializer-vue-tjw": "3.18.0",
"lint-staged": "10.5.4",
"nuxt": "2.15.3",
"nuxt": "2.15.4",
"playwright": "1.10.0",
"release-it": "14.5.0",
"siroc": "0.8.0"
"release-it": "14.6.0",
"siroc": "0.9.2"
},

@@ -93,4 +93,4 @@ "peerDependencies": {

"volta": {
"node": "12.22.0"
"node": "12.22.1"
}
}
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