@aws-sdk/client-waf 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.
@@ -58,8 +58,7 @@ var partitionHash = {
58
58
  };
59
59
  export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
60
60
  return __generator(this, function (_a) {
61
- return [2 /*return*/, getRegionInfo(region, __assign(__assign({}, options), { signingService: "waf", regionHash: regionHash,
62
- partitionHash: partitionHash }))];
61
+ return [2 /*return*/, getRegionInfo(region, __assign(__assign({}, options), { signingService: "waf", regionHash: regionHash, partitionHash: partitionHash }))];
63
62
  });
64
63
  }); };
65
64
  //# sourceMappingURL=endpoints.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"endpoints.js","sourceRoot":"","sources":["../../endpoints.ts"],"names":[],"mappings":";AAAA,OAAO,EAA6B,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAGpF,IAAM,UAAU,GAAe;IAC7B,UAAU,EAAE;QACV,QAAQ,EAAE,wBAAwB;QAClC,aAAa,EAAE,WAAW;KAC3B;IACD,YAAY,EAAE;QACZ,QAAQ,EAAE,mBAAmB;QAC7B,aAAa,EAAE,WAAW;KAC3B;CACF,CAAC;AAEF,IAAM,aAAa,GAAkB;IACnC,GAAG,EAAE;QACH,OAAO,EAAE;YACP,YAAY;YACZ,WAAW;YACX,gBAAgB;YAChB,gBAAgB;YAChB,gBAAgB;YAChB,YAAY;YACZ,gBAAgB;YAChB,gBAAgB;YAChB,UAAU;YACV,YAAY;YACZ,cAAc;YACd,cAAc;YACd,YAAY;YACZ,YAAY;YACZ,WAAW;YACX,WAAW;YACX,WAAW;YACX,YAAY;YACZ,WAAW;YACX,WAAW;YACX,WAAW;YACX,WAAW;YACX,WAAW;SACZ;QACD,QAAQ,EAAE,YAAY;KACvB;IACD,QAAQ,EAAE;QACR,OAAO,EAAE,CAAC,YAAY,EAAE,gBAAgB,CAAC;QACzC,QAAQ,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AE,gBAAgB,CAAC;QACzC,QAAQ,EAAE,+BAA+B;KAC1C;IACD,SAAS,EAAE;QACT,OAAO,EAAE,CAAC,eAAe,CAAC;QAC1B,QAAQ,EAAE,yBAAyB;KACpC;IACD,WAAW,EAAE;QACX,OAAO,EAAE,CAAC,gBAAgB,CAAC;QAC3B,QAAQ,EAAE,4BAA4B;KACvC;IACD,YAAY,EAAE;QACZ,OAAO,EAAE,CAAC,eAAe,EAAE,eAAe,CAAC;QAC3C,QAAQ,EAAE,4BAA4B;KACvC;CACF,CAAC;AAEF,MAAM,CAAC,IAAM,yBAAyB,GAAuB,UAAO,MAAc,EAAE,OAAa;;QAC/F,sBAAA,aAAa,CAAC,MAAM,wBACf,OAAO,KACV,cAAc,EAAE,KAAK,EACrB,UAAU,YAAA,EACV,aAAa,eAAA,IACb,EAAA;;KAAA,CAAC"}
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-waf",
3
3
  "description": "AWS SDK for JavaScript Waf 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,45 +27,45 @@
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",
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
58
  "tslib": "^2.3.0"
59
59
  },
60
60
  "devDependencies": {
61
- "@aws-sdk/client-documentation-generator": "3.23.0",
61
+ "@aws-sdk/client-documentation-generator": "3.32.0",
62
62
  "@types/node": "^12.7.5",
63
63
  "downlevel-dts": "0.7.0",
64
64
  "jest": "^26.1.0",
65
65
  "rimraf": "^3.0.0",
66
66
  "ts-jest": "^26.4.1",
67
67
  "typedoc": "^0.19.2",
68
- "typescript": "~4.3.2"
68
+ "typescript": "~4.3.5"
69
69
  },
