utilitas 1995.0.2 → 1995.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.
package/lib/manifest.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  const manifest = {
2
2
  "name": "utilitas",
3
3
  "description": "Just another common utility for JavaScript.",
4
- "version": "1995.0.2",
4
+ "version": "1995.0.4",
5
5
  "private": false,
6
6
  "homepage": "https://github.com/Leask/utilitas",
7
7
  "main": "index.mjs",
@@ -16,7 +16,7 @@ const manifest = {
16
16
  "url": "https://github.com/Leask/utilitas.git"
17
17
  },
18
18
  "dependencies": {
19
- "file-type": "^18.2.1",
19
+ "file-type": "^18.3.0",
20
20
  "mathjs": "^11.8.0",
21
21
  "uuid": "^9.0.0"
22
22
  },
@@ -25,7 +25,7 @@ const manifest = {
25
25
  "@google-cloud/text-to-speech": "^4.2.2",
26
26
  "@google-cloud/vision": "^3.1.3",
27
27
  "@mozilla/readability": "^0.4.4",
28
- "@sentry/node": "^7.49.0",
28
+ "@sentry/node": "^7.51.0",
29
29
  "@waylaidwanderer/chatgpt-api": "^1.35.0",
30
30
  "acme-client": "^5.0.0",
31
31
  "browserify-fs": "^1.0.0",
@@ -33,20 +33,20 @@ const manifest = {
33
33
  "fast-geoip": "^1.1.88",
34
34
  "form-data": "^4.0.0",
35
35
  "ioredis": "^5.3.2",
36
- "jsdom": "^21.1.1",
36
+ "jsdom": "^22.0.0",
37
37
  "lorem-ipsum": "^2.0.8",
38
38
  "mailgun.js": "^8.2.1",
39
- "mysql2": "^3.2.3",
39
+ "mysql2": "^3.2.4",
40
40
  "node-mailjet": "^6.0.2",
41
41
  "node-polyfill-webpack-plugin": "^2.0.1",
42
42
  "office-text-extractor": "^2.0.0",
43
43
  "ping": "^0.4.4",
44
44
  "telegraf": "^4.12.2",
45
45
  "telesignsdk": "^2.2.3",
46
- "twilio": "^4.10.0",
46
+ "twilio": "^4.11.0",
47
47
  "url": "github:Leask/node-url",
48
48
  "webpack-cli": "^5.0.2",
49
- "youtube-transcript": "^1.0.5"
49
+ "youtube-transcript": "^1.0.6"
50
50
  }
51
51
  };
52
52
 
package/lib/web.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { assembleUrl, ignoreErrFunc, need } from './utilitas.mjs';
1
+ import { assembleUrl, ignoreErrFunc, need, throwError } from './utilitas.mjs';
2
2
  import { getJson, getParsedHtml } from './shot.mjs';
3
3
 
4
4
  const _NEED = ['@mozilla/readability', 'jsdom', 'youtube-transcript'];
@@ -78,8 +78,13 @@ const distillYoutube = async url => {
78
78
 
79
79
  const distill = async url => {
80
80
  let content;
81
- if (isYoutubeUrl(url)) { content = await distillYoutube(url); }
82
- else { content = await distillPage(url); }
81
+ if (/^http(s)?:\/\/pandas\.pydata\.org\/.*/ig.test(url)) {
82
+ throwError('Issue: https://github.com/mozilla/readability/issues/801');
83
+ } else if (isYoutubeUrl(url)) {
84
+ content = await distillYoutube(url);
85
+ } else {
86
+ content = await distillPage(url);
87
+ }
83
88
  return {
84
89
  content, summary: [
85
90
  '---',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "utilitas",
3
3
  "description": "Just another common utility for JavaScript.",
4
- "version": "1995.0.2",
4
+ "version": "1995.0.4",
5
5
  "private": false,
6
6
  "homepage": "https://github.com/Leask/utilitas",
7
7
  "main": "index.mjs",
@@ -27,7 +27,7 @@
27
27
  "url": "https://github.com/Leask/utilitas.git"
28
28
  },
29
29
  "dependencies": {
30
- "file-type": "^18.2.1",
30
+ "file-type": "^18.3.0",
31
31
  "mathjs": "^11.8.0",
32
32
  "uuid": "^9.0.0"
33
33
  },
@@ -36,7 +36,7 @@
36
36
  "@google-cloud/text-to-speech": "^4.2.2",
37
37
  "@google-cloud/vision": "^3.1.3",
38
38
  "@mozilla/readability": "^0.4.4",
39
- "@sentry/node": "^7.49.0",
39
+ "@sentry/node": "^7.51.0",
40
40
  "@waylaidwanderer/chatgpt-api": "^1.35.0",
41
41
  "acme-client": "^5.0.0",
42
42
  "browserify-fs": "^1.0.0",
@@ -44,19 +44,19 @@
44
44
  "fast-geoip": "^1.1.88",
45
45
  "form-data": "^4.0.0",
46
46
  "ioredis": "^5.3.2",
47
- "jsdom": "^21.1.1",
47
+ "jsdom": "^22.0.0",
48
48
  "lorem-ipsum": "^2.0.8",
49
49
  "mailgun.js": "^8.2.1",
50
- "mysql2": "^3.2.3",
50
+ "mysql2": "^3.2.4",
51
51
  "node-mailjet": "^6.0.2",
52
52
  "node-polyfill-webpack-plugin": "^2.0.1",
53
53
  "office-text-extractor": "^2.0.0",
54
54
  "ping": "^0.4.4",
55
55
  "telegraf": "^4.12.2",
56
56
  "telesignsdk": "^2.2.3",
57
- "twilio": "^4.10.0",
57
+ "twilio": "^4.11.0",
58
58
  "url": "github:Leask/node-url",
59
59
  "webpack-cli": "^5.0.2",
60
- "youtube-transcript": "^1.0.5"
60
+ "youtube-transcript": "^1.0.6"
61
61
  }
62
62
  }