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

next-sanity

Package Overview
Dependencies
Maintainers
33
Versions
393
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

next-sanity - npm Package Compare versions

Comparing version 0.6.9 to 0.6.10

src/studio/static/apple-touch-icon.png

41

lib/cjs/studio.js

@@ -102,26 +102,11 @@ var $aBkVq$reactjsxruntime = require("react/jsx-runtime");

var $d62a91800808f0a8$exports = {};
$d62a91800808f0a8$exports = new URL("apple-touch-icon.abc4aca2.png", "file:" + __filename).toString();
var $fcd6fc55826ec974$exports = {};
$fcd6fc55826ec974$exports = JSON.parse('{"icons":[{"src":"./favicon-192.png","type":"image/png","sizes":"192x192"},{"src":"./favicon-512.png","type":"image/png","sizes":"512x512"}]}');
var $60a89fb72f908889$exports = {};
$60a89fb72f908889$exports = new URL("favicon.648fc2f2.ico", "file:" + __filename).toString();
var $9ea421369d9d5398$exports = {};
$9ea421369d9d5398$exports = new URL("favicon.8f76876f.svg", "file:" + __filename).toString();
var $baad41aac6f7f102$exports = {};
$baad41aac6f7f102$exports = new URL("favicon-192.40c8bab4.png", "file:" + __filename).toString();
var $cbbee0dee6b72f0a$exports = {};
$cbbee0dee6b72f0a$exports = new URL("favicon-512.5e08f951.png", "file:" + __filename).toString();
var $4365e057d007ed0b$exports = {};
$4365e057d007ed0b$exports = JSON.parse('{"icons":[{"src":"./favicon-192.png","type":"image/png","sizes":"192x192"},{"src":"./favicon-512.png","type":"image/png","sizes":"512x512"}]}');
const $3e6cd9b42bc397c4$var$iconApple = new URL("92ea002ae7d17215", "file:" + __filename).toString();
const $3e6cd9b42bc397c4$var$iconSvg = new URL("fcac50a5aa5f709c", "file:" + __filename).toString();
const $3e6cd9b42bc397c4$var$iconIco = new URL("3615be30c513e586", "file:" + __filename).toString();
const $3e6cd9b42bc397c4$var$icon192 = new URL("d22f93fc281dd3c3", "file:" + __filename).toString();
const $3e6cd9b42bc397c4$var$icon512 = new URL("48f1f57287738032", "file:" + __filename).toString();
// Interop between how Parcel and Next deals with asset imports

@@ -131,7 +116,7 @@ const $3e6cd9b42bc397c4$var$interop = (href)=>typeof href === "string" ? href : href.src;

const inlineWebmanifest = (0, $aBkVq$react.useCallback)(()=>{
const manifest = JSON.parse(JSON.stringify((0, (/*@__PURE__*/$parcel$interopDefault($4365e057d007ed0b$exports)))));
const manifest = JSON.parse(JSON.stringify((0, (/*@__PURE__*/$parcel$interopDefault($fcd6fc55826ec974$exports)))));
const icons = manifest.icons.map((icon)=>{
// Inline manifests works best when URLs are absolute
const src = // eslint-disable-next-line no-nested-ternary
icon.src === "./favicon-192.png" ? $3e6cd9b42bc397c4$var$interop((0, (/*@__PURE__*/$parcel$interopDefault($baad41aac6f7f102$exports)))) : icon.src === "./favicon-512.png" ? $3e6cd9b42bc397c4$var$interop((0, (/*@__PURE__*/$parcel$interopDefault($cbbee0dee6b72f0a$exports)))) : icon.src;
icon.src === "./favicon-192.png" ? $3e6cd9b42bc397c4$var$interop($3e6cd9b42bc397c4$var$icon192) : icon.src === "./favicon-512.png" ? $3e6cd9b42bc397c4$var$interop($3e6cd9b42bc397c4$var$icon512) : icon.src;
return {

@@ -167,3 +152,3 @@ ...icon,

rel: "icon",
href: $3e6cd9b42bc397c4$var$interop((0, (/*@__PURE__*/$parcel$interopDefault($60a89fb72f908889$exports)))),
href: $3e6cd9b42bc397c4$var$interop($3e6cd9b42bc397c4$var$iconIco),
sizes: "any"

@@ -173,3 +158,3 @@ }),

rel: "icon",
href: $3e6cd9b42bc397c4$var$interop((0, (/*@__PURE__*/$parcel$interopDefault($9ea421369d9d5398$exports)))),
href: $3e6cd9b42bc397c4$var$interop($3e6cd9b42bc397c4$var$iconSvg),
type: "image/svg+xml"

@@ -179,3 +164,3 @@ }),

rel: "apple-touch-icon",
href: $3e6cd9b42bc397c4$var$interop((0, (/*@__PURE__*/$parcel$interopDefault($d62a91800808f0a8$exports))))
href: $3e6cd9b42bc397c4$var$interop($3e6cd9b42bc397c4$var$iconApple)
}),

