@serverless/sdk
Advanced tools
Comparing version 0.5.3 to 0.5.4
@@ -5,2 +5,8 @@ # Changelog | ||
### [0.5.4](https://github.com/serverless/console/compare/@serverless/sdk@0.5.3...@serverless/sdk@0.5.4) (2023-03-29) | ||
### Bug Fixes | ||
- Fix resolution of url data from `options.path` in HTTP instrumentation ([e5a4ccd](https://github.com/serverless/console/commit/e5a4ccda713f02de771bdc381bb72e5ee39c374a)) | ||
### [0.5.3](https://github.com/serverless/console/compare/@serverless/sdk@0.5.2...@serverless/sdk@0.5.3) (2023-03-01) | ||
@@ -7,0 +13,0 @@ |
@@ -34,3 +34,3 @@ # Serverless SDK | ||
- `tags` _(object)_ - User tags object. Tag names can contain alphanumeric (both lower and upper case), `-`, `_` and `.` characters. Values can be _string_, _boolean_, _number_, Date or Array containing any values of prior listed types | ||
- `fingerprint` _(string)_ - Console UI groups common errors by the _fingerprint_, which by default is derived from the error stack trace. This can be overriden by passing custom `fingeprint` value | ||
- `fingerprint` _(string)_ - Console UI groups common errors by the _fingerprint_, which by default is derived from the error stack trace. This can be overriden by passing custom `fingerprint` value | ||
@@ -44,3 +44,3 @@ ### `.captureWarning(message[, options])` | ||
- `tags` _(object)_ - User tags object. Tag names can contain alphanumeric (both lower and upper case), `-`, `_` and `.` characters. Values can be _string_, _boolean_, _number_, Date or Array containing any values of prior listed types | ||
- `fingerprint` _(string)_ - Console UI groups common warnings by the _fingerprint_, which by default is derived from its message. This can be overriden by passing custom `fingeprint` value | ||
- `fingerprint` _(string)_ - Console UI groups common warnings by the _fingerprint_, which by default is derived from its message. This can be overriden by passing custom `fingerprint` value | ||
@@ -47,0 +47,0 @@ ### `.setTag(name, value)` |
@@ -167,6 +167,16 @@ 'use strict'; | ||
--cbIndex; | ||
options = url || {}; | ||
options = { ...url }; | ||
} else { | ||
options = Object.assign(url || {}, options); | ||
options = { ...url, ...options }; | ||
} | ||
if (options.path) { | ||
try { | ||
const resolvedUrl = new URL(options.path, 'http://localhost'); | ||
options.pathname = resolvedUrl.pathname; | ||
options.search = resolvedUrl.search; | ||
} catch { | ||
shouldIgnoreFollowingRequest = false; | ||
return originalRequest.apply(this, args); | ||
} | ||
} | ||
@@ -173,0 +183,0 @@ const originalCb = args[cbIndex]; |
{ | ||
"name": "@serverless/sdk", | ||
"repository": "serverless/console", | ||
"version": "0.5.3", | ||
"version": "0.5.4", | ||
"author": "Serverless, Inc.", | ||
@@ -6,0 +6,0 @@ "dependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
72230
1406