Rocky_Mountain_Vending/.pnpm-store/v10/files/b3/da73959ca201448906ad86fc4cd2090963d160f68fd1e78e1da84c82a1066e8cd99289253afddef4551a973b11e5929a4e265ac7ca0458fda39941524b35ec
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

24 lines
No EOL
905 B
Text

"use strict";
// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
Object.defineProperty(exports, "__esModule", { value: true });
exports.convertToBuffer = void 0;
var util_utf8_1 = require("@smithy/util-utf8");
// Quick polyfill
var fromUtf8 = typeof Buffer !== "undefined" && Buffer.from
? function (input) { return Buffer.from(input, "utf8"); }
: util_utf8_1.fromUtf8;
function convertToBuffer(data) {
// Already a Uint8, do nothing
if (data instanceof Uint8Array)
return data;
if (typeof data === "string") {
return fromUtf8(data);
}
if (ArrayBuffer.isView(data)) {
return new Uint8Array(data.buffer, data.byteOffset, data.byteLength / Uint8Array.BYTES_PER_ELEMENT);
}
return new Uint8Array(data);
}
exports.convertToBuffer = convertToBuffer;
//# sourceMappingURL=convertToBuffer.js.map