@orkow/common 0.0.87 → 0.0.89

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  export type TemplateUserParams = {
2
- imageUrl: string;
3
2
  fullname: string;
3
+ imageUrl?: string;
4
4
  };
5
5
  export default function notificationTemplate(user: TemplateUserParams, type: string): string;
6
6
  //# sourceMappingURL=notificationTemplate.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"notificationTemplate.d.ts","sourceRoot":"","sources":["../src/notificationTemplate.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAA;AAEvE,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAC1C,IAAI,EAAE,kBAAkB,EACxB,IAAI,EAAE,MAAM,UAYb"}
1
+ {"version":3,"file":"notificationTemplate.d.ts","sourceRoot":"","sources":["../src/notificationTemplate.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,CAAA;AAExE,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAC1C,IAAI,EAAE,kBAAkB,EACxB,IAAI,EAAE,MAAM,UAYb"}
@@ -4,7 +4,7 @@ exports.default = notificationTemplate;
4
4
  function notificationTemplate(user, type) {
5
5
  const text = getText(type);
6
6
  return `<span class="flex-shrink-0 inline-block relative">
7
- <img class="h-10 w-10 rounded-full" src=${user.imageUrl} alt="" />
7
+ <img class="h-10 w-10 rounded-full" src=${user.imageUrl ?? null} alt="" />
8
8
  <span class="absolute top-0 right-0 block h-2.5 w-2.5 rounded-full" aria-hidden="true"></span>
9
9
  </span>
10
10
  <div class="ml-4 truncate">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orkow/common",
3
- "version": "0.0.87",
3
+ "version": "0.0.89",
4
4
  "description": "Common utils.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -9,7 +9,7 @@
9
9
  "dist/**"
10
10
  ],
11
11
  "keywords": [],
12
- "author": "ConCat7 Sky Limited <ikramhasib007@gmail.com> (https://github.com/ikramhasib007)",
12
+ "author": "ConCat7 Sky Limited, <ikramhasib007@gmail.com> (https://github.com/ikramhasib007)",
13
13
  "scripts": {
14
14
  "dev": "tsc -w",
15
15
  "clean": "del-cli ./dist/*",