Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@smithy/config-resolver
Advanced tools
[![NPM version](https://img.shields.io/npm/v/@smithy/config-resolver/latest.svg)](https://www.npmjs.com/package/@smithy/config-resolver) [![NPM downloads](https://img.shields.io/npm/dm/@smithy/config-resolver.svg)](https://www.npmjs.com/package/@smithy/co
@smithy/config-resolver is a package that provides utilities for resolving configuration settings in AWS SDKs built on the Smithy framework. It helps in managing and resolving various configuration options such as region, credentials, and endpoints.
Region Resolution
This feature allows you to resolve the region configuration for AWS services. The code sample demonstrates how to resolve the region configuration using the `resolveRegionConfig` function.
const { resolveRegionConfig } = require('@smithy/config-resolver');
const config = { region: 'us-west-2' };
const resolvedConfig = resolveRegionConfig(config);
console.log(resolvedConfig);
Endpoint Resolution
This feature allows you to resolve the endpoint configuration for AWS services. The code sample demonstrates how to resolve the endpoint configuration using the `resolveEndpointConfig` function.
const { resolveEndpointConfig } = require('@smithy/config-resolver');
const config = { endpoint: 'https://example.com' };
const resolvedConfig = resolveEndpointConfig(config);
console.log(resolvedConfig);
Credentials Resolution
This feature allows you to resolve the credentials configuration for AWS services. The code sample demonstrates how to resolve the credentials configuration using the `resolveCredentialsConfig` function.
const { resolveCredentialsConfig } = require('@smithy/config-resolver');
const config = { credentials: { accessKeyId: 'AKIA...', secretAccessKey: 'SECRET...' } };
const resolvedConfig = resolveCredentialsConfig(config);
console.log(resolvedConfig);
The `aws-sdk` package is the official AWS SDK for JavaScript. It provides a comprehensive set of tools for interacting with AWS services, including configuration management. Compared to `@smithy/config-resolver`, `aws-sdk` offers a broader range of functionalities but is not built on the Smithy framework.
The `aws-sdk-client-mock` package is used for mocking AWS SDK clients in unit tests. While it does not directly compete with `@smithy/config-resolver`, it provides utilities for testing configurations and interactions with AWS services.
FAQs
[![NPM version](https://img.shields.io/npm/v/@smithy/config-resolver/latest.svg)](https://www.npmjs.com/package/@smithy/config-resolver) [![NPM downloads](https://img.shields.io/npm/dm/@smithy/config-resolver.svg)](https://www.npmjs.com/package/@smithy/co
The npm package @smithy/config-resolver receives a total of 16,014,911 weekly downloads. As such, @smithy/config-resolver popularity was classified as popular.
We found that @smithy/config-resolver demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.