@fuel-ts/versions
Advanced tools
Comparing version 0.0.0-next-20221209231421 to 0.0.0-next-20221209234244
@@ -1,2 +0,2 @@ | ||
"use strict";var S=Object.create;var C=Object.defineProperty;var x=Object.getOwnPropertyDescriptor;var R=Object.getOwnPropertyNames;var G=Object.getPrototypeOf,L=Object.prototype.hasOwnProperty;var b=(r,e,o,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of R(e))!L.call(r,s)&&s!==o&&C(r,s,{get:()=>e[s],enumerable:!(t=x(e,s))||t.enumerable});return r};var g=(r,e,o)=>(o=r!=null?S(G(r)):{},b(e||!r||!r.__esModule?C(o,"default",{value:r,enumerable:!0}):o,r));var p=require("chalk"),I=g(require("cli-table"));var u=require("chalk"),m=r=>{let{version:e,isGt:o,isOk:t}=r;return o?(0,u.cyan)(e):t?(0,u.green)(e):(0,u.red)(e)};var l=g(require("semver"));function f(r){if(r!==void 0){let e=r.toString();if(e!=="true")return e}return"0.0.0"}var i={FUELS:f("0.24.1"),FUEL_CORE:f("0.14.0"),FORC:f("0.31.3")};function V(r){let{userForcVersion:e,userFuelCoreVersion:o}=r,t=l.default.gt(e,i.FORC),s=l.default.gt(o,i.FUEL_CORE),F=l.default.eq(e,i.FORC),n=l.default.eq(o,i.FUEL_CORE);return{userForcIsGt:t,userFuelCoreIsGt:s,userForcIsEq:F,userFuelCoreIsEq:n}}var a=require("child_process");function E(r){let{error:e}=console,o,t;try{let s=/[^0-9.]+/g;o=(0,a.execSync)("forc --version").toString().replace(s,""),t=(0,a.execSync)("fuel-core --version").toString().replace(s,"")}catch(s){throw e("Make sure you have Forc and Fuel-Core installed."),e(` ${r.fuelUpLink}`),s}return{userForcVersion:o,userFuelCoreVersion:t}}function d(){let{error:r,info:e}=console,o=new I.default({head:["",(0,p.bold)("Supported"),(0,p.bold)("Yours / System")]}),t=(0,p.green)("https://github.com/fuellabs/fuelup"),{userForcVersion:s,userFuelCoreVersion:F}=E({fuelUpLink:t}),n=V({userForcVersion:s,userFuelCoreVersion:F}),O=m({version:s,isGt:n.userForcIsGt,isOk:n.userForcIsEq}),U=m({version:F,isGt:n.userFuelCoreIsGt,isOk:n.userFuelCoreIsEq});o.push(["Forc",i.FORC,O]),o.push(["Fuel-Core",i.FUEL_CORE,U]);let h=n.userForcIsGt||n.userFuelCoreIsGt,v=n.userForcIsEq&&n.userFuelCoreIsEq;h?(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))}d(); | ||
"use strict";var S=Object.create;var C=Object.defineProperty;var x=Object.getOwnPropertyDescriptor;var R=Object.getOwnPropertyNames;var G=Object.getPrototypeOf,L=Object.prototype.hasOwnProperty;var b=(r,e,o,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of R(e))!L.call(r,s)&&s!==o&&C(r,s,{get:()=>e[s],enumerable:!(t=x(e,s))||t.enumerable});return r};var g=(r,e,o)=>(o=r!=null?S(G(r)):{},b(e||!r||!r.__esModule?C(o,"default",{value:r,enumerable:!0}):o,r));var p=require("chalk"),I=g(require("cli-table"));var u=require("chalk"),m=r=>{let{version:e,isGt:o,isOk:t}=r;return o?(0,u.cyan)(e):t?(0,u.green)(e):(0,u.red)(e)};var l=g(require("semver"));function f(r){if(r!==void 0){let e=r.toString();if(e!=="true")return e}return"0.0.0"}var i={FUELS:f("0.24.2"),FUEL_CORE:f("0.14.0"),FORC:f("0.31.3")};function V(r){let{userForcVersion:e,userFuelCoreVersion:o}=r,t=l.default.gt(e,i.FORC),s=l.default.gt(o,i.FUEL_CORE),F=l.default.eq(e,i.FORC),n=l.default.eq(o,i.FUEL_CORE);return{userForcIsGt:t,userFuelCoreIsGt:s,userForcIsEq:F,userFuelCoreIsEq:n}}var a=require("child_process");function E(r){let{error:e}=console,o,t;try{let s=/[^0-9.]+/g;o=(0,a.execSync)("forc --version").toString().replace(s,""),t=(0,a.execSync)("fuel-core --version").toString().replace(s,"")}catch(s){throw e("Make sure you have Forc and Fuel-Core installed."),e(` ${r.fuelUpLink}`),s}return{userForcVersion:o,userFuelCoreVersion:t}}function d(){let{error:r,info:e}=console,o=new I.default({head:["",(0,p.bold)("Supported"),(0,p.bold)("Yours / System")]}),t=(0,p.green)("https://github.com/fuellabs/fuelup"),{userForcVersion:s,userFuelCoreVersion:F}=E({fuelUpLink:t}),n=V({userForcVersion:s,userFuelCoreVersion:F}),O=m({version:s,isGt:n.userForcIsGt,isOk:n.userForcIsEq}),U=m({version:F,isGt:n.userFuelCoreIsGt,isOk:n.userFuelCoreIsEq});o.push(["Forc",i.FORC,O]),o.push(["Fuel-Core",i.FUEL_CORE,U]);let h=n.userForcIsGt||n.userFuelCoreIsGt,v=n.userForcIsEq&&n.userFuelCoreIsEq;h?(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))}d(); | ||
//# sourceMappingURL=bin.js.map |
@@ -1,2 +0,2 @@ | ||
"use strict";var S=Object.create;var F=Object.defineProperty;var x=Object.getOwnPropertyDescriptor;var R=Object.getOwnPropertyNames;var G=Object.getPrototypeOf,L=Object.prototype.hasOwnProperty;var b=(r,e)=>{for(var o in e)F(r,o,{get:e[o],enumerable:!0})},g=(r,e,o,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of R(e))!L.call(r,s)&&s!==o&&F(r,s,{get:()=>e[s],enumerable:!(t=x(e,s))||t.enumerable});return r};var V=(r,e,o)=>(o=r!=null?S(G(r)):{},g(e||!r||!r.__esModule?F(o,"default",{value:r,enumerable:!0}):o,r)),k=r=>g(F({},"__esModule",{value:!0}),r);var _={};b(_,{run:()=>q});module.exports=k(_);var l=require("chalk"),d=V(require("cli-table"));var u=require("chalk"),f=r=>{let{version:e,isGt:o,isOk:t}=r;return o?(0,u.cyan)(e):t?(0,u.green)(e):(0,u.red)(e)};var c=V(require("semver"));function m(r){if(r!==void 0){let e=r.toString();if(e!=="true")return e}return"0.0.0"}var i={FUELS:m("0.24.1"),FUEL_CORE:m("0.14.0"),FORC:m("0.31.3")};function E(r){let{userForcVersion:e,userFuelCoreVersion:o}=r,t=c.default.gt(e,i.FORC),s=c.default.gt(o,i.FUEL_CORE),p=c.default.eq(e,i.FORC),n=c.default.eq(o,i.FUEL_CORE);return{userForcIsGt:t,userFuelCoreIsGt:s,userForcIsEq:p,userFuelCoreIsEq:n}}var C=require("child_process");function I(r){let{error:e}=console,o,t;try{let s=/[^0-9.]+/g;o=(0,C.execSync)("forc --version").toString().replace(s,""),t=(0,C.execSync)("fuel-core --version").toString().replace(s,"")}catch(s){throw e("Make sure you have Forc and Fuel-Core installed."),e(` ${r.fuelUpLink}`),s}return{userForcVersion:o,userFuelCoreVersion:t}}function q(){let{error:r,info:e}=console,o=new d.default({head:["",(0,l.bold)("Supported"),(0,l.bold)("Yours / System")]}),t=(0,l.green)("https://github.com/fuellabs/fuelup"),{userForcVersion:s,userFuelCoreVersion:p}=I({fuelUpLink:t}),n=E({userForcVersion:s,userFuelCoreVersion:p}),O=f({version:s,isGt:n.userForcIsGt,isOk:n.userForcIsEq}),U=f({version:p,isGt:n.userFuelCoreIsGt,isOk:n.userFuelCoreIsEq});o.push(["Forc",i.FORC,O]),o.push(["Fuel-Core",i.FUEL_CORE,U]);let h=n.userForcIsGt||n.userFuelCoreIsGt,v=n.userForcIsEq&&n.userFuelCoreIsEq;h?(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))}0&&(module.exports={run}); | ||
"use strict";var S=Object.create;var F=Object.defineProperty;var x=Object.getOwnPropertyDescriptor;var R=Object.getOwnPropertyNames;var G=Object.getPrototypeOf,L=Object.prototype.hasOwnProperty;var b=(r,e)=>{for(var o in e)F(r,o,{get:e[o],enumerable:!0})},g=(r,e,o,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of R(e))!L.call(r,s)&&s!==o&&F(r,s,{get:()=>e[s],enumerable:!(t=x(e,s))||t.enumerable});return r};var V=(r,e,o)=>(o=r!=null?S(G(r)):{},g(e||!r||!r.__esModule?F(o,"default",{value:r,enumerable:!0}):o,r)),k=r=>g(F({},"__esModule",{value:!0}),r);var _={};b(_,{run:()=>q});module.exports=k(_);var l=require("chalk"),d=V(require("cli-table"));var u=require("chalk"),f=r=>{let{version:e,isGt:o,isOk:t}=r;return o?(0,u.cyan)(e):t?(0,u.green)(e):(0,u.red)(e)};var c=V(require("semver"));function m(r){if(r!==void 0){let e=r.toString();if(e!=="true")return e}return"0.0.0"}var i={FUELS:m("0.24.2"),FUEL_CORE:m("0.14.0"),FORC:m("0.31.3")};function E(r){let{userForcVersion:e,userFuelCoreVersion:o}=r,t=c.default.gt(e,i.FORC),s=c.default.gt(o,i.FUEL_CORE),p=c.default.eq(e,i.FORC),n=c.default.eq(o,i.FUEL_CORE);return{userForcIsGt:t,userFuelCoreIsGt:s,userForcIsEq:p,userFuelCoreIsEq:n}}var C=require("child_process");function I(r){let{error:e}=console,o,t;try{let s=/[^0-9.]+/g;o=(0,C.execSync)("forc --version").toString().replace(s,""),t=(0,C.execSync)("fuel-core --version").toString().replace(s,"")}catch(s){throw e("Make sure you have Forc and Fuel-Core installed."),e(` ${r.fuelUpLink}`),s}return{userForcVersion:o,userFuelCoreVersion:t}}function q(){let{error:r,info:e}=console,o=new d.default({head:["",(0,l.bold)("Supported"),(0,l.bold)("Yours / System")]}),t=(0,l.green)("https://github.com/fuellabs/fuelup"),{userForcVersion:s,userFuelCoreVersion:p}=I({fuelUpLink:t}),n=E({userForcVersion:s,userFuelCoreVersion:p}),O=f({version:s,isGt:n.userForcIsGt,isOk:n.userForcIsEq}),U=f({version:p,isGt:n.userFuelCoreIsGt,isOk:n.userFuelCoreIsEq});o.push(["Forc",i.FORC,O]),o.push(["Fuel-Core",i.FUEL_CORE,U]);let h=n.userForcIsGt||n.userFuelCoreIsGt,v=n.userForcIsEq&&n.userFuelCoreIsEq;h?(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))}0&&(module.exports={run}); | ||
//# sourceMappingURL=cli.js.map |
@@ -1,2 +0,2 @@ | ||
"use strict";(()=>{function e(r){if(r!==void 0){let n=r.toString();if(n!=="true")return n}return"0.0.0"}var o={FUELS:e("0.24.1"),FUEL_CORE:e("0.14.0"),FORC:e("0.31.3")};})(); | ||
"use strict";(()=>{function e(r){if(r!==void 0){let n=r.toString();if(n!=="true")return n}return"0.0.0"}var o={FUELS:e("0.24.2"),FUEL_CORE:e("0.14.0"),FORC:e("0.31.3")};})(); | ||
//# sourceMappingURL=index.global.js.map |
@@ -1,2 +0,2 @@ | ||
"use strict";var s=Object.defineProperty;var E=Object.getOwnPropertyDescriptor;var O=Object.getOwnPropertyNames;var R=Object.prototype.hasOwnProperty;var c=(r,e)=>{for(var o in e)s(r,o,{get:e[o],enumerable:!0})},f=(r,e,o,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of O(e))!R.call(r,n)&&n!==o&&s(r,n,{get:()=>e[n],enumerable:!(i=E(e,n))||i.enumerable});return r};var p=r=>f(s({},"__esModule",{value:!0}),r);var F={};c(F,{thisVersionOrDefault:()=>t,versions:()=>S});module.exports=p(F);function t(r){if(r!==void 0){let e=r.toString();if(e!=="true")return e}return"0.0.0"}var S={FUELS:t("0.24.1"),FUEL_CORE:t("0.14.0"),FORC:t("0.31.3")};0&&(module.exports={thisVersionOrDefault,versions}); | ||
"use strict";var s=Object.defineProperty;var E=Object.getOwnPropertyDescriptor;var O=Object.getOwnPropertyNames;var R=Object.prototype.hasOwnProperty;var c=(r,e)=>{for(var o in e)s(r,o,{get:e[o],enumerable:!0})},f=(r,e,o,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of O(e))!R.call(r,n)&&n!==o&&s(r,n,{get:()=>e[n],enumerable:!(i=E(e,n))||i.enumerable});return r};var p=r=>f(s({},"__esModule",{value:!0}),r);var F={};c(F,{thisVersionOrDefault:()=>t,versions:()=>S});module.exports=p(F);function t(r){if(r!==void 0){let e=r.toString();if(e!=="true")return e}return"0.0.0"}var S={FUELS:t("0.24.2"),FUEL_CORE:t("0.14.0"),FORC:t("0.31.3")};0&&(module.exports={thisVersionOrDefault,versions}); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@fuel-ts/versions", | ||
"version": "0.0.0-next-20221209231421", | ||
"version": "0.0.0-next-20221209234244", | ||
"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