Socket
Socket
Sign inDemoInstall

baset-cli

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

baset-cli - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

dist/commands/accept.d.ts

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

<a name="0.2.0"></a>
# [0.2.0](https://github.com/Igmat/baset/compare/v0.1.0...v0.2.0) (2018-01-17)
### Features
* **Core, CLI:** Adding two different commands (test and accept), also introducing yargs to parse ar ([2d98352](https://github.com/Igmat/baset/commit/2d98352))
<a name="0.1.0"></a>

@@ -8,0 +19,0 @@ # [0.1.0](https://github.com/Igmat/baset/compare/v0.0.1...v0.1.0) (2018-01-17)

4

dist/index.d.ts

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

export declare function init(): Promise<void>;
/// <reference types="yargs" />
import * as yargs from 'yargs';
export declare const cli: yargs.Argv;
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
Object.defineProperty(exports, "__esModule", { value: true });
const baset_core_1 = require("baset-core");
const glob = require("glob-promise");
const path = require("path");
function init() {
return __awaiter(this, void 0, void 0, function* () {
const [specs, baselines] = yield Promise.all([glob('**/*.spec.js'), glob('**/*.base')]);
baset_core_1.test(specs.map(spec => path.resolve(spec)), baselines.map(base => path.resolve(base)));
});
}
exports.init = init;
const yargs = require("yargs");
exports.cli = yargs
.usage('$0 <command>')
.commandDir('./commands')
.help('h')
.alias('help', 'h')
.epilog('Made by Igmat.');
//# sourceMappingURL=index.js.map
{
"name": "baset-cli",
"version": "0.1.0",
"version": "0.2.0",
"description": "",

@@ -18,2 +18,3 @@ "main": "dist/index.js",

"@types/node": "^9.3.0",
"@types/yargs": "^10.0.1",
"tslint": "^5.9.1",

@@ -23,6 +24,7 @@ "typescript": "^2.6.2"

"dependencies": {
"baset-core": "^0.1.0",
"baset-core": "^0.2.0",
"glob": "^7.1.2",
"glob-promise": "^3.3.0"
"glob-promise": "^3.3.0",
"yargs": "^10.1.1"
}
}

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

import { test } from 'baset-core';
import * as glob from 'glob-promise';
import * as path from 'path';
import * as yargs from 'yargs';
export async function init() {
const [specs, baselines] = await Promise.all([glob('**/*.spec.js'), glob('**/*.base')]);
test(
specs.map(spec => path.resolve(spec)),
baselines.map(base => path.resolve(base)));
}
export const cli = yargs
.usage('$0 <command>')
.commandDir('./commands')
.help('h')
.alias('help', 'h')
.epilog('Made by Igmat.');

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