@openfga/sdk
Advanced tools
Comparing version 0.6.2 to 0.6.3
# Changelog | ||
### [0.6.3](https://github.com/openfga/js-sdk/compare/v0.6.2...v0.6.3) (2024-08-28) | ||
- fix: set the consistency parameter correctly in OpenFgaClient (#143) | ||
## v0.6.2 | ||
@@ -4,0 +8,0 @@ |
@@ -245,2 +245,3 @@ "use strict"; | ||
continuation_token: options.continuationToken, | ||
consistency: options.consistency | ||
}; | ||
@@ -395,3 +396,4 @@ if (body.user || body.object || body.relation) { | ||
contextual_tuples: { tuple_keys: body.contextualTuples || [] }, | ||
authorization_model_id: this.getAuthorizationModelId(options) | ||
authorization_model_id: this.getAuthorizationModelId(options), | ||
consistency: options.consistency | ||
}, options); | ||
@@ -451,2 +453,3 @@ } | ||
tuple_key: body, | ||
consistency: options.consistency | ||
}, options); | ||
@@ -473,2 +476,3 @@ } | ||
contextual_tuples: { tuple_keys: body.contextualTuples || [] }, | ||
consistency: options.consistency | ||
}, options); | ||
@@ -526,2 +530,3 @@ } | ||
contextual_tuples: body.contextualTuples || [], | ||
consistency: options.consistency | ||
}, options); | ||
@@ -528,0 +533,0 @@ } |
@@ -20,3 +20,3 @@ "use strict"; | ||
const telemetry_1 = require("./telemetry"); | ||
const meter = api_1.metrics.getMeter("@openfga/sdk", "0.6.2"); | ||
const meter = api_1.metrics.getMeter("@openfga/sdk", "0.6.3"); | ||
const durationHist = meter.createHistogram("fga-client.request.duration", { | ||
@@ -23,0 +23,0 @@ description: "The duration of requests", |
@@ -23,3 +23,3 @@ "use strict"; | ||
const DEFAULT_MIN_WAIT_MS = 100; | ||
const DEFAULT_USER_AGENT = "openfga-sdk js/0.6.2"; | ||
const DEFAULT_USER_AGENT = "openfga-sdk js/0.6.3"; | ||
function GetDefaultRetryParams(maxRetry = DEFAULT_MAX_RETRY, minWaitInMs = DEFAULT_MIN_WAIT_MS) { | ||
@@ -123,2 +123,2 @@ return { | ||
*/ | ||
Configuration.sdkVersion = "0.6.2"; | ||
Configuration.sdkVersion = "0.6.3"; |
@@ -49,3 +49,3 @@ "use strict"; | ||
case types_1.CredentialsMethod.ClientCredentials: { | ||
const meter = api_1.metrics.getMeter("@openfga/sdk", "0.6.2"); | ||
const meter = api_1.metrics.getMeter("@openfga/sdk", "0.6.3"); | ||
this.tokenCounter = meter.createCounter("fga-client.credentials.request"); | ||
@@ -52,0 +52,0 @@ break; |
{ | ||
"name": "@openfga/sdk", | ||
"version": "0.6.2", | ||
"version": "0.6.3", | ||
"description": "JavaScript and Node.js SDK for OpenFGA", | ||
@@ -26,4 +26,4 @@ "author": "OpenFGA", | ||
"@opentelemetry/api": "^1.9.0", | ||
"@opentelemetry/semantic-conventions": "^1.25.0", | ||
"axios": "^1.6.8", | ||
"@opentelemetry/semantic-conventions": "^1.26.0", | ||
"axios": "^1.7.5", | ||
"tiny-async-pool": "^2.1.0" | ||
@@ -33,11 +33,11 @@ }, | ||
"@types/jest": "^29.5.12", | ||
"@types/node": "^22.0.0", | ||
"@types/node": "^22.5.0", | ||
"@types/tiny-async-pool": "^2.0.3", | ||
"@typescript-eslint/eslint-plugin": "^7.7.1", | ||
"@typescript-eslint/parser": "^7.7.1", | ||
"@typescript-eslint/eslint-plugin": "^8.2.0", | ||
"@typescript-eslint/parser": "^8.2.0", | ||
"eslint": "^8.57.0", | ||
"jest": "^29.7.0", | ||
"nock": "^13.5.4", | ||
"ts-jest": "^29.1.2", | ||
"typescript": "^5.4.5" | ||
"nock": "^13.5.5", | ||
"ts-jest": "^29.2.5", | ||
"typescript": "^5.5.4" | ||
}, | ||
@@ -44,0 +44,0 @@ "files": [ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
1404769
6840
Updatedaxios@^1.7.5