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

@karhu/react

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@karhu/react - npm Package Compare versions

Comparing version 0.7.1 to 1.0.0

4

lib/index.d.ts
import React from 'react';
import Karhu from '@karhu/core';
import { Command, UnregisteredCommand, EntryGraph } from '@karhu/core/lib/types';
import { Command, UnregisteredCommand, CommandRunResult } from '@karhu/core/lib/types';
declare type KarhuContextProps = {

@@ -10,3 +10,3 @@ karhu: Karhu;

commandsList: Command[];
exec: (id: string) => EntryGraph;
exec: (id: string) => CommandRunResult;
};

@@ -13,0 +13,0 @@ declare type AddCommandProps = {

@@ -47,7 +47,8 @@ "use strict";

react_1.useEffect(function () {
var list = karhu.findMatchingCommands(input);
karhu.setInput(input);
var list = karhu.findMatchingCommands();
setCommandsList(list);
}, [input]);
var exec = function (id) {
return karhu.runCommand(id, input);
return karhu.runCommand(id);
};

@@ -66,2 +67,2 @@ return { commandsList: commandsList, exec: exec };

exports.KarhuConsumer = Consumer;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiLi8iLCJzb3VyY2VzIjpbImluZGV4LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsNkNBQStEO0FBSy9ELElBQU0sWUFBWSxHQUFHLGVBQUssQ0FBQyxhQUFhLENBQTZCLEVBQUUsQ0FBQyxDQUFDO0FBMERWLG9DQUFZO0FBL0M5RCxRQUFBLFVBQVUsR0FBRyxVQUFDLEtBQXNCO0lBQy9DLElBQU0sWUFBWSxHQUErQixrQkFBVSxDQUFDLFlBQVksQ0FBQyxDQUFDO0lBQ2xFLElBQUEsMEJBQUssQ0FBa0I7SUFFL0IsaUJ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RSxJQUFJLENBQUMsS0FBSyxFQUFFO1FBQ1YsTUFBTSxJQUFJLEtBQUssQ0FBQyxpQkFBaUIsQ0FBQyxDQUFDO0tBQ3BDO0lBQ0QsaUJBQVMsQ0FDUDtRQUNFLEtBQUssQ0FBQyxRQUFRLENBQUMsS0FBSyxDQUFDLENBQUM7UUFDdEIsSUFBTSxJQUFJLEdBQUcsS0FBSyxDQUFDLG9CQUFvQixFQUFFLENBQUM7UUFDMUMsZUFBZSxDQUFDLElBQUksQ0FBQyxDQUFDO0lBQ3hCLENBQUMsRUFDRCxDQUFDLEtBQUssQ0FBQyxDQUNSLENBQUM7SUFFRixJQUFNLElBQUksR0FBRyxVQUFDLEVBQVU7UUFDdEIsT0FBTyxLQUFLLENBQUMsVUFBVSxDQUFDLEVBQUUsQ0FBQyxDQUFDO0lBQzlCLENBQUMsQ0FBQztJQUVGLE9BQU8sRUFBRSxZQUFZLGNBQUEsRUFBRSxJQUFJLE1BQUEsRUFBRSxDQUFDO0FBQ2hDLENBQUM7QUF0QkQsNEJBc0JDO0FBTUQsU0FBZ0IsY0FBYyxDQUFDLEtBQVk7SUFDakMsSUFBQSx5QkFBUSxDQUFXO0lBQ3JCLElBQUEsMEJBQThDLEVBQTVDLGNBQUksRUFBRSw4QkFBc0MsQ0FBQztJQUNyRCxPQUFPLFFBQVEsQ0FBQyxFQUFFLFlBQVksY0FBQSxFQUFFLElBQUksTUFBQSxFQUFFLENBQUMsQ0FBQztBQUMxQyxDQUFDO0FBSkQsd0NBSUM7QUFFTyxJQUFBLGdDQUFRLEVBQUUsZ0NBQVEsQ0FBa0I7QUFDdkIsaUNBQWE7QUFBYyxpQ0FBYSJ9
{
"name": "@karhu/react",
"version": "0.7.1",
"version": "1.0.0",
"description": "React bindings and components for Karhu",

@@ -30,3 +30,3 @@ "main": "lib/index.js",

"dependencies": {
"@karhu/core": "^0.7.0"
"@karhu/core": "^1.0.0"
},

@@ -44,3 +44,3 @@ "directories": {

},
"gitHead": "cfe52d4100e934030be60abc143f3a39c585588c"
"gitHead": "1027971ad1c7a96d46a22f4019a07fdc384db2c5"
}

@@ -40,3 +40,3 @@ # `@karhu/react`

commandsList: Command[];
exec: (id: string) => EntryGraph;
exec: (id: string) => CommandRunResult;
};

@@ -108,3 +108,3 @@ ```

commandsList: Command[];
exec: (id: string) => EntryGraph;
exec: (id: string) => CommandRunResult;
};

@@ -147,3 +147,3 @@ ```

keywords: ['command'],
actions: { onExec: () => {} },
onExec: () => {},
render: () => {},

@@ -150,0 +150,0 @@ });

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