ptn-helpers 0.0.1 → 0.0.4

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.
Files changed (2) hide show
  1. package/lib/index.js +1 -3
  2. package/package.json +2 -5
package/lib/index.js CHANGED
@@ -33,9 +33,7 @@ var itemToNode = function (feedItem, hashtag) {
33
33
  text = "![](".concat(attachment.url, ")");
34
34
  }
35
35
  else if ((attachment === null || attachment === void 0 ? void 0 : attachment._ptr_media_type) === "audio") {
36
- var title = ((_f = (_e = feedItem.content_text) === null || _e === void 0 ? void 0 : _e.trim()) === null || _f === void 0 ? void 0 : _f.length) > 0
37
- ? feedItem.content_text
38
- : "Audio Recording";
36
+ var title = ((_f = (_e = feedItem.content_text) === null || _e === void 0 ? void 0 : _e.trim()) === null || _f === void 0 ? void 0 : _f.length) > 0 ? feedItem.content_text : "Audio Recording";
39
37
  text = "[".concat(title, "](").concat(attachment.url, ")");
40
38
  }
41
39
  text = "".concat(text.trim());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ptn-helpers",
3
- "version": "0.0.1",
3
+ "version": "0.0.4",
4
4
  "description": "helper functions to fetch and display ptn data",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -10,7 +10,7 @@
10
10
  "scripts": {
11
11
  "test": "jest --config jestconfig.json",
12
12
  "build": "tsc",
13
- "format": "prettier --write \"src/**/*.ts\" \"src/**/*.js\"",
13
+ "format": "prettier --write \"src/**/*.ts\"",
14
14
  "lint": "eslint --ext .js,.ts,src/**/*.js,src/**/*.ts",
15
15
  "prepare": "npm run build",
16
16
  "prepublishOnly": "npm test && npm run lint",
@@ -42,8 +42,5 @@
42
42
  "prettier": "^2.5.1",
43
43
  "ts-jest": "^27.1.2",
44
44
  "typescript": "^4.5.4"
45
- },
46
- "dependencies": {
47
- "tslint": "^6.1.3"
48
45
  }
49
46
  }