@aws-sdk/client-elastic-beanstalk 3.28.0 → 3.32.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-elastic-beanstalk",
3
3
  "description": "AWS SDK for JavaScript Elastic Beanstalk Client for Node.js, Browser and React Native",
4
- "version": "3.28.0",
4
+ "version": "3.32.0",
5
5
  "scripts": {
6
6
  "clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
7
7
  "build-documentation": "yarn remove-documentation && typedoc ./",
@@ -27,48 +27,48 @@
27
27
  "dependencies": {
28
28
  "@aws-crypto/sha256-browser": "^1.0.0",
29
29
  "@aws-crypto/sha256-js": "^1.0.0",
30
- "@aws-sdk/client-sts": "3.28.0",
31
- "@aws-sdk/config-resolver": "3.28.0",
32
- "@aws-sdk/credential-provider-node": "3.28.0",
33
- "@aws-sdk/fetch-http-handler": "3.25.0",
34
- "@aws-sdk/hash-node": "3.25.0",
35
- "@aws-sdk/invalid-dependency": "3.25.0",
36
- "@aws-sdk/middleware-content-length": "3.25.0",
37
- "@aws-sdk/middleware-host-header": "3.25.0",
38
- "@aws-sdk/middleware-logger": "3.25.0",
39
- "@aws-sdk/middleware-retry": "3.28.0",
40
- "@aws-sdk/middleware-serde": "3.25.0",
41
- "@aws-sdk/middleware-signing": "3.28.0",
42
- "@aws-sdk/middleware-stack": "3.25.0",
43
- "@aws-sdk/middleware-user-agent": "3.25.0",
44
- "@aws-sdk/node-config-provider": "3.28.0",
45
- "@aws-sdk/node-http-handler": "3.25.0",
46
- "@aws-sdk/protocol-http": "3.25.0",
47
- "@aws-sdk/smithy-client": "3.28.0",
48
- "@aws-sdk/types": "3.25.0",
49
- "@aws-sdk/url-parser": "3.25.0",
50
- "@aws-sdk/util-base64-browser": "3.23.0",
51
- "@aws-sdk/util-base64-node": "3.23.0",
52
- "@aws-sdk/util-body-length-browser": "3.23.0",
53
- "@aws-sdk/util-body-length-node": "3.23.0",
54
- "@aws-sdk/util-user-agent-browser": "3.25.0",
55
- "@aws-sdk/util-user-agent-node": "3.28.0",
56
- "@aws-sdk/util-utf8-browser": "3.23.0",
57
- "@aws-sdk/util-utf8-node": "3.23.0",
58
- "@aws-sdk/util-waiter": "3.25.0",
30
+ "@aws-sdk/client-sts": "3.32.0",
31
+ "@aws-sdk/config-resolver": "3.32.0",
32
+ "@aws-sdk/credential-provider-node": "3.32.0",
33
+ "@aws-sdk/fetch-http-handler": "3.32.0",
34
+ "@aws-sdk/hash-node": "3.32.0",
35
+ "@aws-sdk/invalid-dependency": "3.32.0",
36
+ "@aws-sdk/middleware-content-length": "3.32.0",
37
+ "@aws-sdk/middleware-host-header": "3.32.0",
38
+ "@aws-sdk/middleware-logger": "3.32.0",
39
+ "@aws-sdk/middleware-retry": "3.32.0",
40
+ "@aws-sdk/middleware-serde": "3.32.0",
41
+ "@aws-sdk/middleware-signing": "3.32.0",
42
+ "@aws-sdk/middleware-stack": "3.32.0",
43
+ "@aws-sdk/middleware-user-agent": "3.32.0",
44
+ "@aws-sdk/node-config-provider": "3.32.0",
45
+ "@aws-sdk/node-http-handler": "3.32.0",
46
+ "@aws-sdk/protocol-http": "3.32.0",
47
+ "@aws-sdk/smithy-client": "3.32.0",
48
+ "@aws-sdk/types": "3.32.0",
49
+ "@aws-sdk/url-parser": "3.32.0",
50
+ "@aws-sdk/util-base64-browser": "3.32.0",
51
+ "@aws-sdk/util-base64-node": "3.32.0",
52
+ "@aws-sdk/util-body-length-browser": "3.32.0",
53
+ "@aws-sdk/util-body-length-node": "3.32.0",
54
+ "@aws-sdk/util-user-agent-browser": "3.32.0",
55
+ "@aws-sdk/util-user-agent-node": "3.32.0",
56
+ "@aws-sdk/util-utf8-browser": "3.32.0",
57
+ "@aws-sdk/util-utf8-node": "3.32.0",
58
+ "@aws-sdk/util-waiter": "3.32.0",
59
59
  "entities": "2.2.0",
60
60
  "fast-xml-parser": "3.19.0",
61
61
  "tslib": "^2.3.0"
62
62
  },
63
63
  "devDependencies": {
64
- "@aws-sdk/client-documentation-generator": "3.23.0",
64
+ "@aws-sdk/client-documentation-generator": "3.32.0",
65
65
  "@types/node": "^12.7.5",
66
66
  "downlevel-dts": "0.7.0",
67
67
  "jest": "^26.1.0",
68
68
  "rimraf": "^3.0.0",
69
69
  "ts-jest": "^26.4.1",
70
70
  "typedoc": "^0.19.2",
71
- "typescript": "~4.3.2"
71
+ "typescript": "~4.3.5"
72
72
  },
73
73
  "engines": {
74
74
  "node": ">=10.0.0"
@@ -313,13 +313,16 @@ import {
313
313
  } from "../models/models_0";
314
314
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
315
315
  import {
316
+ expectNonNull as __expectNonNull,
316
317
  expectString as __expectString,
317
318
  extendedEncodeURIComponent as __extendedEncodeURIComponent,
318
319
  getArrayIfSingleItem as __getArrayIfSingleItem,
319
320
  getValueFromTextNode as __getValueFromTextNode,
320
321
  parseBoolean as __parseBoolean,
322
+ parseRfc3339DateTime as __parseRfc3339DateTime,
321
323
  strictParseFloat as __strictParseFloat,
322
- strictParseInt as __strictParseInt,
324
+ strictParseInt32 as __strictParseInt32,
325
+ strictParseLong as __strictParseLong,
323
326
  } from "@aws-sdk/smithy-client";
324
327
  import {
325
328
  Endpoint as __Endpoint,
@@ -5486,10 +5489,10 @@ const deserializeAws_queryApplicationDescription = (output: any, context: __Serd
5486
5489
  contents.Description = __expectString(output["Description"]);
5487
5490
  }
5488
5491
  if (output["DateCreated"] !== undefined) {
5489
- contents.DateCreated = new Date(output["DateCreated"]);
5492
+ contents.DateCreated = __expectNonNull(__parseRfc3339DateTime(output["DateCreated"]));
5490
5493
  }
5491
5494
  if (output["DateUpdated"] !== undefined) {
5492
- contents.DateUpdated = new Date(output["DateUpdated"]);
5495
+ contents.DateUpdated = __expectNonNull(__parseRfc3339DateTime(output["DateUpdated"]));
5493
5496
  }
5494
5497
  if (output.Versions === "") {
5495
5498
  contents.Versions = [];
@@ -5572,10 +5575,10 @@ const deserializeAws_queryApplicationMetrics = (output: any, context: __SerdeCon
5572
5575
  Latency: undefined,
5573
5576
  };
5574
5577
  if (output["Duration"] !== undefined) {
5575
- contents.Duration = __strictParseInt(output["Duration"]) as number;
5578
+ contents.Duration = __strictParseInt32(output["Duration"]) as number;
5576
5579
  }
5577
5580
  if (output["RequestCount"] !== undefined) {
5578
- contents.RequestCount = __strictParseInt(output["RequestCount"]) as number;
5581
+ contents.RequestCount = __strictParseInt32(output["RequestCount"]) as number;
5579
5582
  }
5580
5583
  if (output["StatusCodes"] !== undefined) {
5581
5584
  contents.StatusCodes = deserializeAws_queryStatusCodes(output["StatusCodes"], context);
@@ -5667,10 +5670,10 @@ const deserializeAws_queryApplicationVersionDescription = (
5667
5670
  contents.SourceBundle = deserializeAws_queryS3Location(output["SourceBundle"], context);
5668
5671
  }
5669
5672
  if (output["DateCreated"] !== undefined) {
5670
- contents.DateCreated = new Date(output["DateCreated"]);
5673
+ contents.DateCreated = __expectNonNull(__parseRfc3339DateTime(output["DateCreated"]));
5671
5674
  }
5672
5675
  if (output["DateUpdated"] !== undefined) {
5673
- contents.DateUpdated = new Date(output["DateUpdated"]);
5676
+ contents.DateUpdated = __expectNonNull(__parseRfc3339DateTime(output["DateUpdated"]));
5674
5677
  }
5675
5678
  if (output["Status"] !== undefined) {
5676
5679
  contents.Status = __expectString(output["Status"]);
@@ -5915,13 +5918,13 @@ const deserializeAws_queryConfigurationOptionDescription = (
5915
5918
  );
5916
5919
  }
5917
5920
  if (output["MinValue"] !== undefined) {
5918
- contents.MinValue = __strictParseInt(output["MinValue"]) as number;
5921
+ contents.MinValue = __strictParseInt32(output["MinValue"]) as number;
5919
5922
  }
5920
5923
  if (output["MaxValue"] !== undefined) {
5921
- contents.MaxValue = __strictParseInt(output["MaxValue"]) as number;
5924
+ contents.MaxValue = __strictParseInt32(output["MaxValue"]) as number;
5922
5925
  }
5923
5926
  if (output["MaxLength"] !== undefined) {
5924
- contents.MaxLength = __strictParseInt(output["MaxLength"]) as number;
5927
+ contents.MaxLength = __strictParseInt32(output["MaxLength"]) as number;
5925
5928
  }
5926
5929
  if (output["Regex"] !== undefined) {
5927
5930
  contents.Regex = deserializeAws_queryOptionRestrictionRegex(output["Regex"], context);
@@ -6058,10 +6061,10 @@ const deserializeAws_queryConfigurationSettingsDescription = (
6058
6061
  contents.DeploymentStatus = __expectString(output["DeploymentStatus"]);
6059
6062
  }
6060
6063
  if (output["DateCreated"] !== undefined) {
6061
- contents.DateCreated = new Date(output["DateCreated"]);
6064
+ contents.DateCreated = __expectNonNull(__parseRfc3339DateTime(output["DateCreated"]));
6062
6065
  }
6063
6066
  if (output["DateUpdated"] !== undefined) {
6064
- contents.DateUpdated = new Date(output["DateUpdated"]);
6067
+ contents.DateUpdated = __expectNonNull(__parseRfc3339DateTime(output["DateUpdated"]));
6065
6068
  }
6066
6069
  if (output.OptionSettings === "") {
6067
6070
  contents.OptionSettings = [];
@@ -6255,13 +6258,13 @@ const deserializeAws_queryDeployment = (output: any, context: __SerdeContext): D
6255
6258
  contents.VersionLabel = __expectString(output["VersionLabel"]);
6256
6259
  }
6257
6260
  if (output["DeploymentId"] !== undefined) {
6258
- contents.DeploymentId = __strictParseInt(output["DeploymentId"]) as number;
6261
+ contents.DeploymentId = __strictParseLong(output["DeploymentId"]) as number;
6259
6262
  }
6260
6263
  if (output["Status"] !== undefined) {
6261
6264
  contents.Status = __expectString(output["Status"]);
6262
6265
  }
6263
6266
  if (output["DeploymentTime"] !== undefined) {
6264
- contents.DeploymentTime = new Date(output["DeploymentTime"]);
6267
+ contents.DeploymentTime = __expectNonNull(__parseRfc3339DateTime(output["DeploymentTime"]));
6265
6268
  }
6266
6269
  return contents;
6267
6270
  };
@@ -6318,7 +6321,7 @@ const deserializeAws_queryDescribeEnvironmentHealthResult = (
6318
6321
  contents.InstancesHealth = deserializeAws_queryInstanceHealthSummary(output["InstancesHealth"], context);
6319
6322
  }
6320
6323
  if (output["RefreshedAt"] !== undefined) {
6321
- contents.RefreshedAt = new Date(output["RefreshedAt"]);
6324
+ contents.RefreshedAt = __expectNonNull(__parseRfc3339DateTime(output["RefreshedAt"]));
6322
6325
  }
6323
6326
  return contents;
6324
6327
  };
@@ -6387,7 +6390,7 @@ const deserializeAws_queryDescribeInstancesHealthResult = (
6387
6390
  );
6388
6391
  }
6389
6392
  if (output["RefreshedAt"] !== undefined) {
6390
- contents.RefreshedAt = new Date(output["RefreshedAt"]);
6393
+ contents.RefreshedAt = __expectNonNull(__parseRfc3339DateTime(output["RefreshedAt"]));
6391
6394
  }
6392
6395
  if (output["NextToken"] !== undefined) {
6393
6396
  contents.NextToken = __expectString(output["NextToken"]);
@@ -6476,10 +6479,10 @@ const deserializeAws_queryEnvironmentDescription = (output: any, context: __Serd
6476
6479
  contents.CNAME = __expectString(output["CNAME"]);
6477
6480
  }
6478
6481
  if (output["DateCreated"] !== undefined) {
6479
- contents.DateCreated = new Date(output["DateCreated"]);
6482
+ contents.DateCreated = __expectNonNull(__parseRfc3339DateTime(output["DateCreated"]));
6480
6483
  }
6481
6484
  if (output["DateUpdated"] !== undefined) {
6482
- contents.DateUpdated = new Date(output["DateUpdated"]);
6485
+ contents.DateUpdated = __expectNonNull(__parseRfc3339DateTime(output["DateUpdated"]));
6483
6486
  }
6484
6487
  if (output["Status"] !== undefined) {
6485
6488
  contents.Status = __expectString(output["Status"]);
@@ -6571,7 +6574,7 @@ const deserializeAws_queryEnvironmentInfoDescription = (
6571
6574
  contents.Ec2InstanceId = __expectString(output["Ec2InstanceId"]);
6572
6575
  }
6573
6576
  if (output["SampleTimestamp"] !== undefined) {
6574
- contents.SampleTimestamp = new Date(output["SampleTimestamp"]);
6577
+ contents.SampleTimestamp = __expectNonNull(__parseRfc3339DateTime(output["SampleTimestamp"]));
6575
6578
  }
6576
6579
  if (output["Message"] !== undefined) {
6577
6580
  contents.Message = __expectString(output["Message"]);
@@ -6755,7 +6758,7 @@ const deserializeAws_queryEventDescription = (output: any, context: __SerdeConte
6755
6758
  Severity: undefined,
6756
6759
  };
6757
6760
  if (output["EventDate"] !== undefined) {
6758
- contents.EventDate = new Date(output["EventDate"]);
6761
+ contents.EventDate = __expectNonNull(__parseRfc3339DateTime(output["EventDate"]));
6759
6762
  }
6760
6763
  if (output["Message"] !== undefined) {
6761
6764
  contents.Message = __expectString(output["Message"]);
@@ -6851,28 +6854,28 @@ const deserializeAws_queryInstanceHealthSummary = (output: any, context: __Serde
6851
6854
  Severe: undefined,
6852
6855
  };
6853
6856
  if (output["NoData"] !== undefined) {
6854
- contents.NoData = __strictParseInt(output["NoData"]) as number;
6857
+ contents.NoData = __strictParseInt32(output["NoData"]) as number;
6855
6858
  }
6856
6859
  if (output["Unknown"] !== undefined) {
6857
- contents.Unknown = __strictParseInt(output["Unknown"]) as number;
6860
+ contents.Unknown = __strictParseInt32(output["Unknown"]) as number;
6858
6861
  }
6859
6862
  if (output["Pending"] !== undefined) {
6860
- contents.Pending = __strictParseInt(output["Pending"]) as number;
6863
+ contents.Pending = __strictParseInt32(output["Pending"]) as number;
6861
6864
  }
6862
6865
  if (output["Ok"] !== undefined) {
6863
- contents.Ok = __strictParseInt(output["Ok"]) as number;
6866
+ contents.Ok = __strictParseInt32(output["Ok"]) as number;
6864
6867
  }
6865
6868
  if (output["Info"] !== undefined) {
6866
- contents.Info = __strictParseInt(output["Info"]) as number;
6869
+ contents.Info = __strictParseInt32(output["Info"]) as number;
6867
6870
  }
6868
6871
  if (output["Warning"] !== undefined) {
6869
- contents.Warning = __strictParseInt(output["Warning"]) as number;
6872
+ contents.Warning = __strictParseInt32(output["Warning"]) as number;
6870
6873
  }
6871
6874
  if (output["Degraded"] !== undefined) {
6872
- contents.Degraded = __strictParseInt(output["Degraded"]) as number;
6875
+ contents.Degraded = __strictParseInt32(output["Degraded"]) as number;
6873
6876
  }
6874
6877
  if (output["Severe"] !== undefined) {
6875
- contents.Severe = __strictParseInt(output["Severe"]) as number;
6878
+ contents.Severe = __strictParseInt32(output["Severe"]) as number;
6876
6879
  }
6877
6880
  return contents;
6878
6881
  };
@@ -7029,7 +7032,7 @@ const deserializeAws_queryListener = (output: any, context: __SerdeContext): Lis
7029
7032
  contents.Protocol = __expectString(output["Protocol"]);
7030
7033
  }
7031
7034
  if (output["Port"] !== undefined) {
7032
- contents.Port = __strictParseInt(output["Port"]) as number;
7035
+ contents.Port = __strictParseInt32(output["Port"]) as number;
7033
7036
  }
7034
7037
  return contents;
7035
7038
  };
@@ -7171,7 +7174,7 @@ const deserializeAws_queryManagedAction = (output: any, context: __SerdeContext)
7171
7174
  contents.Status = __expectString(output["Status"]);
7172
7175
  }
7173
7176
  if (output["WindowStartTime"] !== undefined) {
7174
- contents.WindowStartTime = new Date(output["WindowStartTime"]);
7177
+ contents.WindowStartTime = __expectNonNull(__parseRfc3339DateTime(output["WindowStartTime"]));
7175
7178
  }
7176
7179
  return contents;
7177
7180
  };
@@ -7209,10 +7212,10 @@ const deserializeAws_queryManagedActionHistoryItem = (
7209
7212
  contents.FailureDescription = __expectString(output["FailureDescription"]);
7210
7213
  }
7211
7214
  if (output["ExecutedTime"] !== undefined) {
7212
- contents.ExecutedTime = new Date(output["ExecutedTime"]);
7215
+ contents.ExecutedTime = __expectNonNull(__parseRfc3339DateTime(output["ExecutedTime"]));
7213
7216
  }
7214
7217
  if (output["FinishedTime"] !== undefined) {
7215
- contents.FinishedTime = new Date(output["FinishedTime"]);
7218
+ contents.FinishedTime = __expectNonNull(__parseRfc3339DateTime(output["FinishedTime"]));
7216
7219
  }
7217
7220
  return contents;
7218
7221
  };
@@ -7265,7 +7268,7 @@ const deserializeAws_queryMaxAgeRule = (output: any, context: __SerdeContext): M
7265
7268
  contents.Enabled = __parseBoolean(output["Enabled"]);
7266
7269
  }