@@ -186,3 +171,3 @@ favicons && /*#__PURE__*/ (0, $aBkVq$reactjsxruntime.jsx)("link", {

// @TODO until parcel fixes https://github.com/parcel-bundler/parcel/issues/8025 and stops stripping process.env.NEXT_PUBLIC_VERCEL_URL from the compiled code, use the remove webmanifest
href: process.env.NEXT_PUBLIC_VERCEL_URL ? inlineWebmanifest() : "https://next-studio-layout.sanity.build/manifest.webmanifest"
href: process.env.NEXT_PUBLIC_VERCEL_URL ? inlineWebmanifest() : "https://next.sanity.build/manifest.webmanifest"
}),

@@ -189,0 +174,0 @@ themeColorLight && /*#__PURE__*/ (0, $aBkVq$reactjsxruntime.jsx)("meta", {

@@ -9,5 +9,2 @@ import {jsxs as $3LAn5$jsxs, Fragment as $3LAn5$Fragment, jsx as $3LAn5$jsx} from "react/jsx-runtime";

function $parcel$export(e, n, v, s) {
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
}
function $parcel$exportWildcard(dest, source) {

@@ -29,84 +26,8 @@ Object.keys(source).forEach(function(key) {

}
function $parcel$export(e, n, v, s) {
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
}
function $parcel$interopDefault(a) {
return a && a.__esModule ? a.default : a;
}
var $parcel$global =
typeof globalThis !== 'undefined'
? globalThis
: typeof self !== 'undefined'
? self
: typeof window !== 'undefined'
? window
: typeof global !== 'undefined'
? global
: {};
var $parcel$modules = {};
var $parcel$inits = {};
var parcelRequire = $parcel$global["parcelRequiree511"];
if (parcelRequire == null) {
parcelRequire = function(id) {
if (id in $parcel$modules) {
return $parcel$modules[id].exports;
}
if (id in $parcel$inits) {
var init = $parcel$inits[id];
delete $parcel$inits[id];
var module = {id: id, exports: {}};
$parcel$modules[id] = module;
init.call(module.exports, module, module.exports);
return module.exports;
}
var err = new Error("Cannot find module '" + id + "'");
err.code = 'MODULE_NOT_FOUND';
throw err;
};
parcelRequire.register = function register(id, init) {
$parcel$inits[id] = init;
};
$parcel$global["parcelRequiree511"] = parcelRequire;
}
parcelRequire.register("ar2eu", function(module, exports) {
$parcel$export(module.exports, "getBundleURL", () => $798e2863ff79ee20$export$bdfd709ae4826697, (v) => $798e2863ff79ee20$export$bdfd709ae4826697 = v);
var $798e2863ff79ee20$export$bdfd709ae4826697;
var $798e2863ff79ee20$export$c9e73fbda7da57b6;
var $798e2863ff79ee20$export$5a759dc7a1cfb72a;
"use strict";
var $798e2863ff79ee20$var$bundleURL = {};
function $798e2863ff79ee20$var$getBundleURLCached(id) {
var value = $798e2863ff79ee20$var$bundleURL[id];
if (!value) {
value = $798e2863ff79ee20$var$getBundleURL();
$798e2863ff79ee20$var$bundleURL[id] = value;
}
return value;
}
function $798e2863ff79ee20$var$getBundleURL() {
try {
throw new Error();
} catch (err) {
var matches = ("" + err.stack).match(/(https?|file|ftp|(chrome|moz|safari-web)-extension):\/\/[^)\n]+/g);
if (matches) // The first two stack frames will be this function and getBundleURLCached.
// Use the 3rd one, which will be a runtime in the original bundle.
return $798e2863ff79ee20$var$getBaseURL(matches[2]);
}
return "/";
}
function $798e2863ff79ee20$var$getBaseURL(url) {
return ("" + url).replace(/^((?:https?|file|ftp|(chrome|moz|safari-web)-extension):\/\/.+)\/[^/]+$/, "$1") + "/";
} // TODO: Replace uses with `new URL(url).origin` when ie11 is no longer supported.
function $798e2863ff79ee20$var$getOrigin(url) {
var matches = ("" + url).match(/(https?|file|ftp|(chrome|moz|safari-web)-extension):\/\/[^/]+/);
if (!matches) throw new Error("Origin not found");
return matches[0];
}
$798e2863ff79ee20$export$bdfd709ae4826697 = $798e2863ff79ee20$var$getBundleURLCached;
$798e2863ff79ee20$export$c9e73fbda7da57b6 = $798e2863ff79ee20$var$getBaseURL;
$798e2863ff79ee20$export$5a759dc7a1cfb72a = $798e2863ff79ee20$var$getOrigin;
});
var $5fad48b1a984c979$exports = {};

@@ -183,31 +104,11 @@ var $0b1d95a703deb844$exports = {};

var $0108d71069fae04e$exports = {};
var $6d8b9ec2542785fd$exports = {};
$6d8b9ec2542785fd$exports = JSON.parse('{"icons":[{"src":"./favicon-192.png","type":"image/png","sizes":"192x192"},{"src":"./favicon-512.png","type":"image/png","sizes":"512x512"}]}');
$0108d71069fae04e$exports = (parcelRequire("ar2eu")).getBundleURL("3LAn5") + "apple-touch-icon.abc4aca2.png";
var $8077fdd2633d7a81$exports = {};
$8077fdd2633d7a81$exports = (parcelRequire("ar2eu")).getBundleURL("3LAn5") + "favicon.648fc2f2.ico";
var $4db362cdaa35db70$exports = {};
$4db362cdaa35db70$exports = (parcelRequire("ar2eu")).getBundleURL("3LAn5") + "favicon.8f76876f.svg";
var $b4cbab8f868ac353$exports = {};
$b4cbab8f868ac353$exports = (parcelRequire("ar2eu")).getBundleURL("3LAn5") + "favicon-192.40c8bab4.png";
var $148c4942f4e37da8$exports = {};
$148c4942f4e37da8$exports = (parcelRequire("ar2eu")).getBundleURL("3LAn5") + "favicon-512.5e08f951.png";
var $d474e2d54886a0d2$exports = {};
$d474e2d54886a0d2$exports = JSON.parse('{"icons":[{"src":"./favicon-192.png","type":"image/png","sizes":"192x192"},{"src":"./favicon-512.png","type":"image/png","sizes":"512x512"}]}');
const $ce5bdc1b62c6b4b4$var$iconApple = new URL("92ea002ae7d17215", import.meta.url).toString();
const $ce5bdc1b62c6b4b4$var$iconSvg = new URL("fcac50a5aa5f709c", import.meta.url).toString();
const $ce5bdc1b62c6b4b4$var$iconIco = new URL("3615be30c513e586", import.meta.url).toString();
const $ce5bdc1b62c6b4b4$var$icon192 = new URL("d22f93fc281dd3c3", import.meta.url).toString();
const $ce5bdc1b62c6b4b4$var$icon512 = new URL("48f1f57287738032", import.meta.url).toString();
// Interop between how Parcel and Next deals with asset imports

@@ -217,7 +118,7 @@ const $ce5bdc1b62c6b4b4$var$interop = (href)=>typeof href === "string" ? href : href.src;

const inlineWebmanifest = (0, $3LAn5$useCallback)(()=>{
const manifest = JSON.parse(JSON.stringify((0, (/*@__PURE__*/$parcel$interopDefault($d474e2d54886a0d2$exports)))));
const manifest = JSON.parse(JSON.stringify((0, (/*@__PURE__*/$parcel$interopDefault($6d8b9ec2542785fd$exports)))));
const icons = manifest.icons.map((icon)=>{
// Inline manifests works best when URLs are absolute
const src = // eslint-disable-next-line no-nested-ternary
icon.src === "./favicon-192.png" ? $ce5bdc1b62c6b4b4$var$interop((0, (/*@__PURE__*/$parcel$interopDefault($b4cbab8f868ac353$exports)))) : icon.src === "./favicon-512.png" ? $ce5bdc1b62c6b4b4$var$interop((0, (/*@__PURE__*/$parcel$interopDefault($148c4942f4e37da8$exports)))) : icon.src;
icon.src === "./favicon-192.png" ? $ce5bdc1b62c6b4b4$var$interop($ce5bdc1b62c6b4b4$var$icon192) : icon.src === "./favicon-512.png" ? $ce5bdc1b62c6b4b4$var$interop($ce5bdc1b62c6b4b4$var$icon512) : icon.src;
return {

@@ -253,3 +154,3 @@ ...icon,

rel: "icon",
href: $ce5bdc1b62c6b4b4$var$interop((0, (/*@__PURE__*/$parcel$interopDefault($8077fdd2633d7a81$exports)))),
href: $ce5bdc1b62c6b4b4$var$interop($ce5bdc1b62c6b4b4$var$iconIco),
sizes: "any"

@@ -259,3 +160,3 @@ }),

rel: "icon",
href: $ce5bdc1b62c6b4b4$var$interop((0, (/*@__PURE__*/$parcel$interopDefault($4db362cdaa35db70$exports)))),
href: $ce5bdc1b62c6b4b4$var$interop($ce5bdc1b62c6b4b4$var$iconSvg),
type: "image/svg+xml"

@@ -265,3 +166,3 @@ }),

rel: "apple-touch-icon",
href: $ce5bdc1b62c6b4b4$var$interop((0, (/*@__PURE__*/$parcel$interopDefault($0108d71069fae04e$exports))))
href: $ce5bdc1b62c6b4b4$var$interop($ce5bdc1b62c6b4b4$var$iconApple)
}),

@@ -272,3 +173,3 @@ favicons && /*#__PURE__*/ (0, $3LAn5$jsx)("link", {

// @TODO until parcel fixes https://github.com/parcel-bundler/parcel/issues/8025 and stops stripping process.env.NEXT_PUBLIC_VERCEL_URL from the compiled code, use the remove webmanifest
href: process.env.NEXT_PUBLIC_VERCEL_URL ? inlineWebmanifest() : "https://next-studio-layout.sanity.build/manifest.webmanifest"
href: process.env.NEXT_PUBLIC_VERCEL_URL ? inlineWebmanifest() : "https://next.sanity.build/manifest.webmanifest"
}),

@@ -275,0 +176,0 @@ themeColorLight && /*#__PURE__*/ (0, $3LAn5$jsx)("meta", {

{
"name": "next-sanity",
"version": "0.6.9",
"version": "0.6.10",
"description": "Sanity.io toolkit for Next.js",

@@ -36,3 +36,4 @@ "keywords": [

},
"//": "the typesVersion config below is a workaround for TypeScript's lack of support for package exports",
"main": "dist/index.js",
"module": "dist/next-sanity.esm.js",
"typesVersions": {

@@ -45,4 +46,2 @@ "*": {

},
"main": "dist/index.js",
"module": "dist/next-sanity.esm.js",
"typings": "dist/index.d.ts",

@@ -66,3 +65,4 @@ "files": [

"tsdx": "tsdx --tsconfig ./tsconfig.tsdx.json",
"type-check": "tsc --noEmit"
"type-check": "tsc --noEmit",
"update:icons": "cp node_modules/@sanity/server/lib/static/favicons/* src/studio/static && cp src/studio/static/favicon-{192,512}.png public && cp src/studio/static/webmanifest.json public/manifest.webmanifest"
},

@@ -124,2 +124,3 @@ "browserslist": "chrome 59, safari 11, firefox 56, edge 14, ie 11",

"isLibrary": true,
"context": "node",
"source": "./src/studio.ts",

@@ -131,2 +132,3 @@ "outputFormat": "commonjs"

"isLibrary": true,
"context": "node",
"source": "./src/studio.ts",

@@ -133,0 +135,0 @@ "outputFormat": "esmodule"

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