Gathering detailed insights and metrics for @marygao/core-lro
Gathering detailed insights and metrics for @marygao/core-lro
Gathering detailed insights and metrics for @marygao/core-lro
Gathering detailed insights and metrics for @marygao/core-lro
This repository is for active development of the Azure SDK for JavaScript (NodeJS & Browser). For consumers of the SDK we recommend visiting our public developer docs at https://docs.microsoft.com/javascript/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-js.
npm install @marygao/core-lro
Typescript
Module System
Min. Node Version
Node Version
NPM Version
@azure/arm-playwright_1.0.0-beta.1
Updated on Jul 15, 2025
@azure/arm-storageactions_1.0.0
Updated on Jul 11, 2025
@azure/core-xml_1.5.0
Updated on Jul 10, 2025
@azure-rest/core-client_2.5.0
Updated on Jul 10, 2025
@azure/core-client_1.10.0
Updated on Jul 10, 2025
@azure/core-sse_2.3.0
Updated on Jul 10, 2025
TypeScript (86.81%)
JavaScript (12.78%)
PowerShell (0.33%)
Bicep (0.05%)
HTML (0.01%)
Mustache (0.01%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
2,211 Stars
19,150 Commits
1,255 Forks
411 Watchers
656 Branches
3,040 Contributors
Updated on Jul 15, 2025
Latest Version
3.0.0-beta.4
Package Id
@marygao/core-lro@3.0.0-beta.4
Unpacked Size
527.93 kB
Size
56.38 kB
File Count
151
NPM Version
8.19.2
Node Version
18.12.0
Published on
Mar 26, 2024
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
This is the default implementation of long running operations in Azure SDK JavaScript client libraries which work in both the browser and NodeJS. This library is primarily intended to be used in code generated by AutoRest and autorest.typescript
.
@azure/core-lro
follows The Azure SDK Design Guidelines for Long Running Operations
Key links:
This package is primarily used in generated code and not meant to be consumed directly by end users.
SimplePollerLike
A poller is an object that can poll the long running operation on the server for its state until it reaches a terminal state. It provides the following methods:
getOperationState
: returns the state of the operation, typed as a type that extends OperationState
getResult
: returns the result of the operation when it completes and undefined
otherwiseisDone
: returns whether the operation is in a terminal stateisStopped
: returns whether the polling stoppedonProgress
: registers callback functions to be called every time a polling response is receivedpoll
: sends a single polling requestpollUntilDone
: returns a promise that will resolve with the result of the operationstopPolling
: stops polling;toString
: serializes the state of the pollerOperationState
A type for the operation state. It contains a status
field with the following possible values: notStarted
, running
, succeeded
, failed
, and canceled
. It can be accessed as follows:
1switch(poller.getOperationState().status) { 2 case "succeeded": // return poller.getResult(); 3 case "failed": // throw poller.getOperationState().error; 4 case "canceled": // throw new Error("Operation was canceled"); 5 case "running": // ... 6 case "notStarted": // ... 7}
createHttpPoller
A function that returns an object of type SimplePollerLike
. This poller behaves as follows in the presence of errors:
poll
and pollUntilDone
will throw an error in case the operation has failed or canceled unless the resolveOnUnsuccessful
option was set to true.poller.getOperationState().status
will be set to true when either the operation fails or it returns an error response.Examples can be found in the samples
folder.
Logs can be added at the discretion of the library implementing the Long Running Operation poller. Packages inside of azure-sdk-for-js use @azure/logger.
Please take a look at the samples directory for detailed examples on how to use this library.
If you'd like to contribute to this library, please read the contributing guide to learn more about how to build and test the code.
To run our tests, first install the dependencies (with npm install
or rush install
),
then run the unit tests with: npm run unit-test
.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
No vulnerabilities found.
Reason
all changesets reviewed
Reason
30 commit(s) and 12 issue activity found in the last 90 days -- score normalized to 10
Reason
license file detected
Details
Reason
no dangerous workflow patterns detected
Reason
security policy file detected
Details
Reason
0 existing vulnerabilities detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
binaries present in source code
Details
Reason
branch protection is not maximal on development and all release branches
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Score
Last Scanned on 2025-07-14
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More