@codemirror/lang-json
Advanced tools
Comparing version 0.17.0 to 0.17.1
@@ -0,1 +1,7 @@ | ||
## 0.17.1 (2021-01-06) | ||
### New features | ||
The package now also exports a CommonJS module. | ||
## 0.17.0 (2020-12-29) | ||
@@ -2,0 +8,0 @@ |
{ | ||
"name": "@codemirror/lang-json", | ||
"version": "0.17.0", | ||
"version": "0.17.1", | ||
"description": "JSON language support for the CodeMirror code editor", | ||
"scripts": { | ||
"test": "echo 'No tests'", | ||
"prepare": "tsc && rollup -c" | ||
"prepare": "tsc -p tsconfig.local.json && rollup -c" | ||
}, | ||
@@ -19,3 +19,7 @@ "keywords": [ | ||
"type": "module", | ||
"main": "dist/index.js", | ||
"main": "dist/index.cjs", | ||
"exports": { | ||
"import": "./dist/index.js", | ||
"require": "./dist/index.cjs" | ||
}, | ||
"types": "dist/index.d.ts", | ||
@@ -22,0 +26,0 @@ "module": "dist/index.js", |
@@ -0,1 +1,3 @@ | ||
<!-- NOTE: README.md is generated from src/README.md --> | ||
# @codemirror/lang-json [![NPM version](https://img.shields.io/npm/v/@codemirror/lang-json.svg)](https://www.npmjs.org/package/@codemirror/lang-json) | ||
@@ -19,1 +21,24 @@ | ||
to communication around the project. | ||
## API Reference | ||
<dl> | ||
<dt id="user-content-json"> | ||
<code><strong><a href="#user-content-json">json</a></strong>() → <a href="https://codemirror.net/6/docs/ref#language.LanguageSupport">LanguageSupport</a></code></dt> | ||
<dd><p>JSON language support.</p> | ||
</dd> | ||
<dt id="user-content-jsonlanguage"> | ||
<code><strong><a href="#user-content-jsonlanguage">jsonLanguage</a></strong>: <a href="https://codemirror.net/6/docs/ref#language.LezerLanguage">LezerLanguage</a></code></dt> | ||
<dd><p>A language provider that provides JSON parsing.</p> | ||
</dd> | ||
<dt id="user-content-jsonparselinter"> | ||
<code><strong><a href="#user-content-jsonparselinter">jsonParseLinter</a></strong>() → fn(<a id="user-content-jsonparselinter^returns^view" href="#user-content-jsonparselinter^returns^view">view</a>: <a href="https://codemirror.net/6/docs/ref#view.EditorView">EditorView</a>) → <a href="https://codemirror.net/6/docs/ref#lint.Diagnostic">Diagnostic</a>[]</code></dt> | ||
<dd><p>Calls | ||
<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse"><code>JSON.parse</code></a> | ||
on the document and, if that throws an error, reports it as a | ||
single diagnostic.</p> | ||
</dd> | ||
</dl> | ||
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
15441
10
162
44