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

codemirror-json5

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

codemirror-json5 - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

dist/index.js

@@ -103,3 +103,3 @@ import { syntaxTree, LRLanguage, indentNodeProp, continuedIndent, foldNodeProp, foldInside, LanguageSupport } from '@codemirror/language';

'True False': tags.bool,
null: tags.null,
Null: tags.null,
', PropertyColon': tags.separator,

@@ -106,0 +106,0 @@ '[ ]': tags.squareBracket,

{
"name": "codemirror-json5",
"version": "1.0.0",
"version": "1.0.1",
"description": "JSON5 support for Codemirror 6",

@@ -13,2 +13,6 @@ "main": "dist/index.cjs",

"sideEffects": false,
"scripts": {
"test": "cm-runtests",
"prepare": "cm-buildhelper src/index.ts"
},
"keywords": [

@@ -40,6 +44,3 @@ "Codemirror",

"url": "https://github.com/dimfeld/codemirror-json5"
},
"scripts": {
"test": "cm-runtests"
}
}
}

@@ -5,3 +5,3 @@ # codemirror-json5

Beyond the basic support, it provides a linter and state fields the expose:
Beyond the basic support, it provides a linter and state fields that expose:

@@ -38,3 +38,3 @@ - The parsed object produced by the JSON5 parser, so that your surrounding code can use that result instead of parsing it twice.

function getJson5Info(state: EditorState) {
const parsed = state.field(json5ParseCache);
const object = state.field(json5ParseCache);
const { path } = state.field(jsonCursorPath);

@@ -41,0 +41,0 @@

@@ -34,3 +34,3 @@ import {

'True False': t.bool,
null: t.null,
Null: t.null,
', PropertyColon': t.separator,

@@ -37,0 +37,0 @@ '[ ]': t.squareBracket,

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