Socket
Socket
Sign inDemoInstall

@awdware/gah-shared

Package Overview
Dependencies
Maintainers
2
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@awdware/gah-shared - npm Package Compare versions

Comparing version 0.0.50 to 0.2.0

lib/models/gah-command-handler.d.ts

1

lib/index.d.ts
export * from './models/gah-angular-compiler-options';
export * from './models/gah-command-handler';
export * from './models/gah-config';

@@ -3,0 +4,0 @@ export * from './models/gah-context';

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

__exportStar(require("./models/gah-angular-compiler-options"), exports);
__exportStar(require("./models/gah-command-handler"), exports);
__exportStar(require("./models/gah-config"), exports);

@@ -16,0 +17,0 @@ __exportStar(require("./models/gah-context"), exports);

@@ -25,2 +25,3 @@ import { IFileSystemService } from '../services/file-system.service';

protected registerEventListener<T extends GahEventType>(type: T, handler: (payload: Omit<ExtractEventPayload<GahEvent, T>, 'type'>) => void): void;
protected registerCommandHandler(commandName: string, handler: (args: string[]) => Promise<boolean> | boolean): void;
}

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

};
GahPlugin.prototype.registerCommandHandler = function (commandName, handler) {
this.pluginService.registerCommandHandler(this.name, commandName, handler);
};
return GahPlugin;

@@ -13,0 +16,0 @@ }());

@@ -12,2 +12,4 @@ import { GahEvent, GahEventType, ExtractEventPayload } from '../models/gah-event';

isPluginConfigured(pluginName: string): boolean;
registerCommandHandler(pluginName: string, commandName: string, handler: (args: string[]) => Promise<boolean> | boolean): void;
run(cmd: string, args: string[]): Promise<boolean>;
}

2

package.json
{
"name": "@awdware/gah-shared",
"version": "0.0.50",
"version": "0.2.0",
"description": "Provides types and interfaces for gah",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

export * from './models/gah-angular-compiler-options';
export * from './models/gah-command-handler';
export * from './models/gah-config';

@@ -3,0 +4,0 @@ export * from './models/gah-context';

@@ -25,2 +25,3 @@ import { IFileSystemService } from '../services/file-system.service';

protected registerEventListener<T extends GahEventType>(type: T, handler: (payload: Pick<ExtractEventPayload<GahEvent, T>, Exclude<keyof ExtractEventPayload<GahEvent, T>, 'type'>>) => void): void;
protected registerCommandHandler(commandName: string, handler: (args: string[]) => Promise<boolean> | boolean): void;
}

@@ -12,2 +12,4 @@ import { GahEvent, GahEventType, ExtractEventPayload } from '../models/gah-event';

isPluginConfigured(pluginName: string): boolean;
registerCommandHandler(pluginName: string, commandName: string, handler: (args: string[]) => Promise<boolean> | boolean): void;
run(cmd: string, args: string[]): Promise<boolean>;
}

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