Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@spotify-confidence/client-http

Package Overview
Dependencies
Maintainers
2
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.0.1 to 0.0.2

CHANGELOG.md

6

build/cjs/ApplyManager.js

@@ -0,1 +1,2 @@

"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

@@ -10,3 +11,5 @@ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }

};
export class ApplyManager {
Object.defineProperty(exports, "__esModule", { value: true });
exports.ApplyManager = void 0;
class ApplyManager {
constructor(options) {

@@ -63,2 +66,3 @@ this.resolveTokenPending = new Map();

}
exports.ApplyManager = ApplyManager;
//# sourceMappingURL=ApplyManager.js.map

10

build/cjs/client/ConfidenceClient.js

@@ -0,1 +1,2 @@

"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

@@ -10,4 +11,6 @@ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }

};
import { ConfidenceFlag } from './ConfidenceFlag';
export class ConfidenceClient {
Object.defineProperty(exports, "__esModule", { value: true });
exports.ConfidenceClient = void 0;
const ConfidenceFlag_1 = require("./ConfidenceFlag");
class ConfidenceClient {
constructor(options) {

@@ -34,3 +37,3 @@ this.fetchImplementation = options.fetchImplementation;

flags: responseBody.resolvedFlags.reduce((acc, flag) => {
return Object.assign(Object.assign({}, acc), { [flag.flag]: new ConfidenceFlag(flag) });
return Object.assign(Object.assign({}, acc), { [flag.flag]: new ConfidenceFlag_1.ConfidenceFlag(flag) });
}, {}),

@@ -57,2 +60,3 @@ resolveToken: responseBody.resolveToken,

}
exports.ConfidenceClient = ConfidenceClient;
//# sourceMappingURL=ConfidenceClient.js.map

@@ -1,2 +0,5 @@

import { Configuration } from './Configuration';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ConfidenceFlag = void 0;
const Configuration_1 = require("./Configuration");
function valueMatchesSchema(value, schema) {

@@ -38,3 +41,3 @@ if (value === null) {

}
export class ConfidenceFlag {
class ConfidenceFlag {
constructor(flag) {

@@ -48,3 +51,3 @@ this.flagName = flag.flag;

getValue(...path) {
if (this.reason !== Configuration.ResolveReason.Match) {
if (this.reason !== Configuration_1.Configuration.ResolveReason.Match) {
return {

@@ -73,2 +76,3 @@ value: null,

}
exports.ConfidenceFlag = ConfidenceFlag;
//# sourceMappingURL=ConfidenceFlag.js.map

@@ -1,2 +0,5 @@

export var Configuration;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Configuration = void 0;
var Configuration;
(function (Configuration) {

@@ -11,3 +14,3 @@ let ResolveReason;

})(ResolveReason = Configuration.ResolveReason || (Configuration.ResolveReason = {}));
})(Configuration || (Configuration = {}));
})(Configuration || (exports.Configuration = Configuration = {}));
//# sourceMappingURL=Configuration.js.map

@@ -1,4 +0,20 @@

export * from './Configuration';
export * from './ConfidenceClient';
export * from './ConfidenceFlag';
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./Configuration"), exports);
__exportStar(require("./ConfidenceClient"), exports);
__exportStar(require("./ConfidenceFlag"), exports);
//# sourceMappingURL=index.js.map

@@ -1,3 +0,19 @@

export * from './client';
export * from './ApplyManager';
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./client"), exports);
__exportStar(require("./ApplyManager"), exports);
//# sourceMappingURL=index.js.map
{
"name": "@spotify-confidence/client-http",
"license": "Apache-2.0",
"version": "0.0.1",
"version": "0.0.2",
"module": "build/esm/index.js",

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

},
"gitHead": "0fe4ea99f59c399b3865877bb3e1d6e083394ff8"
"gitHead": "c377e3d6611011820bd7799860f96aa1f5fcbe0b"
}

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