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

tas-client

Package Overview
Dependencies
Maintainers
2
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tas-client - npm Package Compare versions

Comparing version 0.1.58 to 0.1.73

3

index.js

@@ -7,4 +7,5 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.ExperimentationService = void 0;
var ExperimentationService_1 = require("./tas-client/ExperimentationService");
exports.ExperimentationService = ExperimentationService_1.ExperimentationService;
Object.defineProperty(exports, "ExperimentationService", { enumerable: true, get: function () { return ExperimentationService_1.ExperimentationService; } });
//# sourceMappingURL=index.js.map
{
"name": "tas-client",
"version": "0.1.58",
"version": "0.1.73",
"description": "This package is intended to be used as an endpoint client to query, refetch, and cache data from the Experimentation service (or any given endpoint). The endpoint result must follow the required structure for experimentation data.",

@@ -39,9 +39,8 @@ "main": "./index.js",

"tslint": "^5.17.0",
"tslint-microsoft-contrib": "^6.2.0",
"typescript": "^3.7.2",
"typescript": "^5.2.2",
"typemoq": "2.1.0"
},
"dependencies": {
"axios": "^0.26.1"
"axios": "^1.6.1"
}
}

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.ExperimentationService = void 0;
const TasApiFeatureProvider_1 = require("./FeatureProvider/TasApiFeatureProvider");

@@ -9,0 +10,0 @@ const AxiosHttpClient_1 = require("./Util/AxiosHttpClient");

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.ExperimentationServiceAutoPolling = void 0;
const ExperimentationServiceBase_1 = require("./ExperimentationServiceBase");

@@ -9,0 +10,0 @@ const PollingService_1 = require("./Util/PollingService");

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.ExperimentationServiceBase = void 0;
const MemoryKeyValueStorage_1 = require("./Util/MemoryKeyValueStorage");

@@ -16,2 +17,14 @@ /**

class ExperimentationServiceBase {
get features() {
return this._features;
}
set features(value) {
this._features = value;
/**
* If an implementation of telemetry exists, we set the shared property.
*/
if (this.telemetry) {
this.telemetry.setSharedProperty(this.assignmentContextTelemetryPropertyName, this.features.assignmentContext);
}
}
constructor(telemetry, assignmentContextTelemetryPropertyName, telemetryEventName, storageKey, storage) {

@@ -42,14 +55,2 @@ this.telemetry = telemetry;

}
get features() {
return this._features;
}
set features(value) {
this._features = value;
/**
* If an implementation of telemetry exists, we set the shared property.
*/
if (this.telemetry) {
this.telemetry.setSharedProperty(this.assignmentContextTelemetryPropertyName, this.features.assignmentContext);
}
}
/**

@@ -201,7 +202,6 @@ * Gets all the features from the provider sources (not cache).

getTreatmentVariable(configId, name) {
var _a;
this.featuresConsumed = true;
this.PostEventToTelemetry(`${configId}.${name}`);
const config = this.features.configs.find(c => c.Id === configId);
return (_a = config) === null || _a === void 0 ? void 0 : _a.Parameters[name];
return config === null || config === void 0 ? void 0 : config.Parameters[name];
}

@@ -208,0 +208,0 @@ /**

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.BaseFeatureProvider = void 0;
/**

@@ -9,0 +10,0 @@ * Abstract class for Feature Provider Implementation.

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.FilteredFeatureProvider = void 0;
const BaseFeatureProvider_1 = require("./BaseFeatureProvider");

@@ -9,0 +10,0 @@ /**

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.TasApiFeatureProvider = exports.TASAPI_FETCHERROR_EVENTNAME = void 0;
const FilteredFeatureProvider_1 = require("./FilteredFeatureProvider");

@@ -9,0 +10,0 @@ exports.TASAPI_FETCHERROR_EVENTNAME = 'call-tas-error';

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.AxiosHttpClient = void 0;
const axios_1 = require("axios");

@@ -9,0 +10,0 @@ class AxiosHttpClient {

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.MemoryKeyValueStorage = void 0;
class MemoryKeyValueStorage {

@@ -9,0 +10,0 @@ constructor() {

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.PollingService = void 0;
class PollingService {

@@ -9,0 +10,0 @@ constructor(fetchInterval) {

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