chore: update to version 14.0.11 and align website URLs

This commit is contained in:
2026-01-11 11:34:13 +03:00
parent ef74383349
commit 19c8d69bd8
1499 changed files with 53633 additions and 89 deletions
+4
View File
@@ -0,0 +1,4 @@
/**
* @summary Utility methods to convert to and from `Buffer` objects
*/
export { bufferToU8a } from './toU8a.js';
+8
View File
@@ -0,0 +1,8 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.bufferToU8a = void 0;
/**
* @summary Utility methods to convert to and from `Buffer` objects
*/
var toU8a_js_1 = require("./toU8a.js");
Object.defineProperty(exports, "bufferToU8a", { enumerable: true, get: function () { return toU8a_js_1.bufferToU8a; } });
+15
View File
@@ -0,0 +1,15 @@
/**
* @name bufferToU8a
* @summary Creates a Uint8Array value from a Buffer object.
* @description
* `null` inputs returns an empty result, `Buffer` values return the actual value as a `Uint8Array`. Anything that is not a `Buffer` object throws an error.
* @example
* <BR>
*
* ```javascript
* import { bufferToU8a } from '@pezkuwi/util';
*
* bufferToU8a(Buffer.from([1, 2, 3]));
* ```
*/
export declare function bufferToU8a(buffer?: Uint8Array | number[] | null): Uint8Array;
+20
View File
@@ -0,0 +1,20 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.bufferToU8a = bufferToU8a;
/**
* @name bufferToU8a
* @summary Creates a Uint8Array value from a Buffer object.
* @description
* `null` inputs returns an empty result, `Buffer` values return the actual value as a `Uint8Array`. Anything that is not a `Buffer` object throws an error.
* @example
* <BR>
*
* ```javascript
* import { bufferToU8a } from '@pezkuwi/util';
*
* bufferToU8a(Buffer.from([1, 2, 3]));
* ```
*/
function bufferToU8a(buffer) {
return new Uint8Array(buffer || []);
}