New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@fuel-ts/versions

Package Overview
Dependencies
Maintainers
5
Versions
3009
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.0.0-next-20221217013357 to 0.0.0-next-20221220044840

2

dist/bin.js
#!/usr/bin/env node
"use strict";var S=Object.create;var C=Object.defineProperty;var x=Object.getOwnPropertyDescriptor;var R=Object.getOwnPropertyNames;var G=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty;var L=(r,e,o,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of R(e))!b.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)):{},L(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.27.0"),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}),v=m({version:s,isGt:n.userForcIsGt,isOk:n.userForcIsEq}),O=m({version:F,isGt:n.userFuelCoreIsGt,isOk:n.userFuelCoreIsEq});o.push(["Forc",i.FORC,v]),o.push(["Fuel-Core",i.FUEL_CORE,O]);let U=n.userForcIsGt||n.userFuelCoreIsGt,h=n.userForcIsEq&&n.userFuelCoreIsEq;U?(e("Your system's components are newer than the ones supported!"),e(o.toString()),process.exit(0)):h?(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 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.27.0"),FUEL_CORE:C("0.14.0"),FORC:C("0.31.3")}}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 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.27.0"),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 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.27.0"),FUEL_CORE:g("0.14.0"),FORC:g("0.31.3")}}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,1 @@

declare function thisVersionOrDefault(version?: string | boolean): string;
declare const versions: {

@@ -8,2 +7,2 @@ FUELS: string;

export { thisVersionOrDefault, versions };
export { versions };

@@ -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.27.0"),FUEL_CORE:e("0.14.0"),FORC:e("0.31.3")};})();
"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.27.0"),FUEL_CORE:e("0.14.0"),FORC:e("0.31.3")}}var i=n();})();
//# 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.27.0"),FUEL_CORE:t("0.14.0"),FORC:t("0.31.3")};0&&(module.exports={thisVersionOrDefault,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.27.0"),FUEL_CORE:s("0.14.0"),FORC:s("0.31.3")}}var V=p();0&&(module.exports={versions});
//# sourceMappingURL=index.js.map
{
"name": "@fuel-ts/versions",
"version": "0.0.0-next-20221217013357",
"version": "0.0.0-next-20221220044840",
"description": "Validates supported versions of the Fuel toolchain",

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

"dependencies": {
"@types/cli-table": "^0.3.1",
"@types/yargs": "^17.0.13",
"chalk": "4",

@@ -36,10 +34,9 @@ "cli-table": "^0.3.11",

"devDependencies": {
"@types/cli-table": "^0.3.1",
"@types/semver": "^7.3.13"
},
"scripts": {
"build": "tsup --dts --env.BUILD_VERSION $BUILD_VERSION --env.FORC_VERSION $FORC_VERSION --env.FUEL_CORE_VERSION $FUEL_CORE_VERSION",
"test": "jest test --coverage",
"test:watch": "jest test --watch --coverage"
"build": "tsup --dts --env.BUILD_VERSION $BUILD_VERSION --env.FORC_VERSION $FORC_VERSION --env.FUEL_CORE_VERSION $FUEL_CORE_VERSION"
},
"module": "dist/index.mjs"
}

@@ -1,1 +0,22 @@

export * from './versions';
/*
Variables:
`FUELS` — comes from `/packages/fuels/package.json`
`FUEL_CORE` — comes from `/services/fuel-core/Dockerfile`
`FORC` — comes from `/packages/forc-bin/package.json`
The CI release routine reads the aforementioned files,
and set all the variables prior to building the packages.
Take a look at the /.github/workflows/release` file.
The TSUP build then replaces all `process.env.<VAR_NAME>`
entries bellow with their respective values from the env.
If no env variables are set, the expression `!0` seems to be
used by TSUP, which then results to `true`. For this reason,
we check for it and use default values instead.
*/
import { getSupportedVersions } from './lib/getSupportedVersions';
export const versions = getSupportedVersions();

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