Comparing version 1.0.0 to 1.0.1
@@ -6,3 +6,3 @@ import { AWSConfig } from './aws'; | ||
export declare class MasterConfig extends Config { | ||
static parse(source: any): any; | ||
static parse(source: any): MasterConfig; | ||
aws: AWSConfig; | ||
@@ -9,0 +9,0 @@ repositories: Configs<RepositoryConfig>; |
@@ -26,4 +26,3 @@ "use strict"; | ||
for (const repository of srcObj.repositories) { | ||
const serverType = master.getServerType(repository.name); | ||
const newRepoObj = repository_1.RepositoryConfig.parse(repository, serverType); | ||
const newRepoObj = repository_1.RepositoryConfig.parse(repository); | ||
master.repositories.set(newRepoObj.name, newRepoObj); | ||
@@ -30,0 +29,0 @@ } |
import { Config } from './config'; | ||
export declare class RepositoryConfig extends Config { | ||
static parse(source: any, type?: string): RepositoryConfig; | ||
static parse(source: any): RepositoryConfig; | ||
name: string; | ||
@@ -5,0 +5,0 @@ constructor(name: string); |
@@ -10,3 +10,3 @@ "use strict"; | ||
class RepositoryConfig extends config_1.Config { | ||
static parse(source, type) { | ||
static parse(source) { | ||
let srcObj = source; | ||
@@ -17,3 +17,2 @@ if (typeof source === "string") { | ||
assert_1.default(typeof srcObj.name === "string"); | ||
assert_1.default(type); | ||
let repository = new RepositoryConfig(srcObj.name); | ||
@@ -20,0 +19,0 @@ repository = lodash_1.default.merge(repository, srcObj); |
@@ -8,3 +8,3 @@ import { MasterConfig } from './config'; | ||
private aws; | ||
loadConfig(filename?: string): Promise<any>; | ||
loadConfig(filename?: string): Promise<MasterConfig>; | ||
start(params: { | ||
@@ -11,0 +11,0 @@ output: string; |
{ | ||
"name": "githublint", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "XYO Internal Github Tool", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -5,2 +5,8 @@ [logo]: https://cdn.xy.company/img/brand/XY_Logo_GitHub.png | ||
[![NPM](https://nodei.co/npm/githublint.png)](https://nodei.co/npm/githublint/) | ||
[![npm version](https://badge.fury.io/js/githublint.svg)](https://badge.fury.io/js/githublint) [![Build Status](https://travis-ci.com/XYOracleNetwork/tool-github-nodejs.svg?token=A85R2pDnngMDyWoqeLUG&branch=master)](https://travis-ci.com/XYOracleNetwork/tool-github-nodejs) [![DepShield Badge](https://depshield.sonatype.org/badges/XYOracleNetwork/tool-github-nodejs/depshield.svg)](https://depshield.github.io) | ||
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/740c0ef649144b7a9e9bdc034c6e1718)](https://www.codacy.com/app/arietrouw/tool-github-nodejs?utm_source=github.com&utm_medium=referral&utm_content=XYOracleNetwork/tool-github-nodejs&utm_campaign=Badge_Grade) [![Maintainability](https://api.codeclimate.com/v1/badges/251252cfe6d3032ffd78/maintainability)](https://codeclimate.com/github/XYOracleNetwork/tool-github-nodejs) [![BCH compliance](https://bettercodehub.com/edge/badge/XYOracleNetwork/tool-github-nodejs?branch=master)](https://bettercodehub.com/) | ||
# GithubLint (tool-github-nodejs) | ||
@@ -7,0 +13,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
50428
20
790