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

@fuel-ts/versions

Package Overview
Dependencies
Maintainers
1
Versions
2903
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fuel-ts/versions - npm Package Compare versions

Comparing version 0.39.0 to 0.39.1

2

dist/bin.js
#!/usr/bin/env node
"use strict";var O=Object.create;var g=Object.defineProperty;var G=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var k=Object.getPrototypeOf,q=Object.prototype.hasOwnProperty;var y=(r,e,s,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of b(e))!q.call(r,t)&&t!==s&&g(r,t,{get:()=>e[t],enumerable:!(o=G(e,t))||o.enumerable});return r};var a=(r,e,s)=>(s=r!=null?O(k(r)):{},y(e||!r||!r.__esModule?g(s,"default",{value:r,enumerable:!0}):s,r));var p=require("chalk"),h=a(require("cli-table"));var u=require("chalk"),f=r=>{let{version:e,isGt:s,isOk:o}=r;return s?(0,u.cyan)(e):o?(0,u.green)(e):(0,u.red)(e)};var c=a(require("semver"));function F(){return{FORC:"0.35.5",FUEL_CORE:"0.17.3",FUELS:"0.39.0"}}function V(r){let{userForcVersion:e,userFuelCoreVersion:s}=r,o=F(),t=c.default.gt(e,o.FORC),l=c.default.gt(s,o.FUEL_CORE),m=c.default.eq(e,o.FORC),n=c.default.eq(s,o.FUEL_CORE);return{userForcIsGt:t,userFuelCoreIsGt:l,userForcIsEq:m,userFuelCoreIsEq:n}}var d=a(require("child_process")),C=d.execSync;function I(r){let{error:e}=console,s,o;try{let t=/[^0-9.]+/g;s=C("forc --version").toString().replace(t,""),o=C("fuel-core --version").toString().replace(t,"")}catch(t){throw e("Make sure you have Forc and Fuel-Core installed."),e(` ${r.fuelUpLink}`),t}return{userForcVersion:s,userFuelCoreVersion:o}}function E(){let{error:r,info:e}=console,s=F(),o=new h.default({head:["",(0,p.bold)("Supported"),(0,p.bold)("Yours / System")]}),t=(0,p.green)("https://github.com/fuellabs/fuelup"),{userForcVersion:l,userFuelCoreVersion:m}=I({fuelUpLink:t}),n=V({userForcVersion:l,userFuelCoreVersion:m}),U=f({version:l,isGt:n.userForcIsGt,isOk:n.userForcIsEq}),x=f({version:m,isGt:n.userFuelCoreIsGt,isOk:n.userFuelCoreIsEq});o.push(["Forc",s.FORC,U]),o.push(["Fuel-Core",s.FUEL_CORE,x]);let S=n.userForcIsGt||n.userFuelCoreIsGt,v=n.userForcIsEq&&n.userFuelCoreIsEq;S?(e("Your system's components are newer than the ones supported!"),e(o.toString()),process.exit(0)):v?(e("You have all the right versions! \u26A1"),e(o.toString()),process.exit(0)):(r("You're using outdated versions \u2014 update them with:"),r(` ${t}`),r(o.toString()),process.exit(1))}E();
"use strict";var O=Object.create;var g=Object.defineProperty;var G=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var k=Object.getPrototypeOf,q=Object.prototype.hasOwnProperty;var y=(r,e,s,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of b(e))!q.call(r,t)&&t!==s&&g(r,t,{get:()=>e[t],enumerable:!(o=G(e,t))||o.enumerable});return r};var a=(r,e,s)=>(s=r!=null?O(k(r)):{},y(e||!r||!r.__esModule?g(s,"default",{value:r,enumerable:!0}):s,r));var p=require("chalk"),h=a(require("cli-table"));var u=require("chalk"),f=r=>{let{version:e,isGt:s,isOk:o}=r;return s?(0,u.cyan)(e):o?(0,u.green)(e):(0,u.red)(e)};var c=a(require("semver"));function F(){return{FORC:"0.35.5",FUEL_CORE:"0.17.3",FUELS:"0.39.1"}}function V(r){let{userForcVersion:e,userFuelCoreVersion:s}=r,o=F(),t=c.default.gt(e,o.FORC),l=c.default.gt(s,o.FUEL_CORE),m=c.default.eq(e,o.FORC),n=c.default.eq(s,o.FUEL_CORE);return{userForcIsGt:t,userFuelCoreIsGt:l,userForcIsEq:m,userFuelCoreIsEq:n}}var d=a(require("child_process")),C=d.execSync;function I(r){let{error:e}=console,s,o;try{let t=/[^0-9.]+/g;s=C("forc --version").toString().replace(t,""),o=C("fuel-core --version").toString().replace(t,"")}catch(t){throw e("Make sure you have Forc and Fuel-Core installed."),e(` ${r.fuelUpLink}`),t}return{userForcVersion:s,userFuelCoreVersion:o}}function E(){let{error:r,info:e}=console,s=F(),o=new h.default({head:["",(0,p.bold)("Supported"),(0,p.bold)("Yours / System")]}),t=(0,p.green)("https://github.com/fuellabs/fuelup"),{userForcVersion:l,userFuelCoreVersion:m}=I({fuelUpLink:t}),n=V({userForcVersion:l,userFuelCoreVersion:m}),U=f({version:l,isGt:n.userForcIsGt,isOk:n.userForcIsEq}),x=f({version:m,isGt:n.userFuelCoreIsGt,isOk:n.userFuelCoreIsEq});o.push(["Forc",s.FORC,U]),o.push(["Fuel-Core",s.FUEL_CORE,x]);let S=n.userForcIsGt||n.userFuelCoreIsGt,v=n.userForcIsEq&&n.userFuelCoreIsEq;S?(e("Your system's components are newer than the ones supported!"),e(o.toString()),process.exit(0)):v?(e("You have all the right versions! \u26A1"),e(o.toString()),process.exit(0)):(r("You're using outdated versions \u2014 update them with:"),r(` ${t}`),r(o.toString()),process.exit(1))}E();
//# sourceMappingURL=bin.js.map

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

