Socket
Socket
Sign inDemoInstall

@auto-it/core

Package Overview
Dependencies
Maintainers
1
Versions
976
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@auto-it/core - npm Package Compare versions

Comparing version 7.0.0-canary.406.5687.25 to 7.0.0-canary.406.5709.26

16

dist/auto-args.d.ts

@@ -1,10 +0,10 @@

interface IAuthorArgs {
interface IAuthorOptions {
name?: string;
email?: string;
}
export interface IRepoArgs {
export interface IRepoOptions {
owner?: string;
repo?: string;
}
export interface ILogArgs {
export interface ILogOptions {
verbose?: boolean;

@@ -43,3 +43,3 @@ veryVerbose?: boolean;

}
export interface IChangelogOptions extends IAuthorArgs {
export interface IChangelogOptions extends IAuthorOptions {
noVersionPrefix?: boolean;

@@ -51,3 +51,3 @@ dryRun?: boolean;

}
export interface IReleaseOptions extends IAuthorArgs {
export interface IReleaseOptions extends IAuthorOptions {
noVersionPrefix?: boolean;

@@ -74,3 +74,3 @@ dryRun?: boolean;

}
export declare type GlobalArgs = {
export declare type GlobalOptions = {
githubApi?: string;

@@ -80,4 +80,4 @@ baseBranch?: string;

plugins?: string[];
} & IRepoArgs & ILogArgs;
export declare type ApiArgs = GlobalArgs & (IInitOptions | ICreateLabelsOptions | ILabelOptions | IPRCheckOptions | IPRStatusOptions | ICommentOptions | IChangelogOptions | IPRBodyOptions | IReleaseOptions | IVersionOptions | ICanaryOptions | IShipItOptions);
} & IRepoOptions & ILogOptions;
export declare type ApiOptions = GlobalOptions & (IInitOptions | ICreateLabelsOptions | ILabelOptions | IPRCheckOptions | IPRStatusOptions | ICommentOptions | IChangelogOptions | IPRBodyOptions | IReleaseOptions | IVersionOptions | ICanaryOptions | IShipItOptions);
export {};
import { ReposCreateReleaseResponse, Response } from '@octokit/rest';
import { AsyncParallelHook, AsyncSeriesBailHook, SyncHook, SyncWaterfallHook } from 'tapable';
import { ApiArgs, ICanaryOptions, IChangelogOptions, ICommentOptions, ICreateLabelsOptions, IInitOptions, ILabelOptions, IPRCheckOptions, IPRStatusOptions, IReleaseOptions, IShipItOptions } from './auto-args';
import { ApiOptions, ICanaryOptions, IChangelogOptions, ICommentOptions, ICreateLabelsOptions, IInitOptions, ILabelOptions, IPRCheckOptions, IPRStatusOptions, IReleaseOptions, IShipItOptions } from './auto-args';
import Changelog from './changelog';

@@ -48,3 +48,3 @@ import Git from './git';

logger: ILogger;
args: ApiArgs;
options: ApiOptions;
baseBranch: string;

@@ -56,3 +56,3 @@ config?: IAutoConfig;

semVerLabels?: Map<VersionLabel, string>;
constructor(args?: ApiArgs);
constructor(options?: ApiOptions);
/**

@@ -59,0 +59,0 @@ * Load the .autorc from the file system, set up defaults, combine with CLI args

@@ -115,4 +115,4 @@ "use strict";

var Auto = /** @class */ (function () {
function Auto(args) {
if (args === void 0) { args = {}; }
function Auto(options) {
if (options === void 0) { options = {}; }
var _this = this;

@@ -127,5 +127,9 @@ this.prefixRelease = function (release) {

};
this.args = args;
this.baseBranch = args.baseBranch || 'master';
this.logger = logger_1.default(args.veryVerbose ? 'veryVerbose' : args.verbose ? 'verbose' : undefined);
this.options = options;
this.baseBranch = options.baseBranch || 'master';
this.logger = logger_1.default(options.veryVerbose
? 'veryVerbose'
: options.verbose
? 'verbose'
: undefined);
this.hooks = make_hooks_1.makeHooks();

@@ -157,3 +161,3 @@ this.hooks.onCreateRelease.tap('Link onCreateChangelog', function (release) {

_c = [{}];
return [4 /*yield*/, configLoader.loadConfig(this.args)];
return [4 /*yield*/, configLoader.loadConfig(this.options)];
case 1:

@@ -160,0 +164,0 @@ config = _b.apply(_a, [__assign.apply(void 0, _c.concat([(_d.sent()), { baseBranch: this.baseBranch }]))]);

import cosmiconfig from 'cosmiconfig';
import { ApiArgs } from './auto-args';
import { ApiOptions } from './auto-args';
import { ILogger } from './utils/logger';

@@ -11,3 +11,3 @@ export default class Config {

*/
loadConfig(args: ApiArgs): Promise<{
loadConfig(args: ApiOptions): Promise<{
labels: import("./release").ILabelDefinitionMap;

@@ -14,0 +14,0 @@ skipReleaseLabels: any;

{
"name": "@auto-it/core",
"version": "7.0.0-canary.406.5687.25+c3ac950",
"version": "7.0.0-canary.406.5709.26+ca0000d",
"description": "Node API for using auto.",

@@ -82,3 +82,3 @@ "main": "dist/auto.js",

},
"gitHead": "c3ac95060dd94a6d2b9a54885a2db2f2f87e10d0"
"gitHead": "ca0000d3acc3d3d077a965ac721074e843a3ec60"
}

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