File Explorer

/var/runtime/node_modules/@aws-sdk/node_modules/@smithy/uuid/dist-cjs

This explorer reads the filesystem of the server it runs on, so /workspace/user isn't present here. Browsing and the terminal still work against this server's own disk from /.

index.js1.9 KB · 46 lines
var __defProp = Object.defineProperty;var __getOwnPropDesc = Object.getOwnPropertyDescriptor;var __getOwnPropNames = Object.getOwnPropertyNames;var __hasOwnProp = Object.prototype.hasOwnProperty;var __name = (target, value) => __defProp(target, "name", { value, configurable: true });var __export = (target, all) => {  for (var name in all)    __defProp(target, name, { get: all[name], enumerable: true });};var __copyProps = (to, from, except, desc) => {  if (from && typeof from === "object" || typeof from === "function") {    for (let key of __getOwnPropNames(from))      if (!__hasOwnProp.call(to, key) && key !== except)        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });  }  return to;};var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); // src/index.tsvar index_exports = {};__export(index_exports, {  v4: () => v4});module.exports = __toCommonJS(index_exports); // src/v4.tsvar import_randomUUID = require("././randomUUID");var decimalToHex = Array.from({ length: 256 }, (_, i) => i.toString(16).padStart(2, "0"));var v4 = /* @__PURE__ */ __name(() => {  if (import_randomUUID.randomUUID) {    return (0, import_randomUUID.randomUUID)();  }  const rnds = new Uint8Array(16);  crypto.getRandomValues(rnds);  rnds[6] = rnds[6] & 15 | 64;  rnds[8] = rnds[8] & 63 | 128;  return decimalToHex[rnds[0]] + decimalToHex[rnds[1]] + decimalToHex[rnds[2]] + decimalToHex[rnds[3]] + "-" + decimalToHex[rnds[4]] + decimalToHex[rnds[5]] + "-" + decimalToHex[rnds[6]] + decimalToHex[rnds[7]] + "-" + decimalToHex[rnds[8]] + decimalToHex[rnds[9]] + "-" + decimalToHex[rnds[10]] + decimalToHex[rnds[11]] + decimalToHex[rnds[12]] + decimalToHex[rnds[13]] + decimalToHex[rnds[14]] + decimalToHex[rnds[15]];}, "v4");// Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = {  v4});