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

@xylabs/hex

Package Overview
Dependencies
Maintainers
0
Versions
118
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xylabs/hex - npm Package Compare versions

Comparing version 4.0.2 to 4.0.3

56

package.json
{
"name": "@xylabs/hex",
"version": "4.0.3",
"description": "Base functionality used throughout XY Labs TypeScript/JavaScript libraries",
"keywords": [
"hex",
"xylabs",
"utility",
"typescript",
"esm"
],
"homepage": "https://xylabs.com",
"bugs": {
"url": "git+https://github.com/xylabs/sdk-js/issues",
"email": "support@xylabs.com"
},
"repository": {
"type": "git",
"url": "git+https://github.com/xylabs/sdk-js.git"
},
"license": "LGPL-3.0-only",
"name": "@xylabs/hex",
"author": {
"name": "XY Labs Development Team",
"email": "support@xylabs.com",
"name": "XY Labs Development Team",
"url": "https://xylabs.com"
},
"bugs": {
"email": "support@xylabs.com",
"url": "git+https://github.com/xylabs/sdk-js/issues"
},
"workspaces": [
"packages/**/*"
],
"description": "Base functionality used throughout XY Labs TypeScript/JavaScript libraries",
"sideEffects": false,
"type": "module",
"exports": {

@@ -24,15 +36,10 @@ ".": {

},
"module": "./dist/neutral/index.mjs",
"types": "./dist/neutral/index.d.ts",
"module": "./dist/neutral/index.mjs",
"homepage": "https://xylabs.com",
"keywords": [
"hex",
"xylabs",
"utility",
"typescript",
"esm"
"workspaces": [
"packages/**/*"
],
"devDependencies": {
"@xylabs/ts-scripts-yarn3": "^4.0.0-rc.15",
"@xylabs/tsconfig": "^4.0.0-rc.15",
"@xylabs/ts-scripts-yarn3": "^4.0.0",
"@xylabs/tsconfig": "^4.0.0",
"typescript": "^5.5.4"

@@ -45,10 +52,3 @@ },

"access": "public"
},
"repository": {
"type": "git",
"url": "git+https://github.com/xylabs/sdk-js.git"
},
"sideEffects": false,
"version": "4.0.2",
"type": "module"
}
}
import type { AssertConfig } from './assert.ts'
import { assertError } from './assert.ts'
import type { Hex, HexConfig } from './hex/index.ts'
import { hexFrom, hexFromHexString, isHex } from './hex/index.ts'
import {
hexFrom, hexFromHexString, isHex,
} from './hex/index.ts'

@@ -10,3 +12,5 @@ export type Address = Exclude<Hex, 'reserved-address-value'>

const { bitLength = 160, prefix = false } = config
return hexFrom(value, { bitLength, prefix, ...config })
return hexFrom(value, {
bitLength, prefix, ...config,
})
}

@@ -13,0 +17,0 @@

@@ -5,5 +5,3 @@ import type { XyTsupConfig } from '@xylabs/ts-scripts-yarn3'

browser: {},
neutral: {
src: true,
},
neutral: { src: true },
node: {},

@@ -10,0 +8,0 @@ },

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