@speclynx/apidom-parser-adapter-json 2.2.3 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,16 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [2.4.0](https://github.com/speclynx/apidom/compare/v2.3.0...v2.4.0) (2026-01-29)
7
+
8
+ **Note:** Version bump only for package @speclynx/apidom-parser-adapter-json
9
+
10
+ # [2.3.0](https://github.com/speclynx/apidom/compare/v2.2.3...v2.3.0) (2026-01-27)
11
+
12
+ ### Features
13
+
14
+ - support strict parsing mode through out the packages ([#46](https://github.com/speclynx/apidom/issues/46)) ([e6b47d9](https://github.com/speclynx/apidom/commit/e6b47d9cfdede7103cada67362b316fd8e5b787f)), closes [#23](https://github.com/speclynx/apidom/issues/23)
15
+
6
16
  ## [2.2.3](https://github.com/speclynx/apidom/compare/v2.2.2...v2.2.3) (2026-01-26)
7
17
 
8
18
  **Note:** Version bump only for package @speclynx/apidom-parser-adapter-json
@@ -7476,6 +7476,9 @@ __webpack_require__.r(__webpack_exports__);
7476
7476
  * @public
7477
7477
  */
7478
7478
  const detect = async source => {
7479
+ if (source.trim().length === 0) {
7480
+ return false;
7481
+ }
7479
7482
  try {
7480
7483
  JSON.parse(source);
7481
7484
  return true;
@@ -7488,9 +7491,12 @@ const detect = async source => {
7488
7491
  * @public
7489
7492
  */
7490
7493
  const parse = async source => {
7494
+ const parseResult = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__["default"]();
7495
+ if (source.trim().length === 0) {
7496
+ return parseResult;
7497
+ }
7491
7498
  const pojo = JSON.parse(source);
7492
7499
  const element = (0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__.refract)(pojo);
7493
- const parseResult = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__["default"]();
7494
7500
  element.classes.push('result');
7495
7501
  parseResult.push(element);
7496
7502
  return parseResult;
@@ -7913,7 +7919,7 @@ __webpack_require__.r(__webpack_exports__);
7913
7919
  /* harmony export */ syntacticAnalysis: () => (/* reexport safe */ _tree_sitter_index_ts__WEBPACK_IMPORTED_MODULE_5__["default"])
7914
7920
  /* harmony export */ });
7915
7921
  /* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5156);
7916
- /* harmony import */ var _speclynx_apidom_error__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6126);
7922
+ /* harmony import */ var _speclynx_apidom_error__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(746);
7917
7923
  /* harmony import */ var _native_index_ts__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8908);
7918
7924
  /* harmony import */ var _tree_sitter_index_ts__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4709);
7919
7925
  /* harmony import */ var _tree_sitter_index_ts__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7243);
@@ -7960,10 +7966,6 @@ const detect = async (source, {
7960
7966
  * @public
7961
7967
  */
7962
7968
 
7963
- /**
7964
- * @public
7965
- */
7966
-
7967
7969
  /**
7968
7970
  * @public
7969
7971
  */