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

@karhu/core

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@karhu/core - npm Package Compare versions

Comparing version 0.4.0 to 0.5.0

4

lib/index.d.ts

@@ -5,5 +5,5 @@ import { Command, UnregisteredCommand, EntryGraph } from './types';

commands: Command[];
contexts: string[];
entryGraph: EntryGraph;
constructor(entryGraph?: EntryGraph);
historyCallLimit: number;
constructor(entryGraph?: EntryGraph, historyCallLimit?: number);
reset(): void;

@@ -10,0 +10,0 @@ addCommand(command: UnregisteredCommand): Command;

@@ -37,6 +37,6 @@ "use strict";

var Karhu = (function () {
function Karhu(entryGraph) {
function Karhu(entryGraph, historyCallLimit) {
this.commands = [];
this.contexts = ['default'];
this.entryGraph = {};
this.historyCallLimit = 30;
this.reset();

@@ -46,2 +46,5 @@ if (entryGraph) {

}
if (historyCallLimit !== undefined) {
this.historyCallLimit = historyCallLimit;
}
}

@@ -51,3 +54,2 @@ Karhu.prototype.reset = function () {

this.commands = [];
this.contexts = ['default'];
this.entryGraph = {};

@@ -110,3 +112,3 @@ };

}
this.entryGraph = utils_1.updateEntryGraph(this.entryGraph, input, id);
this.entryGraph = utils_1.updateEntryGraph(this.entryGraph, input, id, this.historyCallLimit);
setTimeout(function () { return command.actions.onExec(); }, 0);

@@ -146,2 +148,2 @@ this._recordRunCommand(id);

exports.default = Karhu;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiLi8iLCJzb3VyY2VzIjpbImluZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBLGlDQVFpQjtBQUNqQixpQ0FBc0Y7QUFFdEY7SUFLRSxlQU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yxDQUFDLFNBQVcsQ0FBQztRQUMxRSxJQUFNLElBQUksR0FBb0I7WUFDNUIsS0FBSyxFQUFFLENBQUM7U0FDVCxDQUFDO1FBQ0Ysa0JBQ0UsRUFBRSxJQUFBLElBQ0MsT0FBTyxJQUNWLElBQUksTUFBQSxJQUNKO0lBQ0osQ0FBQyxDQUFDO0lBQ0osWUFBQztDQUFBLEFBM0hELElBMkhDO2tCQTNIb0IsS0FBSyJ9

@@ -30,3 +30,8 @@ /// <reference types="react" />

export declare type ClassifiedMatches = ClassifiedMatch[];
export declare type EntryGraph = any;
export interface EntryGraph {
next?: {
[key: string]: EntryGraph;
};
commands?: EntryGraphRecord[];
}
export interface EntryGraphRecord {

@@ -36,2 +41,5 @@ id: string;

}
export declare type EntryGraphCommandsSummary = {
[key: string]: EntryGraphRecord;
};
export interface ActionsObject {

@@ -38,0 +46,0 @@ onExec: () => void;

@@ -1,4 +0,6 @@

import { Command, ClassifiedMatches, ClassifiedMatch, EntryGraph } from './types';
import { Command, ClassifiedMatches, ClassifiedMatch, EntryGraph, EntryGraphCommandsSummary } from './types';
export declare function classifyMatches(commands: Command[], input: string): ClassifiedMatches;
export declare function updateEntryGraph(initialGraph: EntryGraph, input: string, cmdId: string): EntryGraph;
export declare function updateEntryGraph(initialGraph: EntryGraph, input: string, cmdId: string, callLimit?: number): EntryGraph;
export declare function normalizeEntryGraphCommandsCalls(graph: EntryGraph): EntryGraph;
export declare function findCommandsInEntryGraph(graph: EntryGraph, input: string): ClassifiedMatch[];
export declare const sumCommandsRecursively: (graph: EntryGraph) => EntryGraphCommandsSummary;

@@ -13,2 +13,11 @@ "use strict";

};
var __rest = (this && this.__rest) || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
t[p[i]] = s[p[i]];
return t;
};
var __values = (this && this.__values) || function (o) {

@@ -108,3 +117,4 @@ var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;

}
function updateEntryGraph(initialGraph, input, cmdId) {
function updateEntryGraph(initialGraph, input, cmdId, callLimit) {
if (callLimit === void 0) { callLimit = 0; }
var letters = input.split('');

@@ -114,8 +124,11 @@ var graphClone = __assign({}, initialGraph);

letters.forEach(function (letter, i) {
if (!traverseObj.hasOwnProperty(letter)) {
traverseObj[letter] = {};
if (!traverseObj.next) {
traverseObj['next'] = {};
}
traverseObj = traverseObj[letter];
if (!traverseObj.next.hasOwnProperty(letter)) {
traverseObj.next[letter] = {};
}
traverseObj = traverseObj.next[letter];
if (i === letters.length - 1) {
if (!traverseObj.hasOwnProperty('commands')) {
if (!traverseObj.commands) {
traverseObj.commands = [{ id: cmdId, calls: 1 }];

@@ -131,2 +144,5 @@ }

traverseObj.commands[cmdIndex].calls += 1;
if (callLimit > 0 && traverseObj.commands[cmdIndex].calls >= callLimit) {
traverseObj = normalizeEntryGraphCommandsCalls(traverseObj);
}
}

@@ -139,2 +155,20 @@ }

exports.updateEntryGraph = updateEntryGraph;
function normalizeEntryGraphCommandsCalls(graph) {
var factor = 0.7;
if (graph.commands) {
graph.commands = graph.commands.map(function (c) {
c.calls = Math.floor(c.calls * factor);
return c;
});
}
if (graph.next) {
var ids = Object.keys(graph.next);
for (var i = 0; i < ids.length; i++) {
var id = ids[i];
graph.next[id] = normalizeEntryGraphCommandsCalls(graph.next[id]);
}
}
return graph;
}
exports.normalizeEntryGraphCommandsCalls = normalizeEntryGraphCommandsCalls;
function findCommandsInEntryGraph(graph, input) {

@@ -144,18 +178,49 @@ var letters = input.split('');

for (var i = 0; i < letters.length; i += 1) {
if (!traverseObj[letters[i]]) {
if (!traverseObj.next || !traverseObj.next[letters[i]]) {
return [];
}
traverseObj = traverseObj[letters[i]];
traverseObj = traverseObj.next[letters[i]];
}
if (traverseObj.hasOwnProperty('commands')) {
return traverseObj['commands'].map(function (cmd) {
return {
id: cmd.id,
score: types_1.MatchClass.HISTORY + cmd.calls,
var commandsSummary = exports.sumCommandsRecursively(traverseObj);
return Object.keys(commandsSummary).map(function (c) {
var cmd = commandsSummary[c];
var m = {
id: cmd.id,
score: types_1.MatchClass.HISTORY * cmd.calls,
};
return m;
});
}
exports.findCommandsInEntryGraph = findCommandsInEntryGraph;
exports.sumCommandsRecursively = function (graph) {
var foundCommands = {};
var _a = graph.commands, commands = _a === void 0 ? [] : _a, _b = graph.next, next = _b === void 0 ? {} : _b;
var noop = next.commands, chars = __rest(next, ["commands"]);
commands.forEach(function (c) {
if (!foundCommands.hasOwnProperty(c.id)) {
foundCommands[c.id] = {
id: c.id,
calls: 0,
};
}
foundCommands[c.id].calls += c.calls;
});
foundCommands = Object.keys(chars).reduce(function (allCommands, curr) {
var newCommands = exports.sumCommandsRecursively(chars[curr]);
if (!newCommands || !Object.keys(newCommands).length) {
return allCommands;
}
Object.keys(newCommands).forEach(function (id) {
var cmd = newCommands[id];
if (allCommands.hasOwnProperty(cmd.id)) {
allCommands[cmd.id].calls += cmd.calls;
}
else {
allCommands[cmd.id] = cmd;
}
});
}
return [];
}
exports.findCommandsInEntryGraph = findCommandsInEntryGraph;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbHMuanMiLCJzb3VyY2VSb290IjoiLi8iLCJzb3VyY2VzIjpbInV0aWxzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsaUNBQWdIO0FBRWhILFNBQWdCLGVBQWUsQ0FBQyxRQUFtQixFQUFFLEtBQWE7SUFDaEUsSUFBTSxjQUFjLEdBQUcsS0FBSyxDQUFDLFdBQVcsRUFBRSxDQUFDLEtBQUssQ0FBQyxHQUFHLENBQUMsQ0FBQztJQUN0RCxJQUFNLEdBQUcsR0FBc0IsUUFBUSxDQUFDLEdBQUcsQ0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0FBQyxHQUFHLEdBQUcsQ0FBQzthQUMzQjtRQUNILENBQUMsQ0FBQyxDQUFDO1FBQ0gsT0FBTyxXQUFXLENBQUM7SUFDckIsQ0FBQyxFQUFFLGFBQWEsQ0FBQyxDQUFDO0lBQ2xCLE9BQU8sYUFBYSxDQUFDO0FBQ3ZCLENBQUMsQ0FBQyJ9
{
"name": "@karhu/core",
"version": "0.4.0",
"version": "0.5.0",
"description": "Core package for Karhu, the lib for powering web app productivity tools",

@@ -25,3 +25,3 @@ "author": "Oskar Hane <oh@oskarhane.com>",

},
"gitHead": "52dbb543d27e3c039b4b9c47f2678b388bc5d47e"
"gitHead": "c5dfbac3fd0df81fe7674788e8fbaebb32f1f685"
}
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