utilium 2.3.0 → 2.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.
Files changed (2) hide show
  1. package/dist/buffer.js +1 -1
  2. package/package.json +1 -1
package/dist/buffer.js CHANGED
@@ -48,7 +48,7 @@ export function initView(view, buffer, byteOffset, byteLength) {
48
48
  || buffer instanceof ArrayBuffer
49
49
  || (globalThis.SharedArrayBuffer && buffer instanceof SharedArrayBuffer)) {
50
50
  const size = byteLength
51
- ?? view.constructor?.[Symbol.metadata]?.struct?.size // Memium structs
51
+ ?? view.constructor?.size // Memium types
52
52
  ?? buffer?.byteLength
53
53
  ?? 0;
54
54
  view.buffer = buffer ?? new ArrayBuffer(size);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "utilium",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "description": "Typescript utilities",
5
5
  "funding": {
6
6
  "type": "individual",