source: imaps-frontend/node_modules/uuid/dist/cjs/v6.js@ 79a0317

main
Last change on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 620 bytes
Line 
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3const stringify_js_1 = require("./stringify.js");
4const v1_js_1 = require("./v1.js");
5const v1ToV6_js_1 = require("./v1ToV6.js");
6function v6(options, buf, offset) {
7 options ??= {};
8 offset ??= 0;
9 let bytes = (0, v1_js_1.default)({ ...options, _v6: true }, new Uint8Array(16));
10 bytes = (0, v1ToV6_js_1.default)(bytes);
11 if (buf) {
12 for (let i = 0; i < 16; i++) {
13 buf[offset + i] = bytes[i];
14 }
15 return buf;
16 }
17 return (0, stringify_js_1.unsafeStringify)(bytes);
18}
19exports.default = v6;
Note: See TracBrowser for help on using the repository browser.