@xyo-network/data 5.1.21 → 5.1.23

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/data",
3
- "version": "5.1.21",
3
+ "version": "5.1.23",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -30,21 +30,24 @@
30
30
  "types": "dist/neutral/index.d.ts",
31
31
  "files": [
32
32
  "dist",
33
- "src"
33
+ "src",
34
+ "!**/*.bench.*",
35
+ "!**/*.spec.*",
36
+ "!**/*.test.*"
34
37
  ],
35
38
  "dependencies": {
36
39
  "@scure/base": "~2.0.0",
37
- "@xylabs/arraybuffer": "~5.0.24",
38
- "@xylabs/assert": "~5.0.24",
39
- "@xylabs/hex": "~5.0.24",
40
+ "@xylabs/arraybuffer": "~5.0.33",
41
+ "@xylabs/assert": "~5.0.33",
42
+ "@xylabs/hex": "~5.0.33",
40
43
  "ethers": "~6.15.0"
41
44
  },
42
45
  "devDependencies": {
43
46
  "@xylabs/ts-scripts-yarn3": "~7.2.8",
44
47
  "@xylabs/tsconfig": "~7.2.8",
45
- "@xylabs/vitest-extended": "~5.0.24",
48
+ "@xylabs/vitest-extended": "~5.0.33",
46
49
  "typescript": "~5.9.3",
47
- "vitest": "~4.0.8"
50
+ "vitest": "~4.0.9"
48
51
  },
49
52
  "publishConfig": {
50
53
  "access": "public"
@@ -1,2 +0,0 @@
1
- import '@xylabs/vitest-extended';
2
- //# sourceMappingURL=toUint8Array.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"toUint8Array.spec.d.ts","sourceRoot":"","sources":["../../../src/spec/toUint8Array.spec.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAA"}
@@ -1,2 +0,0 @@
1
- import '@xylabs/vitest-extended';
2
- //# sourceMappingURL=toUint8Array.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"toUint8Array.spec.d.ts","sourceRoot":"","sources":["../../../src/spec/toUint8Array.spec.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAA"}
@@ -1,2 +0,0 @@
1
- import '@xylabs/vitest-extended';
2
- //# sourceMappingURL=toUint8Array.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"toUint8Array.spec.d.ts","sourceRoot":"","sources":["../../../src/spec/toUint8Array.spec.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAA"}
@@ -1,22 +0,0 @@
1
- import '@xylabs/vitest-extended'
2
-
3
- import { toUint8Array } from '@xylabs/arraybuffer'
4
- import {
5
- describe, expect, test,
6
- } from 'vitest'
7
-
8
- describe('toUint8Array', () => {
9
- test('Uint8Array Round Trip', () => {
10
- const testArray = Uint8Array.from([0, 1, 2, 3])
11
- const testArrayPrime = toUint8Array(testArray.buffer)
12
- expect(testArray.length).toBe(testArrayPrime.length)
13
- for (const [i, element] of testArray.entries()) {
14
- expect(element).toBe(testArrayPrime[i])
15
- }
16
- })
17
- test('Hex Round Trip', () => {
18
- const testHex = '1a2b3c'
19
- const testHexPrime = Buffer.from(toUint8Array(testHex)).toString('hex')
20
- expect(testHex).toBe(testHexPrime)
21
- })
22
- })