{"id":32237527,"url":"https://github.com/wirecloud/mock-applicationmashup","last_synced_at":"2025-10-22T13:55:10.799Z","repository":{"id":57300001,"uuid":"37717004","full_name":"Wirecloud/mock-applicationmashup","owner":"Wirecloud","description":"Mock of the Application Mashup APIs","archived":false,"fork":false,"pushed_at":"2019-12-12T22:49:53.000Z","size":111,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"develop","last_synced_at":"2025-10-22T13:54:34.029Z","etag":null,"topics":["fiware-wirecloud","wirecloud"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Wirecloud.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}},"created_at":"2015-06-19T10:53:02.000Z","updated_at":"2019-12-12T22:47:42.000Z","dependencies_parsed_at":"2022-09-01T08:40:50.367Z","dependency_job_id":null,"html_url":"https://github.com/Wirecloud/mock-applicationmashup","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/Wirecloud/mock-applicationmashup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wirecloud%2Fmock-applicationmashup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wirecloud%2Fmock-applicationmashup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wirecloud%2Fmock-applicationmashup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wirecloud%2Fmock-applicationmashup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Wirecloud","download_url":"https://codeload.github.com/Wirecloud/mock-applicationmashup/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wirecloud%2Fmock-applicationmashup/sbom","scorecard":{"id":151675,"data":{"date":"2025-08-11","repo":{"name":"github.com/Wirecloud/mock-applicationmashup","commit":"7cc54bded19af8ef0d667d1ee3071140d027dd55"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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":"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":"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":"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":"Code-Review","score":0,"reason":"Found 0/28 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":"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":"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":"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":"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":"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: 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 'develop'"],"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 4 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-16T10:52:29.234Z","repository_id":57300001,"created_at":"2025-08-16T10:52:29.234Z","updated_at":"2025-08-16T10:52:29.234Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280448815,"owners_count":26332533,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-22T02:00:06.515Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["fiware-wirecloud","wirecloud"],"created_at":"2025-10-22T13:55:06.034Z","updated_at":"2025-10-22T13:55:10.794Z","avatar_url":"https://github.com/Wirecloud.png","language":"JavaScript","readme":"# MashupPlatform API mock\n\n[![Build Status](https://travis-ci.org/Wirecloud/mock-applicationmashup.svg?branch=develop)](https://travis-ci.org/Wirecloud/mock-applicationmashup)\n[![Coverage Status](https://coveralls.io/repos/github/Wirecloud/mock-applicationmashup/badge.svg?branch=develop)](https://coveralls.io/github/Wirecloud/mock-applicationmashup?branch=develop)\n\nA JavaScript mock library for the Application Mashup's [Widget API](http://wirecloud.readthedocs.org/en/stable/widgetapi/widgetapi/). This library aims to make testing WireCloud widgets and operators as simple as possible.\n\n\n## Installation\n\n- Using `npm`\n\n    ```\n    npm install mock-applicationmashup\n    ```\n\n- Using `bower`\n\n    ```\n    bower install mock-applicationmashup\n    ```\n\n\n## Using it in your tests\n\n`MockMP` is a drop in replacement for the `MashupPlatform` global object found when running widgets and operators in the WireCloud platform. To replace it, you will have to set it into the window object:\n\n```\nwindow.MashupPlatform = new MockMP({\n    type: \"widget\"\n});\n```\n\nOnce installed, you will be able to use `MashupPlatform` as if your code were running inside WireCloud. This\n`MashupPlatform` object is built using [jasmine spies](https://jasmine.github.io/api/3.5/Spy.html), providing support\nfor evaluating how they are called.\n\nSome of those spies are configured to provide a basic behaviour simulating that you are running inside WireCloud. For\nexample, `MashupPlatform.prefs.get` will throw an exception for non existing preferences. The list of available\npreferences is configured through the `MockMP` constructor. The available options are:\n\n- `type`: type of component to mockup: `widget` or `operator`.\n- `prefs`: object providing the available preferences and the default values.\n- `inputs`: list of available input enpdoints.\n- `outputs`: list of available output endpoints.\n- `context`: object providing the available platform context and the default values.\n\n**Sorry, documentation in progress, will be updated as soon as possible**\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwirecloud%2Fmock-applicationmashup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwirecloud%2Fmock-applicationmashup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwirecloud%2Fmock-applicationmashup/lists"}