This package, `appcenter-file-upload-client`, provides a client-side JavaScript/TypeScript library designed to streamline the file upload process specifically for Microsoft App Center services. It abstracts the complexities of interacting with the Microsoft file upload service, offering a programmatic interface to upload files with progress tracking, cancellation capabilities, and event hooks for messages and state changes. Currently at version 0.1.0, this package is an early-stage release, and given its last commit date in 2018, it is considered abandoned and unlikely to receive further updates or stability guarantees. Its primary differentiator is its direct integration with App Center's internal file upload mechanisms, requiring `assetId`, `assetDomain`, and `assetToken` values obtained from the App Center service itself.
npm install appcenter-file-upload-clientVerified import paths — ran on the pinned version, not inferred.
Demonstrates initializing `FileUploadClient`, performing an upload with progress and message callbacks, and handling success or error with required environment variables.
Consider alternative file upload solutions or directly integrating with App Center's current file upload APIs if available and documented, bypassing this library.
Ensure your application fetches the necessary `assetId`, `assetDomain`, and `assetToken` from App Center's backend services before attempting an upload. Consult App Center documentation for how to retrieve these credentials.
Implement comprehensive error handling in your application, including retry logic with exponential backoff for transient network issues, and clear user feedback on upload failures.
For ESM: `import { FileUploadClient } from 'appcenter-file-upload-client';`. For CommonJS: `const { FileUploadClient } = require('appcenter-file-upload-client');`.Ensure all required properties are populated in the settings object, obtaining `assetId`, `assetDomain`, and `assetToken` from the App Center service.
Verify that the `assetToken` is fresh, correctly obtained from the App Center service, and has appropriate permissions. Check App Center's documentation for token expiry and refresh mechanisms.
No dependency data recorded yet.