@xylabs/hex
Advanced tools
Comparing version 4.0.2 to 4.0.3
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41972
471