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

@commercelayer/cli-core

Package Overview
Dependencies
Maintainers
2
Versions
186
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@commercelayer/cli-core - npm Package Compare versions

Comparing version 3.3.2 to 3.3.3-beta.0

3

lib/cjs/util.d.ts

@@ -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

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