Socket
Socket
Sign inDemoInstall

wsrun

Package Overview
Dependencies
Maintainers
8
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wsrun - npm Package Compare versions

Comparing version 5.2.1 to 5.2.2

3

build/cmd-process.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CmdProcess = void 0;
const child_process_1 = require("child_process");

@@ -113,3 +114,3 @@ const Bromise = require("bluebird");

(process.versions.node < '8.0.0' ? process.cwd : process.cwd()),
env: Object.assign(process.env, process.stdout.isTTY ? { FORCE_COLOR: '1' } : {}),
env: Object.assign(process.env, process.stdout.isTTY ? { FORCE_COLOR: process.env.FORCE_COLOR || '1' } : {}),
stdio: this.opts.collectLogs || this.opts.prefixer != null || this.opts.doneCriteria

@@ -116,0 +117,0 @@ ? 'pipe'

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DefaultConsole = exports.SerializedConsole = void 0;
const utils_1 = require("./utils");

@@ -4,0 +5,0 @@ class SerializedConsoleImpl {

"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
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); }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());

@@ -35,3 +36,3 @@ });

});
it('should output the second console when the first is done', () => __awaiter(this, void 0, void 0, function* () {
it('should output the second console when the first is done', () => __awaiter(void 0, void 0, void 0, function* () {
let c1 = c.create();

@@ -49,3 +50,3 @@ let c2 = c.create();

}));
it('should output from all consoles when they are done in the wrong order', () => __awaiter(this, void 0, void 0, function* () {
it('should output from all consoles when they are done in the wrong order', () => __awaiter(void 0, void 0, void 0, function* () {
let c1 = c.create();

@@ -69,3 +70,3 @@ let c2 = c.create();

}));
it('should log from console created after the first one is done', () => __awaiter(this, void 0, void 0, function* () {
it('should log from console created after the first one is done', () => __awaiter(void 0, void 0, void 0, function* () {
let c1 = c.create();

@@ -72,0 +73,0 @@ c1.log('hello 1');

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ProcResolution = exports.ResultSpecialValues = void 0;
var ResultSpecialValues;

@@ -4,0 +5,0 @@ (function (ResultSpecialValues) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.filterChangedPackages = void 0;
const path = require("path");

@@ -12,3 +13,3 @@ /**

const pkgPath = pkgPaths[pkg];
const p = path.join(workspacePath, pkgPath);
const p = `${path.join(workspacePath, pkgPath)}${path.sep}`;
return files.some(f => f.startsWith(p));

@@ -15,0 +16,0 @@ });

"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
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); }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());

@@ -13,7 +14,10 @@ });

describe('filterChangedPackages', () => {
it('should filter only the right package', () => __awaiter(this, void 0, void 0, function* () {
const res = filter_changed_packages_1.filterChangedPackages(['packages/a/e.ts', 'packages/c/e.ts'], { a: 'a', b: 'b' }, 'packages');
expect(res).toEqual(['a']);
it('should filter only the right package', () => __awaiter(void 0, void 0, void 0, function* () {
const res = filter_changed_packages_1.filterChangedPackages(['packages/my-package-2/e.ts', 'packages/not-a-part-of-the-workspace/e.ts'], {
a: 'my-package',
b: 'my-package-2'
}, 'packages');
expect(res).toEqual(['b']);
}));
it('should filter out all packages if no package match is found', () => __awaiter(this, void 0, void 0, function* () {
it('should filter out all packages if no package match is found', () => __awaiter(void 0, void 0, void 0, function* () {
const res = filter_changed_packages_1.filterChangedPackages(['packages2/c/example.ts'], { a: 'a', b: 'b' }, 'packages2');

@@ -20,0 +24,0 @@ expect(res).toEqual([]);

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.fixPaths = void 0;
const path = require("path");

@@ -4,0 +5,0 @@ function fixPaths(workspacePath, packagePath, logLine) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.expandRevDeps = void 0;
/**

@@ -4,0 +5,0 @@ * For given list of packages, expand that list with all dependents on them

"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
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); }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());

@@ -13,11 +14,11 @@ });

describe('expandRevDeps', () => {
it('should return empty array when no packages are supplied', () => __awaiter(this, void 0, void 0, function* () {
it('should return empty array when no packages are supplied', () => __awaiter(void 0, void 0, void 0, function* () {
const res = rev_deps_1.expandRevDeps([], [{ name: 'a' }, { name: 'b' }]);
expect(res).toEqual([]);
}));
it('should return the same packages if no matches are found', () => __awaiter(this, void 0, void 0, function* () {
it('should return the same packages if no matches are found', () => __awaiter(void 0, void 0, void 0, function* () {
const res = rev_deps_1.expandRevDeps(['c'], [{ name: 'a' }, { name: 'b' }]);
expect(res).toEqual(['c']);
}));
it('should return the original list plus the proper reverse dependencies', () => __awaiter(this, void 0, void 0, function* () {
it('should return the original list plus the proper reverse dependencies', () => __awaiter(void 0, void 0, void 0, function* () {
const res = rev_deps_1.expandRevDeps(['c'], [

@@ -24,0 +25,0 @@ {

"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
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); }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());

@@ -11,2 +12,3 @@ });

Object.defineProperty(exports, "__esModule", { value: true });
exports.RunGraph = void 0;
const Bromise = require("bluebird");

@@ -13,0 +15,0 @@ const chalk_1 = require("chalk");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.defer = void 0;
const Bromise = require("bluebird");

@@ -4,0 +5,0 @@ function defer() {

@@ -6,2 +6,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.listPkgs = void 0;
const fs = require("fs");

@@ -8,0 +9,0 @@ const path = require("path");

{
"name": "wsrun",
"version": "5.2.1",
"version": "5.2.2",
"description": "executes commands on packages in parallel, but is aware of the dependencies between them",
"main": "./build/index.js",
"repository": "hfour/wsrun",
"author": "hfour",

@@ -7,0 +8,0 @@ "license": "MIT",

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

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

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