New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@openfn/cli

Package Overview
Dependencies
Maintainers
4
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@openfn/cli - npm Package Compare versions

Comparing version

to
0.2.2

4

dist/index.js

@@ -14,5 +14,3 @@ #!/usr/bin/env node

const execArgv = [
// Suppress experimental argument warnings
"--no-warnings",
// Allows us to load an ESM module from a text string
"--experimental-vm-modules"

@@ -392,5 +390,3 @@ ];

command: "docgen <specifier>",
// Hide this command as it's not really for public usage
desc: false,
// 'Generate documentation into the repo. Specifier must include a version number.'
handler: (argv) => {

@@ -397,0 +393,0 @@ argv.command = "docgen";

26

dist/process/runner.js

@@ -42,4 +42,4 @@ import {

super(reason);
this.handled = true;
}
handled = true;
};

@@ -69,5 +69,3 @@ var abort_default = (logger, reason, error, help) => {

logger: logger_default(RUNTIME, opts),
// TODO log types are flaky right now
jobLogger: logger_default(JOB, opts),
// ditto
linker: {

@@ -573,3 +571,3 @@ repo: opts.repoDir,

var executeHandler = async (options, logger) => {
const start = (/* @__PURE__ */ new Date()).getTime();
const start = new Date().getTime();
await validate_adaptors_default(options, logger);

@@ -605,3 +603,3 @@ let input = await load_input_default(options, logger);

await serialize_output_default(options, result, logger);
const duration = printDuration((/* @__PURE__ */ new Date()).getTime() - start);
const duration = printDuration(new Date().getTime() - start);
if (result.errors) {

@@ -619,3 +617,3 @@ logger.warn(

}
const duration = printDuration((/* @__PURE__ */ new Date()).getTime() - start);
const duration = printDuration(new Date().getTime() - start);
logger.always(`Workflow failed in ${duration}.`);

@@ -893,3 +891,2 @@ process.exitCode = 1;

},
// TODO I'm not sure how to handle logging here - we ought to feedback SOMETHING though
createNullLogger()

@@ -970,3 +967,3 @@ );

var decorateMetadata = (metadata) => {
metadata.created = (/* @__PURE__ */ new Date()).toISOString();
metadata.created = new Date().toISOString();
};

@@ -1089,3 +1086,2 @@ var getAdaptorPath = async (adaptor, logger, repoDir) => {

default: "default",
// TODO fix to lower case
job: "debug"

@@ -1140,3 +1136,2 @@ };

adaptor: opts.adaptor,
// only applies to install (a bit messy) (now applies to docs too)
adaptors: opts.adaptors || [],

@@ -1149,3 +1144,2 @@ autoinstall: opts.autoinstall,

log: opts.log,
// TMP this will be overwritten later
logJson: typeof opts.logJson == "boolean" ? opts.logJson : Boolean(process.env.OPENFN_LOG_JSON),

@@ -1231,3 +1225,3 @@ compile: Boolean(opts.compile),

const prefix = (str) => ` ${t} ${str.padEnd(longest + 4, " ")}`;
const pkg = await import("../package-JMR2GBIW.js");
const pkg = await import("../../package.json", { assert: { type: "json" } });
const { version, dependencies } = pkg.default;

@@ -1278,9 +1272,3 @@ const compilerVersion = dependencies["@openfn/compiler"];

};
var maybeEnsureOpts = (basePath, options) => (
// If the command is compile or execute, just return the opts (yargs will do all the validation)
/(^(deploy|execute|compile|test)$)|(repo-)/.test(options.command) ? ensureLogOpts(options) : (
// Otherwise older commands still need to go through ensure opts
ensureOpts(basePath, options)
)
);
var maybeEnsureOpts = (basePath, options) => /(^(deploy|execute|compile|test)$)|(repo-)/.test(options.command) ? ensureLogOpts(options) : ensureOpts(basePath, options);
var parse = async (basePath, options, log) => {

@@ -1287,0 +1275,0 @@ const opts = maybeEnsureOpts(basePath, options);

{
"name": "@openfn/cli",
"version": "0.2.1",
"version": "0.2.2",
"description": "CLI devtools for the openfn toolchain.",

@@ -35,3 +35,3 @@ "engines": {

"tslib": "^2.4.0",
"tsup": "^7.1.0",
"tsup": "^6.2.3",
"typescript": "^4.7.4"

@@ -44,7 +44,7 @@ },

"yargs": "^17.7.2",
"@openfn/deploy": "0.2.1",
"@openfn/describe-package": "0.0.17",
"@openfn/logger": "0.0.14",
"@openfn/runtime": "0.0.27",
"@openfn/compiler": "0.0.33"
"@openfn/compiler": "0.0.34",
"@openfn/runtime": "0.0.28",
"@openfn/logger": "0.0.15",
"@openfn/describe-package": "0.0.18",
"@openfn/deploy": "0.2.2"
},

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