Socket
Socket
Sign inDemoInstall

@aws-sdk/util-user-agent-node

Package Overview
Dependencies
Maintainers
4
Versions
194
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/util-user-agent-node - npm Package Compare versions

Comparing version 0.1.0-preview.6 to 0.1.0-preview.7

10

build/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var process = require("process");
const process = require("process");
function defaultUserAgent(packageName, packageVersion) {
var engine = process.platform + "/" + process.version;
let engine = `${process.platform}/${process.version}`;
if (process.env.AWS_EXECUTION_ENV) {
engine += " exec-env/" + process.env.AWS_EXECUTION_ENV;
engine += ` exec-env/${process.env.AWS_EXECUTION_ENV}`;
}
return "aws-sdk-nodejs-v3-" + packageName + "/" + packageVersion + " " + engine;
return `aws-sdk-nodejs-v3-${packageName}/${packageVersion} ${engine}`;
}
exports.defaultUserAgent = defaultUserAgent;
function appendToUserAgent(request, userAgentPartial) {
request.headers["User-Agent"] += " " + userAgentPartial;
request.headers["User-Agent"] += ` ${userAgentPartial}`;
}
exports.appendToUserAgent = appendToUserAgent;
//# sourceMappingURL=index.js.map

@@ -6,2 +6,31 @@ # Change Log

# [0.1.0-preview.7](https://github.com/aws/aws-sdk-js-v3/compare/@aws-sdk/util-user-agent-node@0.1.0-preview.3...@aws-sdk/util-user-agent-node@0.1.0-preview.7) (2019-09-19)
# 0.3.0 (2019-09-09)
### Features
* commit all clients ([#324](https://github.com/aws/aws-sdk-js-v3/issues/324)) ([cb268ed](https://github.com/aws/aws-sdk-js-v3/commit/cb268ed))
# 0.2.0 (2019-07-12)
### Features
* add npm badges for individual packages ([#251](https://github.com/aws/aws-sdk-js-v3/issues/251)) ([8adc10c](https://github.com/aws/aws-sdk-js-v3/commit/8adc10c))
* update jest v20 to v24 ([#243](https://github.com/aws/aws-sdk-js-v3/issues/243)) ([1e156ab](https://github.com/aws/aws-sdk-js-v3/commit/1e156ab))
# 0.1.0 (2019-04-19)
# [0.1.0-preview.6](https://github.com/aws/aws-sdk-js-v3/compare/@aws-sdk/util-user-agent-node@0.1.0-preview.3...@aws-sdk/util-user-agent-node@0.1.0-preview.6) (2019-09-09)

@@ -8,0 +37,0 @@

{
"name": "@aws-sdk/util-user-agent-node",
"version": "0.1.0-preview.6",
"version": "0.1.0-preview.7",
"scripts": {

@@ -5,0 +5,0 @@ "prepublishOnly": "tsc",

{
"compilerOptions": {
"target": "es5",
"target": "es2017",
"module": "commonjs",

@@ -11,3 +11,2 @@ "declaration": true,

"noEmitHelpers": true,
"lib": ["es5", "es2015.collection"],
"rootDir": "./src",

@@ -14,0 +13,0 @@ "outDir": "./build",

Sorry, the diff of this file is not supported yet

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