@fuel-ts/versions
Advanced tools
Comparing version 0.0.0-next-20221222210318 to 0.0.0-next-20230104172404
#!/usr/bin/env node | ||
"use strict";var R=Object.create;var V=Object.defineProperty;var G=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var L=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty;var q=(r,e,s,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of b(e))!k.call(r,t)&&t!==s&&V(r,t,{get:()=>e[t],enumerable:!(o=G(e,t))||o.enumerable});return r};var F=(r,e,s)=>(s=r!=null?R(L(r)):{},q(e||!r||!r.__esModule?V(s,"default",{value:r,enumerable:!0}):s,r));var p=require("chalk"),S=F(require("cli-table"));var u=require("chalk"),a=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=F(require("semver"));function C(r){if(r!==void 0){let e=r.toString();if(e!=="true")return e}return"0.0.0"}function f(){return{FUELS:C("0.28.0"),FUEL_CORE:C("0.15.1"),FORC:C("0.32.2")}}function d(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 E=F(require("child_process")),g=E.execSync;function I(r){let{error:e}=console,s,o;try{let t=/[^0-9.]+/g;s=g("forc --version").toString().replace(t,""),o=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:s,userFuelCoreVersion:o}}function O(){let{error:r,info:e}=console,s=f(),o=new S.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=d({userForcVersion:l,userFuelCoreVersion:m}),U=a({version:l,isGt:n.userForcIsGt,isOk:n.userForcIsEq}),h=a({version:m,isGt:n.userFuelCoreIsGt,isOk:n.userFuelCoreIsEq});o.push(["Forc",s.FORC,U]),o.push(["Fuel-Core",s.FUEL_CORE,h]);let v=n.userForcIsGt||n.userFuelCoreIsGt,x=n.userForcIsEq&&n.userFuelCoreIsEq;v?(e("Your system's components are newer than the ones supported!"),e(o.toString()),process.exit(0)):x?(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))}O(); | ||
"use strict";var R=Object.create;var V=Object.defineProperty;var G=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var L=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty;var q=(r,e,s,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of b(e))!k.call(r,t)&&t!==s&&V(r,t,{get:()=>e[t],enumerable:!(o=G(e,t))||o.enumerable});return r};var F=(r,e,s)=>(s=r!=null?R(L(r)):{},q(e||!r||!r.__esModule?V(s,"default",{value:r,enumerable:!0}):s,r));var p=require("chalk"),S=F(require("cli-table"));var u=require("chalk"),a=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=F(require("semver"));function C(r){if(r!==void 0){let e=r.toString();if(e!=="true")return e}return"0.0.0"}function f(){return{FUELS:C("0.28.1"),FUEL_CORE:C("0.15.1"),FORC:C("0.32.2")}}function d(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 E=F(require("child_process")),g=E.execSync;function I(r){let{error:e}=console,s,o;try{let t=/[^0-9.]+/g;s=g("forc --version").toString().replace(t,""),o=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:s,userFuelCoreVersion:o}}function O(){let{error:r,info:e}=console,s=f(),o=new S.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=d({userForcVersion:l,userFuelCoreVersion:m}),U=a({version:l,isGt:n.userForcIsGt,isOk:n.userForcIsEq}),h=a({version:m,isGt:n.userFuelCoreIsGt,isOk:n.userFuelCoreIsEq});o.push(["Forc",s.FORC,U]),o.push(["Fuel-Core",s.FUEL_CORE,h]);let v=n.userForcIsGt||n.userFuelCoreIsGt,x=n.userForcIsEq&&n.userFuelCoreIsEq;v?(e("Your system's components are newer than the ones supported!"),e(o.toString()),process.exit(0)):x?(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))}O(); | ||
//# sourceMappingURL=bin.js.map |
@@ -1,2 +0,2 @@ | ||
"use strict";var R=Object.create;var f=Object.defineProperty;var G=Object.getOwnPropertyDescriptor;var L=Object.getOwnPropertyNames;var b=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty;var q=(r,e)=>{for(var o in e)f(r,o,{get:e[o],enumerable:!0})},d=(r,e,o,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of L(e))!k.call(r,t)&&t!==o&&f(r,t,{get:()=>e[t],enumerable:!(s=G(e,t))||s.enumerable});return r};var a=(r,e,o)=>(o=r!=null?R(b(r)):{},d(e||!r||!r.__esModule?f(o,"default",{value:r,enumerable:!0}):o,r)),y=r=>d(f({},"__esModule",{value:!0}),r);var z={};q(z,{run:()=>_});module.exports=y(z);var p=require("chalk"),O=a(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=a(require("semver"));function g(r){if(r!==void 0){let e=r.toString();if(e!=="true")return e}return"0.0.0"}function m(){return{FUELS:g("0.28.0"),FUEL_CORE:g("0.15.1"),FORC:g("0.32.2")}}function E(r){let{userForcVersion:e,userFuelCoreVersion:o}=r,s=m(),t=c.default.gt(e,s.FORC),l=c.default.gt(o,s.FUEL_CORE),F=c.default.eq(e,s.FORC),n=c.default.eq(o,s.FUEL_CORE);return{userForcIsGt:t,userFuelCoreIsGt:l,userForcIsEq:F,userFuelCoreIsEq:n}}var I=a(require("child_process")),V=I.execSync;function S(r){let{error:e}=console,o,s;try{let t=/[^0-9.]+/g;o=V("forc --version").toString().replace(t,""),s=V("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 _(){let{error:r,info:e}=console,o=m(),s=new O.default({head:["",(0,p.bold)("Supported"),(0,p.bold)("Yours / System")]}),t=(0,p.green)("https://github.com/fuellabs/fuelup"),{userForcVersion:l,userFuelCoreVersion:F}=S({fuelUpLink:t}),n=E({userForcVersion:l,userFuelCoreVersion:F}),U=C({version:l,isGt:n.userForcIsGt,isOk:n.userForcIsEq}),h=C({version:F,isGt:n.userFuelCoreIsGt,isOk:n.userFuelCoreIsEq});s.push(["Forc",o.FORC,U]),s.push(["Fuel-Core",o.FUEL_CORE,h]);let x=n.userForcIsGt||n.userFuelCoreIsGt,v=n.userForcIsEq&&n.userFuelCoreIsEq;x?(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 R=Object.create;var f=Object.defineProperty;var G=Object.getOwnPropertyDescriptor;var L=Object.getOwnPropertyNames;var b=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty;var q=(r,e)=>{for(var o in e)f(r,o,{get:e[o],enumerable:!0})},d=(r,e,o,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of L(e))!k.call(r,t)&&t!==o&&f(r,t,{get:()=>e[t],enumerable:!(s=G(e,t))||s.enumerable});return r};var a=(r,e,o)=>(o=r!=null?R(b(r)):{},d(e||!r||!r.__esModule?f(o,"default",{value:r,enumerable:!0}):o,r)),y=r=>d(f({},"__esModule",{value:!0}),r);var z={};q(z,{run:()=>_});module.exports=y(z);var p=require("chalk"),O=a(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=a(require("semver"));function g(r){if(r!==void 0){let e=r.toString();if(e!=="true")return e}return"0.0.0"}function m(){return{FUELS:g("0.28.1"),FUEL_CORE:g("0.15.1"),FORC:g("0.32.2")}}function E(r){let{userForcVersion:e,userFuelCoreVersion:o}=r,s=m(),t=c.default.gt(e,s.FORC),l=c.default.gt(o,s.FUEL_CORE),F=c.default.eq(e,s.FORC),n=c.default.eq(o,s.FUEL_CORE);return{userForcIsGt:t,userFuelCoreIsGt:l,userForcIsEq:F,userFuelCoreIsEq:n}}var I=a(require("child_process")),V=I.execSync;function S(r){let{error:e}=console,o,s;try{let t=/[^0-9.]+/g;o=V("forc --version").toString().replace(t,""),s=V("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 _(){let{error:r,info:e}=console,o=m(),s=new O.default({head:["",(0,p.bold)("Supported"),(0,p.bold)("Yours / System")]}),t=(0,p.green)("https://github.com/fuellabs/fuelup"),{userForcVersion:l,userFuelCoreVersion:F}=S({fuelUpLink:t}),n=E({userForcVersion:l,userFuelCoreVersion:F}),U=C({version:l,isGt:n.userForcIsGt,isOk:n.userForcIsEq}),h=C({version:F,isGt:n.userFuelCoreIsGt,isOk:n.userFuelCoreIsEq});s.push(["Forc",o.FORC,U]),s.push(["Fuel-Core",o.FUEL_CORE,h]);let x=n.userForcIsGt||n.userFuelCoreIsGt,v=n.userForcIsEq&&n.userFuelCoreIsEq;x?(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 e(r){if(r!==void 0){let t=r.toString();if(t!=="true")return t}return"0.0.0"}function n(){return{FUELS:e("0.28.0"),FUEL_CORE:e("0.15.1"),FORC:e("0.32.2")}}var i=n();})(); | ||
"use strict";(()=>{function e(r){if(r!==void 0){let t=r.toString();if(t!=="true")return t}return"0.0.0"}function n(){return{FUELS:e("0.28.1"),FUEL_CORE:e("0.15.1"),FORC:e("0.32.2")}}var i=n();})(); | ||
//# sourceMappingURL=index.global.js.map |
@@ -1,2 +0,2 @@ | ||
"use strict";var o=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var E=Object.getOwnPropertyNames;var O=Object.prototype.hasOwnProperty;var S=(r,e)=>{for(var n in e)o(r,n,{get:e[n],enumerable:!0})},c=(r,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of E(e))!O.call(r,t)&&t!==n&&o(r,t,{get:()=>e[t],enumerable:!(i=u(e,t))||i.enumerable});return r};var f=r=>c(o({},"__esModule",{value:!0}),r);var F={};S(F,{versions:()=>V});module.exports=f(F);function s(r){if(r!==void 0){let e=r.toString();if(e!=="true")return e}return"0.0.0"}function p(){return{FUELS:s("0.28.0"),FUEL_CORE:s("0.15.1"),FORC:s("0.32.2")}}var V=p();0&&(module.exports={versions}); | ||
"use strict";var o=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var E=Object.getOwnPropertyNames;var O=Object.prototype.hasOwnProperty;var S=(r,e)=>{for(var n in e)o(r,n,{get:e[n],enumerable:!0})},c=(r,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of E(e))!O.call(r,t)&&t!==n&&o(r,t,{get:()=>e[t],enumerable:!(i=u(e,t))||i.enumerable});return r};var f=r=>c(o({},"__esModule",{value:!0}),r);var F={};S(F,{versions:()=>V});module.exports=f(F);function s(r){if(r!==void 0){let e=r.toString();if(e!=="true")return e}return"0.0.0"}function p(){return{FUELS:s("0.28.1"),FUEL_CORE:s("0.15.1"),FORC:s("0.32.2")}}var V=p();0&&(module.exports={versions}); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@fuel-ts/versions", | ||
"version": "0.0.0-next-20221222210318", | ||
"version": "0.0.0-next-20230104172404", | ||
"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 too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet