@speclynx/apidom-ns-openapi-2 5.1.0 → 5.1.1

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,10 @@
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
+ ## [5.1.1](https://github.com/speclynx/apidom/compare/v5.1.0...v5.1.1) (2026-08-19)
7
+
8
+ **Note:** Version bump only for package @speclynx/apidom-ns-openapi-2
9
+
6
10
  # [5.1.0](https://github.com/speclynx/apidom/compare/v5.0.2...v5.1.0) (2026-08-09)
7
11
 
8
12
  ### Bug Fixes
@@ -22681,6 +22681,7 @@ const resolveSpecification = specification => {
22681
22681
  __webpack_require__.r(__webpack_exports__);
22682
22682
  /* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5162);
22683
22683
  /* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6911);
22684
+ /* harmony import */ var _util_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(977);
22684
22685
 
22685
22686
 
22686
22687
  /**
@@ -22708,7 +22709,7 @@ const serializer = element => {
22708
22709
  node.forEach((value, key) => {
22709
22710
  const k = serialize(key);
22710
22711
  const v = serialize(value);
22711
- if (typeof k === 'string') obj[k] = v;
22712
+ if (typeof k === 'string') (0,_util_mjs__WEBPACK_IMPORTED_MODULE_2__["default"])(obj, k, v);
22712
22713
  });
22713
22714
  return obj;
22714
22715
  }
@@ -22733,6 +22734,38 @@ const serializer = element => {
22733
22734
  /* harmony export */ ]);
22734
22735
 
22735
22736
 
22737
+ /***/ },
22738
+
22739
+ /***/ 977
22740
+ (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
22741
+
22742
+ __webpack_require__.r(__webpack_exports__);
22743
+ /**
22744
+ * Defines a key on a plain object being built from an ApiDOM element tree.
22745
+ *
22746
+ * A "__proto__" key must be defined rather than assigned: assignment invokes
22747
+ * the prototype setter, which drops the member from the result and hands
22748
+ * document content to consumers as the object's prototype. Every other key
22749
+ * takes the plain assignment fast path.
22750
+ */
22751
+ const setProperty = (target, key, value) => {
22752
+ if (key === '__proto__') {
22753
+ Object.defineProperty(target, key, {
22754
+ value,
22755
+ enumerable: true,
22756
+ writable: true,
22757
+ configurable: true
22758
+ });
22759
+ } else {
22760
+ target[key] = value;
22761
+ }
22762
+ };
22763
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (setProperty);
22764
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, [
22765
+ /* harmony export */ "default", 0, /* export default binding */ __WEBPACK_DEFAULT_EXPORT__
22766
+ /* harmony export */ ]);
22767
+
22768
+
22736
22769
  /***/ },
22737
22770
 
22738
22771
  /***/ 6663
@@ -22778,6 +22811,8 @@ class KeyValuePair {
22778
22811
 
22779
22812
  __webpack_require__.r(__webpack_exports__);
22780
22813
  /* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8138);
22814
+ /* harmony import */ var _util_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4883);
22815
+
22781
22816
 
22782
22817
  /**
22783
22818
  * Lightweight meta container for Element metadata.
@@ -22794,7 +22829,7 @@ class Metadata {
22794
22829
  return this[name];
22795
22830
  }
22796
22831
  set(name, value) {
22797
- this[name] = value;
22832
+ ;(0,_util_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])(this, name, value);
22798
22833
  }
22799
22834
  hasKey(name) {
22800
22835
  return Object.hasOwn(this, name);
@@ -22827,7 +22862,19 @@ class Metadata {
22827
22862
  */
22828
22863
  cloneShallow() {
22829
22864
  const clone = new Metadata();
22830
- Object.assign(clone, this);
22865
+
22866
+ // Object.assign is the fast path but invokes the prototype setter for a
22867
+ // "__proto__" key, hijacking the clone's prototype. That key can only come
22868
+ // from untrusted input, so check for it once and fall back to a guarded
22869
+ // copy. Copying property descriptors instead would carry writable:false
22870
+ // over from a frozen source and hand back an unmodifiable clone.
22871
+ if (!Object.hasOwn(this, '__proto__')) {
22872
+ Object.assign(clone, this);
22873
+ } else {
22874
+ for (const key of Object.keys(this)) {
22875
+ (0,_util_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])(clone, key, this[key]);
22876
+ }
22877
+ }
22831
22878
  return clone;
22832
22879
  }
22833
22880
 
