@nuxtjs/sanity
Advanced tools
Comparing version 0.3.3 to 0.3.5
@@ -0,1 +1,15 @@ | ||
### [0.3.5](https://github.com/nuxt-community/sanity-module/compare/0.3.4...0.3.5) (2020-10-06) | ||
### Bug Fixes | ||
* correct type error of renderless component ([b4679f7](https://github.com/nuxt-community/sanity-module/commit/b4679f731406c3405cbf8bbfd599cf7ae22265fb)) | ||
### [0.3.4](https://github.com/nuxt-community/sanity-module/compare/0.3.3...0.3.4) (2020-10-06) | ||
### Features | ||
* allow using scoped slots for full control of `<SanityImage>` ([c40313d](https://github.com/nuxt-community/sanity-module/commit/c40313d37933d9c601a30c7cce22ee4de44c5491)) | ||
### [0.3.3](https://github.com/nuxt-community/sanity-module/compare/0.3.2...0.3.3) (2020-09-27) | ||
@@ -2,0 +16,0 @@ |
@@ -90,3 +90,3 @@ 'use strict'; | ||
}, | ||
render(h, {props, data}) { | ||
render(h, {props, data, scopedSlots}) { | ||
const keys = [ | ||
@@ -123,3 +123,3 @@ "auto", | ||
const src = `${baseURL}/${props.projectId}/${props.dataset}/${parts.join("-")}.${format}${queryParams ? "?" + queryParams : ""}`; | ||
return h("img", __assign(__assign({}, data), { | ||
const renderRawImage = () => h("img", __assign(__assign({}, data), { | ||
attrs: __assign(__assign({}, data.attrs), { | ||
@@ -129,2 +129,3 @@ src | ||
})); | ||
return scopedSlots.default ? scopedSlots.default({src}) || renderRawImage() : renderRawImage(); | ||
} | ||
@@ -131,0 +132,0 @@ }); |
{ | ||
"name": "@nuxtjs/sanity", | ||
"version": "0.3.3", | ||
"version": "0.3.5", | ||
"description": "Sanity integration for Nuxt.js", | ||
@@ -38,2 +38,5 @@ "keywords": [ | ||
}, | ||
"resolutions": { | ||
"rollup-plugin-esbuild": "2.3.0" | ||
}, | ||
"dependencies": { | ||
@@ -50,3 +53,3 @@ "defu": "^3.1.0" | ||
"@nuxtjs/eslint-config-typescript": "latest", | ||
"@nuxtjs/module-test-utils": "2.0.0-2", | ||
"@nuxtjs/module-test-utils": "2.0.0-3", | ||
"@nuxtjs/tailwindcss": "^3.1.0", | ||
@@ -59,16 +62,16 @@ "@release-it/conventional-changelog": "^2.0.0", | ||
"@vue/test-utils": "^1.1.0", | ||
"babel-jest": "26.3.0", | ||
"babel-jest": "26.5.0", | ||
"eslint": "^7.10.0", | ||
"husky": "^4.3.0", | ||
"jest": "26.4.2", | ||
"jest": "26.5.0", | ||
"jest-serializer-vue-tjw": "^3.14.0", | ||
"lint-staged": "^10.4.0", | ||
"nuxt-edge": "latest", | ||
"puppeteer": "^5.3.1", | ||
"playwright": "^1.4.2", | ||
"release-it": "^14.0.3", | ||
"siroc": "^0.3.1" | ||
"siroc": "^0.3.3" | ||
}, | ||
"peerDependencies": { | ||
"chalk": "^3.0.0", | ||
"consola": "^2.14.0" | ||
"consola": "^2.15.0" | ||
}, | ||
@@ -81,3 +84,6 @@ "publishConfig": { | ||
"attributes": "vetur/attributes.json" | ||
}, | ||
"volta": { | ||
"node": "10.22.1" | ||
} | ||
} |
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
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
37043
865