@xylabs/hex 4.2.2 → 4.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,4 @@
1
1
  import type { Hex, HexConfig } from '../model.ts';
2
+ /** Takes unknown value and tries our best to convert it to a hex string */
2
3
  export declare const hexFrom: (value: string | number | bigint | ArrayBuffer, config?: HexConfig) => Hex;
3
4
  //# sourceMappingURL=from.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"from.d.ts","sourceRoot":"","sources":["../../../../src/hex/from/from.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAOjD,eAAO,MAAM,OAAO,UAEX,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,WAAW,WAEpC,SAAS,KACjB,GAkBF,CAAA"}
1
+ {"version":3,"file":"from.d.ts","sourceRoot":"","sources":["../../../../src/hex/from/from.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAMjD,2EAA2E;AAC3E,eAAO,MAAM,OAAO,UAEX,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,WAAW,WAEpC,SAAS,KACjB,GAkBF,CAAA"}
@@ -1,3 +1,4 @@
1
1
  import type { Hex, HexConfig } from '../model.ts';
2
+ /** Convert an ArrayBuffer to a hex string */
2
3
  export declare const hexFromArrayBuffer: (buffer: ArrayBuffer, config?: HexConfig) => Hex;
3
4
  //# sourceMappingURL=fromArrayBuffer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fromArrayBuffer.d.ts","sourceRoot":"","sources":["../../../../src/hex/from/fromArrayBuffer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAIjD,eAAO,MAAM,kBAAkB,WAErB,WAAW,WAEV,SAAS,KACjB,GAGF,CAAA"}
1
+ {"version":3,"file":"fromArrayBuffer.d.ts","sourceRoot":"","sources":["../../../../src/hex/from/fromArrayBuffer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAGjD,6CAA6C;AAC7C,eAAO,MAAM,kBAAkB,WAErB,WAAW,WAEV,SAAS,KACjB,GAGF,CAAA"}
@@ -1,3 +1,4 @@
1
1
  import type { Hex, HexConfig } from '../model.ts';
2
+ /** Convert a bigint to a hex string */
2
3
  export declare const hexFromBigInt: (value: bigint, config?: HexConfig) => Hex;
3
4
  //# sourceMappingURL=fromBigInt.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fromBigInt.d.ts","sourceRoot":"","sources":["../../../../src/hex/from/fromBigInt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAKjD,eAAO,MAAM,aAAa,UAEjB,MAAM,WAEL,SAAS,KAChB,GAKF,CAAA"}
1
+ {"version":3,"file":"fromBigInt.d.ts","sourceRoot":"","sources":["../../../../src/hex/from/fromBigInt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAIjD,uCAAuC;AACvC,eAAO,MAAM,aAAa,UAEjB,MAAM,WAEL,SAAS,KAChB,GAKF,CAAA"}
@@ -1,4 +1,5 @@
1
1
  export type Hex = Exclude<Lowercase<string>, 'reserved-hex-value'>;
2
+ /** Configuration of validation and output format */
2
3
  export interface HexConfig {
3
4
  bitLength?: number;
4
5
  byteSize?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../src/hex/model.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,GAAG,GAAG,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,oBAAoB,CAAC,CAAA;AAGlE,MAAM,WAAW,SAAS;IACxB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB"}
1
+ {"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../src/hex/model.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,GAAG,GAAG,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,oBAAoB,CAAC,CAAA;AAElE,oDAAoD;AACpD,MAAM,WAAW,SAAS;IACxB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB"}
@@ -1,3 +1,4 @@
1
1
  import type { HexConfig } from './model.ts';
2
+ /** takes any value and tries our best to convert it to a hex string */
2
3
  export declare const toHex: (value: string | number | bigint | ArrayBuffer, config?: HexConfig) => Lowercase<string>;
3
4
  //# sourceMappingURL=to.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"to.d.ts","sourceRoot":"","sources":["../../../src/hex/to.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAG3C,eAAO,MAAM,KAAK,UAET,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,WAAW,WAErC,SAAS,sBAIlB,CAAA"}
1
+ {"version":3,"file":"to.d.ts","sourceRoot":"","sources":["../../../src/hex/to.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAE3C,uEAAuE;AACvE,eAAO,MAAM,KAAK,UAET,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,WAAW,WAErC,SAAS,sBAIlB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xylabs/hex",
3
- "version": "4.2.2",
3
+ "version": "4.3.1",
4
4
  "description": "Base functionality used throughout XY Labs TypeScript/JavaScript libraries",
5
5
  "keywords": [
6
6
  "hex",
@@ -39,8 +39,8 @@
39
39
  "packages/**/*"
40
40
  ],
41
41
  "devDependencies": {
42
- "@xylabs/ts-scripts-yarn3": "^4.2.1",
43
- "@xylabs/tsconfig": "^4.2.1",
42
+ "@xylabs/ts-scripts-yarn3": "^4.2.3",
43
+ "@xylabs/tsconfig": "^4.2.3",
44
44
  "typescript": "^5.6.3"
45
45
  },
46
46
  "engines": {