@jentic/arazzo-parser 1.0.0-alpha.29 → 1.0.0-alpha.30
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
|
+
# [1.0.0-alpha.30](https://github.com/jentic/jentic-arazzo-tools/compare/v1.0.0-alpha.29...v1.0.0-alpha.30) (2026-04-04)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @jentic/arazzo-parser
|
|
9
|
+
|
|
6
10
|
# [1.0.0-alpha.29](https://github.com/jentic/jentic-arazzo-tools/compare/v1.0.0-alpha.28...v1.0.0-alpha.29) (2026-03-19)
|
|
7
11
|
|
|
8
12
|
### Bug Fixes
|
|
@@ -48895,8 +48895,10 @@ const factory = (env) => {
|
|
|
48895
48895
|
test(() => {
|
|
48896
48896
|
let duplexAccessed = false;
|
|
48897
48897
|
|
|
48898
|
+
const body = new ReadableStream();
|
|
48899
|
+
|
|
48898
48900
|
const hasContentType = new Request(_platform_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].origin, {
|
|
48899
|
-
body
|
|
48901
|
+
body,
|
|
48900
48902
|
method: 'POST',
|
|
48901
48903
|
get duplex() {
|
|
48902
48904
|
duplexAccessed = true;
|
|
@@ -48904,6 +48906,8 @@ const factory = (env) => {
|
|
|
48904
48906
|
},
|
|
48905
48907
|
}).headers.has('Content-Type');
|
|
48906
48908
|
|
|
48909
|
+
body.cancel();
|
|
48910
|
+
|
|
48907
48911
|
return duplexAccessed && !hasContentType;
|
|
48908
48912
|
});
|
|
48909
48913
|
|
|
@@ -49982,8 +49986,6 @@ _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(['delete', 'get', 'hea
|
|
|
49982
49986
|
});
|
|
49983
49987
|
|
|
49984
49988
|
_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
|
|
49985
|
-
/*eslint func-names:0*/
|
|
49986
|
-
|
|
49987
49989
|
function generateHTTPMethod(isForm) {
|
|
49988
49990
|
return function httpMethod(url, data, config) {
|
|
49989
49991
|
return this.request(
|
|
@@ -50140,7 +50142,9 @@ function normalizeValue(value) {
|
|
|
50140
50142
|
return value;
|
|
50141
50143
|
}
|
|
50142
50144
|
|
|
50143
|
-
return _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(value)
|
|
50145
|
+
return _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(value)
|
|
50146
|
+
? value.map(normalizeValue)
|
|
50147
|
+
: String(value).replace(/[\r\n]+$/, '');
|
|
50144
50148
|
}
|
|
50145
50149
|
|
|
50146
50150
|
function parseTokens(str) {
|
|
@@ -51115,7 +51119,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
51115
51119
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
51116
51120
|
/* harmony export */ VERSION: () => (/* binding */ VERSION)
|
|
51117
51121
|
/* harmony export */ });
|
|
51118
|
-
const VERSION = "1.
|
|
51122
|
+
const VERSION = "1.14.0";
|
|
51119
51123
|
|
|
51120
51124
|
/***/ },
|
|
51121
51125
|
|
|
@@ -51325,8 +51329,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
51325
51329
|
|
|
51326
51330
|
|
|
51327
51331
|
/**
|
|
51328
|
-
* It replaces
|
|
51329
|
-
*
|
|
51332
|
+
* It replaces URL-encoded forms of `:`, `$`, `,`, and spaces with
|
|
51333
|
+
* their plain counterparts (`:`, `$`, `,`, `+`).
|
|
51330
51334
|
*
|
|
51331
51335
|
* @param {string} val The value to be encoded.
|
|
51332
51336
|
*
|
|
@@ -66385,19 +66389,26 @@ function composeNode(ctx, token, props, onError) {
|
|
|
66385
66389
|
case 'block-map':
|
|
66386
66390
|
case 'block-seq':
|
|
66387
66391
|
case 'flow-collection':
|
|
66388
|
-
|
|
66389
|
-
|
|
66390
|
-
|
|
66392
|
+
try {
|
|
66393
|
+
node = (0,_compose_collection_js__WEBPACK_IMPORTED_MODULE_2__.composeCollection)(CN, ctx, token, props, onError);
|
|
66394
|
+
if (anchor)
|
|
66395
|
+
node.anchor = anchor.source.substring(1);
|
|
66396
|
+
}
|
|
66397
|
+
catch (error) {
|
|
66398
|
+
// Almost certainly here due to a stack overflow
|
|
66399
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
66400
|
+
onError(token, 'RESOURCE_EXHAUSTION', message);
|
|
66401
|
+
}
|
|
66391
66402
|
break;
|
|
66392
66403
|
default: {
|
|
66393
66404
|
const message = token.type === 'error'
|
|
66394
66405
|
? token.message
|
|
66395
66406
|
: `Unsupported token (type: ${token.type})`;
|
|
66396
66407
|
onError(token, 'UNEXPECTED_TOKEN', message);
|
|
66397
|
-
node = composeEmptyNode(ctx, token.offset, undefined, null, props, onError);
|
|
66398
66408
|
isSrcToken = false;
|
|
66399
66409
|
}
|
|
66400
66410
|
}
|
|
66411
|
+
node ?? (node = composeEmptyNode(ctx, token.offset, undefined, null, props, onError));
|
|
66401
66412
|
if (anchor && node.anchor === '')
|
|
66402
66413
|
onError(anchor, 'BAD_ALIAS', 'Anchor cannot be an empty string');
|
|
66403
66414
|
if (atKey &&
|
|
@@ -73916,6 +73927,7 @@ function createStringifyContext(doc, options) {
|
|
|
73916
73927
|
nullStr: 'null',
|
|
73917
73928
|
simpleKeys: false,
|
|
73918
73929
|
singleQuote: null,
|
|
73930
|
+
trailingComma: false,
|
|
73919
73931
|
trueStr: 'true',
|
|
73920
73932
|
verifyAliasOrder: true
|
|
73921
73933
|
}, doc.schema.toStringOptions, options);
|
|
@@ -74141,12 +74153,22 @@ function stringifyFlowCollection({ items }, ctx, { flowChars, itemIndent }) {
|
|
|
74141
74153
|
if (comment)
|
|
74142
74154
|
reqNewline = true;
|
|
74143
74155
|
let str = (0,_stringify_js__WEBPACK_IMPORTED_MODULE_1__.stringify)(item, itemCtx, () => (comment = null));
|
|
74144
|
-
|
|
74156
|
+
reqNewline || (reqNewline = lines.length > linesAtValue || str.includes('\n'));
|
|
74157
|
+
if (i < items.length - 1) {
|
|
74145
74158
|
str += ',';
|
|
74159
|
+
}
|
|
74160
|
+
else if (ctx.options.trailingComma) {
|
|
74161
|
+
if (ctx.options.lineWidth > 0) {
|
|
74162
|
+
reqNewline || (reqNewline = lines.reduce((sum, line) => sum + line.length + 2, 2) +
|
|
74163
|
+
(str.length + 2) >
|
|
74164
|
+
ctx.options.lineWidth);
|
|
74165
|
+
}
|
|
74166
|
+
if (reqNewline) {
|
|
74167
|
+
str += ',';
|
|
74168
|
+
}
|
|
74169
|
+
}
|
|
74146
74170
|
if (comment)
|
|
74147
74171
|
str += (0,_stringifyComment_js__WEBPACK_IMPORTED_MODULE_2__.lineComment)(str, itemIndent, commentString(comment));
|
|
74148
|
-
if (!reqNewline && (lines.length > linesAtValue || str.includes('\n')))
|
|
74149
|
-
reqNewline = true;
|
|
74150
74172
|
lines.push(str);
|
|
74151
74173
|
linesAtValue = lines.length;
|
|
74152
74174
|
}
|