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

@uniformdev/optimize-tracker

Package Overview
Dependencies
Maintainers
9
Versions
170
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uniformdev/optimize-tracker - npm Package Compare versions

Comparing version 2.0.1-alpha.44 to 2.0.1-alpha.53

5

dist/cjs/personalization/personalizeList.js

@@ -104,3 +104,6 @@ "use strict";

// infinity === no matches, push to bottom
if (b.relevancy === undefined && a.relevancy === Number.POSITIVE_INFINITY) {
if (b.relevancy === undefined && a.relevancy) {
return -1;
}
if (b.relevancy && a.relevancy === undefined) {
return 1;

@@ -107,0 +110,0 @@ }

21

dist/cjs/tracker.js

@@ -294,2 +294,6 @@ "use strict";

}
// page view count should always execute as it keeps its own page count state
if (signal.type === optimize_common_1.SignalType.PageViewCount) {
return true;
}
var statisticsScope = this.resolveFrequencyScope(signal);

@@ -518,9 +522,11 @@ return !((_b = (_a = statisticsScope === null || statisticsScope === void 0 ? void 0 : statisticsScope.statistics) === null || _a === void 0 ? void 0 : _a[signal.id]) === null || _b === void 0 ? void 0 : _b.evaluations);

case 1:
if (!(_i < scopeNames_1.length)) return [3 /*break*/, 6];
if (!(_i < scopeNames_1.length)) return [3 /*break*/, 5];
currentScope = scopeNames_1[_i];
_a = summary[currentScope] || {}, score = _a.score, matches = _a.matches;
_a = summary[currentScope] || {
matches: [],
score: {},
}, score = _a.score, matches = _a.matches;
return [4 /*yield*/, this.readScoring(currentScope)];
case 2:
previousScore = _d.sent();
if (!(score && matches)) return [3 /*break*/, 4];
_b = scopeScoring;

@@ -531,10 +537,7 @@ _c = currentScope;

_b[_c] = _d.sent();
return [3 /*break*/, 5];
_d.label = 4;
case 4:
scopeScoring[currentScope] = previousScore;
_d.label = 5;
case 5:
_i++;
return [3 /*break*/, 1];
case 6:
case 5:
this.log(__assign({ level: 'verbose', message: "Scoring by scope", region: loggingRegion }, scopeScoring));

@@ -860,3 +863,3 @@ combinedScoring = this.combineScoring(scopeScoring);

});
return this.writeScoring(scope, scoring);
return this.writeScoring(scope, scoring, signalCount > 0);
};

@@ -863,0 +866,0 @@ OptimizeTracker.prototype.writeScoring = function (scope, scoring, quiet) {

@@ -98,3 +98,6 @@ var __assign = (this && this.__assign) || function () {

// infinity === no matches, push to bottom
if (b.relevancy === undefined && a.relevancy === Number.POSITIVE_INFINITY) {
if (b.relevancy === undefined && a.relevancy) {
return -1;
}
if (b.relevancy && a.relevancy === undefined) {
return 1;

@@ -101,0 +104,0 @@ }

@@ -48,3 +48,3 @@ var __assign = (this && this.__assign) || function () {

};
import { IntentTagStrength, Scope, SignalFrequency, } from '@uniformdev/optimize-common';
import { IntentTagStrength, Scope, SignalFrequency, SignalType, } from '@uniformdev/optimize-common';
import { decayByDayStrategy } from './decay/decayByDayStrategy';

@@ -292,2 +292,6 @@ import { cumulativeScoringStrategy } from './scoring/cumulativeScoringStrategy';

}
// page view count should always execute as it keeps its own page count state
if (signal.type === SignalType.PageViewCount) {
return true;
}
var statisticsScope = this.resolveFrequencyScope(signal);

@@ -516,9 +520,11 @@ return !((_b = (_a = statisticsScope === null || statisticsScope === void 0 ? void 0 : statisticsScope.statistics) === null || _a === void 0 ? void 0 : _a[signal.id]) === null || _b === void 0 ? void 0 : _b.evaluations);

case 1:
if (!(_i < scopeNames_1.length)) return [3 /*break*/, 6];
if (!(_i < scopeNames_1.length)) return [3 /*break*/, 5];
currentScope = scopeNames_1[_i];
_a = summary[currentScope] || {}, score = _a.score, matches = _a.matches;
_a = summary[currentScope] || {
matches: [],
score: {},
}, score = _a.score, matches = _a.matches;
return [4 /*yield*/, this.readScoring(currentScope)];
case 2:
previousScore = _d.sent();
if (!(score && matches)) return [3 /*break*/, 4];
_b = scopeScoring;

@@ -529,10 +535,7 @@ _c = currentScope;

_b[_c] = _d.sent();
return [3 /*break*/, 5];
_d.label = 4;
case 4:
scopeScoring[currentScope] = previousScore;
_d.label = 5;
case 5:
_i++;
return [3 /*break*/, 1];
case 6:
case 5:
this.log(__assign({ level: 'verbose', message: "Scoring by scope", region: loggingRegion }, scopeScoring));

@@ -858,3 +861,3 @@ combinedScoring = this.combineScoring(scopeScoring);

});
return this.writeScoring(scope, scoring);
return this.writeScoring(scope, scoring, signalCount > 0);
};

@@ -861,0 +864,0 @@ OptimizeTracker.prototype.writeScoring = function (scope, scoring, quiet) {

{
"name": "@uniformdev/optimize-tracker",
"version": "2.0.1-alpha.44+4b9892a",
"version": "2.0.1-alpha.53+f3cb156",
"description": "Uniform Optimize tracker",

@@ -29,4 +29,4 @@ "license": "Apache-2.0",

"dependencies": {
"@uniformdev/optimize-common": "^2.0.1-alpha.44+4b9892a",
"@uniformdev/optimize-tracker-common": "^2.0.1-alpha.44+4b9892a"
"@uniformdev/optimize-common": "^2.0.1-alpha.53+f3cb156",
"@uniformdev/optimize-tracker-common": "^2.0.1-alpha.53+f3cb156"
},

@@ -56,3 +56,3 @@ "peerDependencies": {

},
"gitHead": "4b9892afd63257a4aaf8964670197554757bdbb6"
"gitHead": "f3cb1566e495d7d16217e105ec352e4acac991fb"
}
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