"use strict";var O=Object.create;var F=Object.defineProperty;var G=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var k=Object.getPrototypeOf,q=Object.prototype.hasOwnProperty;var y=(r,e)=>{for(var o in e)F(r,o,{get:e[o],enumerable:!0})},V=(r,e,o,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of b(e))!q.call(r,t)&&t!==o&&F(r,t,{get:()=>e[t],enumerable:!(s=G(e,t))||s.enumerable});return r};var f=(r,e,o)=>(o=r!=null?O(k(r)):{},V(e||!r||!r.__esModule?F(o,"default",{value:r,enumerable:!0}):o,r)),L=r=>V(F({},"__esModule",{value:!0}),r);var z={};y(z,{run:()=>R});module.exports=L(z);var p=require("chalk"),E=f(require("cli-table"));var i=require("chalk"),C=r=>{let{version:e,isGt:o,isOk:s}=r;return o?(0,i.cyan)(e):s?(0,i.green)(e):(0,i.red)(e)};var c=f(require("semver"));function a(){return{FORC:"0.35.5",FUEL_CORE:"0.17.3",FUELS:"0.39.0"}}function d(r){let{userForcVersion:e,userFuelCoreVersion:o}=r,s=a(),t=c.default.gt(e,s.FORC),l=c.default.gt(o,s.FUEL_CORE),m=c.default.eq(e,s.FORC),n=c.default.eq(o,s.FUEL_CORE);return{userForcIsGt:t,userFuelCoreIsGt:l,userForcIsEq:m,userFuelCoreIsEq:n}}var I=f(require("child_process")),g=I.execSync;function h(r){let{error:e}=console,o,s;try{let t=/[^0-9.]+/g;o=g("forc --version").toString().replace(t,""),s=g("fuel-core --version").toString().replace(t,"")}catch(t){throw e("Make sure you have Forc and Fuel-Core installed."),e(` ${r.fuelUpLink}`),t}return{userForcVersion:o,userFuelCoreVersion:s}}function R(){let{error:r,info:e}=console,o=a(),s=new E.default({head:["",(0,p.bold)("Supported"),(0,p.bold)("Yours / System")]}),t=(0,p.green)("https://github.com/fuellabs/fuelup"),{userForcVersion:l,userFuelCoreVersion:m}=h({fuelUpLink:t}),n=d({userForcVersion:l,userFuelCoreVersion:m}),U=C({version:l,isGt:n.userForcIsGt,isOk:n.userForcIsEq}),x=C({version:m,isGt:n.userFuelCoreIsGt,isOk:n.userFuelCoreIsEq});s.push(["Forc",o.FORC,U]),s.push(["Fuel-Core",o.FUEL_CORE,x]);let S=n.userForcIsGt||n.userFuelCoreIsGt,v=n.userForcIsEq&&n.userFuelCoreIsEq;S?(e("Your system's components are newer than the ones supported!"),e(s.toString()),process.exit(0)):v?(e("You have all the right versions! \u26A1"),e(s.toString()),process.exit(0)):(r("You're using outdated versions \u2014 update them with:"),r(` ${t}`),r(s.toString()),process.exit(1))}0&&(module.exports={run});
"use strict";var O=Object.create;var F=Object.defineProperty;var G=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var k=Object.getPrototypeOf,q=Object.prototype.hasOwnProperty;var y=(r,e)=>{for(var o in e)F(r,o,{get:e[o],enumerable:!0})},V=(r,e,o,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of b(e))!q.call(r,t)&&t!==o&&F(r,t,{get:()=>e[t],enumerable:!(s=G(e,t))||s.enumerable});return r};var f=(r,e,o)=>(o=r!=null?O(k(r)):{},V(e||!r||!r.__esModule?F(o,"default",{value:r,enumerable:!0}):o,r)),L=r=>V(F({},"__esModule",{value:!0}),r);var z={};y(z,{run:()=>R});module.exports=L(z);var p=require("chalk"),E=f(require("cli-table"));var i=require("chalk"),C=r=>{let{version:e,isGt:o,isOk:s}=r;return o?(0,i.cyan)(e):s?(0,i.green)(e):(0,i.red)(e)};var c=f(require("semver"));function a(){return{FORC:"0.35.5",FUEL_CORE:"0.17.3",FUELS:"0.39.1"}}function d(r){let{userForcVersion:e,userFuelCoreVersion:o}=r,s=a(),t=c.default.gt(e,s.FORC),l=c.default.gt(o,s.FUEL_CORE),m=c.default.eq(e,s.FORC),n=c.default.eq(o,s.FUEL_CORE);return{userForcIsGt:t,userFuelCoreIsGt:l,userForcIsEq:m,userFuelCoreIsEq:n}}var I=f(require("child_process")),g=I.execSync;function h(r){let{error:e}=console,o,s;try{let t=/[^0-9.]+/g;o=g("forc --version").toString().replace(t,""),s=g("fuel-core --version").toString().replace(t,"")}catch(t){throw e("Make sure you have Forc and Fuel-Core installed."),e(` ${r.fuelUpLink}`),t}return{userForcVersion:o,userFuelCoreVersion:s}}function R(){let{error:r,info:e}=console,o=a(),s=new E.default({head:["",(0,p.bold)("Supported"),(0,p.bold)("Yours / System")]}),t=(0,p.green)("https://github.com/fuellabs/fuelup"),{userForcVersion:l,userFuelCoreVersion:m}=h({fuelUpLink:t}),n=d({userForcVersion:l,userFuelCoreVersion:m}),U=C({version:l,isGt:n.userForcIsGt,isOk:n.userForcIsEq}),x=C({version:m,isGt:n.userFuelCoreIsGt,isOk:n.userFuelCoreIsEq});s.push(["Forc",o.FORC,U]),s.push(["Fuel-Core",o.FUEL_CORE,x]);let S=n.userForcIsGt||n.userFuelCoreIsGt,v=n.userForcIsEq&&n.userFuelCoreIsEq;S?(e("Your system's components are newer than the ones supported!"),e(s.toString()),process.exit(0)):v?(e("You have all the right versions! \u26A1"),e(s.toString()),process.exit(0)):(r("You're using outdated versions \u2014 update them with:"),r(` ${t}`),r(s.toString()),process.exit(1))}0&&(module.exports={run});
//# sourceMappingURL=cli.js.map

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