@@ -25312,6 +25359,8 @@ __webpack_require__.r(__webpack_exports__);
25312
25359
  /* harmony import */ var _CollectionElement_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4536);
25313
25360
  /* harmony import */ var _MemberElement_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1770);
25314
25361
  /* harmony import */ var _ObjectSlice_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8504);
25362
+ /* harmony import */ var _util_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4883);
25363
+
25315
25364
 
25316
25365
 
25317
25366
 
@@ -25336,7 +25385,7 @@ class ObjectElement extends _CollectionElement_mjs__WEBPACK_IMPORTED_MODULE_0__[
25336
25385
  }
25337
25386
  toValue() {
25338
25387
  return this._content.reduce((results, el) => {
25339
- results[el.key.toValue()] = el.value ? el.value.toValue() : undefined;
25388
+ ;(0,_util_mjs__WEBPACK_IMPORTED_MODULE_3__["default"])(results, el.key.toValue(), el.value ? el.value.toValue() : undefined);
25340
25389
  return results;
25341
25390
  }, {});
25342
25391
  }
@@ -25700,6 +25749,8 @@ _Metadata_mjs__WEBPACK_IMPORTED_MODULE_18__["default"].prototype.cloneDeepElemen
25700
25749
  __webpack_require__.r(__webpack_exports__);
25701
25750
  /* harmony import */ var _elements_SourceMap_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5810);
25702
25751
  /* harmony import */ var _elements_Style_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9686);
25752
+ /* harmony import */ var _util_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4883);
25753
+
25703
25754
 
25704
25755
 
25705
25756
  /**
@@ -25887,12 +25938,12 @@ class JSONSerialiser {
25887
25938
  let hasEntries = false;
25888
25939
  for (const [key, value] of Object.entries(element.meta)) {
25889
25940
  if (value instanceof this.namespace.elements.Element) {
25890
- meta[key] = this.serialise(value);
25941
+ (0,_util_mjs__WEBPACK_IMPORTED_MODULE_2__["default"])(meta, key, this.serialise(value));
25891
25942
  hasEntries = true;
25892
25943
  } else if (value !== undefined) {
25893
25944
  // refract primitives to maintain JSON Refract spec compatibility
25894
25945
  const refracted = element.refract(value);
25895
- meta[key] = this.serialise(refracted);
25946
+ (0,_util_mjs__WEBPACK_IMPORTED_MODULE_2__["default"])(meta, key, this.serialise(refracted));
25896
25947
  rawKeys.push(key);
25897
25948
  hasEntries = true;
25898
25949
  }
@@ -25906,7 +25957,7 @@ class JSONSerialiser {
25906
25957
  const result = {};
25907
25958
  obj.forEach((value, key) => {
25908
25959
  if (value) {
25909
- result[key.toValue()] = this.serialise(value);
25960
+ (0,_util_mjs__WEBPACK_IMPORTED_MODULE_2__["default"])(result, key.toValue(), this.serialise(value));
25910
25961
  }
25911
25962
  });
25912
25963
  if (Object.keys(result).length === 0) {
@@ -25926,6 +25977,38 @@ class JSONSerialiser {
25926
25977
  /* harmony export */ ]);
25927
25978
 
25928
25979
 
25980
+ /***/ },
25981
+
25982
+ /***/ 4883
25983
+ (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
25984
+
25985
+ __webpack_require__.r(__webpack_exports__);
25986
+ /**
25987
+ * Defines a key on a plain object or class instance built from untrusted input.
25988
+ *
25989
+ * A "__proto__" key must be defined rather than assigned: assignment invokes the
25990
+ * prototype setter, which drops the member from the result and replaces the
25991
+ * target's prototype with the incoming value. Every other key takes the plain
25992
+ * assignment fast path.
25993
+ */
25994
+ const setProperty = (target, key, value) => {
25995
+ if (key === '__proto__') {
25996
+ Object.defineProperty(target, key, {
25997
+ value,
25998
+ enumerable: true,
25999
+ writable: true,
26000
+ configurable: true
26001
+ });
26002
+ } else {
26003
+ target[key] = value;
26004
+ }
26005
+ };
26006
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (setProperty);
26007
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, [
26008
+ /* harmony export */ "default", 0, /* export default binding */ __WEBPACK_DEFAULT_EXPORT__
26009
+ /* harmony export */ ]);
26010
+
26011
+
25929
26012
  /***/ },
25930
26013
 
25931
26014
  /***/ 3437