Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps-dev): bump fast-xml-parser to 4.0.11 #4001

Merged
merged 10 commits into from
Oct 11, 2022
3 changes: 1 addition & 2 deletions clients/client-auto-scaling/package.json
Original file line number Diff line number Diff line change
@@ -51,8 +51,7 @@
"@aws-sdk/util-utf8-browser": "*",
"@aws-sdk/util-utf8-node": "*",
"@aws-sdk/util-waiter": "*",
"entities": "2.2.0",
"fast-xml-parser": "3.19.0",
"fast-xml-parser": "4.0.11",
"tslib": "^2.3.1"
},
"devDependencies": {
14 changes: 9 additions & 5 deletions clients/client-auto-scaling/src/protocols/Aws_query.ts
Original file line number Diff line number Diff line change
@@ -20,8 +20,7 @@ import {
ResponseMetadata as __ResponseMetadata,
SerdeContext as __SerdeContext,
} from "@aws-sdk/types";
import { decodeHTML } from "entities";
import { parse as xmlParse } from "fast-xml-parser";
import { XMLParser } from "fast-xml-parser";

import { AttachInstancesCommandInput, AttachInstancesCommandOutput } from "../commands/AttachInstancesCommand";
import {
@@ -9838,13 +9837,18 @@ const buildHttpRpcRequest = async (
const parseBody = (streamBody: any, context: __SerdeContext): any =>
collectBodyString(streamBody, context).then((encoded) => {
if (encoded.length) {
const parsedObj = xmlParse(encoded, {
const parser = new XMLParser({
attributeNamePrefix: "",
htmlEntities: true,
ignoreAttributes: false,
parseNodeValue: false,
ignoreDeclaration: true,
parseTagValue: false,
trimValues: false,
tagValueProcessor: (val) => (val.trim() === "" && val.includes("\n") ? "" : decodeHTML(val)),
tagValueProcessor: (_, val) => (val.trim() === "" && val.includes("\n") ? "" : undefined),
});
parser.addEntity("#xD", "\r");
parser.addEntity("#10", "\n");
const parsedObj = parser.parse(encoded);
const textNodeName = "#text";
const key = Object.keys(parsedObj)[0];
const parsedObjToReturn = parsedObj[key];
3 changes: 1 addition & 2 deletions clients/client-cloudformation/package.json
Original file line number Diff line number Diff line change
@@ -51,8 +51,7 @@
"@aws-sdk/util-utf8-browser": "*",
"@aws-sdk/util-utf8-node": "*",
"@aws-sdk/util-waiter": "*",
"entities": "2.2.0",
"fast-xml-parser": "3.19.0",
"fast-xml-parser": "4.0.11",
"tslib": "^2.3.1",
"uuid": "^8.3.2"
},
14 changes: 9 additions & 5 deletions clients/client-cloudformation/src/protocols/Aws_query.ts
Original file line number Diff line number Diff line change
@@ -18,8 +18,7 @@ import {
ResponseMetadata as __ResponseMetadata,
SerdeContext as __SerdeContext,
} from "@aws-sdk/types";
import { decodeHTML } from "entities";
import { parse as xmlParse } from "fast-xml-parser";
import { XMLParser } from "fast-xml-parser";
import { v4 as generateIdempotencyToken } from "uuid";

import { ActivateTypeCommandInput, ActivateTypeCommandOutput } from "../commands/ActivateTypeCommand";
@@ -10248,13 +10247,18 @@ const buildHttpRpcRequest = async (
const parseBody = (streamBody: any, context: __SerdeContext): any =>
collectBodyString(streamBody, context).then((encoded) => {
if (encoded.length) {
const parsedObj = xmlParse(encoded, {
const parser = new XMLParser({
attributeNamePrefix: "",
htmlEntities: true,
ignoreAttributes: false,
parseNodeValue: false,
ignoreDeclaration: true,
parseTagValue: false,
trimValues: false,
tagValueProcessor: (val) => (val.trim() === "" && val.includes("\n") ? "" : decodeHTML(val)),
tagValueProcessor: (_, val) => (val.trim() === "" && val.includes("\n") ? "" : undefined),
});
parser.addEntity("#xD", "\r");
parser.addEntity("#10", "\n");
const parsedObj = parser.parse(encoded);
const textNodeName = "#text";
const key = Object.keys(parsedObj)[0];
const parsedObjToReturn = parsedObj[key];
3 changes: 1 addition & 2 deletions clients/client-cloudfront/package.json
Original file line number Diff line number Diff line change
@@ -52,8 +52,7 @@
"@aws-sdk/util-utf8-node": "*",
"@aws-sdk/util-waiter": "*",
"@aws-sdk/xml-builder": "*",
"entities": "2.2.0",
"fast-xml-parser": "3.19.0",
"fast-xml-parser": "4.0.11",
"tslib": "^2.3.1"
},
"devDependencies": {
14 changes: 9 additions & 5 deletions clients/client-cloudfront/src/protocols/Aws_restXml.ts
Original file line number Diff line number Diff line change
@@ -23,8 +23,7 @@ import {
SerdeContext as __SerdeContext,
} from "@aws-sdk/types";
import { XmlNode as __XmlNode, XmlText as __XmlText } from "@aws-sdk/xml-builder";
import { decodeHTML } from "entities";
import { parse as xmlParse } from "fast-xml-parser";
import { XMLParser } from "fast-xml-parser";

import { AssociateAliasCommandInput, AssociateAliasCommandOutput } from "../commands/AssociateAliasCommand";
import { CreateCachePolicyCommandInput, CreateCachePolicyCommandOutput } from "../commands/CreateCachePolicyCommand";
@@ -17270,13 +17269,18 @@ const isSerializableHeaderValue = (value: any): boolean =>
const parseBody = (streamBody: any, context: __SerdeContext): any =>
collectBodyString(streamBody, context).then((encoded) => {
if (encoded.length) {
const parsedObj = xmlParse(encoded, {
const parser = new XMLParser({
attributeNamePrefix: "",
htmlEntities: true,
ignoreAttributes: false,
parseNodeValue: false,
ignoreDeclaration: true,
parseTagValue: false,
trimValues: false,
tagValueProcessor: (val) => (val.trim() === "" && val.includes("\n") ? "" : decodeHTML(val)),
tagValueProcessor: (_, val) => (val.trim() === "" && val.includes("\n") ? "" : undefined),
});
parser.addEntity("#xD", "\r");
parser.addEntity("#10", "\n");
const parsedObj = parser.parse(encoded);
const textNodeName = "#text";
const key = Object.keys(parsedObj)[0];
const parsedObjToReturn = parsedObj[key];
3 changes: 1 addition & 2 deletions clients/client-cloudsearch/package.json
Original file line number Diff line number Diff line change
@@ -50,8 +50,7 @@
"@aws-sdk/util-user-agent-node": "*",
"@aws-sdk/util-utf8-browser": "*",
"@aws-sdk/util-utf8-node": "*",
"entities": "2.2.0",
"fast-xml-parser": "3.19.0",
"fast-xml-parser": "4.0.11",
"tslib": "^2.3.1"
},
"devDependencies": {
14 changes: 9 additions & 5 deletions clients/client-cloudsearch/src/protocols/Aws_query.ts
Original file line number Diff line number Diff line change
@@ -21,8 +21,7 @@ import {
ResponseMetadata as __ResponseMetadata,
SerdeContext as __SerdeContext,
} from "@aws-sdk/types";
import { decodeHTML } from "entities";
import { parse as xmlParse } from "fast-xml-parser";
import { XMLParser } from "fast-xml-parser";

import { BuildSuggestersCommandInput, BuildSuggestersCommandOutput } from "../commands/BuildSuggestersCommand";
import { CreateDomainCommandInput, CreateDomainCommandOutput } from "../commands/CreateDomainCommand";
@@ -4186,13 +4185,18 @@ const buildHttpRpcRequest = async (
const parseBody = (streamBody: any, context: __SerdeContext): any =>
collectBodyString(streamBody, context).then((encoded) => {
if (encoded.length) {
const parsedObj = xmlParse(encoded, {
const parser = new XMLParser({
attributeNamePrefix: "",
htmlEntities: true,
ignoreAttributes: false,
parseNodeValue: false,
ignoreDeclaration: true,
parseTagValue: false,
trimValues: false,
tagValueProcessor: (val) => (val.trim() === "" && val.includes("\n") ? "" : decodeHTML(val)),
tagValueProcessor: (_, val) => (val.trim() === "" && val.includes("\n") ? "" : undefined),
});
parser.addEntity("#xD", "\r");
parser.addEntity("#10", "\n");
const parsedObj = parser.parse(encoded);
const textNodeName = "#text";
const key = Object.keys(parsedObj)[0];
const parsedObjToReturn = parsedObj[key];
3 changes: 1 addition & 2 deletions clients/client-cloudwatch/package.json
Original file line number Diff line number Diff line change
@@ -51,8 +51,7 @@
"@aws-sdk/util-utf8-browser": "*",
"@aws-sdk/util-utf8-node": "*",
"@aws-sdk/util-waiter": "*",
"entities": "2.2.0",
"fast-xml-parser": "3.19.0",
"fast-xml-parser": "4.0.11",
"tslib": "^2.3.1"
},
"devDependencies": {
14 changes: 9 additions & 5 deletions clients/client-cloudwatch/src/protocols/Aws_query.ts
Original file line number Diff line number Diff line change
@@ -21,8 +21,7 @@ import {
ResponseMetadata as __ResponseMetadata,
SerdeContext as __SerdeContext,
} from "@aws-sdk/types";
import { decodeHTML } from "entities";
import { parse as xmlParse } from "fast-xml-parser";
import { XMLParser } from "fast-xml-parser";

import { DeleteAlarmsCommandInput, DeleteAlarmsCommandOutput } from "../commands/DeleteAlarmsCommand";
import {
@@ -6189,13 +6188,18 @@ const buildHttpRpcRequest = async (
const parseBody = (streamBody: any, context: __SerdeContext): any =>
collectBodyString(streamBody, context).then((encoded) => {
if (encoded.length) {
const parsedObj = xmlParse(encoded, {
const parser = new XMLParser({
attributeNamePrefix: "",
htmlEntities: true,
ignoreAttributes: false,
parseNodeValue: false,
ignoreDeclaration: true,
parseTagValue: false,
trimValues: false,
tagValueProcessor: (val) => (val.trim() === "" && val.includes("\n") ? "" : decodeHTML(val)),
tagValueProcessor: (_, val) => (val.trim() === "" && val.includes("\n") ? "" : undefined),
});
parser.addEntity("#xD", "\r");
parser.addEntity("#10", "\n");
const parsedObj = parser.parse(encoded);
const textNodeName = "#text";
const key = Object.keys(parsedObj)[0];
const parsedObjToReturn = parsedObj[key];
3 changes: 1 addition & 2 deletions clients/client-docdb/package.json
Original file line number Diff line number Diff line change
@@ -52,8 +52,7 @@
"@aws-sdk/util-utf8-browser": "*",
"@aws-sdk/util-utf8-node": "*",
"@aws-sdk/util-waiter": "*",
"entities": "2.2.0",
"fast-xml-parser": "3.19.0",
"fast-xml-parser": "4.0.11",
"tslib": "^2.3.1"
},
"devDependencies": {
14 changes: 9 additions & 5 deletions clients/client-docdb/src/protocols/Aws_query.ts
Original file line number Diff line number Diff line change
@@ -18,8 +18,7 @@ import {
ResponseMetadata as __ResponseMetadata,
SerdeContext as __SerdeContext,
} from "@aws-sdk/types";
import { decodeHTML } from "entities";
import { parse as xmlParse } from "fast-xml-parser";
import { XMLParser } from "fast-xml-parser";

import {
AddSourceIdentifierToSubscriptionCommandInput,
@@ -9082,13 +9081,18 @@ const buildHttpRpcRequest = async (
const parseBody = (streamBody: any, context: __SerdeContext): any =>
collectBodyString(streamBody, context).then((encoded) => {
if (encoded.length) {
const parsedObj = xmlParse(encoded, {
const parser = new XMLParser({
attributeNamePrefix: "",
htmlEntities: true,
ignoreAttributes: false,
parseNodeValue: false,
ignoreDeclaration: true,
parseTagValue: false,
trimValues: false,
tagValueProcessor: (val) => (val.trim() === "" && val.includes("\n") ? "" : decodeHTML(val)),
tagValueProcessor: (_, val) => (val.trim() === "" && val.includes("\n") ? "" : undefined),
});
parser.addEntity("#xD", "\r");
parser.addEntity("#10", "\n");
const parsedObj = parser.parse(encoded);
const textNodeName = "#text";
const key = Object.keys(parsedObj)[0];
const parsedObjToReturn = parsedObj[key];
3 changes: 1 addition & 2 deletions clients/client-ec2/package.json
Original file line number Diff line number Diff line change
@@ -52,8 +52,7 @@
"@aws-sdk/util-utf8-browser": "*",
"@aws-sdk/util-utf8-node": "*",
"@aws-sdk/util-waiter": "*",
"entities": "2.2.0",
"fast-xml-parser": "3.19.0",
"fast-xml-parser": "4.0.11",
"tslib": "^2.3.1",
"uuid": "^8.3.2"
},
14 changes: 9 additions & 5 deletions clients/client-ec2/src/protocols/Aws_ec2.ts
Original file line number Diff line number Diff line change
@@ -20,8 +20,7 @@ import {
ResponseMetadata as __ResponseMetadata,
SerdeContext as __SerdeContext,
} from "@aws-sdk/types";
import { decodeHTML } from "entities";
import { parse as xmlParse } from "fast-xml-parser";
import { XMLParser } from "fast-xml-parser";
import { v4 as generateIdempotencyToken } from "uuid";

import {
@@ -80353,13 +80352,18 @@ const buildHttpRpcRequest = async (
const parseBody = (streamBody: any, context: __SerdeContext): any =>
collectBodyString(streamBody, context).then((encoded) => {
if (encoded.length) {
const parsedObj = xmlParse(encoded, {
const parser = new XMLParser({
attributeNamePrefix: "",
htmlEntities: true,
ignoreAttributes: false,
parseNodeValue: false,
ignoreDeclaration: true,
parseTagValue: false,
trimValues: false,
tagValueProcessor: (val) => (val.trim() === "" && val.includes("\n") ? "" : decodeHTML(val)),
tagValueProcessor: (_, val) => (val.trim() === "" && val.includes("\n") ? "" : undefined),
});
parser.addEntity("#xD", "\r");
parser.addEntity("#10", "\n");
const parsedObj = parser.parse(encoded);
const textNodeName = "#text";
const key = Object.keys(parsedObj)[0];
const parsedObjToReturn = parsedObj[key];
3 changes: 1 addition & 2 deletions clients/client-elastic-beanstalk/package.json
Original file line number Diff line number Diff line change
@@ -51,8 +51,7 @@
"@aws-sdk/util-utf8-browser": "*",
"@aws-sdk/util-utf8-node": "*",
"@aws-sdk/util-waiter": "*",
"entities": "2.2.0",
"fast-xml-parser": "3.19.0",
"fast-xml-parser": "4.0.11",
"tslib": "^2.3.1"
},
"devDependencies": {
14 changes: 9 additions & 5 deletions clients/client-elastic-beanstalk/src/protocols/Aws_query.ts
Original file line number Diff line number Diff line change
@@ -20,8 +20,7 @@ import {
ResponseMetadata as __ResponseMetadata,
SerdeContext as __SerdeContext,
} from "@aws-sdk/types";
import { decodeHTML } from "entities";
import { parse as xmlParse } from "fast-xml-parser";
import { XMLParser } from "fast-xml-parser";

import {
AbortEnvironmentUpdateCommandInput,
@@ -7279,13 +7278,18 @@ const buildHttpRpcRequest = async (
const parseBody = (streamBody: any, context: __SerdeContext): any =>
collectBodyString(streamBody, context).then((encoded) => {
if (encoded.length) {
const parsedObj = xmlParse(encoded, {
const parser = new XMLParser({
attributeNamePrefix: "",
htmlEntities: true,
ignoreAttributes: false,
parseNodeValue: false,
ignoreDeclaration: true,
parseTagValue: false,
trimValues: false,
tagValueProcessor: (val) => (val.trim() === "" && val.includes("\n") ? "" : decodeHTML(val)),
tagValueProcessor: (_, val) => (val.trim() === "" && val.includes("\n") ? "" : undefined),
});
parser.addEntity("#xD", "\r");
parser.addEntity("#10", "\n");
const parsedObj = parser.parse(encoded);
const textNodeName = "#text";
const key = Object.keys(parsedObj)[0];
const parsedObjToReturn = parsedObj[key];
3 changes: 1 addition & 2 deletions clients/client-elastic-load-balancing-v2/package.json
Original file line number Diff line number Diff line change
@@ -51,8 +51,7 @@
"@aws-sdk/util-utf8-browser": "*",
"@aws-sdk/util-utf8-node": "*",
"@aws-sdk/util-waiter": "*",
"entities": "2.2.0",
"fast-xml-parser": "3.19.0",
"fast-xml-parser": "4.0.11",
"tslib": "^2.3.1"
},
"devDependencies": {
Original file line number Diff line number Diff line change
@@ -19,8 +19,7 @@ import {
ResponseMetadata as __ResponseMetadata,
SerdeContext as __SerdeContext,
} from "@aws-sdk/types";
import { decodeHTML } from "entities";
import { parse as xmlParse } from "fast-xml-parser";
import { XMLParser } from "fast-xml-parser";

import {
AddListenerCertificatesCommandInput,
@@ -6703,13 +6702,18 @@ const buildHttpRpcRequest = async (
const parseBody = (streamBody: any, context: __SerdeContext): any =>
collectBodyString(streamBody, context).then((encoded) => {
if (encoded.length) {
const parsedObj = xmlParse(encoded, {
const parser = new XMLParser({
attributeNamePrefix: "",
htmlEntities: true,
ignoreAttributes: false,
parseNodeValue: false,
ignoreDeclaration: true,
parseTagValue: false,
trimValues: false,
tagValueProcessor: (val) => (val.trim() === "" && val.includes("\n") ? "" : decodeHTML(val)),
tagValueProcessor: (_, val) => (val.trim() === "" && val.includes("\n") ? "" : undefined),
});
parser.addEntity("#xD", "\r");
parser.addEntity("#10", "\n");
const parsedObj = parser.parse(encoded);
const textNodeName = "#text";
const key = Object.keys(parsedObj)[0];
const parsedObjToReturn = parsedObj[key];
3 changes: 1 addition & 2 deletions clients/client-elastic-load-balancing/package.json
Original file line number Diff line number Diff line change
@@ -51,8 +51,7 @@
"@aws-sdk/util-utf8-browser": "*",
"@aws-sdk/util-utf8-node": "*",
"@aws-sdk/util-waiter": "*",
"entities": "2.2.0",
"fast-xml-parser": "3.19.0",
"fast-xml-parser": "4.0.11",
"tslib": "^2.3.1"
},
"devDependencies": {
Loading