"use strict";(()=>{function o(){return{FORC:"0.35.5",FUEL_CORE:"0.17.3",FUELS:"0.39.0"}}var t=o();})();
"use strict";(()=>{function o(){return{FORC:"0.35.5",FUEL_CORE:"0.17.3",FUELS:"0.39.1"}}var t=o();})();
//# sourceMappingURL=index.global.js.map

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

"use strict";var n=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var E=Object.prototype.hasOwnProperty;var F=(r,o)=>{for(var t in o)n(r,t,{get:o[t],enumerable:!0})},S=(r,o,t,p)=>{if(o&&typeof o=="object"||typeof o=="function")for(let e of u(o))!E.call(r,e)&&e!==t&&n(r,e,{get:()=>o[e],enumerable:!(p=i(o,e))||p.enumerable});return r};var c=r=>S(n({},"__esModule",{value:!0}),r);var g={};F(g,{versions:()=>f});module.exports=c(g);function s(){return{FORC:"0.35.5",FUEL_CORE:"0.17.3",FUELS:"0.39.0"}}var f=s();0&&(module.exports={versions});
"use strict";var n=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var E=Object.prototype.hasOwnProperty;var F=(r,o)=>{for(var t in o)n(r,t,{get:o[t],enumerable:!0})},S=(r,o,t,p)=>{if(o&&typeof o=="object"||typeof o=="function")for(let e of u(o))!E.call(r,e)&&e!==t&&n(r,e,{get:()=>o[e],enumerable:!(p=i(o,e))||p.enumerable});return r};var c=r=>S(n({},"__esModule",{value:!0}),r);var g={};F(g,{versions:()=>f});module.exports=c(g);function s(){return{FORC:"0.35.5",FUEL_CORE:"0.17.3",FUELS:"0.39.1"}}var f=s();0&&(module.exports={versions});
//# sourceMappingURL=index.js.map
{
"name": "@fuel-ts/versions",
"version": "0.39.0",
"version": "0.39.1",
"description": "Validates supported versions of the Fuel toolchain",

@@ -5,0 +5,0 @@ "author": "Fuel Labs <contact@fuel.sh> (https://fuel.network/)",

Sorry, the diff of this file is too big to display

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 too big to display

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

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