@spotify-confidence/openfeature-server-provider
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -59,2 +59,8 @@ "use strict"; | ||
} | ||
if (client_http_1.Configuration.ResolveReason.NoSegmentMatch === flag.reason) { | ||
return { | ||
value: defaultValue, | ||
reason: 'DEFAULT', | ||
}; | ||
} | ||
let flagValue; | ||
@@ -61,0 +67,0 @@ try { |
@@ -7,3 +7,6 @@ "use strict"; | ||
function createConfidenceServerProvider(options) { | ||
const confidenceClient = new client_http_1.ConfidenceClient(Object.assign(Object.assign({}, options), { apply: true })); | ||
const confidenceClient = new client_http_1.ConfidenceClient(Object.assign(Object.assign({}, options), { apply: true, sdk: { | ||
id: 'SDK_ID_JS_SERVER_PROVIDER', | ||
version: '0.1.2', | ||
} })); | ||
return new ConfidenceServerProvider_1.ConfidenceServerProvider(confidenceClient); | ||
@@ -10,0 +13,0 @@ } |
@@ -56,2 +56,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
} | ||
if (Configuration.ResolveReason.NoSegmentMatch === flag.reason) { | ||
return { | ||
value: defaultValue, | ||
reason: 'DEFAULT', | ||
}; | ||
} | ||
let flagValue; | ||
@@ -58,0 +64,0 @@ try { |
import { ConfidenceClient } from '@spotify-confidence/client-http'; | ||
import { ConfidenceServerProvider } from './ConfidenceServerProvider'; | ||
export function createConfidenceServerProvider(options) { | ||
const confidenceClient = new ConfidenceClient(Object.assign(Object.assign({}, options), { apply: true })); | ||
const confidenceClient = new ConfidenceClient(Object.assign(Object.assign({}, options), { apply: true, sdk: { | ||
id: 'SDK_ID_JS_SERVER_PROVIDER', | ||
version: '0.1.2', | ||
} })); | ||
return new ConfidenceServerProvider(confidenceClient); | ||
} | ||
//# sourceMappingURL=factory.js.map |
@@ -56,2 +56,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
} | ||
if (Configuration.ResolveReason.NoSegmentMatch === flag.reason) { | ||
return { | ||
value: defaultValue, | ||
reason: 'DEFAULT', | ||
}; | ||
} | ||
let flagValue; | ||
@@ -58,0 +64,0 @@ try { |
import { ConfidenceClient } from '@spotify-confidence/client-http'; | ||
import { ConfidenceServerProvider } from './ConfidenceServerProvider'; | ||
export function createConfidenceServerProvider(options) { | ||
const confidenceClient = new ConfidenceClient(Object.assign(Object.assign({}, options), { apply: true })); | ||
const confidenceClient = new ConfidenceClient(Object.assign(Object.assign({}, options), { apply: true, sdk: { | ||
id: 'SDK_ID_JS_SERVER_PROVIDER', | ||
version: '0.1.2', | ||
} })); | ||
return new ConfidenceServerProvider(confidenceClient); | ||
} | ||
//# sourceMappingURL=factory.js.map |
# Changelog | ||
## [0.1.2](https://github.com/spotify/confidence-openfeature-provider-js/compare/openfeature-server-provider-v0.1.1...openfeature-server-provider-v0.1.2) (2023-11-16) | ||
### 🐛 Bug Fixes | ||
* **web,server,client-http:** send apply for flags with NO_SEGMENT_MATCH ([30b0956](https://github.com/spotify/confidence-openfeature-provider-js/commit/30b0956ae9f505552fae3b6cf19f670cd0c650f9)) | ||
### ✨ New Features | ||
* **client-http,web,server:** send sdk version ([23245ac](https://github.com/spotify/confidence-openfeature-provider-js/commit/23245acc3200eb9b0315e0d8374d226f442c6607)) | ||
### Dependencies | ||
* The following workspace dependencies were updated | ||
* dependencies | ||
* @spotify-confidence/client-http bumped from ^0.1.0 to ^0.1.1 | ||
## [0.1.1](https://github.com/spotify/confidence-openfeature-provider-js/compare/openfeature-server-provider-v0.1.0...openfeature-server-provider-v0.1.1) (2023-11-16) | ||
@@ -4,0 +23,0 @@ |
{ | ||
"name": "@spotify-confidence/openfeature-server-provider", | ||
"license": "Apache-2.0", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"module": "build/esm/index.js", | ||
@@ -9,3 +9,3 @@ "main": "build/cjs/index.js", | ||
"dependencies": { | ||
"@spotify-confidence/client-http": "^0.1.0" | ||
"@spotify-confidence/client-http": "^0.1.1" | ||
}, | ||
@@ -24,3 +24,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "a50774bd7b6cf2e139da5ea79341d825872b5b69" | ||
"gitHead": "1e3bab432bdf07def4fa17995e9705af19eb5c64" | ||
} |
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
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
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
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
168171
559