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

shenanigans-manager

Package Overview
Dependencies
Maintainers
1
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shenanigans-manager - npm Package Compare versions

Comparing version

to
0.2.28

src/commands/ensureDirsExist.d.ts

3

package.json
{
"name": "shenanigans-manager",
"version": "0.2.27",
"version": "0.2.28",
"description": "Manages large-scale operations on FullScreenShenanigans project.",

@@ -44,2 +44,3 @@ "bin": {

"@types/minimist": "^1.2.0",
"@types/mkdirp": "^0.5.2",
"@types/mustache": "^0.8.30",

@@ -46,0 +47,0 @@ "@types/mz": "0.0.32",

@@ -19,3 +19,3 @@ {

"run-for-every-file": "^1.1.0",
"shenanigans-manager": "^0.2.26",
"shenanigans-manager": "^0.2.28",
"sinon": "^4.5.0",

@@ -37,5 +37,6 @@ "sinon-chai": "^3.0.0",

"init": "npm install && npm run setup && npm run verify",
"setup": "npm run setup:copy && npm run setup:package && npm run setup:readme",
"setup": "npm run setup:dirs && npm run setup:copy && npm run setup:package && npm run setup:readme",
"setup:copy": "npm run setup:copy:default",
"setup:copy:default": "run-for-every-file --dot --src \"node_modules/shenanigans-manager/setup/default/\" --file \"**/*\" --run \"mustache package.json {{src-file}} {{file}}\" --dest \".\" --only-files",
"setup:dirs": "shenanigans-manager ensure-dirs-exist",
"setup:package": "shenanigans-manager hydrate-package-json",

@@ -60,3 +61,3 @@ "setup:readme": "shenanigans-manager hydrate-readme",

"verify": "npm run src && npm run test && npm run dist && npm run docs",
"verify:coverage": "npm run src && npm run test:coverage && npm run dist && npm run docs",
"verify:coverage": "npm run src && npm run test:setup && npm run test:coverage && npm run dist && npm run docs",
"watch": "concurrently \"tsc -p . -w\" --raw \"chokidar src/**/*.test.t* --command \"\"npm run test:setup:html\"\" --silent\" --raw"

@@ -63,0 +64,0 @@ },

import { ICommand } from "./command";
import { NameTransformer } from "./nameTransformer";
/**
* Searches for ICommand methods.
*/
export interface ICommandSearcher {
/**
* Searches for a Command sub-class within the directories.
*
* @param name Dashed-case name of the Command sub-class.
* @type TCommandClass Type of the command.
* @returns The Command sub-class, if it can be found.
*/
search(name: string): Promise<ICommand | undefined>;
}
/**
* Searches for Command classes.
*/
export declare class CommandSearcher implements ICommandSearcher {
export declare class CommandSearcher {
/**

@@ -21,0 +8,0 @@ * Directories to search within.

@@ -8,19 +8,5 @@ import * as fs from "mz/fs";

/**
* Searches for ICommand methods.
*/
export interface ICommandSearcher {
/**
* Searches for a Command sub-class within the directories.
*
* @param name Dashed-case name of the Command sub-class.
* @type TCommandClass Type of the command.
* @returns The Command sub-class, if it can be found.
*/
search(name: string): Promise<ICommand | undefined>;
}
/**
* Searches for Command classes.
*/
export class CommandSearcher implements ICommandSearcher {
export class CommandSearcher {
/**

@@ -27,0 +13,0 @@ * Directories to search within.

@@ -1,2 +0,2 @@

import { ICommandSearcher } from "./commandSearcher";
import { CommandSearcher } from "./commandSearcher";
import { ILogger } from "./logger";

@@ -42,3 +42,3 @@ import { ISettings } from "./settings";

*/
constructor(commandSearcher: ICommandSearcher);
constructor(commandSearcher: CommandSearcher);
/**

@@ -45,0 +45,0 @@ * Runs the program.

import { runCommandInAll } from "./command";
import { ICommandSearcher } from "./commandSearcher";
import { CommandSearcher } from "./commandSearcher";
import { ILogger } from "./logger";

@@ -44,3 +44,3 @@ import { IRuntime } from "./runtime";

*/
private readonly commandSearcher: ICommandSearcher;
private readonly commandSearcher: CommandSearcher;

@@ -52,3 +52,3 @@ /**

*/
public constructor(commandSearcher: ICommandSearcher) {
public constructor(commandSearcher: CommandSearcher) {
this.commandSearcher = commandSearcher;

@@ -55,0 +55,0 @@ }