New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@sanity/core-loader

Package Overview
Dependencies
Maintainers
46
Versions
224
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sanity/core-loader - npm Package Compare versions

Comparing version 1.6.1 to 1.6.2

dist/_chunks-cjs/enableLiveMode.cjs

14

CHANGELOG.md

@@ -21,2 +21,16 @@ <!-- markdownlint-disable --><!-- textlint-disable -->

## [1.6.2](https://github.com/sanity-io/visual-editing/compare/core-loader-v1.6.1...core-loader-v1.6.2) (2024-03-20)
### Bug Fixes
* ship TS Node16 compatible typings ([a21794d](https://github.com/sanity-io/visual-editing/commit/a21794dec5001867279a5979403220060b1d16f0))
### Dependencies
* The following workspace dependencies were updated
* devDependencies
* @sanity/visual-editing-helpers bumped from 0.6.1 to 0.6.2
## [1.6.0](https://github.com/sanity-io/visual-editing/compare/core-loader-v1.5.1...core-loader-v1.6.0) (2024-03-06)

@@ -23,0 +37,0 @@

2

dist/create-data-attribute.js

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

import{studioPath as t}from"@sanity/client/csm";import{x as r}from"./_chunks/transformSanityNodeData.js";function e(a){function n(r){return r?"string"==typeof r?t.fromString(r):r:[]}function o(e){if(!e.id)throw new Error("`id` is required to create a data attribute");if(!e.type)throw new Error("`type` is required to create a data attribute");if(!e.path||!e.path.length)throw new Error("`path` is required to create a data attribute");const a={baseUrl:e.baseUrl||"/",workspace:e.workspace,tool:e.tool,type:e.type,id:e.id,path:"string"==typeof e.path?e.path:t.toString(e.path)};return r(a)}const i=function(t){return o({...a,path:[...n(a.path),...n(t)]})};return i.toString=function(){return o(a)},i.combine=function(t){return e({...a,...t})},i.scope=function(t){return e({...a,path:[...n(a.path),...n(t)]})},i}export{e as createDataAttribute};//# sourceMappingURL=create-data-attribute.js.map
import{studioPath as t}from"@sanity/client/csm";import{x as r}from"./_chunks-es/transformSanityNodeData.js";function e(a){function n(r){return r?"string"==typeof r?t.fromString(r):r:[]}function o(e){if(!e.id)throw new Error("`id` is required to create a data attribute");if(!e.type)throw new Error("`type` is required to create a data attribute");if(!e.path||!e.path.length)throw new Error("`path` is required to create a data attribute");const a={baseUrl:e.baseUrl||"/",workspace:e.workspace,tool:e.tool,type:e.type,id:e.id,path:"string"==typeof e.path?e.path:t.toString(e.path)};return r(a)}const i=function(t){return o({...a,path:[...n(a.path),...n(t)]})};return i.toString=function(){return o(a)},i.combine=function(t){return e({...a,...t})},i.scope=function(t){return e({...a,path:[...n(a.path),...n(t)]})},i}export{e as createDataAttribute};//# sourceMappingURL=create-data-attribute.js.map

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

import{studioPathToJsonPath as t,resolveEditInfo as r,studioPath as o,jsonPathToStudioPath as s}from"@sanity/client/csm";import{x as e}from"./_chunks/transformSanityNodeData.js";const n=(n,a,i,p)=>{if(!a||!i)return;const c=t(p),u=r({resultPath:c,resultSourceMap:a,studioUrl:i});return u?e({baseUrl:u.baseUrl,workspace:u.workspace,tool:u.tool,type:u.type,id:u.id,path:"string"==typeof u.path?u.path:o.toString(s(u.path))}):void 0};function a(t,r,s,e){const i=t=>t?"string"==typeof t?o.fromString(t):t:[],p=i(e);return Object.assign((t=>n(0,r,s,[...p,...i(t)])),{scope:o=>a(t,r,s,[...p,...i(o)])})}export{a as defineEncodeDataAttribute,n as encodeDataAttribute};//# sourceMappingURL=encode-data-attribute.js.map
import{studioPathToJsonPath as t,resolveEditInfo as r,studioPath as o,jsonPathToStudioPath as s}from"@sanity/client/csm";import{x as e}from"./_chunks-es/transformSanityNodeData.js";const n=(n,a,i,p)=>{if(!a||!i)return;const c=t(p),u=r({resultPath:c,resultSourceMap:a,studioUrl:i});return u?e({baseUrl:u.baseUrl,workspace:u.workspace,tool:u.tool,type:u.type,id:u.id,path:"string"==typeof u.path?u.path:o.toString(s(u.path))}):void 0};function a(t,r,s,e){const i=t=>t?"string"==typeof t?o.fromString(t):t:[],p=i(e);return Object.assign((t=>n(0,r,s,[...p,...i(t)])),{scope:o=>a(t,r,s,[...p,...i(o)])})}export{a as defineEncodeDataAttribute,n as encodeDataAttribute};//# sourceMappingURL=encode-data-attribute.js.map

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

import"async-cache-dedupe";import{c as e,r}from"./_chunks/index.js";export{e as createQueryStore,r as runtime};//# sourceMappingURL=index.js.map
import"async-cache-dedupe";import{c as e,r}from"./_chunks-es/index.js";export{e as createQueryStore,r as runtime};//# sourceMappingURL=index.js.map
{
"name": "@sanity/core-loader",
"version": "1.6.1",
"version": "1.6.2",
"homepage": "https://github.com/sanity-io/visual-editing/tree/main/packages/core-loader#readme",

@@ -19,32 +19,17 @@ "bugs": {

".": {
"types": "./dist/index.d.ts",
"source": "./src/index.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs",
"node": {
"module": "./dist/index.js",
"import": "./dist/index.cjs.js"
},
"import": "./dist/index.js",
"default": "./dist/index.js"
},
"./encode-data-attribute": {
"types": "./dist/encode-data-attribute.d.ts",
"source": "./src/encodeDataAttribute.ts",
"import": "./dist/encode-data-attribute.js",
"require": "./dist/encode-data-attribute.cjs",
"node": {
"module": "./dist/encode-data-attribute.js",
"import": "./dist/encode-data-attribute.cjs.js"
},
"import": "./dist/encode-data-attribute.js",
"default": "./dist/encode-data-attribute.js"
},
"./create-data-attribute": {
"types": "./dist/create-data-attribute.d.ts",
"source": "./src/createDataAttribute.ts",
"import": "./dist/create-data-attribute.js",
"require": "./dist/create-data-attribute.cjs",
"node": {
"module": "./dist/create-data-attribute.js",
"import": "./dist/create-data-attribute.cjs.js"
},
"import": "./dist/create-data-attribute.js",
"default": "./dist/create-data-attribute.js"

@@ -133,7 +118,7 @@ },

"@sanity/channels": "0.4.0",
"@sanity/client": "^6.15.2",
"@sanity/pkg-utils": "^4.4.1",
"@sanity/visual-editing-helpers": "0.6.1",
"@typescript-eslint/eslint-plugin": "^7.1.1",
"@typescript-eslint/parser": "^7.1.1",
"@sanity/client": "^6.15.7",
"@sanity/pkg-utils": "^5.1.1",
"@sanity/visual-editing-helpers": "0.6.2",
"@typescript-eslint/eslint-plugin": "^7.3.1",
"@typescript-eslint/parser": "^7.3.1",
"eslint": "^8.57.0",

@@ -143,9 +128,9 @@ "eslint-config-prettier": "^9.1.0",

"eslint-plugin-simple-import-sort": "^12.0.0",
"happy-dom": "^13.6.2",
"happy-dom": "^14.0.0",
"nanostores": "0.10.0",
"typescript": "^5.3.3",
"vitest": "^1.3.1"
"typescript": "5.3.3",
"vitest": "^1.4.0"
},
"peerDependencies": {
"@sanity/client": "^6.15.2"
"@sanity/client": "^6.15.7"
},

@@ -152,0 +137,0 @@ "engines": {

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

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