@aws-sdk/util-endpoints 3.162.0 → 3.167.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/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
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
+ # [3.167.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.166.0...v3.167.0) (2022-09-08)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/util-endpoints
9
+
10
+
11
+
12
+
13
+
6
14
  # [3.162.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.161.0...v3.162.0) (2022-08-31)
7
15
 
8
16
  **Note:** Version bump only for package @aws-sdk/util-endpoints
@@ -4,7 +4,7 @@ exports.evaluateCondition = void 0;
4
4
  const types_1 = require("../types");
5
5
  const callFunction_1 = require("./callFunction");
6
6
  const evaluateCondition = ({ assign, ...fnArgs }, options) => {
7
- if (assign && options.referenceRecord[assign]) {
7
+ if (assign && assign in options.referenceRecord) {
8
8
  throw new types_1.EndpointError(`'${assign}' is already defined in Reference Record.`);
9
9
  }
10
10
  const value = (0, callFunction_1.callFunction)(fnArgs, options);
@@ -3,7 +3,7 @@ import { EndpointError } from "../types";
3
3
  import { callFunction } from "./callFunction";
4
4
  export var evaluateCondition = function (_a, options) {
5
5
  var assign = _a.assign, fnArgs = __rest(_a, ["assign"]);
6
- if (assign && options.referenceRecord[assign]) {
6
+ if (assign && assign in options.referenceRecord) {
7
7
  throw new EndpointError("'".concat(assign, "' is already defined in Reference Record."));
8
8
  }
9
9
  var value = callFunction(fnArgs, options);
@@ -1,5 +1,6 @@
1
+ import { EndpointV2 } from "@aws-sdk/types";
1
2
  import { EndpointResolverOptions, RuleSetObject } from "./types";
2
3
  /**
3
4
  * Resolves an endpoint URL by processing the endpoints ruleset and options.
4
5
  */
5
- export declare const resolveEndpoint: (ruleSetObject: RuleSetObject, options: EndpointResolverOptions) => import("@aws-sdk/types").EndpointV2;
6
+ export declare const resolveEndpoint: (ruleSetObject: RuleSetObject, options: EndpointResolverOptions) => EndpointV2;
@@ -1,3 +1,4 @@
1
+ import { EndpointV2 } from "@aws-sdk/types";
1
2
  import { EndpointResolverOptions, RuleSetObject } from "./types";
2
3
 
3
- export declare const resolveEndpoint: (ruleSetObject: RuleSetObject, options: EndpointResolverOptions) => import("@aws-sdk/types").EndpointV2;
4
+ export declare const resolveEndpoint: (ruleSetObject: RuleSetObject, options: EndpointResolverOptions) => EndpointV2;
@@ -1,2 +1,3 @@
1
+ import { EndpointV2 } from "@aws-sdk/types";
1
2
  import { EvaluateOptions, RuleSetRules } from "../types";
2
- export declare const evaluateRules: (rules: RuleSetRules, options: EvaluateOptions) => import("@aws-sdk/types").EndpointV2;
3
+ export declare const evaluateRules: (rules: RuleSetRules, options: EvaluateOptions) => EndpointV2;
@@ -1,2 +1,3 @@
1
+ import { EndpointV2 } from "@aws-sdk/types";
1
2
  import { EvaluateOptions, RuleSetRules } from "../types";
2
- export declare const evaluateRules: (rules: RuleSetRules, options: EvaluateOptions) => import("@aws-sdk/types").EndpointV2;
3
+ export declare const evaluateRules: (rules: RuleSetRules, options: EvaluateOptions) => EndpointV2;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-endpoints",
3
- "version": "3.162.0",
3
+ "version": "3.167.0",
4
4
  "description": "Utilities to help with endpoint resolution",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",