@aws-sdk/middleware-sdk-machinelearning 3.489.0 → 3.496.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/dist-cjs/index.js CHANGED
@@ -1,4 +1,73 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./predict-endpoint"), exports);
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var src_exports = {};
22
+ __export(src_exports, {
23
+ getPredictEndpointPlugin: () => getPredictEndpointPlugin,
24
+ predictEndpointMiddleware: () => predictEndpointMiddleware,
25
+ predictEndpointMiddlewareOptions: () => predictEndpointMiddlewareOptions
26
+ });
27
+ module.exports = __toCommonJS(src_exports);
28
+
29
+ // src/predict-endpoint.ts
30
+ var import_protocol_http = require("@smithy/protocol-http");
31
+ function predictEndpointMiddleware(options) {
32
+ return (next) => async (args) => {
33
+ const { input } = args;
34
+ let { request } = args;
35
+ if (import_protocol_http.HttpRequest.isInstance(request)) {
36
+ if (input.PredictEndpoint) {
37
+ const endpoint = options.urlParser(input.PredictEndpoint);
38
+ request = {
39
+ ...request,
40
+ hostname: endpoint.hostname,
41
+ path: endpoint.path,
42
+ port: endpoint.port,
43
+ protocol: endpoint.protocol,
44
+ query: endpoint.query ?? {}
45
+ };
46
+ }
47
+ }
48
+ return next({
49
+ ...args,
50
+ request
51
+ });
52
+ };
53
+ }
54
+ __name(predictEndpointMiddleware, "predictEndpointMiddleware");
55
+ var predictEndpointMiddlewareOptions = {
56
+ step: "build",
57
+ tags: ["PREDICT_ENDPOINT"],
58
+ name: "predictEndpointMiddleware",
59
+ override: true
60
+ };
61
+ var getPredictEndpointPlugin = /* @__PURE__ */ __name((config) => ({
62
+ applyToStack: (clientStack) => {
63
+ clientStack.add(predictEndpointMiddleware(config), predictEndpointMiddlewareOptions);
64
+ }
65
+ }), "getPredictEndpointPlugin");
66
+ // Annotate the CommonJS export names for ESM import in node:
67
+
68
+ 0 && (module.exports = {
69
+ getPredictEndpointPlugin,
70
+ predictEndpointMiddleware,
71
+ predictEndpointMiddlewareOptions
72
+ });
73
+
@@ -1,41 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getPredictEndpointPlugin = exports.predictEndpointMiddlewareOptions = exports.predictEndpointMiddleware = void 0;
4
- const protocol_http_1 = require("@smithy/protocol-http");
5
- function predictEndpointMiddleware(options) {
6
- return (next) => async (args) => {
7
- var _a;
8
- const { input } = args;
9
- let { request } = args;
10
- if (protocol_http_1.HttpRequest.isInstance(request)) {
11
- if (input.PredictEndpoint) {
12
- const endpoint = options.urlParser(input.PredictEndpoint);
13
- request = {
14
- ...request,
15
- hostname: endpoint.hostname,
16
- path: endpoint.path,
17
- port: endpoint.port,
18
- protocol: endpoint.protocol,
19
- query: (_a = endpoint.query) !== null && _a !== void 0 ? _a : {},
20
- };
21
- }
22
- }
23
- return next({
24
- ...args,
25
- request,
26
- });
27
- };
28
- }
29
- exports.predictEndpointMiddleware = predictEndpointMiddleware;
30
- exports.predictEndpointMiddlewareOptions = {
31
- step: "build",
32
- tags: ["PREDICT_ENDPOINT"],
33
- name: "predictEndpointMiddleware",
34
- override: true,
35
- };
36
- const getPredictEndpointPlugin = (config) => ({
37
- applyToStack: (clientStack) => {
38
- clientStack.add(predictEndpointMiddleware(config), exports.predictEndpointMiddlewareOptions);
39
- },
40
- });
41
- exports.getPredictEndpointPlugin = getPredictEndpointPlugin;
1
+ module.exports = require("./index.js");
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-sdk-machinelearning",
3
- "version": "3.489.0",
3
+ "version": "3.496.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
- "build:cjs": "tsc -p tsconfig.cjs.json",
6
+ "build:cjs": "node ../../scripts/compilation/inline middleware-sdk-machinelearning",
7
7
  "build:es": "tsc -p tsconfig.es.json",
8
8
  "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
9
9
  "build:types": "tsc -p tsconfig.types.json",
@@ -21,9 +21,9 @@
21
21
  },
22
22
  "license": "Apache-2.0",
23
23
  "dependencies": {
24
- "@aws-sdk/types": "3.489.0",
25
- "@smithy/protocol-http": "^3.0.12",
26
- "@smithy/types": "^2.8.0",
24
+ "@aws-sdk/types": "3.496.0",
25
+ "@smithy/protocol-http": "^3.1.1",
26
+ "@smithy/types": "^2.9.1",
27
27
  "tslib": "^2.5.0"
28
28
  },
29
29
  "engines": {