New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@spotify-confidence/client-http

Package Overview
Dependencies
Maintainers
3
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@spotify-confidence/client-http - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

2

build/cjs/ApplyManager.d.ts
import { ConfidenceClient } from './client';
export interface ApplyManagerOptions {
timeout: number;
maxBufferSize: number;
client: ConfidenceClient;

@@ -10,2 +11,3 @@ }

private readonly timeout;
private readonly maxBufferSize;
private client;

@@ -12,0 +14,0 @@ private flushTimeout;

10

build/cjs/ApplyManager.js

@@ -19,2 +19,3 @@ "use strict";

this.timeout = options.timeout;
this.maxBufferSize = options.maxBufferSize;
this.client = options.client;

@@ -40,3 +41,3 @@ }

apply(resolveToken, flagName) {
var _a, _b, _c;
var _a, _b, _c, _d;
if (!resolveToken) {

@@ -64,3 +65,8 @@ return;

}
this.flushTimeout = setTimeout(() => this.flush(), this.timeout);
if ((((_d = this.resolveTokenPending.get(resolveToken)) === null || _d === void 0 ? void 0 : _d.length) || 0) >= this.maxBufferSize) {
this.flush();
}
else {
this.flushTimeout = setTimeout(() => this.flush(), this.timeout);
}
}

@@ -67,0 +73,0 @@ }

@@ -33,3 +33,3 @@ import { Configuration, ResolveContext } from './Configuration';

apply: boolean;
region: 'eu' | 'us';
region?: 'global' | 'eu' | 'us';
baseUrl?: string;

@@ -36,0 +36,0 @@ sdk: SDK;

@@ -35,3 +35,3 @@ "use strict";

else {
this.baseUrl = `https://resolver.${options.region}.confidence.dev`;
this.baseUrl = getConfidenceUrl(options.region);
}

@@ -82,2 +82,8 @@ }

exports.ConfidenceClient = ConfidenceClient;
function getConfidenceUrl(region) {
if (region === 'global' || !region) {
return 'https://resolver.confidence.dev';
}
return `https://resolver.${region}.confidence.dev`;
}
function resolvedFlagToFlag(flag) {

@@ -84,0 +90,0 @@ return {

import { ConfidenceClient } from './client';
export interface ApplyManagerOptions {
timeout: number;
maxBufferSize: number;
client: ConfidenceClient;

@@ -10,2 +11,3 @@ }

private readonly timeout;
private readonly maxBufferSize;
private client;

@@ -12,0 +14,0 @@ private flushTimeout;

@@ -16,2 +16,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

this.timeout = options.timeout;
this.maxBufferSize = options.maxBufferSize;
this.client = options.client;

@@ -37,3 +38,3 @@ }

apply(resolveToken, flagName) {
var _a, _b, _c;
var _a, _b, _c, _d;
if (!resolveToken) {

@@ -61,5 +62,10 @@ return;

}
this.flushTimeout = setTimeout(() => this.flush(), this.timeout);
if ((((_d = this.resolveTokenPending.get(resolveToken)) === null || _d === void 0 ? void 0 : _d.length) || 0) >= this.maxBufferSize) {
this.flush();
}
else {
this.flushTimeout = setTimeout(() => this.flush(), this.timeout);
}
}
}
//# sourceMappingURL=ApplyManager.js.map

@@ -33,3 +33,3 @@ import { Configuration, ResolveContext } from './Configuration';

apply: boolean;
region: 'eu' | 'us';
region?: 'global' | 'eu' | 'us';
baseUrl?: string;

@@ -36,0 +36,0 @@ sdk: SDK;

@@ -32,3 +32,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

else {
this.baseUrl = `https://resolver.${options.region}.confidence.dev`;
this.baseUrl = getConfidenceUrl(options.region);
}

