{"id":15184878,"url":"https://github.com/julienblin/rx-async-event","last_synced_at":"2026-03-02T01:33:56.264Z","repository":{"id":136539556,"uuid":"110371157","full_name":"julienblin/rx-async-event","owner":"julienblin","description":null,"archived":false,"fork":false,"pushed_at":"2018-07-02T19:31:11.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-11-19T01:02:48.604Z","etag":null,"topics":["angular","angular2","angular4","npm","rxjs","rxjs-observables"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/rx-async-event","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/julienblin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-11T18:49:48.000Z","updated_at":"2020-10-13T17:50:58.000Z","dependencies_parsed_at":"2023-06-10T03:30:45.404Z","dependency_job_id":null,"html_url":"https://github.com/julienblin/rx-async-event","commit_stats":{"total_commits":35,"total_committers":2,"mean_commits":17.5,"dds":0.08571428571428574,"last_synced_commit":"ed12b8a966a2c9ff8593efcf62750e6df13d8af5"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/julienblin/rx-async-event","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julienblin%2Frx-async-event","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julienblin%2Frx-async-event/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julienblin%2Frx-async-event/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julienblin%2Frx-async-event/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/julienblin","download_url":"https://codeload.github.com/julienblin/rx-async-event/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julienblin%2Frx-async-event/sbom","scorecard":{"id":542087,"data":{"date":"2025-08-11","repo":{"name":"github.com/julienblin/rx-async-event","commit":"ed12b8a966a2c9ff8593efcf62750e6df13d8af5"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"10 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-4q6p-r6v2-jvc5","Warn: Project is vulnerable to: GHSA-2pr6-76vf-7546","Warn: Project is vulnerable to: GHSA-8j8c-7jfh-h6hx","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-g6ww-v8xp-vmwg","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T08:27:26.326Z","repository_id":136539556,"created_at":"2025-08-20T08:27:26.326Z","updated_at":"2025-08-20T08:27:26.326Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29989078,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T22:42:38.399Z","status":"ssl_error","status_checked_at":"2026-03-01T22:41:51.863Z","response_time":124,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angular","angular2","angular4","npm","rxjs","rxjs-observables"],"created_at":"2024-09-27T17:41:24.221Z","updated_at":"2026-03-02T01:33:56.242Z","avatar_url":"https://github.com/julienblin.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rx-async-event\n\nManages processing / processed / error state (mainly) for Angular applications.\n\n[![Travis](https://travis-ci.org/julienblin/rx-async-event.svg?branch=master)](https://travis-ci.org/julienblin/rx-async-event)\n[![npm](https://img.shields.io/npm/v/rx-async-event.svg)](https://www.npmjs.com/package/rx-async-event)\n\n## Objectives\n\nThis is a small helper library to help manage processing and processed states for Angular applications.\nIt allows encapsulation of either a promise or an observable, and emits standardized life cycle events:\n- init\n- processing\n- processed\n- error\n\nAs a side benefit, it also manages errors so that they bubble up in a managed way (instead of crashing the application).\n\n## How to use\n\n### Installation\n\n```shell\nnpm i --save rx-async-event\n```\n\n### Service\n\n```typescript\nimport { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { AsyncEventObservable, AsyncEventSubject } from 'rx-async-event';\nimport { Post } from './post';\n\n@Injectable()\nexport class AppService {\n\n  private readonly _postEvent$ = new AsyncEventSubject\u003cnumber, Post\u003e();\n\n  constructor(private http: HttpClient) { }\n\n  get postEvent$(): AsyncEventObservable\u003cnumber, Post\u003e {\n    return this._postEvent$.asObservable();\n  }\n\n  /**\n   * Example of managing the life cycle of an HttpClient Observable.\n   */\n  loadPost(id: number) {\n    return this._postEvent$.observe(\n      id,\n      this.http.get\u003cPost\u003e(`https://jsonplaceholder.typicode.com/posts/${id}`));\n  }\n\n  /**\n   * This example manages the life cycle of a Promise instead.\n   */\n  loadPostAsPromise(id: number) {\n    return this._postEvent$.execute(\n      id,\n      (arg) =\u003e this.http.get\u003cPost\u003e(`https://jsonplaceholder.typicode.com/posts/${id}`).toPromise());\n  }\n\n  \n}\n```\n\n### Component\n\n```typescript\nimport { Component } from '@angular/core';\nimport { AppService } from './app.service';\nimport { Post } from './post';\nimport { AsyncEventObservable } from 'rx-async-event';\n\n@Component({\n  selector: 'app-root',\n  templateUrl: './app.component.html',\n  styleUrls: ['./app.component.css'],\n  providers: [ AppService ]\n})\nexport class AppComponent {\n\n  postEvent$: AsyncEventObservable\u003cnumber, Post\u003e;\n\n  constructor(private appService: AppService) {\n    this.postEvent$ = this.appService.postEvent$;\n  }\n\n  loadPost(id: number) {\n    this.appService.loadPost(id);\n  }\n}\n```\n\n### View\n\n```html\n\u003cng-container *ngIf=\"(postEvent$ | async) as postEvent\"\u003e\n\n  \u003cng-container *ngIf=\"postEvent.isInit\"\u003e\n    \u003c!-- This is the initial state --\u003e\n    Nothing to display\n  \u003c/ng-container\u003e\n\n  \u003cng-container *ngIf=\"postEvent.isProcessing\"\u003e\n    \u003c!-- This is the processing state --\u003e\n    Processing post id {{postEvent.argument}}...\n  \u003c/ng-container\u003e\n\n  \u003cng-container *ngIf=\"postEvent.isProcessed\"\u003e\n    \u003c!-- This is the processed state --\u003e\n    Post title: {{postEvent.result.title}}\n  \u003c/ng-container\u003e\n\n  \u003cng-container *ngIf=\"postEvent.isError\"\u003e\n    \u003c!-- This is the error state --\u003e\n    Ohuh - something went wrong: {{postEvent.error.message}}\n  \u003c/ng-container\u003e\n\n\u003c/ng-container\u003e\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulienblin%2Frx-async-event","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjulienblin%2Frx-async-event","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulienblin%2Frx-async-event/lists"}