70
70
  "engines": {
71
71
  "node": ">=10.0.0"
@@ -1,6 +1,6 @@
1
1
  import { __assign, __awaiter, __generator } from "tslib";
2
2
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
3
- import { expectBoolean as __expectBoolean, expectInt as __expectInt, expectString as __expectString, } from "@aws-sdk/smithy-client";
3
+ import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
4
4
  export var serializeAws_json1_1CreateByteMatchSetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
5
5
  var headers, body;
6
6
  return __generator(this, function (_a) {
@@ -8291,7 +8291,7 @@ var deserializeAws_json1_1ActivatedRule = function (output, context) {
8291
8291
  OverrideAction: output.OverrideAction !== undefined && output.OverrideAction !== null
8292
8292
  ? deserializeAws_json1_1WafOverrideAction(output.OverrideAction, context)
8293
8293
  : undefined,
8294
- Priority: __expectInt(output.Priority),
8294
+ Priority: __expectInt32(output.Priority),
8295
8295
  RuleId: __expectString(output.RuleId),
8296
8296
  Type: __expectString(output.Type),
8297
8297
  };
@@ -8666,7 +8666,7 @@ var deserializeAws_json1_1GetRuleResponse = function (output, context) {
8666
8666
  };
8667
8667
  var deserializeAws_json1_1GetSampledRequestsResponse = function (output, context) {
8668
8668
  return {
8669
- PopulationSize: __expectInt(output.PopulationSize),
8669
+ PopulationSize: __expectLong(output.PopulationSize),
8670
8670
  SampledRequests: output.SampledRequests !== undefined && output.SampledRequests !== null
8671
8671
  ? deserializeAws_json1_1SampledHTTPRequests(output.SampledRequests, context)
8672
8672
  : undefined,
@@ -8976,7 +8976,7 @@ var deserializeAws_json1_1RateBasedRule = function (output, context) {
8976
8976
  MetricName: __expectString(output.MetricName),
8977
8977
  Name: __expectString(output.Name),
8978
8978
  RateKey: __expectString(output.RateKey),
8979
- RateLimit: __expectInt(output.RateLimit),
8979
+ RateLimit: __expectLong(output.RateLimit),
8980
8980
  RuleId: __expectString(output.RuleId),
8981
8981
  };
8982
8982
  };
@@ -9126,9 +9126,9 @@ var deserializeAws_json1_1SampledHTTPRequest = function (output, context) {
9126
9126
  : undefined,
9127
9127
  RuleWithinRuleGroup: __expectString(output.RuleWithinRuleGroup),
9128
9128
  Timestamp: output.Timestamp !== undefined && output.Timestamp !== null
9129
- ? new Date(Math.round(output.Timestamp * 1000))
9129
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Timestamp)))
9130
9130
  : undefined,
9131
- Weight: __expectInt(output.Weight),
9131
+ Weight: __expectLong(output.Weight),
9132
9132
  };
9133
9133
  };
9134
9134
  var deserializeAws_json1_1SampledHTTPRequests = function (output, context) {
@@ -9147,7 +9147,7 @@ var deserializeAws_json1_1SizeConstraint = function (output, context) {
9147
9147
  FieldToMatch: output.FieldToMatch !== undefined && output.FieldToMatch !== null
9148
9148
  ? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context)
9149
9149
  : undefined,
9150
- Size: __expectInt(output.Size),
9150
+ Size: __expectLong(output.Size),
9151
9151
  TextTransformation: __expectString(output.TextTransformation),
9152
9152
  };
9153
9153
  };
@@ -9275,9 +9275,11 @@ var deserializeAws_json1_1TagResourceResponse = function (output, context) {
9275
9275
  };
9276
9276
  var deserializeAws_json1_1TimeWindow = function (output, context) {
9277
9277
  return {
9278
- EndTime: output.EndTime !== undefined && output.EndTime !== null ? new Date(Math.round(output.EndTime * 1000)) : undefined,
9278
+ EndTime: output.EndTime !== undefined && output.EndTime !== null
9279
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime)))
9280
+ : undefined,
9279
9281
  StartTime: output.StartTime !== undefined && output.StartTime !== null
9280
- ? new Date(Math.round(output.StartTime * 1000))
9282
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime)))
9281
9283
  : undefined,
9282
9284
  };
9283
9285
  };