@commercelayer/cli-core
Advanced tools
Comparing version 3.3.2 to 3.3.3-beta.0
@@ -5,2 +5,3 @@ /** Await ms milliseconds */ | ||
declare const log: (message?: string, ...args: unknown[]) => void; | ||
export { sleep, resetConsole, log }; | ||
declare const specialFolder: (filePath: string, create?: boolean) => string; | ||
export { sleep, resetConsole, log, specialFolder }; |
@@ -1,2 +0,2 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.log=exports.resetConsole=exports.sleep=void 0;const util_1=require("util"),sleep=async e=>new Promise(t=>setTimeout(t,e));exports.sleep=sleep;const resetConsole=()=>{const e="\x1B[?25h",t="\x1B[?7h";process.stdout.write(`${e}${t}`)};exports.resetConsole=resetConsole;const log=(e="",...t)=>{e=typeof e=="string"?e:(0,util_1.inspect)(e),process.stdout.write((0,util_1.format)(e,...t)+` | ||
`)};exports.log=log; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.specialFolder=exports.log=exports.resetConsole=exports.sleep=void 0;const util_1=require("util"),path_1=require("path"),os_1=require("os"),fs_1=require("fs"),sleep=async e=>new Promise(s=>setTimeout(s,e));exports.sleep=sleep;const resetConsole=()=>{const e="\x1B[?25h",s="\x1B[?7h";process.stdout.write(`${e}${s}`)};exports.resetConsole=resetConsole;const log=(e="",...s)=>{e=typeof e=="string"?e:(0,util_1.inspect)(e),process.stdout.write((0,util_1.format)(e,...s)+` | ||
`)};exports.log=log;const specialFolder=(e,s=!1)=>{const p=["desktop","home"],o=e.toLowerCase().split(path_1.sep)[0];if(p.includes(o)){let t=(0,os_1.homedir)();o==="desktop"&&(t+=`${path_1.sep}Desktop`),e=e.replace(o,t)}const r=(0,path_1.dirname)(e);return s&&!(0,fs_1.existsSync)(r)&&(0,fs_1.mkdirSync)(r,{recursive:!0}),e};exports.specialFolder=specialFolder; |
@@ -5,2 +5,3 @@ /** Await ms milliseconds */ | ||
declare const log: (message?: string, ...args: unknown[]) => void; | ||
export { sleep, resetConsole, log }; | ||
declare const specialFolder: (filePath: string, create?: boolean) => string; | ||
export { sleep, resetConsole, log, specialFolder }; |
@@ -1,2 +0,2 @@ | ||
import{format as r,inspect as n}from"util";const s=async o=>new Promise(t=>setTimeout(t,o)),e=()=>{const o="\x1B[?25h",t="\x1B[?7h";process.stdout.write(`${o}${t}`)},c=(o="",...t)=>{o=typeof o=="string"?o:n(o),process.stdout.write(r(o,...t)+` | ||
`)};export{s as sleep,e as resetConsole,c as log}; | ||
import{format as c,inspect as p}from"util";import{sep as i,dirname as l}from"path";import{homedir as m}from"os";import{existsSync as u,mkdirSync as d}from"fs";const f=async o=>new Promise(r=>setTimeout(r,o)),w=()=>{const o="\x1B[?25h",r="\x1B[?7h";process.stdout.write(`${o}${r}`)},k=(o="",...r)=>{o=typeof o=="string"?o:p(o),process.stdout.write(c(o,...r)+` | ||
`)},y=(o,r=!1)=>{const n=["desktop","home"],t=o.toLowerCase().split(i)[0];if(n.includes(t)){let s=m();t==="desktop"&&(s+=`${i}Desktop`),o=o.replace(t,s)}const e=l(o);return r&&!u(e)&&d(e,{recursive:!0}),o};export{f as sleep,w as resetConsole,k as log,y as specialFolder}; |
{ | ||
"name": "@commercelayer/cli-core", | ||
"version": "3.3.2", | ||
"version": "3.3.3-beta.0", | ||
"main": "lib/cjs/index.js", | ||
@@ -39,3 +39,3 @@ "types": "lib/cjs/index.d.ts", | ||
"@commercelayer/js-auth": "^2.3.0", | ||
"@oclif/core": "^2.3.1", | ||
"@oclif/core": "^2.4.0", | ||
"axios": "1.3.3", | ||
@@ -42,0 +42,0 @@ "chalk": "^4.1.2", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
158101
875
13
3
+ Addedfastq@1.18.0(transitive)
- Removedfastq@1.17.1(transitive)
Updated@oclif/core@^2.4.0