Skip to content

Commit efadfe0

Browse files
committed
Renamed ContentsPlugin type
1 parent ec42573 commit efadfe0

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export interface TemplateVars {
3030
nodeVersion?: string
3131
}
3232

33-
export interface ContentsPlugin {
33+
export interface PluginInfo {
3434
name: string,
3535
html_url: string
3636
}

src/cli.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {Command} from 'commander';
1414
// Local modules.
1515
import {createFiles} from './generator';
1616
import {addPackage, listPackages} from './installer';
17-
import {AppConfig, ContentsPlugin} from '../index';
17+
import {AppConfig, PluginInfo} from '../index';
1818

1919
// Process CLI options.
2020
const program = new Command();
@@ -122,7 +122,7 @@ program
122122
// List available plugins.
123123
const plugins = await listPackages();
124124

125-
const output = (plugins.map((plugin: ContentsPlugin) => {
125+
const output = (plugins.map((plugin: PluginInfo) => {
126126
return ` - ${plugin.name} (${plugin.html_url})\n`;
127127
})).join('');
128128

src/installer.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import fetch from 'node-fetch';
1313
import * as fs from 'fs';
1414

1515
// Local modules.
16-
import {ContentsPlugin} from '../index';
16+
import {PluginInfo} from '../index';
1717

1818
// Github repository URLs.
1919
const REPO_CONTENT_URL = 'https://raw.githubusercontent.com/lambda-lambda-lambda/middleware/master';
@@ -48,7 +48,7 @@ export async function addPackage(name: string): Promise<string|undefined> {
4848
/**
4949
* Request plugin list from the package repo.
5050
*/
51-
export function listPackages(): Promise<ContentsPlugin[]> {
51+
export function listPackages(): Promise<PluginInfo[]> {
5252
return fetch(REPO_PLUGIN_URL)
5353

5454
// Handle errors.

0 commit comments

Comments
 (0)