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

@newrelic/aws-sdk

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@newrelic/aws-sdk - npm Package Compare versions

Comparing version 7.4.1 to 7.4.2

7

CHANGELOG.md

@@ -0,1 +1,8 @@

### v7.4.2 (2024-06-05)
#### Miscellaneous chores
* Revert "refactor: Updated aws sdk instrumentation to construct specs at instrumentation ([#259](https://github.com/newrelic/node-newrelic-aws-sdk/issues/259))" ([#286](https://github.com/newrelic/node-newrelic-aws-sdk/pull/286)) ([87678d4](https://github.com/newrelic/node-newrelic-aws-sdk/commit/87678d4ad9c9fcce6ab0ed10b927a3a5156284d6))
* This will allow customers using `newrelic` < `11.11.0` to no longer crash when using `aws-sdk` v2 or v3.
### v7.4.1 (2024-04-09)

@@ -2,0 +9,0 @@

7

lib/util.js

@@ -30,3 +30,2 @@ /*

*
* @param {function} DatastoreParameters constructor of `shim.spec.DatastoreParameters`
* @param {Object} endpoint instance of ddb endpoint

@@ -36,8 +35,8 @@ * @param {Object} params parameters passed to a ddb command

*/
function setDynamoParameters(DatastoreParameters, endpoint, params) {
return new DatastoreParameters({
function setDynamoParameters(endpoint, params) {
return {
host: endpoint && (endpoint.host || endpoint.hostname),
port_path_or_id: (endpoint && endpoint.port) || 443,
collection: (params && params.TableName) || UNKNOWN
})
}
}

@@ -44,0 +43,0 @@

@@ -46,12 +46,8 @@ /*

return new shim.specs.OperationSpec({
return {
name: operationName,
parameters: setDynamoParameters(
shim.specs.params.DatastoreParameters,
this.endpoint,
params
),
parameters: setDynamoParameters(this.endpoint, params),
callback: shim.LAST,
opaque: true
})
}
}

@@ -78,12 +74,12 @@ )

return new shim.specs.OperationSpec({
return {
name: dynamoOperation,
parameters: new shim.specs.params.DatastoreParameters({
host: endpoint?.host,
port_path_or_id: endpoint?.port,
collection: params?.TableName || 'Unknown'
}),
parameters: {
host: endpoint && endpoint.host,
port_path_or_id: endpoint && endpoint.port,
collection: (params && params.TableName) || 'Unknown'
},
callback: shim.LAST,
opaque: true
})
}
}

@@ -90,0 +86,0 @@ )

@@ -30,3 +30,3 @@ /*

function wrapPublish(shim, original, name, args) {
return new shim.specs.MessageSpec({
return {
callback: shim.LAST,

@@ -36,3 +36,3 @@ destinationName: getDestinationName(args[0]),

opaque: true
})
}
}

@@ -39,0 +39,0 @@

@@ -41,3 +41,3 @@ /*

return new shim.specs.MessageSpec({
return {
callback: shim.LAST,

@@ -47,3 +47,3 @@ destinationName: queueName,

opaque: true
})
}
}

@@ -191,3 +191,3 @@ /*

return new shim.specs.RecorderSpec({
return {
promise: true,

@@ -227,3 +227,3 @@ name: `Llm/${modelType}/Bedrock/${commandName}`,

}
})
}
}

@@ -230,0 +230,0 @@

@@ -20,9 +20,9 @@ /*

const [{ input }] = args
return new shim.specs.OperationSpec({
return {
name: this.commandName,
parameters: setDynamoParameters(shim.specs.params.DatastoreParameters, this.endpoint, input),
parameters: setDynamoParameters(this.endpoint, input),
callback: shim.LAST,
opaque: true,
promise: true
})
}
}

@@ -29,0 +29,0 @@

@@ -36,3 +36,3 @@ /*

const [command] = args
return new shim.specs.MessageSpec({
return {
promise: true,

@@ -43,3 +43,3 @@ callback: shim.LAST,

opaque: true
})
}
}

@@ -46,0 +46,0 @@

@@ -45,3 +45,3 @@ /*

const { QueueUrl } = command.input
return new shim.specs.MessageSpec({
return {
callback: shim.LAST,

@@ -51,3 +51,3 @@ destinationName: grabLastUrlSegment(QueueUrl),

opaque: true
})
}
}

@@ -54,0 +54,0 @@

{
"name": "@newrelic/aws-sdk",
"version": "7.4.1",
"version": "7.4.2",
"description": "New Relic instrumentation of the aws-sdk package.",

@@ -5,0 +5,0 @@ "scripts": {

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