Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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.5.1 to 0.6.0

11

CHANGELOG.md

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

<a name="0.6.0"></a>
# [0.6.0](https://github.com/Igmat/baset/compare/v0.5.1...v0.6.0) (2018-02-08)
### Bug Fixes
* **solution:** correct dependecies versions ([f272f03](https://github.com/Igmat/baset/commit/f272f03))
<a name="0.5.1"></a>

@@ -8,0 +19,0 @@ ## [0.5.1](https://github.com/Igmat/baset/compare/v0.5.0...v0.5.1) (2018-01-29)

7

dist/commands/accept.js

@@ -10,4 +10,7 @@ "use strict";

};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
}
const baset_core_1 = require("baset-core");
const glob = require("glob-promise");
const glob_promise_1 = __importDefault(require("glob-promise"));
const acceptCommand = {

@@ -26,3 +29,3 @@ command: ['accept'],

handler: (argv) => __awaiter(this, void 0, void 0, function* () {
const baselines = yield glob(argv.bases + '.tmp');
const baselines = yield glob_promise_1.default(argv.bases + '.tmp');
const tester = new baset_core_1.Tester(argv.plugins, argv.options);

@@ -29,0 +32,0 @@ const results = yield Promise.all(tester.accept(baselines));

@@ -10,4 +10,7 @@ "use strict";

};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
}
const baset_core_1 = require("baset-core");
const glob = require("glob-promise");
const glob_promise_1 = __importDefault(require("glob-promise"));
const errMessage = (err) => `Temp baseline for ${err.name} is written.

@@ -40,3 +43,3 @@ Expected for ${err.name}:

let isSucceeded = true;
const [specs, baselines] = yield Promise.all([glob(argv.specs), glob(argv.bases)]);
const [specs, baselines] = yield Promise.all([glob_promise_1.default(argv.specs), glob_promise_1.default(argv.bases)]);
const tester = new baset_core_1.Tester(argv.plugins, argv.options);

@@ -43,0 +46,0 @@ try {

"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
}
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
}
Object.defineProperty(exports, "__esModule", { value: true });
const find_up_1 = require("find-up");
const fs = require("fs");
const yargs = require("yargs");
const fs_1 = __importDefault(require("fs"));
const yargs = __importStar(require("yargs"));
const options_1 = require("./options");
const configPath = find_up_1.sync(['.basetrc', '.basetrc.json']);
const config = configPath ? JSON.parse(fs.readFileSync(configPath, { encoding: 'utf8' })) : {};
const config = configPath ? JSON.parse(fs_1.default.readFileSync(configPath, { encoding: 'utf8' })) : {};
exports.cli = yargs

@@ -10,0 +20,0 @@ .usage('$0 <command>')

/// <reference types="yargs" />
import { IDictionary } from 'baset-core';
import { utils } from 'baset-core';
import { Options } from 'yargs';
export interface IGlobalArgs {
plugins: IDictionary<string[]>;
options: IDictionary<any>;
plugins: utils.IDictionary<string[]>;
options: utils.IDictionary<any>;
}
export declare const options: IDictionary<Options>;
export declare const options: utils.IDictionary<Options>;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function resolveBasetPlugins(name) {
return name.startsWith('baset-plugin')
return name.startsWith('baset')
? `./node_modules/${name}`

@@ -12,3 +12,3 @@ : name;

describe: 'Plugins used for your tests',
default: { '.spec.js$': 'baset-plugin-export' },
default: { '.spec.js$': 'baset-baseliner-json' },
coerce: (plugins) => (plugins instanceof Array)

@@ -15,0 +15,0 @@ // if plugins is Array, then we get this arg from cli

{
"name": "baset-cli",
"version": "0.5.1",
"version": "0.6.0",
"description": "CLI for BaseT project.",

@@ -13,2 +13,8 @@ "keywords": [

],
"author": "Ihor Chulinda <ichulinda@gmail.com>",
"license": "MIT",
"repository": {
"type": "git",
"url": "git@github.com:Igmat/baset.git"
},
"main": "dist/index.js",

@@ -25,4 +31,2 @@ "types": "dist/index.d.ts",

},
"author": "",
"license": "MIT",
"devDependencies": {

@@ -33,9 +37,9 @@ "@types/find-up": "^2.1.1",

"@types/yargs": "^10.0.1",
"baset": "^0.5.1",
"baset": "^0.6.0",
"doctoc": "^1.3.0",
"tslint": "^5.9.1",
"typescript": "^2.6.2"
"typescript": "^2.7.1"
},
"dependencies": {
"baset-core": "^0.5.1",
"baset-core": "^0.6.0",
"find-up": "^2.1.0",

@@ -42,0 +46,0 @@ "glob": "^7.1.2",

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

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