@launchdarkly/node-server-sdk
Advanced tools
Comparing version 9.4.7 to 9.5.0
@@ -5,2 +5,9 @@ # Changelog | ||
## [9.5.0](https://github.com/launchdarkly/js-core/compare/node-server-sdk-v9.4.7...node-server-sdk-v9.5.0) (2024-07-31) | ||
### Features | ||
* Add wrapper support. ([#526](https://github.com/launchdarkly/js-core/issues/526)) ([29a43a4](https://github.com/launchdarkly/js-core/commit/29a43a4b5243e16d2f746340d4d50467e0875980)) | ||
## [9.4.7](https://github.com/launchdarkly/js-core/compare/node-server-sdk-v9.4.6...node-server-sdk-v9.4.7) (2024-07-01) | ||
@@ -7,0 +14,0 @@ |
{ | ||
"name": "@launchdarkly/node-server-sdk", | ||
"version": "9.4.7", | ||
"version": "9.5.0", | ||
"description": "LaunchDarkly Server-Side SDK for Node.js", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/launchdarkly/js-core/tree/main/packages/sdk/server-node", |
import { platform } from '@launchdarkly/js-server-sdk-common'; | ||
export default class NodeInfo implements platform.Info { | ||
private readonly config; | ||
constructor(config: { | ||
wrapperName?: string; | ||
wrapperVersion?: string; | ||
}); | ||
platformData(): platform.PlatformData; | ||
@@ -4,0 +9,0 @@ sdkData(): platform.SdkData; |
@@ -19,2 +19,5 @@ "use strict"; | ||
class NodeInfo { | ||
constructor(config) { | ||
this.config = config; | ||
} | ||
platformData() { | ||
@@ -38,3 +41,4 @@ return { | ||
userAgentBase: 'NodeJSClient', | ||
// No wrapper name/version at the moment. | ||
wrapperName: this.config.wrapperName, | ||
wrapperVersion: this.config.wrapperVersion, | ||
}; | ||
@@ -41,0 +45,0 @@ } |
@@ -9,5 +9,5 @@ "use strict"; | ||
constructor(options) { | ||
this.info = new NodeInfo_1.default(); | ||
this.fileSystem = new NodeFilesystem_1.default(); | ||
this.crypto = new NodeCrypto_1.default(); | ||
this.info = new NodeInfo_1.default(options); | ||
this.requests = new NodeRequests_1.default(options.tlsParams, options.proxyOptions, options.logger); | ||
@@ -14,0 +14,0 @@ } |
{ | ||
"name": "@launchdarkly/node-server-sdk", | ||
"version": "9.4.7", | ||
"version": "9.5.0", | ||
"description": "LaunchDarkly Server-Side SDK for Node.js", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/launchdarkly/js-core/tree/main/packages/sdk/server-node", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
90791
929