@nexus-navigators/aws-data-faker
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "@nexus-navigators/aws-data-faker", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Unit test data generator for AWS SDK objects", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -26,3 +26,3 @@ "use strict"; | ||
var import_crypto = require("crypto"); | ||
var import_account = require("../account/index.ts"); | ||
var import_account = require("../account/index"); | ||
const createAPIGatewayEventIdentity = ({ | ||
@@ -29,0 +29,0 @@ accessKey = null, |
@@ -1,2 +0,2 @@ | ||
export * as proxyEvent from './proxyEvent.ts'; | ||
export * as proxyEventV2 from './proxyEventV2.ts'; | ||
export * as proxyEvent from './proxyEvent'; | ||
export * as proxyEventV2 from './proxyEventV2'; |
@@ -35,4 +35,4 @@ "use strict"; | ||
module.exports = __toCommonJS(apiGateway_exports); | ||
var proxyEvent = __toESM(require("./proxyEvent.ts")); | ||
var proxyEventV2 = __toESM(require("./proxyEventV2.ts")); | ||
var proxyEvent = __toESM(require("./proxyEvent")); | ||
var proxyEventV2 = __toESM(require("./proxyEventV2")); | ||
// Annotate the CommonJS export names for ESM import in node: | ||
@@ -39,0 +39,0 @@ 0 && (module.exports = { |
import type { APIGatewayProxyEvent, APIGatewayEventDefaultAuthorizerContext } from 'aws-lambda'; | ||
import type { PartialAuthorizer } from './baseEvent.ts'; | ||
import type { PartialAuthorizer } from './baseEvent'; | ||
export type PartialProxyEvent = Partial<Omit<APIGatewayProxyEvent, 'requestContext'>> & { | ||
@@ -4,0 +4,0 @@ requestContext?: PartialAuthorizer<APIGatewayEventDefaultAuthorizerContext>; |
@@ -24,3 +24,3 @@ "use strict"; | ||
module.exports = __toCommonJS(proxyEvent_exports); | ||
var import_baseEvent = require("./baseEvent.ts"); | ||
var import_baseEvent = require("./baseEvent"); | ||
const createAPIGatewayProxyEvent = ({ | ||
@@ -27,0 +27,0 @@ body = null, |
@@ -26,3 +26,3 @@ "use strict"; | ||
module.exports = __toCommonJS(proxyEventV2_exports); | ||
var import_account = require("../account/index.ts"); | ||
var import_account = require("../account/index"); | ||
const createAPIGatewayProxyEventV2RequestContextHttp = ({ | ||
@@ -29,0 +29,0 @@ method = "GET", |
@@ -1,1 +0,1 @@ | ||
export * as logs from './logs.ts'; | ||
export * as logs from './logs'; |
@@ -34,3 +34,3 @@ "use strict"; | ||
module.exports = __toCommonJS(cloudWatch_exports); | ||
var logs = __toESM(require("./logs.ts")); | ||
var logs = __toESM(require("./logs")); | ||
// Annotate the CommonJS export names for ESM import in node: | ||
@@ -37,0 +37,0 @@ 0 && (module.exports = { |
@@ -1,2 +0,2 @@ | ||
export * as stream from './stream.ts'; | ||
export * as marshaller from './marshaller.ts'; | ||
export * as stream from './stream'; | ||
export * as marshaller from './marshaller'; |
@@ -35,4 +35,4 @@ "use strict"; | ||
module.exports = __toCommonJS(dynamodb_exports); | ||
var stream = __toESM(require("./stream.ts")); | ||
var marshaller = __toESM(require("./marshaller.ts")); | ||
var stream = __toESM(require("./stream")); | ||
var marshaller = __toESM(require("./marshaller")); | ||
// Annotate the CommonJS export names for ESM import in node: | ||
@@ -39,0 +39,0 @@ 0 && (module.exports = { |
import type { DynamoDBRecord, StreamRecord } from 'aws-lambda'; | ||
import type { marshallOptions } from '@aws-sdk/util-dynamodb'; | ||
import type { PartialServiceArn } from '../account/index.ts'; | ||
import type { PartialServiceArn } from '../account/index'; | ||
export interface CustomStreamRecord<KeysType extends Record<string, any>, OldImageType extends KeysType = KeysType, NewImageType extends OldImageType = OldImageType> extends Omit<StreamRecord, 'Keys' | 'OldImage' | 'NewImage'> { | ||
@@ -5,0 +5,0 @@ Keys: KeysType; |
@@ -27,4 +27,4 @@ "use strict"; | ||
var import_crypto = require("crypto"); | ||
var import_account = require("../account/index.ts"); | ||
var import_marshaller = require("./marshaller.ts"); | ||
var import_account = require("../account/index"); | ||
var import_marshaller = require("./marshaller"); | ||
const createStreamRecord = ({ | ||
@@ -31,0 +31,0 @@ ApproximateCreationDateTime = Date.now(), |
@@ -1,1 +0,1 @@ | ||
export * as stream from './stream.ts'; | ||
export * as stream from './stream'; |
@@ -34,3 +34,3 @@ "use strict"; | ||
module.exports = __toCommonJS(kinesis_exports); | ||
var stream = __toESM(require("./stream.ts")); | ||
var stream = __toESM(require("./stream")); | ||
// Annotate the CommonJS export names for ESM import in node: | ||
@@ -37,0 +37,0 @@ 0 && (module.exports = { |
import type { KinesisStreamEvent, KinesisStreamRecord, KinesisStreamRecordPayload } from 'aws-lambda'; | ||
import type { PartialServiceArn } from '../account/index.ts'; | ||
import type { PartialServiceArn } from '../account/index'; | ||
export type KinesisDataType = string | object | undefined; | ||
@@ -4,0 +4,0 @@ export interface PartialKinesisStreamRecordPayload<T extends KinesisDataType = KinesisDataType> extends Partial<Omit<KinesisStreamRecordPayload, 'data'>> { |
@@ -27,3 +27,3 @@ "use strict"; | ||
var import_crypto = require("crypto"); | ||
var import_account = require("../account/index.ts"); | ||
var import_account = require("../account/index"); | ||
const createKinesisStreamRecordPayload = ({ | ||
@@ -30,0 +30,0 @@ approximateArrivalTimestamp = Math.floor(Date.now() / 1e3), |
import type { ClientContext, ClientContextClient, ClientContextEnv, Context } from 'aws-lambda'; | ||
import type { PartialServiceArn } from '../account/index.ts'; | ||
import type { PartialServiceArn } from '../account/index'; | ||
export declare const createClientContextClient: ({ installationId, appTitle, appVersionName, appVersionCode, appPackageName, }?: Partial<ClientContextClient>) => ClientContextClient; | ||
@@ -4,0 +4,0 @@ export declare const createClientContextEnv: ({ platformVersion, platform, make, model, locale, }?: Partial<ClientContextEnv>) => ClientContextEnv; |
@@ -28,3 +28,3 @@ "use strict"; | ||
var import_crypto = require("crypto"); | ||
var import_account = require("../account/index.ts"); | ||
var import_account = require("../account/index"); | ||
const createClientContextClient = ({ | ||
@@ -31,0 +31,0 @@ installationId = "", |
@@ -1,1 +0,1 @@ | ||
export * as context from './context.ts'; | ||
export * as context from './context'; |
@@ -34,3 +34,3 @@ "use strict"; | ||
module.exports = __toCommonJS(lambda_exports); | ||
var context = __toESM(require("./context.ts")); | ||
var context = __toESM(require("./context")); | ||
// Annotate the CommonJS export names for ESM import in node: | ||
@@ -37,0 +37,0 @@ 0 && (module.exports = { |
import type { S3EventRecord } from 'aws-lambda'; | ||
import type { PartialServiceArn } from '../account/index.ts'; | ||
import type { PartialServiceArn } from '../account/index'; | ||
export type S3RecordEventType = 'TestEvent' | 'ObjectCreated:Put' | 'ObjectCreated:Post' | 'ObjectCreated:Copy' | 'ObjectCreated:CompleteMultipartUpload' | 'ObjectRemoved:Delete' | 'ObjectRemoved:DeleteMarkerCreated' | 'ObjectRestore:Post' | 'ObjectRestore:Completed' | 'ReducedRedundancyLostObject' | 'Replication:OperationFailedReplication' | 'Replication:OperationMissedThreshold' | 'Replication:OperationReplicatedAfterThreshold' | 'Replication:OperationNotTracked'; | ||
@@ -4,0 +4,0 @@ export type S3Record = S3EventRecord['s3']; |
@@ -28,3 +28,3 @@ "use strict"; | ||
var import_crypto = require("crypto"); | ||
var import_account = require("../account/index.ts"); | ||
var import_account = require("../account/index"); | ||
const createRecordBucket = ({ | ||
@@ -68,3 +68,3 @@ name, | ||
awsRegion = "us-east-1", | ||
eventTime = (/* @__PURE__ */ new Date()).toISOString(), | ||
eventTime = (/* @__PURE__ */ (new Date())).toISOString(), | ||
eventName = "ObjectCreated:Put", | ||
@@ -71,0 +71,0 @@ userIdentity = { |
@@ -1,1 +0,1 @@ | ||
export * as objectEvent from './event.ts'; | ||
export * as objectEvent from './event'; |
@@ -34,3 +34,3 @@ "use strict"; | ||
module.exports = __toCommonJS(s3_exports); | ||
var objectEvent = __toESM(require("./event.ts")); | ||
var objectEvent = __toESM(require("./event")); | ||
// Annotate the CommonJS export names for ESM import in node: | ||
@@ -37,0 +37,0 @@ 0 && (module.exports = { |
import type { SNSEventRecord, SNSMessage } from 'aws-lambda'; | ||
import type { PartialServiceArn } from '../account/index.ts'; | ||
import type { PartialServiceArn } from '../account/index'; | ||
export type PartialSNSMessage = Omit<Partial<SNSMessage>, 'Message' | 'TopicArn'> & { | ||
@@ -4,0 +4,0 @@ Message?: string | object; |
@@ -26,6 +26,6 @@ "use strict"; | ||
var import_crypto = require("crypto"); | ||
var import_account = require("../account/index.ts"); | ||
var import_account = require("../account/index"); | ||
const createSnsMessage = ({ | ||
SignatureVersion = "1", | ||
Timestamp = (/* @__PURE__ */ new Date()).toISOString(), | ||
Timestamp = (/* @__PURE__ */ (new Date())).toISOString(), | ||
Signature = (0, import_crypto.randomUUID)(), | ||
@@ -32,0 +32,0 @@ SigningCertUrl = "https://never.never.never/never.pem", |
@@ -1,1 +0,1 @@ | ||
export * as event from './event.ts'; | ||
export * as event from './event'; |
@@ -34,3 +34,3 @@ "use strict"; | ||
module.exports = __toCommonJS(sns_exports); | ||
var event = __toESM(require("./event.ts")); | ||
var event = __toESM(require("./event")); | ||
// Annotate the CommonJS export names for ESM import in node: | ||
@@ -37,0 +37,0 @@ 0 && (module.exports = { |
import type { SQSRecord, SQSRecordAttributes, SQSMessageAttributes } from 'aws-lambda'; | ||
import type { PartialServiceArn } from '../account/index.ts'; | ||
import type { PartialServiceArn } from '../account/index'; | ||
export interface PartialSQSRecord extends Partial<Omit<SQSRecord, 'attributes' | 'messageAttributes' | 'body' | 'md5OfBody' | 'eventSource' | 'eventSourceARN'>> { | ||
@@ -4,0 +4,0 @@ attributes?: Partial<SQSRecordAttributes>; |
@@ -27,3 +27,3 @@ "use strict"; | ||
var import_crypto = require("crypto"); | ||
var import_account = require("../account/index.ts"); | ||
var import_account = require("../account/index"); | ||
const createSQSRecordAttributes = ({ | ||
@@ -30,0 +30,0 @@ AWSTraceHeader, |
@@ -1,1 +0,1 @@ | ||
export * as event from './event.ts'; | ||
export * as event from './event'; |
@@ -34,3 +34,3 @@ "use strict"; | ||
module.exports = __toCommonJS(sqs_exports); | ||
var event = __toESM(require("./event.ts")); | ||
var event = __toESM(require("./event")); | ||
// Annotate the CommonJS export names for ESM import in node: | ||
@@ -37,0 +37,0 @@ 0 && (module.exports = { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
80828