Socket
Socket
Sign inDemoInstall

@ernane/svelte-star-rating

Package Overview
Dependencies
0
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.2 to 1.1.3

.github/FUNDING.yml

2

package.json
{
"name": "@ernane/svelte-star-rating",
"version": "1.1.2",
"version": "1.1.3",
"description": "Simple component to assign scores based on stars.",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -41,8 +41,9 @@ <h1 align="center">

| Attribute | Data Type | Required | Default |
|:---------:|:------------:|:---------:|:------------:|
| readOnly | `bool` | false | false |
| countStars| `integer` | false | 5 |
| score | `float` | false | 0.0 |
| showScore | `bool` | false | true |
| Attribute | Data Type | Required | Default |
|:----------:|:------------:|:-----------:|:------------:|
| readOnly | `bool` | false | false |
| countStars | `integer` | false | 5 |
| score | `float` | false | 0.0 |
| showScore | `bool` | false | true |
| scoreFormat| `function` | false | precent |

@@ -82,2 +83,3 @@ In addition, we have two other nested attributes that specify distinct settings.

showScore: true,
scoreFormat: function(){ return `(${this.score.toFixed(0)}/${this.countStars})` },
starConfig: {

@@ -106,3 +108,3 @@ size: 30,

```js
import StarRatting from "@ernane/svelte-star-rating";
import StarRating from "@ernane/svelte-star-rating";
```

@@ -120,3 +122,3 @@

```js
<StarRatting {config}/>
<StarRating {config}/>
```

@@ -130,2 +132,2 @@

Developed with ❤ by <a target="_blank" href="https://links.ernane.dev/">Ernane Ferreira</a>. 👋🏻
</div>
</div>

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc