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

@oclif/test

Package Overview
Dependencies
Maintainers
8
Versions
157
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@oclif/test - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

9

CHANGELOG.md

@@ -5,3 +5,3 @@ # Changelog

## [2.0.0](https://github.com/oclif/test/compare/v1.2.8...v2.0.0) (2021-08-06)
### [2.0.1](https://github.com/oclif/test/compare/v1.2.8...v2.0.1) (2021-10-04)

@@ -11,2 +11,3 @@

* require node 12+ (#189)
* update to oclif/core

@@ -18,2 +19,3 @@

* release-process ([1d414db](https://github.com/oclif/test/commit/1d414db733e41c630690420e7c8da1610855a4a6))
* trigger release ([65bd420](https://github.com/oclif/test/commit/65bd420c7e575e27fab56751f1b4f2bc4d6ecc75))

@@ -23,2 +25,7 @@

### build
* require node 12+ ([#189](https://github.com/oclif/test/issues/189)) ([04ac33e](https://github.com/oclif/test/commit/04ac33e34bf5acf9e5cde3f4d8780861d0504b3b))
## [1.2.8](https://github.com/oclif/test/compare/v1.2.7...v1.2.8) (2020-12-02)

@@ -25,0 +32,0 @@

3

lib/command.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.command = void 0;
const load_config_1 = require("./load-config");

@@ -14,3 +15,3 @@ const castArray = (input) => {

if (!ctx.config || opts.reset)
ctx.config = await load_config_1.loadConfig(opts).run({});
ctx.config = await (0, load_config_1.loadConfig)(opts).run({});
args = castArray(args);

@@ -17,0 +18,0 @@ const [id, ...extra] = args;

@@ -13,3 +13,3 @@ "use strict";

run() {
chai_1.expect(process.exitCode).to.equal(code);
(0, chai_1.expect)(process.exitCode).to.equal(code);
throw new Error(`Expected to exit with code ${code} but it ran without exiting`);

@@ -20,4 +20,4 @@ },

throw ctx.error;
chai_1.expect(ctx.error.oclif.exit).to.equal(code);
(0, chai_1.expect)(ctx.error.oclif.exit).to.equal(code);
},
});

@@ -22,3 +22,3 @@ "use strict";

if (!ctx.config)
ctx.config = await load_config_1.loadConfig(options).run({});
ctx.config = await (0, load_config_1.loadConfig)(options).run({});
// eslint-disable-next-line require-atomic-updates

@@ -25,0 +25,0 @@ ctx.expectation = ctx.expectation || `runs ${event} hook`;

@@ -87,3 +87,3 @@ import { Config } from '@oclif/core';

};
args: [(loadConfig.Options | undefined)?];
args: [opts?: loadConfig.Options | undefined];
};

@@ -96,3 +96,3 @@ } & {

};
args: [string | string[], (loadConfig.Options | undefined)?];
args: [args: string | string[], opts?: loadConfig.Options | undefined];
};

@@ -104,3 +104,3 @@ } & {

};
args: [(number | undefined)?];
args: [code?: number | undefined];
};

@@ -113,3 +113,3 @@ } & {

};
args: [string, (object | undefined)?, (loadConfig.Options | undefined)?];
args: [event: string, hookOpts?: object | undefined, options?: loadConfig.Options | undefined];
};

@@ -116,0 +116,0 @@ }>;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.command = exports.Config = exports.FancyTypes = exports.expect = exports.test = void 0;
const core_1 = require("@oclif/core");
exports.Config = core_1.Config;
Object.defineProperty(exports, "Config", { enumerable: true, get: function () { return core_1.Config; } });
const fancy_test_1 = require("fancy-test");
exports.expect = fancy_test_1.expect;
exports.FancyTypes = fancy_test_1.FancyTypes;
Object.defineProperty(exports, "expect", { enumerable: true, get: function () { return fancy_test_1.expect; } });
Object.defineProperty(exports, "FancyTypes", { enumerable: true, get: function () { return fancy_test_1.FancyTypes; } });
const command_1 = require("./command");
exports.command = command_1.command;
Object.defineProperty(exports, "command", { enumerable: true, get: function () { return command_1.command; } });
const exit_1 = require("./exit");

@@ -11,0 +12,0 @@ const hook_1 = require("./hook");

@@ -1,2 +0,2 @@

import { Interfaces } from '@oclif/core';
import { Interfaces, Config } from '@oclif/core';
/**

@@ -3,0 +3,0 @@ * loads CLI plugin/multi config

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.loadConfig = void 0;
const core_1 = require("@oclif/core");

@@ -4,0 +5,0 @@ /**

{
"name": "@oclif/test",
"description": "test helpers for oclif components",
"version": "2.0.0",
"version": "2.0.1",
"author": "Jeff Dickey @jdxcode",

@@ -24,6 +24,6 @@ "bugs": "https://github.com/oclif/test/issues",

"ts-node": "^9.0.0",
"typescript": "3.8.3"
"typescript": "4.4.3"
},
"engines": {
"node": ">=8.0.0"
"node": ">=12.0.0"
},

@@ -30,0 +30,0 @@ "files": [

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