@speclynx/apidom-parser-adapter-arazzo-json-1 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-arazzo-json-1
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-arazzo-json-1
@@ -21268,7 +21268,7 @@ __webpack_require__.r(__webpack_exports__);
21268
21268
  /* harmony export */ syntacticAnalysis: () => (/* reexport safe */ _tree_sitter_index_mjs__WEBPACK_IMPORTED_MODULE_5__["default"])
21269
21269
  /* harmony export */ });
21270
21270
  /* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5156);
21271
- /* harmony import */ var _speclynx_apidom_error__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6126);
21271
+ /* harmony import */ var _speclynx_apidom_error__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(746);
21272
21272
  /* harmony import */ var _native_index_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8600);
21273
21273
  /* harmony import */ var _tree_sitter_index_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4885);
21274
21274
  /* harmony import */ var _tree_sitter_index_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(9305);
@@ -21313,10 +21313,6 @@ const detect = async (source, {
21313
21313
  * @public
21314
21314
  */
21315
21315
 
21316
- /**
21317
- * @public
21318
- */
21319
-
21320
21316
  /**
21321
21317
  * @public
21322
21318
  */
@@ -29444,6 +29440,9 @@ __webpack_require__.r(__webpack_exports__);
29444
29440
  * @public
29445
29441
  */
29446
29442
  const detect = async source => {
29443
+ if (source.trim().length === 0) {
29444
+ return false;
29445
+ }
29447
29446
  try {
29448
29447
  JSON.parse(source);
29449
29448
  return true;
@@ -29456,9 +29455,12 @@ const detect = async source => {
29456
29455
  * @public
29457
29456
  */
29458
29457
  const parse = async source => {
29458
+ const parseResult = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__["default"]();
29459
+ if (source.trim().length === 0) {
29460
+ return parseResult;
29461
+ }
29459
29462
  const pojo = JSON.parse(source);
29460
29463
  const element = (0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__.refract)(pojo);
29461
- const parseResult = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__["default"]();
29462
29464
  element.classes.push('result');
29463
29465
  parseResult.push(element);
29464
29466
  return parseResult;
@@ -33431,7 +33433,11 @@ const detectionRegExp = /"arazzo"\s*:\s*"(?<version_json>1\.(?:[1-9]\d*|0)\.(?:[
33431
33433
  /**
33432
33434
  * @public
33433
33435
  */
33434
- const detect = async source => detectionRegExp.test(source) && (await (0,_speclynx_apidom_parser_adapter_json__WEBPACK_IMPORTED_MODULE_4__.detect)(source));
33436
+ const detect = async (source, options = {}) => detectionRegExp.test(source) && (await (0,_speclynx_apidom_parser_adapter_json__WEBPACK_IMPORTED_MODULE_4__.detect)(source, options));
33437
+
33438
+ /**
33439
+ * @public
33440
+ */
33435
33441
 
33436
33442
  /**
33437
33443
  * @public