Socket
Socket
Sign inDemoInstall

@awdware/gah-shared

Package Overview
Dependencies
Maintainers
1
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.4 to 0.0.5

14

assets/gah-config-schema.json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"GahPluginConfig": {
"additionalProperties": true,
"properties": {
"enabled": {
"type": "boolean"
}
},
"type": "object"
},
"GahPluginDependencyConfig": {

@@ -12,2 +21,3 @@ "description": "Describes a plugin dependency",

"settings": {
"$ref": "#/definitions/GahPluginConfig",
"description": "The configuration for the plugin. Plugins add their own properties, please look at the documentation for the used plugin to see which settings are available."

@@ -69,2 +79,6 @@ }

"properties": {
"$schema": {
"default": "https://raw.githubusercontent.com/awdware/gah/master/assets/gah-config-schema.json",
"type": "string"
},
"isHost": {

@@ -71,0 +85,0 @@ "description": "Defines whether this project is a host module or not",

3

lib/models/gah-plugin-config.d.ts

@@ -0,3 +1,6 @@

/**
* @TJS-additionalProperties true
*/
export declare abstract class GahPluginConfig {
enabled: boolean;
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* @TJS-additionalProperties true
*/
var GahPluginConfig = /** @class */ (function () {

@@ -4,0 +7,0 @@ function GahPluginConfig() {

2

lib/models/gah-plugin-dependency-config.d.ts

@@ -13,3 +13,3 @@ import { GahPluginConfig } from './gah-plugin-config';

*/
settings: GahPluginConfig & any;
settings: GahPluginConfig;
}

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

export declare abstract class GahPlugin {
protected readonly name: string;
protected config: GahPluginConfig;

@@ -22,5 +23,6 @@ protected fileSystemService: IFileSystemService;

private pluginService;
constructor(pluginName: string);
protected abstract onInit(): void;
protected abstract onInstall(existingSettings?: GahPluginConfig): Promise<GahPluginConfig>;
protected registerEventListener(pluginName: string, event: GahEvent, handler: (event: GahEventPayload) => void): void;
protected registerEventListener(event: GahEvent, handler: (event: GahEventPayload) => void): void;
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var GahPlugin = /** @class */ (function () {
function GahPlugin() {
function GahPlugin(pluginName) {
this.name = pluginName;
}
GahPlugin.prototype.registerEventListener = function (pluginName, event, handler) {
this.pluginService.registerEventHandler(pluginName, event, handler);
GahPlugin.prototype.registerEventListener = function (event, handler) {
this.pluginService.registerEventHandler(this.name, event, handler);
};

@@ -9,0 +10,0 @@ return GahPlugin;

@@ -152,3 +152,4 @@ /**

/**
* The 'scripts' member is an object hash of script commands that are run at various times in the lifecycle of your package. The key is the lifecycle event, and the value is the command to run at that point.
* The 'scripts' member is an object hash of script commands that are run at various times in the lifecycle of your package.
* The key is the lifecycle event, and the value is the command to run at that point.
*/

@@ -234,3 +235,4 @@ scripts?: {

/**
* DEPRECATED: This option used to trigger an npm warning, but it will no longer warn. It is purely there for informational purposes. It is now recommended that you install any binaries as local devDependencies wherever possible.
* DEPRECATED: This option used to trigger an npm warning, but it will no longer warn. It is purely there for informational purposes.
* It is now recommended that you install any binaries as local devDependencies wherever possible.
*/

@@ -271,3 +273,4 @@ preferGlobal?: boolean;

/**
* Dependencies are specified with a simple hash of package name to version range. The version range is a string which has one or more space-separated descriptors. Dependencies can also be identified with a tarball or git URL.
* Dependencies are specified with a simple hash of package name to version range. The version range is a string which has one or more space-separated descriptors.
* Dependencies can also be identified with a tarball or git URL.
*/

@@ -274,0 +277,0 @@ export interface Dependency {

{
"name": "@awdware/gah-shared",
"version": "0.0.4",
"version": "0.0.5",
"description": "Provides types and interfaces for gah",

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

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