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.2.0-next.1 to 0.2.0-next.2

dist/src/ci_report.d.ts

5

dist/src/index.d.ts

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

export * from "./ci_report";
export * from "./common_types";

@@ -7,2 +8,3 @@ export * from "./crypto";

export * from "./env";
export * from "./exit";
export * from "./grep";

@@ -21,4 +23,7 @@ export * from "./in_debugger";

export * from "./paths";
export * from "./process_global";
export * from "./retries";
export * from "./sleep";
export * from "./to_array";
export * from "./ttylog";
export * from "./type_check";

@@ -25,0 +30,0 @@ export * from "./user_error";

7

dist/src/index.js
"use strict";
/*
* Copyright 2018-2019 Unbounded Systems, LLC
* Copyright 2018-2020 Unbounded Systems, LLC
*

@@ -19,2 +19,3 @@ * Licensed under the Apache License, Version 2.0 (the "License");

const tslib_1 = require("tslib");
tslib_1.__exportStar(require("./ci_report"), exports);
tslib_1.__exportStar(require("./common_types"), exports);

@@ -26,2 +27,3 @@ tslib_1.__exportStar(require("./crypto"), exports);

tslib_1.__exportStar(require("./env"), exports);
tslib_1.__exportStar(require("./exit"), exports);
tslib_1.__exportStar(require("./grep"), exports);

@@ -41,4 +43,7 @@ tslib_1.__exportStar(require("./in_debugger"), exports);

tslib_1.__exportStar(require("./paths"), exports);
tslib_1.__exportStar(require("./process_global"), exports);
tslib_1.__exportStar(require("./retries"), exports);
tslib_1.__exportStar(require("./sleep"), exports);
tslib_1.__exportStar(require("./to_array"), exports);
tslib_1.__exportStar(require("./ttylog"), exports);
tslib_1.__exportStar(require("./type_check"), exports);

@@ -45,0 +50,0 @@ tslib_1.__exportStar(require("./user_error"), exports);

4

dist/src/mkdtmp.js

@@ -20,5 +20,5 @@ "use strict";

const fs = tslib_1.__importStar(require("fs-extra"));
const node_graceful_1 = tslib_1.__importDefault(require("node-graceful"));
const os = tslib_1.__importStar(require("os"));
const path = tslib_1.__importStar(require("path"));
const exit_1 = require("./exit");
function mkdtmp(prefix, basedir = os.tmpdir()) {

@@ -30,3 +30,3 @@ let newDir;

newDir = dir;
removeOnExit = node_graceful_1.default.on("exit", remove, true);
removeOnExit = exit_1.onExit(remove);
return newDir;

@@ -33,0 +33,0 @@ });

"use strict";
/*
* Copyright 2019 Unbounded Systems, LLC
* Copyright 2019-2020 Unbounded Systems, LLC
*

@@ -21,2 +21,4 @@ * Licensed under the Apache License, Version 2.0 (the "License");

const execa_1 = tslib_1.__importDefault(require("execa"));
const npm_run_path_1 = tslib_1.__importDefault(require("npm-run-path"));
const ci_report_1 = require("../ci_report");
const noArgOptions = [

@@ -30,2 +32,3 @@ "noProgress",

};
const npmPath = npm_run_path_1.default({ cwd: __dirname });
/**

@@ -57,3 +60,9 @@ * NOTE: This function is purposely NOT async.

finalArgs.push(...args);
const childProc = execa_1.default("yarn", finalArgs, { all: true, stripFinalNewline: false });
const env = { PATH: npmPath };
const childProc = execa_1.default("yarn", finalArgs, {
all: true,
env,
stripFinalNewline: false,
});
const logStop = logStart(childProc.pid, finalArgs);
if (pipeOutput) {

@@ -72,2 +81,4 @@ childProc.stdout.pipe(process.stdout);

insertCatch(childProc, translateError);
// This "then" creates a separate chain and that's ok
childProc.then((child) => logStop(child.all), (err) => logStop(err.all || err.message || err));
return childProc;

@@ -121,2 +132,15 @@ }

exports.parseJsonMessages = parseJsonMessages;
function logStart(pid, args) {
const logger = ci_report_1.ciMaybeCreateLogger(`yarn-${pid}`);
if (!logger)
return () => { };
const argstr = `yarn ${args.join(" ")}`;
logger.log(`RUN ${argstr}`);
logger.logps();
return (output) => {
logger.log(`DONE ${argstr}`);
logger.log(`OUTPUT`, output);
logger.close();
};
}
//# sourceMappingURL=common.js.map
{
"name": "@adpt/utils",
"version": "0.2.0-next.1",
"version": "0.2.0-next.2",
"description": "AdaptJS Utilities Library",

@@ -26,4 +26,9 @@ "license": "Apache-2.0",

"typings": "dist/src/index.d.ts",
"engines": {
"node": ">=10.0.0"
},
"dependencies": {
"@unboundedsystems/node-graceful": "3.0.0-unb.1",
"@usys/collections-ts": "^0.0.2",
"capture-exit": "^2.0.0",
"decamelize": "^2.0.0",

@@ -36,6 +41,7 @@ "deep-diff": "^1.0.2",

"lodash": "^4.17.15",
"node-graceful": "^0.3.1",
"npm-run-path": "^4.0.1",
"ts-custom-error": "^3.1.1",
"tslib": "^1.10.0",
"type-ops": "^3.0.3"
"type-ops": "^3.0.3",
"yarn": "^1.22.0"
},

@@ -74,3 +80,3 @@ "devDependencies": {

},
"gitHead": "8601b03c49aaa128b54c8f7c5b1e0e9eff2c0d99"
"gitHead": "093ddacfd98fa660d125c75f75327504f939eab6"
}

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