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
76
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.6.2 to 0.7.0

16

CHANGELOG.md

@@ -0,1 +1,17 @@

## [0.7.0](https://github.com/nuxt-community/sanity-module/compare/0.6.2...0.7.0) (2021-01-31)
### ⚠ BREAKING CHANGES
* change minimum supported node version to 12
### Bug Fixes
* exclude `upath` from client bundle ([88b7d58](https://github.com/nuxt-community/sanity-module/commit/88b7d5871879f369e0b759513c7b23796bfe1f33)), closes [#66](https://github.com/nuxt-community/sanity-module/issues/66)
### Miscellaneous Chores
* change minimum supported node version to 12 ([adcde28](https://github.com/nuxt-community/sanity-module/commit/adcde28c292f23bdfb052ce1b0862be6f922f079))
### [0.6.2](https://github.com/nuxt-community/sanity-module/compare/0.6.1...0.6.2) (2021-01-20)

@@ -2,0 +18,0 @@

2

dist/index.es.js
import defu2 from 'defu';
import { resolve, join } from 'upath';

@@ -80,2 +79,3 @@ const apiHost = "api.sanity.io";

const consola = process.client ? {} : require("consola");
const {join, resolve} = process.client ? {} : require("upath");
let sanityConfig = {};

@@ -82,0 +82,0 @@ try {

@@ -6,3 +6,2 @@ 'use strict';

const defu2 = require('defu');
const upath = require('upath');

@@ -89,6 +88,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }

const consola = process.client ? {} : require("consola");
const {join, resolve} = process.client ? {} : require("upath");
let sanityConfig = {};
try {
const fs = process.client ? {} : require("fs-extra");
const {projectId, dataset} = fs.readJSONSync(upath.resolve(this.options.rootDir, "./sanity.json")).api;
const {projectId, dataset} = fs.readJSONSync(resolve(this.options.rootDir, "./sanity.json")).api;
sanityConfig = {projectId, dataset};

@@ -114,3 +114,3 @@ } catch (e) {

this.addPlugin({
src: upath.resolve(__dirname, "../templates/plugin.js"),
src: resolve(__dirname, "../templates/plugin.js"),
fileName: "sanity/plugin.js",

@@ -136,3 +136,3 @@ options: {

this.nuxt.hook("components:dirs", (dirs) => {
dirs.push(upath.join(__dirname, "components"));
dirs.push(join(__dirname, "components"));
});

@@ -139,0 +139,0 @@ }

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

@@ -46,5 +46,2 @@ "keywords": [

},
"resolutions": {
"rollup-plugin-esbuild": "2.3.0"
},
"dependencies": {

@@ -71,3 +68,3 @@ "defu": "3.2.2",

"babel-jest": "26.6.3",
"eslint": "7.18.0",
"eslint": "7.19.0",
"husky": "4.3.8",

@@ -78,3 +75,3 @@ "jest": "26.6.3",

"nuxt": "^2.14.0",
"playwright": "1.7.1",
"playwright": "1.8.0",
"release-it": "14.2.2",

@@ -95,4 +92,4 @@ "siroc": "0.6.3"

"volta": {
"node": "10.23.0"
"node": "12.20.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