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

@fuel-ts/math

Package Overview
Dependencies
Maintainers
5
Versions
3195
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fuel-ts/math - npm Package Compare versions

Comparing version 0.0.0-master-ff338cde to 0.0.0-next-20220719225414

README.md

2

dist/index.global.js

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

(()=>{var f="0123456789abcdef";function u(n){if(n instanceof Uint8Array){let t="0x0";for(let r of n)t+=f[r>>4],t+=f[r&15];return BigInt(t)}return BigInt(n)}function s(n){let t=u(n);if(t<-9007199254740991||t>9007199254740991)throw new Error(`Value out of range: ${n}`);return Number(t)}function a(n,t){let r=BigInt(n);if(r<0)throw new Error("cannot convert negative value to hex");let e=r.toString(16);if(t==null)e.length%2&&(e=`0${e}`);else{if(t*2<e.length)throw new Error(`value ${r} exceeds width ${t}`);for(;e.length<t*2;)e=`0${e}`}return`0x${e}`}function l(n){let t=BigInt(n);if(t<0)throw new Error("cannot convert negative value to hex");if(t===0n)return new Uint8Array([]);let r=t.toString(16);r.length%2&&(r=`0${r}`);let e=new Uint8Array(r.length/2);for(let o=0;o<e.length;o+=1){let i=o*2;e[o]=parseInt(r.substring(i,i+2),16)}return e}})();
"use strict";(()=>{var f="0123456789abcdef";function u(n){if(n instanceof Uint8Array){let t="0x0";for(let r of n)t+=f[r>>4],t+=f[r&15];return BigInt(t)}return BigInt(n)}function s(n){let t=u(n);if(t<-9007199254740991||t>9007199254740991)throw new Error(`Value out of range: ${n}`);return Number(t)}function a(n,t){let r=BigInt(n);if(r<0)throw new Error("cannot convert negative value to hex");let e=r.toString(16);if(t==null)e.length%2&&(e=`0${e}`);else{if(t*2<e.length)throw new Error(`value ${r} exceeds width ${t}`);for(;e.length<t*2;)e=`0${e}`}return`0x${e}`}function l(n){let t=BigInt(n);if(t<0)throw new Error("cannot convert negative value to hex");if(t===0n)return new Uint8Array([]);let r=t.toString(16);r.length%2&&(r=`0${r}`);let e=new Uint8Array(r.length/2);for(let o=0;o<e.length;o+=1){let i=o*2;e[o]=parseInt(r.substring(i,i+2),16)}return e}})();
//# sourceMappingURL=index.global.js.map

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

var o=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var x=(r,t)=>{for(var e in t)o(r,e,{get:t[e],enumerable:!0})},h=(r,t,e,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of l(t))!c.call(r,i)&&i!==e&&o(r,i,{get:()=>t[i],enumerable:!(n=a(t,i))||n.enumerable});return r};var m=r=>h(o({},"__esModule",{value:!0}),r);var y={};x(y,{toArray:()=>B,toBigInt:()=>g,toHex:()=>p,toNumber:()=>b});module.exports=m(y);var u="0123456789abcdef";function g(r){if(r instanceof Uint8Array){let t="0x0";for(let e of r)t+=u[e>>4],t+=u[e&15];return BigInt(t)}return BigInt(r)}function b(r){let t=g(r);if(t<-9007199254740991||t>9007199254740991)throw new Error(`Value out of range: ${r}`);return Number(t)}function p(r,t){let e=BigInt(r);if(e<0)throw new Error("cannot convert negative value to hex");let n=e.toString(16);if(t==null)n.length%2&&(n=`0${n}`);else{if(t*2<n.length)throw new Error(`value ${e} exceeds width ${t}`);for(;n.length<t*2;)n=`0${n}`}return`0x${n}`}function B(r){let t=BigInt(r);if(t<0)throw new Error("cannot convert negative value to hex");if(t===0n)return new Uint8Array([]);let e=t.toString(16);e.length%2&&(e=`0${e}`);let n=new Uint8Array(e.length/2);for(let i=0;i<n.length;i+=1){let f=i*2;n[i]=parseInt(e.substring(f,f+2),16)}return n}0&&(module.exports={toArray,toBigInt,toHex,toNumber});
"use strict";var o=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var x=(r,t)=>{for(var e in t)o(r,e,{get:t[e],enumerable:!0})},h=(r,t,e,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of l(t))!c.call(r,i)&&i!==e&&o(r,i,{get:()=>t[i],enumerable:!(n=a(t,i))||n.enumerable});return r};var m=r=>h(o({},"__esModule",{value:!0}),r);var y={};x(y,{toArray:()=>B,toBigInt:()=>g,toHex:()=>p,toNumber:()=>b});module.exports=m(y);var u="0123456789abcdef";function g(r){if(r instanceof Uint8Array){let t="0x0";for(let e of r)t+=u[e>>4],t+=u[e&15];return BigInt(t)}return BigInt(r)}function b(r){let t=g(r);if(t<-9007199254740991||t>9007199254740991)throw new Error(`Value out of range: ${r}`);return Number(t)}function p(r,t){let e=BigInt(r);if(e<0)throw new Error("cannot convert negative value to hex");let n=e.toString(16);if(t==null)n.length%2&&(n=`0${n}`);else{if(t*2<n.length)throw new Error(`value ${e} exceeds width ${t}`);for(;n.length<t*2;)n=`0${n}`}return`0x${n}`}function B(r){let t=BigInt(r);if(t<0)throw new Error("cannot convert negative value to hex");if(t===0n)return new Uint8Array([]);let e=t.toString(16);e.length%2&&(e=`0${e}`);let n=new Uint8Array(e.length/2);for(let i=0;i<n.length;i+=1){let f=i*2;n[i]=parseInt(e.substring(f,f+2),16)}return n}0&&(module.exports={toArray,toBigInt,toHex,toNumber});
//# sourceMappingURL=index.js.map
{
"name": "@fuel-ts/math",
"version": "0.0.0-master-ff338cde",
"version": "0.0.0-next-20220719225414",
"description": "",

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

"main": "dist/index.js",
"files": [
"dist"
],
"license": "Apache-2.0",
"scripts": {
"build": "tsup --dts"
},
"module": "dist/index.mjs",

@@ -17,10 +24,3 @@ "types": "dist/index.d.ts",

}
},
"files": [
"dist"
],
"license": "Apache-2.0",
"scripts": {
"build": "tsup --dts"
}
}

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