Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@stedi/sdk-client-edi-translate

Package Overview
Dependencies
Maintainers
1
Versions
203
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stedi/sdk-client-edi-translate - npm Package Compare versions

Comparing version 0.0.29 to 0.0.30

3

dist-cjs/runtimeConfig.browser.js

@@ -26,3 +26,4 @@ "use strict";

bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_browser_1.defaultUserAgent)({ clientVersion: package_json_1.default.version }),
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
(0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
maxAttempts: config?.maxAttempts ?? middleware_retry_1.DEFAULT_MAX_ATTEMPTS,

@@ -29,0 +30,0 @@ requestHandler: config?.requestHandler ?? new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),

@@ -29,3 +29,4 @@ "use strict";

bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.defaultUserAgent)({ clientVersion: package_json_1.default.version }),
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
(0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),

@@ -32,0 +33,0 @@ requestHandler: config?.requestHandler ?? new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),

@@ -10,3 +10,3 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";

};
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/x12/from-json";
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/x12/from-json";
let body;

@@ -36,3 +36,3 @@ body = JSON.stringify({

};
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/x12/to-json";
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/x12/to-json";
let body;

@@ -640,11 +640,8 @@ body = JSON.stringify({

};
const deserializeMetadata = (output) => {
var _a, _b;
return ({
httpStatusCode: output.statusCode,
requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
extendedRequestId: output.headers["x-amz-id-2"],
cfId: output.headers["x-amz-cf-id"],
});
};
const deserializeMetadata = (output) => ({
httpStatusCode: output.statusCode,
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
extendedRequestId: output.headers["x-amz-id-2"],
cfId: output.headers["x-amz-cf-id"],
});
const collectBody = (streamBody = new Uint8Array(), context) => {

@@ -669,5 +666,4 @@ if (streamBody instanceof Uint8Array) {

const parseErrorBody = async (errorBody, context) => {
var _a;
const value = await parseBody(errorBody, context);
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
value.message = value.message ?? value.Message;
return value;

@@ -674,0 +670,0 @@ };

@@ -13,3 +13,2 @@ import packageInfo from "../package.json";

export const getRuntimeConfig = (config) => {
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
const defaultsMode = resolveDefaultsModeConfig(config);

@@ -23,14 +22,15 @@ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);

defaultsMode,
bodyLengthChecker: (_a = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _a !== void 0 ? _a : calculateBodyLength,
defaultUserAgentProvider: (_b = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _b !== void 0 ? _b : defaultUserAgent({ clientVersion: packageInfo.version }),
maxAttempts: (_c = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _c !== void 0 ? _c : DEFAULT_MAX_ATTEMPTS,
requestHandler: (_d = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _d !== void 0 ? _d : new RequestHandler(defaultConfigProvider),
retryMode: (_e = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _e !== void 0 ? _e : (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
sha256: (_f = config === null || config === void 0 ? void 0 : config.sha256) !== null && _f !== void 0 ? _f : Sha256,
streamCollector: (_g = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _g !== void 0 ? _g : streamCollector,
useDualstackEndpoint: (_h = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _h !== void 0 ? _h : (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
useFipsEndpoint: (_j = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _j !== void 0 ? _j : (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
utf8Decoder: (_k = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _k !== void 0 ? _k : fromUtf8,
utf8Encoder: (_l = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _l !== void 0 ? _l : toUtf8,
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
sha256: config?.sha256 ?? Sha256,
streamCollector: config?.streamCollector ?? streamCollector,
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
utf8Encoder: config?.utf8Encoder ?? toUtf8,
};
};

@@ -15,3 +15,2 @@ import packageInfo from "../package.json";

export const getRuntimeConfig = (config) => {
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
emitWarningIfUnsupportedVersion(process.version);

@@ -26,17 +25,19 @@ const defaultsMode = resolveDefaultsModeConfig(config);

defaultsMode,
bodyLengthChecker: (_a = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _a !== void 0 ? _a : calculateBodyLength,
defaultUserAgentProvider: (_b = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _b !== void 0 ? _b : defaultUserAgent({ clientVersion: packageInfo.version }),
maxAttempts: (_c = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _c !== void 0 ? _c : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
requestHandler: (_d = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _d !== void 0 ? _d : new RequestHandler(defaultConfigProvider),
retryMode: (_e = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _e !== void 0 ? _e : loadNodeConfig({
...NODE_RETRY_MODE_CONFIG_OPTIONS,
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
}),
sha256: (_f = config === null || config === void 0 ? void 0 : config.sha256) !== null && _f !== void 0 ? _f : Hash.bind(null, "sha256"),
streamCollector: (_g = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _g !== void 0 ? _g : streamCollector,
useDualstackEndpoint: (_h = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _h !== void 0 ? _h : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
useFipsEndpoint: (_j = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
utf8Decoder: (_k = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _k !== void 0 ? _k : fromUtf8,
utf8Encoder: (_l = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _l !== void 0 ? _l : toUtf8,
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
retryMode: config?.retryMode ??
loadNodeConfig({
...NODE_RETRY_MODE_CONFIG_OPTIONS,
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
}),
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
streamCollector: config?.streamCollector ?? streamCollector,
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
utf8Encoder: config?.utf8Encoder ?? toUtf8,
};
};
import { Sha256 } from "@aws-crypto/sha256-js";
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
export const getRuntimeConfig = (config) => {
var _a;
const browserDefaults = getBrowserRuntimeConfig(config);

@@ -10,4 +9,4 @@ return {

runtime: "react-native",
sha256: (_a = config === null || config === void 0 ? void 0 : config.sha256) !== null && _a !== void 0 ? _a : Sha256,
sha256: config?.sha256 ?? Sha256,
};
};
import { parseUrl } from "@aws-sdk/url-parser";
import { fromBase64, toBase64 } from "@aws-sdk/util-base64";
import { defaultRegionInfoProvider } from "./endpoints";
export const getRuntimeConfig = (config) => {
var _a, _b, _c, _d, _e, _f, _g;
return ({
apiVersion: "2022-01-01",
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64,
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64,
disableHostPrefix: (_c = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _c !== void 0 ? _c : false,
logger: (_d = config === null || config === void 0 ? void 0 : config.logger) !== null && _d !== void 0 ? _d : {},
regionInfoProvider: (_e = config === null || config === void 0 ? void 0 : config.regionInfoProvider) !== null && _e !== void 0 ? _e : defaultRegionInfoProvider,
serviceId: (_f = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _f !== void 0 ? _f : "EDI Translate",
urlParser: (_g = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _g !== void 0 ? _g : parseUrl,
});
};
export const getRuntimeConfig = (config) => ({
apiVersion: "2022-01-01",
base64Decoder: config?.base64Decoder ?? fromBase64,
base64Encoder: config?.base64Encoder ?? toBase64,
disableHostPrefix: config?.disableHostPrefix ?? false,
logger: config?.logger ?? {},
regionInfoProvider: config?.regionInfoProvider ?? defaultRegionInfoProvider,
serviceId: config?.serviceId ?? "EDI Translate",
urlParser: config?.urlParser ?? parseUrl,
});
{
"name": "@stedi/sdk-client-edi-translate",
"description": "Stedi SDK for JavaScript that includes Edi Translate client for Node.js, Browser and React Native",
"version": "0.0.29",
"version": "0.0.30",
"scripts": {

@@ -6,0 +6,0 @@ "build": "concurrently 'npm:build:cjs' 'npm:build:es' 'npm:build:types'",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc