UNPKG

@walkeros/server-destination-aws

Version:

AWS server destination for walkerOS

71 lines (67 loc) 1.9 kB
"use strict"; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __hasOwnProp = Object.prototype.hasOwnProperty; 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/examples/index.ts var examples_exports2 = {}; __export(examples_exports2, { env: () => env_exports, firehose: () => examples_exports }); module.exports = __toCommonJS(examples_exports2); // src/firehose/examples/index.ts var examples_exports = {}; __export(examples_exports, { env: () => env_exports }); // src/firehose/examples/env.ts var env_exports = {}; __export(env_exports, { push: () => push, simulation: () => simulation }); var MockFirehoseClient = class { constructor(config) { this.config = config; } async send(command) { return { RecordId: "mock-record-id", ResponseMetadata: { RequestId: "mock-request-id" } }; } }; var MockPutRecordBatchCommand = class { constructor(input) { this.input = input; } }; var push = { // Environment for push operations AWS: { FirehoseClient: MockFirehoseClient, PutRecordBatchCommand: MockPutRecordBatchCommand } }; var simulation = ["AWS.FirehoseClient"]; // Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { env, firehose });