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

@utopia-utils/cli

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@utopia-utils/cli - npm Package Compare versions

Comparing version 0.3.1 to 0.3.2

dist/index.cjs

4

dist/index.js

@@ -1,3 +0,3 @@

"use strict";var h=Object.create;var s=Object.defineProperty;var x=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var l=Object.getPrototypeOf,y=Object.prototype.hasOwnProperty;var d=(t,r)=>{for(var o in r)s(t,o,{get:r[o],enumerable:!0})},c=(t,r,o,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let e of g(r))!y.call(t,e)&&e!==o&&s(t,e,{get:()=>r[e],enumerable:!(i=x(r,e))||i.enumerable});return t};var n=(t,r,o)=>(o=t!=null?h(l(t)):{},c(r||!t||!t.__esModule?s(o,"default",{value:t,enumerable:!0}):o,t)),v=t=>c(s({},"__esModule",{value:!0}),t);var k={};d(k,{CACHE_DIR:()=>w,getGitCommitHash:()=>C,getHostProjectPkgVersion:()=>D,isDirector:()=>E,isFile:()=>H,pathExists:()=>_});module.exports=v(k);var a=n(require("path")),w=a.default.resolve(process.cwd(),"node_modules/.cache");var m=require("child_process");function C(){try{let t=(0,m.execSync)("git rev-parse --short HEAD").toString().replace(`
`,"").trim();if(t==="undefined")throw new Error("Could not retrieve git commit hash.");return t}catch(t){console.error("Could not retrieve git commit hash.")}}function D(){return process.env.npm_package_version}var p=n(require("fs/promises"));async function E(t){try{return(await p.default.stat(t)).isDirectory()}catch(r){return!1}}var f=n(require("fs/promises"));async function H(t){try{return(await f.default.stat(t)).isFile()}catch(r){return!1}}var u=require("fs/promises");async function _(t){try{return await(0,u.access)(t),!0}catch(r){return!1}}0&&(module.exports={CACHE_DIR,getGitCommitHash,getHostProjectPkgVersion,isDirector,isFile,pathExists});
import o from"path";var a=o.resolve(process.cwd(),"node_modules/.cache");import{execSync as e}from"child_process";function f(){try{let t=e("git rev-parse --short HEAD").toString().replace(`
`,"").trim();if(t==="undefined")throw new Error("Could not retrieve git commit hash.");return t}catch(t){console.error("Could not retrieve git commit hash.")}}function h(){return process.env.npm_package_version}import s from"fs/promises";async function l(t){try{return(await s.stat(t)).isDirectory()}catch(r){return!1}}import n from"fs/promises";async function v(t){try{return(await n.stat(t)).isFile()}catch(r){return!1}}import{access as i}from"fs/promises";async function D(t){try{return await i(t),!0}catch(r){return!1}}export{a as CACHE_DIR,f as getGitCommitHash,h as getHostProjectPkgVersion,l as isDirector,v as isFile,D as pathExists};
//# sourceMappingURL=index.js.map
{
"name": "@utopia-utils/cli",
"version": "0.3.1",
"type": "module",
"version": "0.3.2",
"description": "Collection of common cli utils",

@@ -5,0 +6,0 @@ "author": "Utopia <https://github.com/GreatAuk>",

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