@aws-amplify/storage
Version:
Storage category of aws-amplify
1 lines • 1.06 kB
Source Map (JSON)
{"version":3,"file":"uploadData.mjs","sources":["../../../../../../src/providers/s3/apis/server/uploadData.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { getAmplifyServerContext, } from '@aws-amplify/core/internals/adapter-core';\nimport { uploadData as uploadDataInternal } from '../internal/uploadData';\nexport function uploadData(contextSpec, input) {\n // The internal uploadData returns an UploadTask which has pause/resume. On\n // the server path we intentionally hide pause/resume from the type because\n // they are not supported across isolated server requests. The runtime\n // object still exposes them as no-ops (delegated to createUploadTask).\n return uploadDataInternal(getAmplifyServerContext(contextSpec).amplify, input);\n}\n"],"names":["uploadDataInternal"],"mappings":";;;AAAA;AACA;AAGO,SAAS,UAAU,CAAC,WAAW,EAAE,KAAK,EAAE;AAC/C;AACA;AACA;AACA;AACA,IAAI,OAAOA,YAAkB,CAAC,uBAAuB,CAAC,WAAW,CAAC,CAAC,OAAO,EAAE,KAAK,CAAC;AAClF;;;;"}