Skip to content

Commit 4fb3734

Browse files
committed
1.0.2 // Profile URL fixed when user has no articles data
1 parent 734a600 commit 4fb3734

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ You can use it in your website/blog and show off your DEV.to articles :sunflower
2323
<dev-widget data-username="saurabhdaware"></dev-widget>
2424

2525
<!-- Place script tag before the end of the body tag -->
26-
<script src="https://unpkg.com/[email protected].1/dist/card.component.mjs" type="module"></script>
26+
<script src="https://unpkg.com/[email protected].2/dist/card.component.mjs" type="module" integrity="sha384-755Jblzb17ugkA3KRCLz4XS8CPb3xEwBdBMk8ZBw51agtKmppILXMJrKvuTRkUhy"></script>
2727
```
2828

2929

@@ -57,7 +57,7 @@ So a full example would look something like
5757
<dev-widget data-username="saurabhdaware" data-width="320px" data-limit="3" data-name="Saurabh 😎"></dev-widget>
5858

5959
<!-- Place script tag before the end of the body tag -->
60-
<script src="https://unpkg.com/[email protected].1/dist/card.component.mjs" type="module"></script>
60+
<script src="https://unpkg.com/[email protected].2/dist/card.component.mjs" type="module" integrity="sha384-755Jblzb17ugkA3KRCLz4XS8CPb3xEwBdBMk8ZBw51agtKmppILXMJrKvuTRkUhy"></script>
6161
```
6262

6363
---

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
{
22
"name": "dev-widget",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "Unofficial Widget of DEV",
55
"main": "dist/index.js",
66
"module": "dist/index.js",
77
"scripts": {
88
"test": "echo \"Error: no test specified\" && exit 1",
99
"dev": "serve src",
10-
"build": "node build/build.main.js"
10+
"build": "node build/build.main.js",
11+
"prepublishOnly": "npm run build"
1112
},
1213
"repository": {
1314
"type": "git",

src/card.component.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export class DevCard extends HTMLElement{
7171
data = {
7272
profilePic: false,
7373
name: this.dataset.name || this.dataset.username,
74-
url: this.dataset.username
74+
url: 'https://dev.to/' + this.dataset.username
7575
}
7676
}else{
7777
data = {

src/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
<body>
77
<dev-widget data-username="saurabhdaware"></dev-widget>
88
<script src="card.component.mjs" type="module"></script>
9-
<!-- <script src="https://unpkg.com/[email protected].1/dist/card.component.mjs" type="module"> -->
9+
<!-- <script src="https://unpkg.com/[email protected].2/dist/card.component.mjs" type="module"> -->
1010
</body>
1111
</html>

0 commit comments

Comments
 (0)