Socket
Socket
Sign inDemoInstall

@covector/command

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@covector/command - npm Package Compare versions

Comparing version 0.6.0 to 0.6.1

6

CHANGELOG.md
# Changelog
## \[0.6.1]
### Dependencies
- [`7b6201c`](https://www.github.com/jbolda/covector/commit/7b6201c2e7e0d9120610a2a882c0b4523f4ab6dc)([#264](https://www.github.com/jbolda/covector/pull/264)) Bump Typescript to v4.9, and deeply update types in the lower level functions to start.
## \[0.6.0]

@@ -4,0 +10,0 @@

14

dist/index.js

@@ -14,15 +14,15 @@ "use strict";

const initialStdout = pkgCommandsRan &&
//@ts-ignore
//@ts-expect-error
pkgCommandsRan[pkg.pkg] &&
//@ts-ignore
//@ts-expect-error
pkgCommandsRan[pkg.pkg][`${commandPrefix}command`] &&
//@ts-ignore
//@ts-expect-error
typeof pkgCommandsRan[pkg.pkg][`${commandPrefix}command`] === "string"
? //@ts-ignore
? //@ts-expect-error
pkgCommandsRan[pkg.pkg][`${commandPrefix}command`]
: false;
//@ts-ignore template literals issues
//@ts-expect-error template literals issues
if (!pkg[`${commandPrefix}command`])
continue;
//@ts-ignore template literals issues
//@ts-expect-error template literals issues
const c = pkg[`${commandPrefix}command`];

@@ -104,3 +104,3 @@ const pubCommands = typeof c === "string" || typeof c === "function" || !Array.isArray(c)

for (let pkg of commands) {
//@ts-ignore template literals issues
//@ts-expect-error template literals issues
const getPublishedVersion = pkg[`getPublishedVersion${subPublishCommand}`];

@@ -107,0 +107,0 @@ if (!!getPublishedVersion) {

{
"name": "@covector/command",
"version": "0.6.0",
"version": "0.6.1",
"license": "Apache-2.0",

@@ -25,4 +25,4 @@ "homepage": "https://github.com/jbolda/covector#readme",

"@covector/types": "^0.0.0",
"tslib": "^2.4.0",
"typescript": "^4.6.3"
"tslib": "^2.5.0",
"typescript": "^4.9.5"
},

@@ -29,0 +29,0 @@ "volta": {

@@ -33,14 +33,14 @@ import { spawn, timeout, Operation, MainError } from "effection";

pkgCommandsRan &&
//@ts-ignore
//@ts-expect-error
pkgCommandsRan[pkg.pkg] &&
//@ts-ignore
//@ts-expect-error
pkgCommandsRan[pkg.pkg][`${commandPrefix}command`] &&
//@ts-ignore
//@ts-expect-error
typeof pkgCommandsRan[pkg.pkg][`${commandPrefix}command`] === "string"
? //@ts-ignore
? //@ts-expect-error
pkgCommandsRan[pkg.pkg][`${commandPrefix}command`]
: false;
//@ts-ignore template literals issues
//@ts-expect-error template literals issues
if (!pkg[`${commandPrefix}command`]) continue;
//@ts-ignore template literals issues
//@ts-expect-error template literals issues
const c: string | Function | [] = pkg[`${commandPrefix}command`];

@@ -145,3 +145,3 @@ const pubCommands: (NormalizedCommand | string | Function)[] =

for (let pkg of commands) {
//@ts-ignore template literals issues
//@ts-expect-error template literals issues
const getPublishedVersion = pkg[`getPublishedVersion${subPublishCommand}`];

@@ -148,0 +148,0 @@ if (!!getPublishedVersion) {

@@ -7,2 +7,16 @@ import { it } from "@effection/jest";

const fillWithDefaults = ({ version }: { version: string }) => {
const [versionMajor, versionMinor, versionPatch] = version
.split(".")
.map((v) => parseInt(v));
return {
version,
versionMajor,
versionMinor,
versionPatch,
pkg: { name: "none" },
deps: {},
};
};
describe("attemptCommand", () => {

@@ -18,3 +32,2 @@ let restoreConsole: RestoreConsole;

it("invokes a function", function* () {
//@ts-ignore
yield attemptCommands({

@@ -24,4 +37,4 @@ commands: [

name: "pkg-nickname",
pkgFile: { version: "0.5.6", deps: {} },
//@ts-ignore
pkgFile: fillWithDefaults({ version: "0.5.6" }),
//@ts-expect-error
command: async () => console.log("boop"),

@@ -32,3 +45,3 @@ },

//@ts-ignore
//@ts-expect-error
expect(console.log.mock.calls).toEqual([["boop"]]);

@@ -56,3 +69,3 @@ });

//@ts-ignore
//@ts-expect-error
expect(console.log.mock.calls).toEqual([

@@ -71,4 +84,4 @@ ["boop"],

pkg: "pkg-nickname",
pkgFile: { version: "0.5.6", deps: {} },
//@ts-ignore
pkgFile: fillWithDefaults({ version: "0.5.6" }),
//@ts-expect-error
command: async (pkg: any) =>

@@ -83,3 +96,3 @@ console.log(`boop ${pkg.pkg}@${pkg.pkgFile.version}`),

//@ts-ignore
//@ts-expect-error
expect(console.log.mock.calls).toEqual([["boop pkg-nickname@0.5.6"]]);

@@ -93,5 +106,4 @@ });

pkg: "pkg-nickname",
pkgFile: { version: "0.5.6", deps: {} },
pkgFile: fillWithDefaults({ version: "0.5.6" }),
manager: "none",
//@ts-ignore
command: [

@@ -114,3 +126,3 @@ async (pkg: any) =>

//@ts-ignore
//@ts-expect-error
expect(console.log.mock.calls).toEqual([

@@ -117,0 +129,0 @@ ["boop pkg-nickname@0.5.6"],

@@ -36,3 +36,3 @@ import { it, captureError } from "@effection/jest";

expect(out).toBe("this thing");
});
}, 6000); // increase timeout to 60s, windows seems to take forever

@@ -148,5 +148,5 @@ it("defines bash as shell", function* () {

);
});
}, 6000); // increase timeout to 60s, windows seems to take forever
});
}
});
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