7267
7270
  if (output["MaxAgeInDays"] !== undefined) {
7268
- contents.MaxAgeInDays = __strictParseInt(output["MaxAgeInDays"]) as number;
7271
+ contents.MaxAgeInDays = __strictParseInt32(output["MaxAgeInDays"]) as number;
7269
7272
  }
7270
7273
  if (output["DeleteSourceFromS3"] !== undefined) {
7271
7274
  contents.DeleteSourceFromS3 = __parseBoolean(output["DeleteSourceFromS3"]);
@@ -7283,7 +7286,7 @@ const deserializeAws_queryMaxCountRule = (output: any, context: __SerdeContext):
7283
7286
  contents.Enabled = __parseBoolean(output["Enabled"]);
7284
7287
  }
7285
7288
  if (output["MaxCount"] !== undefined) {
7286
- contents.MaxCount = __strictParseInt(output["MaxCount"]) as number;
7289
+ contents.MaxCount = __strictParseInt32(output["MaxCount"]) as number;
7287
7290
  }
7288
7291
  if (output["DeleteSourceFromS3"] !== undefined) {
7289
7292
  contents.DeleteSourceFromS3 = __parseBoolean(output["DeleteSourceFromS3"]);
@@ -7336,7 +7339,7 @@ const deserializeAws_queryPlatformBranchSummary = (output: any, context: __Serde
7336
7339
  contents.LifecycleState = __expectString(output["LifecycleState"]);
7337
7340
  }
7338
7341
  if (output["BranchOrder"] !== undefined) {
7339
- contents.BranchOrder = __strictParseInt(output["BranchOrder"]) as number;
7342
+ contents.BranchOrder = __strictParseInt32(output["BranchOrder"]) as number;
7340
7343
  }
7341
7344
  if (output.SupportedTierList === "") {
7342
7345
  contents.SupportedTierList = [];
@@ -7407,10 +7410,10 @@ const deserializeAws_queryPlatformDescription = (output: any, context: __SerdeCo
7407
7410
  contents.PlatformStatus = __expectString(output["PlatformStatus"]);
7408
7411
  }
7409
7412
  if (output["DateCreated"] !== undefined) {
7410
- contents.DateCreated = new Date(output["DateCreated"]);
7413
+ contents.DateCreated = __expectNonNull(__parseRfc3339DateTime(output["DateCreated"]));
7411
7414
  }
7412
7415
  if (output["DateUpdated"] !== undefined) {
7413
- contents.DateUpdated = new Date(output["DateUpdated"]);
7416
+ contents.DateUpdated = __expectNonNull(__parseRfc3339DateTime(output["DateUpdated"]));
7414
7417
  }
7415
7418
  if (output["PlatformCategory"] !== undefined) {
7416
7419
  contents.PlatformCategory = __expectString(output["PlatformCategory"]);
@@ -7673,7 +7676,7 @@ const deserializeAws_queryResourceQuota = (output: any, context: __SerdeContext)
7673
7676
  Maximum: undefined,
7674
7677
  };
7675
7678
  if (output["Maximum"] !== undefined) {
7676
- contents.Maximum = __strictParseInt(output["Maximum"]) as number;
7679
+ contents.Maximum = __strictParseInt32(output["Maximum"]) as number;
7677
7680
  }
7678
7681
  return contents;
7679
7682
  };
@@ -7831,7 +7834,7 @@ const deserializeAws_querySingleInstanceHealth = (output: any, context: __SerdeC
7831
7834
  contents.Causes = deserializeAws_queryCauses(__getArrayIfSingleItem(output["Causes"]["member"]), context);
7832
7835
  }
7833
7836
  if (output["LaunchedAt"] !== undefined) {
7834
- contents.LaunchedAt = new Date(output["LaunchedAt"]);
7837
+ contents.LaunchedAt = __expectNonNull(__parseRfc3339DateTime(output["LaunchedAt"]));
7835
7838
  }
7836
7839
  if (output["ApplicationMetrics"] !== undefined) {
7837
7840
  contents.ApplicationMetrics = deserializeAws_queryApplicationMetrics(output["ApplicationMetrics"], context);
@@ -7924,16 +7927,16 @@ const deserializeAws_queryStatusCodes = (output: any, context: __SerdeContext):
7924
7927
  Status5xx: undefined,
7925
7928
  };
7926
7929
  if (output["Status2xx"] !== undefined) {
7927
- contents.Status2xx = __strictParseInt(output["Status2xx"]) as number;
7930
+ contents.Status2xx = __strictParseInt32(output["Status2xx"]) as number;
7928
7931
  }
7929
7932
  if (output["Status3xx"] !== undefined) {
7930
- contents.Status3xx = __strictParseInt(output["Status3xx"]) as number;
7933
+ contents.Status3xx = __strictParseInt32(output["Status3xx"]) as number;
7931
7934
  }
7932
7935
  if (output["Status4xx"] !== undefined) {
7933
- contents.Status4xx = __strictParseInt(output["Status4xx"]) as number;
7936
+ contents.Status4xx = __strictParseInt32(output["Status4xx"]) as number;
7934
7937
  }
7935
7938
  if (output["Status5xx"] !== undefined) {
7936
- contents.Status5xx = __strictParseInt(output["Status5xx"]) as number;
7939
+ contents.Status5xx = __strictParseInt32(output["Status5xx"]) as number;
7937
7940
  }
7938
7941
  return contents;
7939
7942
  };