@@ -78,2 +78,8 @@ }

}
function getConfidenceUrl(region) {
if (region === 'global' || !region) {
return 'https://resolver.confidence.dev';
}
return `https://resolver.${region}.confidence.dev`;
}
function resolvedFlagToFlag(flag) {

@@ -80,0 +86,0 @@ return {

import { ConfidenceClient } from './client';
export interface ApplyManagerOptions {
timeout: number;
maxBufferSize: number;
client: ConfidenceClient;

@@ -10,2 +11,3 @@ }

private readonly timeout;
private readonly maxBufferSize;
private client;

@@ -12,0 +14,0 @@ private flushTimeout;

@@ -16,2 +16,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

this.timeout = options.timeout;
this.maxBufferSize = options.maxBufferSize;
this.client = options.client;

@@ -37,3 +38,3 @@ }

apply(resolveToken, flagName) {
var _a, _b, _c;
var _a, _b, _c, _d;
if (!resolveToken) {

@@ -61,5 +62,10 @@ return;

}
this.flushTimeout = setTimeout(() => this.flush(), this.timeout);
if ((((_d = this.resolveTokenPending.get(resolveToken)) === null || _d === void 0 ? void 0 : _d.length) || 0) >= this.maxBufferSize) {
this.flush();
}
else {
this.flushTimeout = setTimeout(() => this.flush(), this.timeout);
}
}
}
//# sourceMappingURL=ApplyManager.js.map

@@ -33,3 +33,3 @@ import { Configuration, ResolveContext } from './Configuration';

apply: boolean;
region: 'eu' | 'us';
region?: 'global' | 'eu' | 'us';
baseUrl?: string;

@@ -36,0 +36,0 @@ sdk: SDK;

@@ -32,3 +32,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

else {
this.baseUrl = `https://resolver.${options.region}.confidence.dev`;
this.baseUrl = getConfidenceUrl(options.region);
}

@@ -78,2 +78,8 @@ }

}
function getConfidenceUrl(region) {
if (region === 'global' || !region) {
return 'https://resolver.confidence.dev';
}
return `https://resolver.${region}.confidence.dev`;
}
function resolvedFlagToFlag(flag) {

@@ -80,0 +86,0 @@ return {

# Changelog
## [0.1.2](https://github.com/spotify/confidence-openfeature-provider-js/compare/client-http-v0.1.1...client-http-v0.1.2) (2024-01-05)
### 🐛 Bug Fixes
* **client-http:** set max buffer size for apply ([5c3ea7d](https://github.com/spotify/confidence-openfeature-provider-js/commit/5c3ea7dd6565b3983f12ba3dcc7a8a449dfcc1bb))
* **web:** set max buffer size for apply ([f774150](https://github.com/spotify/confidence-openfeature-provider-js/commit/f774150d47b92ba6780af6e47a8705a32f7c35d6))
### ✨ New Features
* **client-http:** default to the global url ([ada8268](https://github.com/spotify/confidence-openfeature-provider-js/commit/ada82680cf25e4d4a17a647210a62d4caa42ccfa))
### 🔄 Refactoring
* **examples:** use the default region in an example (node) ([0bc03e7](https://github.com/spotify/confidence-openfeature-provider-js/commit/0bc03e79c36a6c72dcfc46f3ad1de069474fed53))
## [0.1.1](https://github.com/spotify/confidence-openfeature-provider-js/compare/client-http-v0.1.0...client-http-v0.1.1) (2023-11-16)

@@ -4,0 +22,0 @@

{
"name": "@spotify-confidence/client-http",
"license": "Apache-2.0",
"version": "0.1.1",
"version": "0.1.2",
"module": "build/esm/index.js",

@@ -17,3 +17,3 @@ "main": "build/cjs/index.js",

},
"gitHead": "1e3bab432bdf07def4fa17995e9705af19eb5c64"
"gitHead": "46e0ddd79f7b5b3cdff630f773ff4c1f3009ec9c"
}

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

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