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

@adpt/utils

Package Overview
Dependencies
Maintainers
2
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@adpt/utils - npm Package Compare versions

Comparing version 0.4.0-next.9 to 0.4.0-next.10

3

dist/src/ci_report.js

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.ciCreateLogger = exports.ciMaybeCreateLogger = exports.ciCreateLogfileStream = exports.ciCreateLogfileName = exports.ciReportEnabled = exports.buildLogEnabled = exports.buildLogDir = exports.buildDir = void 0;
const tslib_1 = require("tslib");

@@ -98,3 +99,3 @@ const console_1 = require("console");

};
const opts = Object.assign({}, defaultCiLoggerOptions, options);
const opts = Object.assign(Object.assign({}, defaultCiLoggerOptions), options);
this.prefix = prefix;

@@ -101,0 +102,0 @@ if (!exports.buildLogEnabled) {

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

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

@@ -20,0 +21,0 @@ * A function to create a tuple, which simultaneously creates both the

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

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

@@ -20,0 +21,0 @@ function sha256hex(data) {

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.diffObjects = void 0;
const deep_diff_1 = require("deep-diff");

@@ -38,3 +39,3 @@ const util_1 = require("util");

if (c.kind === "A") {
return formatChange(Object.assign({}, c.item, { path: [...path, c.index] }));
return formatChange(Object.assign(Object.assign({}, c.item), { path: [...path, c.index] }));
}

@@ -41,0 +42,0 @@ let sPath = path.map((i) => isIndex(i) ? `[${i}]` : `.${i}`).join("");

@@ -10,3 +10,3 @@ export interface CanDispatch<Ty extends string = string> {

readonly name?: string | undefined;
protected handlers: Map<T["type"], Handler<T["type"], T, Ret>>;
protected handlers: Map<TypesFor<T>, Handler<TypesFor<T>, T, Ret>>;
constructor(name?: string | undefined);

@@ -13,0 +13,0 @@ add<Type extends TypesFor<T>>(type: Type, handler: Handler<Type, Extract<T, {

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.Dispatcher = void 0;
class Dispatcher {

@@ -20,0 +21,0 @@ constructor(name) {

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.ensureError = exports.InvalidErrorObject = void 0;
const lodash_1 = require("lodash");

@@ -20,0 +21,0 @@ const ts_custom_error_1 = require("ts-custom-error");

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

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

@@ -20,0 +21,0 @@ * Returns true if the specified environment variable is set to anything

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.onExit = void 0;
const process_global_1 = require("./process_global");

@@ -20,0 +21,0 @@ const exitGlobals = process_global_1.processGlobal("exitGlobals", () => {

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.grep = void 0;
function grep(s, pat) {

@@ -20,0 +21,0 @@ if (!pat)

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.inDebugger = void 0;
function inDebugger() {

@@ -20,0 +21,0 @@ return process.execArgv.find((arg) => /^(--debug|--inspect)/.test(arg)) !== undefined;

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.yarn = exports.removeUndef = exports.npm = exports.parseTaskInfo = exports.createTaskObserver = exports.isEqualUnorderedArrays = exports.sortArraysInObject = exports.sortArray = exports.createPackageRegistry = void 0;
const tslib_1 = require("tslib");

@@ -42,3 +43,3 @@ tslib_1.__exportStar(require("./ci_report"), exports);

var package_registry_1 = require("./package_registry");
exports.createPackageRegistry = package_registry_1.createPackageRegistry;
Object.defineProperty(exports, "createPackageRegistry", { enumerable: true, get: function () { return package_registry_1.createPackageRegistry; } });
tslib_1.__exportStar(require("./paths"), exports);

@@ -59,13 +60,13 @@ tslib_1.__exportStar(require("./process_global"), exports);

const removeUndef_1 = require("./removeUndef");
exports.removeUndef = removeUndef_1.removeUndef;
Object.defineProperty(exports, "removeUndef", { enumerable: true, get: function () { return removeUndef_1.removeUndef; } });
const yarn = tslib_1.__importStar(require("./yarn"));
exports.yarn = yarn;
var sort_arrays_1 = require("./sort_arrays");
exports.sortArray = sort_arrays_1.sortArray;
exports.sortArraysInObject = sort_arrays_1.sortArraysInObject;
Object.defineProperty(exports, "sortArray", { enumerable: true, get: function () { return sort_arrays_1.sortArray; } });
Object.defineProperty(exports, "sortArraysInObject", { enumerable: true, get: function () { return sort_arrays_1.sortArraysInObject; } });
var is_equal_unordered_arrays_1 = require("./is_equal_unordered_arrays");
exports.isEqualUnorderedArrays = is_equal_unordered_arrays_1.isEqualUnorderedArrays;
Object.defineProperty(exports, "isEqualUnorderedArrays", { enumerable: true, get: function () { return is_equal_unordered_arrays_1.isEqualUnorderedArrays; } });
var task_observer_1 = require("./task_observer");
exports.createTaskObserver = task_observer_1.createTaskObserver;
exports.parseTaskInfo = task_observer_1.parseTaskInfo;
Object.defineProperty(exports, "createTaskObserver", { enumerable: true, get: function () { return task_observer_1.createTaskObserver; } });
Object.defineProperty(exports, "parseTaskInfo", { enumerable: true, get: function () { return task_observer_1.parseTaskInfo; } });
//# sourceMappingURL=index.js.map

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.installType = exports.InstallType = void 0;
const tslib_1 = require("tslib");

@@ -20,0 +21,0 @@ const find_up_1 = tslib_1.__importDefault(require("find-up"));

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.InternalError = void 0;
const ts_custom_error_1 = require("ts-custom-error");

@@ -20,0 +21,0 @@ class InternalError extends ts_custom_error_1.CustomError {

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

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

@@ -20,0 +21,0 @@ const ld = tslib_1.__importStar(require("lodash"));

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.tagConstructor = exports.tagInstance = exports.isInstance = void 0;
const is_object_1 = require("./is_object");

@@ -20,0 +21,0 @@ const preTag = "isInstance:";

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

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

@@ -20,0 +21,0 @@ /**

@@ -89,4 +89,4 @@ import jju from "jju";

constructor(filename: string, options?: Json5WriterOptions);
readonly text: string | undefined;
readonly value: JsonValueReadonly | undefined;
get text(): string | undefined;
get value(): JsonValueReadonly | undefined;
read(options?: Json5WriterReadOptions): Promise<string | number | boolean | Readonly<{

@@ -93,0 +93,0 @@ [x: string]: any;

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.createJson5Writer = exports.Json5Writer = exports.parseJson5 = exports.readJson5 = exports.stringifyJson5 = void 0;
const tslib_1 = require("tslib");

@@ -25,3 +26,3 @@ const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));

var json5_with_undefined_2 = require("json5-with-undefined");
exports.stringifyJson5 = json5_with_undefined_2.stringify;
Object.defineProperty(exports, "stringifyJson5", { enumerable: true, get: function () { return json5_with_undefined_2.stringify; } });
/**

@@ -55,3 +56,3 @@ * Read a file from disk and parse as JSON5.

options;
const { prettyError, reviver, throws } = Object.assign({}, defaultParseOptions, inOpts);
const { prettyError, reviver, throws } = Object.assign(Object.assign({}, defaultParseOptions), inOpts);
try {

@@ -110,3 +111,3 @@ return json5_with_undefined_1.default.parse(text, reviver);

this.filename = filename;
this._options = Object.assign({}, defaultJson5WriterOptions, options);
this._options = Object.assign(Object.assign({}, defaultJson5WriterOptions), options);
}

@@ -120,3 +121,3 @@ get text() {

async read(options = {}) {
const opts = Object.assign({}, defaultReadOptions, options);
const opts = Object.assign(Object.assign({}, defaultReadOptions), options);
try {

@@ -123,0 +124,0 @@ this._text = (await fs_extra_1.default.readFile(this.filename, opts)).toString();

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.mapMap = void 0;
function mapMap(map, f) {

@@ -20,0 +21,0 @@ const ret = [];

@@ -93,3 +93,2 @@ /// <reference types="node" />

export declare const TaskEvent: {
[x: number]: string;
Created: TaskState.Created;

@@ -96,0 +95,0 @@ Started: TaskState.Started;

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.isMessageClient = exports.parseTaskContent = exports.badTaskEvent = exports.TaskEvent = exports.TaskStatus = exports.TaskState = exports.LocalStore = exports.isMessageLogger = exports.validateMessage = exports.isMessage = exports.badMessageType = exports.MessageType = void 0;
const type_check_1 = require("../type_check");

@@ -101,3 +102,3 @@ var MessageType;

// tslint:disable-next-line:variable-name
exports.TaskEvent = Object.assign({}, TaskStatus, TaskState);
exports.TaskEvent = Object.assign(Object.assign({}, TaskStatus), TaskState);
function badTaskEvent(event) {

@@ -104,0 +105,0 @@ throw new Error(`Invalid TaskEvent ${event}`);

@@ -16,6 +16,6 @@ /// <reference types="node" />

fromStream(input: stream.Readable): void;
readonly info: MessageEmitter;
readonly warning: MessageEmitter;
readonly error: MessageEmitter;
readonly task: TaskEmitter;
get info(): MessageEmitter;
get warning(): MessageEmitter;
get error(): MessageEmitter;
get task(): TaskEmitter;
private inputMessage;

@@ -22,0 +22,0 @@ private emitter;

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

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

@@ -20,0 +21,0 @@ const eventemitter2_1 = tslib_1.__importDefault(require("eventemitter2"));

@@ -19,4 +19,4 @@ /// <reference types="node" />

constructor(id: string, options?: MessageStreamServerOptions);
readonly messages: readonly Message[];
readonly summary: import("./common").MessageSummary;
get messages(): readonly Message[];
get summary(): import("./common").MessageSummary;
end: () => void;

@@ -23,0 +23,0 @@ info: Logger;

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

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

@@ -20,0 +21,0 @@ const util_1 = require("util");

@@ -20,4 +20,4 @@ /// <reference types="node" />

constructor(id: string, options?: MessageStreamerOptions);
readonly messages: readonly Message[];
readonly summary: import("./common").MessageSummary;
get messages(): readonly Message[];
get summary(): import("./common").MessageSummary;
info: Logger;

@@ -24,0 +24,0 @@ warning: Logger;

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

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

@@ -20,0 +21,0 @@ const common_1 = require("./common");

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.logToStreams = exports.getWarnings = exports.getErrors = exports.messageToString = exports.messagesToString = void 0;
const common_1 = require("./common");

@@ -32,3 +33,3 @@ const defaultOptions = {

function messageToString(msg, options = {}) {
const opts = Object.assign({}, defaultOptions, options);
const opts = Object.assign(Object.assign({}, defaultOptions), options);
if (!(opts.from || opts.timestamp || opts.type))

@@ -35,0 +36,0 @@ return msg.content;

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.withTmpDir = exports.mkdtmp = void 0;
const tslib_1 = require("tslib");

@@ -48,3 +49,3 @@ const fs = tslib_1.__importStar(require("fs-extra"));

async function withTmpDir(f, options = {}) {
const { basedir, prefix } = Object.assign({}, withTmpDirDefaults, options);
const { basedir, prefix } = Object.assign(Object.assign({}, withTmpDirDefaults), options);
const tmpDirP = mkdtmp(prefix, basedir);

@@ -51,0 +52,0 @@ try {

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.isMultiError = exports.MultiError = void 0;
const ts_custom_error_1 = require("ts-custom-error");

@@ -20,0 +21,0 @@ const is_instance_1 = require("./is_instance");

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.notNull = void 0;
function notNull(x) {

@@ -20,0 +21,0 @@ return x != null;

@@ -18,6 +18,7 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.ci = void 0;
const common_1 = require("./common");
const defaultOptions = {};
function ci(options) {
const finalOpts = Object.assign({}, defaultOptions, options);
const finalOpts = Object.assign(Object.assign({}, defaultOptions), options);
return common_1.run("ci", finalOpts);

@@ -24,0 +25,0 @@ }

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.run = exports.commonDefaults = void 0;
const tslib_1 = require("tslib");

@@ -29,3 +30,3 @@ const decamelize_1 = tslib_1.__importDefault(require("decamelize"));

// tslint:disable-next-line:prefer-const
let _a = Object.assign({}, exports.commonDefaults, options), { cwd = null, pipeOutput } = _a, finalOpts = tslib_1.__rest(_a, ["cwd", "pipeOutput"]);
let _a = Object.assign(Object.assign({}, exports.commonDefaults), options), { cwd = null, pipeOutput } = _a, finalOpts = tslib_1.__rest(_a, ["cwd", "pipeOutput"]);
cwd = cwd || process.cwd();

@@ -32,0 +33,0 @@ let finalArgs = [action];

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

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

@@ -25,3 +26,3 @@ const common_1 = require("./common");

function install(options) {
const _a = Object.assign({}, defaultOptions, options), { packages } = _a, finalOpts = tslib_1.__rest(_a, ["packages"]);
const _a = Object.assign(Object.assign({}, defaultOptions), options), { packages } = _a, finalOpts = tslib_1.__rest(_a, ["packages"]);
return common_1.run("install", finalOpts, packages);

@@ -28,0 +29,0 @@ }

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.lsParsed = exports.ls = void 0;
const tslib_1 = require("tslib");

@@ -25,3 +26,3 @@ const common_1 = require("./common");

function ls(options) {
const _a = Object.assign({}, defaultOptions, options), { packages } = _a, finalOpts = tslib_1.__rest(_a, ["packages"]);
const _a = Object.assign(Object.assign({}, defaultOptions), options), { packages } = _a, finalOpts = tslib_1.__rest(_a, ["packages"]);
return common_1.run("ls", finalOpts, packages);

@@ -34,3 +35,3 @@ }

async function lsParsed(options) {
const _a = Object.assign({ json: true }, defaultJsonOptions, options), { ignoreError } = _a, rest = tslib_1.__rest(_a, ["ignoreError"]);
const _a = Object.assign(Object.assign({ json: true }, defaultJsonOptions), options), { ignoreError } = _a, rest = tslib_1.__rest(_a, ["ignoreError"]);
try {

@@ -37,0 +38,0 @@ const out = await ls(rest);

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

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

@@ -20,0 +21,0 @@ const fs = tslib_1.__importStar(require("fs-extra"));

@@ -18,6 +18,7 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.publish = void 0;
const common_1 = require("./common");
const defaultOptions = {};
function publish(spec, options) {
const finalOpts = Object.assign({}, defaultOptions, options);
const finalOpts = Object.assign(Object.assign({}, defaultOptions), options);
return common_1.run("publish", finalOpts, [spec]);

@@ -24,0 +25,0 @@ }

@@ -7,3 +7,3 @@ import { ConstructorValues, ForEachCallback } from "@usys/collections-ts/common";

constructor(values?: ConstructorValues<T>, defaults?: Partial<T> | undefined);
readonly length: number;
get length(): number;
add(value: T): boolean;

@@ -10,0 +10,0 @@ has(value: T): boolean;

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

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

@@ -59,3 +60,3 @@ const Set = require("@usys/collections-ts/set");

// @ts-ignore
return this.defaults ? Object.assign({}, this.defaults, value) : value;
return this.defaults ? Object.assign(Object.assign({}, this.defaults), value) : value;
}

@@ -62,0 +63,0 @@ [Symbol.iterator]() {

@@ -21,3 +21,3 @@ export interface PackageRegistry {

constructor(projectDir: string);
findPath: (pkgName: string, pkgVersion: string) => Promise<string | undefined>;
findPath: (pkgName: string, pkgVersion: string) => Promise<PackagePath | undefined>;
scanProject(): Promise<void>;

@@ -24,0 +24,0 @@ scanPackages(): Promise<Map<string, string[]>>;

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.LazyPackageRegistry = exports.createPackageRegistry = void 0;
const tslib_1 = require("tslib");

@@ -20,0 +21,0 @@ const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));

@@ -30,10 +30,10 @@ /**

export declare const repoDirs: {
"core": string;
"cli": string;
"cloud": string;
core: string;
cli: string;
cloud: string;
"dom-parser": string;
"testutils": string;
"utils": string;
testutils: string;
utils: string;
};
export declare function normalizeWithDrive(p: string, cwd?: string): string;
//# sourceMappingURL=paths.d.ts.map

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.normalizeWithDrive = exports.repoDirs = exports.repoRootDir = exports.utilsDirs = exports.findPackageDirs = exports.sourceDir = void 0;
const tslib_1 = require("tslib");

@@ -20,0 +21,0 @@ const fs = tslib_1.__importStar(require("fs"));

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.processGlobal = void 0;
const $processGlobals = Symbol.for("$processGlobals");

@@ -20,0 +21,0 @@ if (!process[$processGlobals]) {

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.removeUndef = void 0;
function removeUndef(obj) {

@@ -20,0 +21,0 @@ for (const k of Object.keys(obj)) {

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.makeRetryDelay = exports.rand = void 0;
const crypto_1 = require("crypto");

@@ -44,3 +45,3 @@ const exit_1 = require("./exit");

function makeRetryDelay(options = {}) {
const opts = Object.assign({}, defaultRetryDelayOptions, options);
const opts = Object.assign(Object.assign({}, defaultRetryDelayOptions), options);
if (opts.minTimeoutMs < 1) {

@@ -47,0 +48,0 @@ throw new Error(`minTimeoutMs must be at least 1 (min=${opts.minTimeoutMs})`);

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.immediatePromise = exports.sleep = void 0;
async function sleep(timeoutInMs) {

@@ -20,0 +21,0 @@ return new Promise((res) => {

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.sortArray = exports.sortArraysInObject = void 0;
const tslib_1 = require("tslib");

@@ -20,0 +21,0 @@ const json_stable_stringify_1 = tslib_1.__importDefault(require("json-stable-stringify"));

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.TaskObserverStateError = exports.TaskObserverError = exports.createTaskObserver = exports.taskInfoToString = exports.parseTaskInfo = void 0;
const tslib_1 = require("tslib");

@@ -58,3 +59,3 @@ const lodash_1 = tslib_1.__importDefault(require("lodash"));

this.state_ = index_1.TaskState.Created;
const { logger, description, trivial } = Object.assign({}, defaultTaskObserverOptions, { description: name, logger: new index_1.MessageStreamer(name) }, options);
const { logger, description, trivial } = Object.assign(Object.assign(Object.assign({}, defaultTaskObserverOptions), { description: name, logger: new index_1.MessageStreamer(name) }), options);
this.logger = logger;

@@ -84,3 +85,3 @@ this.description_ = description;

if (!this.childGroup_) {
const tgOpts = Object.assign({}, defaultTaskGroupOptions, options);
const tgOpts = Object.assign(Object.assign({}, defaultTaskGroupOptions), options);
this.childGroup_ = new TaskGroupImpl(tgOpts, this.options);

@@ -208,3 +209,3 @@ this.log(index_1.TaskStatus.ChildGroup, JSON.stringify(tgOpts));

add(tasks, options = {}) {
const { createOnly, trivial } = Object.assign({}, defaultTaskAddOptions, options);
const { createOnly, trivial } = Object.assign(Object.assign({}, defaultTaskAddOptions), options);
// Pre-flight checks

@@ -223,3 +224,3 @@ if (createOnly) {

const logger = parentLogger && parentLogger.createChild(name);
const task = new TaskObserverImpl(name, Object.assign({}, this.taskOptions, { logger, description: tasks[name], trivial }));
const task = new TaskObserverImpl(name, Object.assign(Object.assign({}, this.taskOptions), { logger, description: tasks[name], trivial }));
this.tasks_[name] = task;

@@ -226,0 +227,0 @@ }

@@ -18,3 +18,4 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.toArray = void 0;
exports.toArray = (val) => Array.isArray(val) ? val : [val];
//# sourceMappingURL=to_array.js.map

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

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

@@ -98,3 +99,3 @@ const fs_extra_1 = require("fs-extra");

async function downloadTar(dir, response, options) {
const tarOptions = Object.assign({}, (options.tarOptions || {}), { cwd: dir });
const tarOptions = Object.assign(Object.assign({}, (options.tarOptions || {})), { cwd: dir });
const tarStream = tar_1.default.extract(tarOptions || {}, options.fileList);

@@ -101,0 +102,0 @@ await waitForStreams(response.body, tarStream, options);

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

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

@@ -28,3 +29,3 @@ const fs_1 = require("fs");

function createTtyLogger(options = {}) {
const opts = Object.assign({}, defaultOptions, options);
const opts = Object.assign(Object.assign({}, defaultOptions), options);
const tty = fs_1.createWriteStream("/dev/tty");

@@ -31,0 +32,0 @@ let log;

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.hasValidProps = exports.validateProps = exports.ValidationError = void 0;
const lodash_1 = require("lodash");

@@ -20,0 +21,0 @@ const ts_custom_error_1 = require("ts-custom-error");

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

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

@@ -20,0 +21,0 @@ const execa_1 = tslib_1.__importDefault(require("execa"));

@@ -7,3 +7,3 @@ import { CustomError } from "ts-custom-error";

export declare class UserError extends CustomError {
readonly userError: string;
get userError(): string;
}

@@ -10,0 +10,0 @@ export interface IUserError extends Error {

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.formatUserError = exports.isUserError = exports.UserError = void 0;
const lodash_1 = require("lodash");

@@ -20,0 +21,0 @@ const ts_custom_error_1 = require("ts-custom-error");

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.waitForNoThrow = exports.waitFor = void 0;
const sleep_1 = require("./sleep");

@@ -20,0 +21,0 @@ async function waitFor(iterations, pollSec, timeoutMsg, action) {

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

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

@@ -20,0 +21,0 @@ const os_1 = require("os");

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.add = void 0;
const common_1 = require("./common");

@@ -31,3 +32,3 @@ const boolNoArgOptions = [

function add(options = {}) {
const finalOpts = Object.assign({}, defaultOptions, options);
const finalOpts = Object.assign(Object.assign({}, defaultOptions), options);
return common_1.run("add", finalOpts);

@@ -34,0 +35,0 @@ }

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.cacheClean = void 0;
const common_1 = require("./common");

@@ -20,0 +21,0 @@ function cacheClean(packageName, options = {}) {

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.parseJsonMessages = exports.run = exports.commonDefaults = void 0;
const tslib_1 = require("tslib");

@@ -42,3 +43,3 @@ const decamelize_1 = tslib_1.__importDefault(require("decamelize"));

// tslint:disable-next-line:prefer-const
let _a = Object.assign({}, exports.commonDefaults, options), { boolNoArgOptions = [], loglevel, pipeOutput } = _a, opts = tslib_1.__rest(_a, ["boolNoArgOptions", "loglevel", "pipeOutput"]);
let _a = Object.assign(Object.assign({}, exports.commonDefaults), options), { boolNoArgOptions = [], loglevel, pipeOutput } = _a, opts = tslib_1.__rest(_a, ["boolNoArgOptions", "loglevel", "pipeOutput"]);
boolNoArgOptions.push(...noArgOptions);

@@ -45,0 +46,0 @@ const finalOpts = optionsBoolToUndef(opts, boolNoArgOptions);

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.install = void 0;
const common_1 = require("./common");

@@ -27,3 +28,3 @@ const boolNoArgOptions = [

function install(options) {
const finalOpts = Object.assign({}, defaultOptions, options);
const finalOpts = Object.assign(Object.assign({}, defaultOptions), options);
return common_1.run("install", finalOpts);

@@ -30,0 +31,0 @@ }

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.listParsed = exports.list = void 0;
const common_1 = require("./common");

@@ -27,3 +28,3 @@ const boolNoArgOptions = [

function list(options) {
const finalOpts = Object.assign({}, defaultOptions, options);
const finalOpts = Object.assign(Object.assign({}, defaultOptions), options);
return common_1.run("list", finalOpts);

@@ -34,3 +35,3 @@ }

async function listParsed(options) {
const finalOpts = Object.assign({}, defaultJsonOptions, options, { json: true });
const finalOpts = Object.assign(Object.assign(Object.assign({}, defaultJsonOptions), options), { json: true });
const out = await list(finalOpts);

@@ -37,0 +38,0 @@ const objs = common_1.parseJsonMessages(out.stdout, "tree");

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.publish = void 0;
const common_1 = require("./common");

@@ -28,3 +29,3 @@ const boolNoArgOptions = [

function publish(directoryOrTarball, options) {
const finalOpts = Object.assign({}, defaultOptions, options);
const finalOpts = Object.assign(Object.assign({}, defaultOptions), options);
return common_1.run("publish", finalOpts, [directoryOrTarball]);

@@ -31,0 +32,0 @@ }

{
"name": "@adpt/utils",
"version": "0.4.0-next.9",
"version": "0.4.0-next.10",
"description": "AdaptJS Utilities Library",

@@ -32,3 +32,3 @@ "license": "Apache-2.0",

"@types/jju": "1.4.1",
"@types/tar": "4.0.3",
"@types/tar": "4.0.4",
"@unboundedsystems/node-graceful": "3.0.0-unb.2",

@@ -40,5 +40,5 @@ "@usys/collections-ts": "0.0.2",

"eventemitter2": "6.4.3",
"execa": "4.0.3",
"execa": "4.1.0",
"find-up": "5.0.0",
"fs-extra": "8.1.0",
"fs-extra": "9.0.1",
"global-dirs": "2.0.1",

@@ -54,3 +54,3 @@ "jju": "1.4.0",

"ts-custom-error": "3.2.0",
"tslib": "1.14.1",
"tslib": "2.0.3",
"type-ops": "3.0.3",

@@ -60,15 +60,14 @@ "yarn": "1.22.10"

"devDependencies": {
"@types/decamelize": "3.0.2",
"@types/deep-diff": "1.0.0",
"@types/lodash": "4.14.162",
"@types/node": "10.17.42",
"@types/lodash": "4.14.165",
"@types/node": "10.17.47",
"@types/node-fetch": "2.5.7",
"@types/sinon": "9.0.8",
"@types/sinon": "9.0.9",
"@types/stream-buffers": "3.0.3",
"mocha": "8.2.0",
"mocha": "8.2.1",
"mocha-slow-options": "0.0.2",
"mocked-env": "1.3.2",
"nock": "13.0.4",
"nock": "13.0.5",
"should": "13.2.3",
"sinon": "9.2.0",
"sinon": "9.2.1",
"source-map-support": "0.5.19",

@@ -101,3 +100,3 @@ "stdout-stderr": "0.1.13",

},
"gitHead": "c8ab5081952ad2591ffb4d4a76bf38ad62586f9c"
"gitHead": "aa80693a304184db7ce528bc8243366b41ed8546"
}

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

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

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

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

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

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