Skip to content

Commit 2240c26

Browse files
authored
Merge pull request #182 from extractus/dev
v4.0.2
2 parents 0a18060 + 26287c7 commit 2240c26

File tree

8 files changed

+86
-48
lines changed

8 files changed

+86
-48
lines changed

.github/workflows/ci-test.yml

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@ on: [push, pull_request]
88
jobs:
99
test:
1010

11-
runs-on: ubuntu-22.04
11+
runs-on: ubuntu-latest
1212

1313
strategy:
1414
matrix:
15-
node_version: [14.x, 16.x, 18.x, 20.x]
15+
node_version: [18.x, 20.x, 21.x]
1616

1717
steps:
18-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v4
1919

2020
- name: setup Node.js v${{ matrix.node_version }}
21-
uses: actions/setup-node@v3
21+
uses: actions/setup-node@v4
2222
with:
2323
node-version: ${{ matrix.node_version }}
2424

@@ -33,18 +33,29 @@ jobs:
3333
npm run build --if-present
3434
npm run test
3535
36-
- name: sync to coveralls
37-
uses: coverallsapp/github-action@v1.1.2
36+
- name: Coveralls Parallel
37+
uses: coverallsapp/github-action@v2
3838
with:
39+
flag-name: run-${{ join(matrix.*, '-') }}
40+
parallel: true
3941
github-token: ${{ secrets.GITHUB_TOKEN }}
4042

4143
- name: cache node modules
42-
uses: actions/cache@v3
44+
uses: actions/cache@v4
4345
with:
4446
path: ~/.npm
4547
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
4648
restore-keys: |
4749
${{ runner.os }}-node-
4850
49-
51+
finish:
52+
needs: test
53+
if: ${{ always() }}
54+
runs-on: ubuntu-latest
55+
steps:
56+
- name: Coveralls Finished
57+
uses: coverallsapp/github-action@v2
58+
with:
59+
parallel-finished: true
60+
carryforward: "run-18.x,run-20.x,run-21.x"
5061

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838

3939
steps:
4040
- name: Checkout repository
41-
uses: actions/checkout@v3
41+
uses: actions/checkout@v4
4242

4343
# Initializes the CodeQL tools for scanning.
4444
- name: Initialize CodeQL

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "4.0.1",
2+
"version": "4.0.2",
33
"name": "@extractus/oembed-extractor",
44
"description": "Get oEmbed data from given URL.",
55
"homepage": "https://github.com/extractus/oembed-extractor",
@@ -18,7 +18,7 @@
1818
},
1919
"types": "./index.d.ts",
2020
"engines": {
21-
"node": ">= 15"
21+
"node": ">= 18"
2222
},
2323
"scripts": {
2424
"lint": "eslint .",
@@ -33,10 +33,10 @@
3333
"cross-fetch": "^4.0.0"
3434
},
3535
"devDependencies": {
36-
"eslint": "^8.47.0",
37-
"https-proxy-agent": "^7.0.1",
38-
"jest": "^29.6.2",
39-
"nock": "^13.3.2"
36+
"eslint": "^8.56.0",
37+
"https-proxy-agent": "^7.0.2",
38+
"jest": "^29.7.0",
39+
"nock": "^13.5.0"
4040
},
4141
"keywords": [
4242
"oembed",

src/main.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ describe('test if extract() with some popular providers', () => {
107107
const cases = [
108108
{
109109
input: {
110-
url: 'https://youtu.be/qQpb1oCernE',
110+
url: 'https://youtu.be/iQzwqZgr8Hc',
111111
file: './test-data/youtube.json',
112112
},
113113
expected: {

src/utils/fetchEmbed.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ describe('test if fetchEmbed() works correctly', () => {
1818
const cases = [
1919
{
2020
input: {
21-
url: 'https://youtu.be/qQpb1oCernE',
21+
url: 'https://youtu.be/iQzwqZgr8Hc',
2222
file: './test-data/youtube.json',
2323
},
2424
expected: {

src/utils/providers.latest.js

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// provider data, synchronized at 2023-08-16T03:16:17.352Z
1+
// provider data, synchronized at 2024-01-22T08:51:16.050Z
22

33
/* eslint-disable */
44

@@ -103,10 +103,11 @@ export const providers = [
103103
},
104104
{
105105
"s": [
106-
"studio\\.assemblrworld\\.com/*",
106+
"*\\.studio\\.assemblrworld\\.com/creation/*",
107+
"studio\\.assemblrworld\\.com/creation/*",
108+
"*\\.app-edu\\.assemblrworld\\.com/Creation/*",
109+
"app-edu\\.assemblrworld\\.com/Creation/*",
107110
"assemblr\\.world/*",
108-
"app-edu\\.assemblrworld\\.com/*",
109-
"staging\\.d1o2otincy91d\\.amplifyapp\\.com/*",
110111
"editor\\.assemblrworld\\.com/*"
111112
],
112113
"e": "studio.assemblrworld.com/api/oembed"
@@ -166,6 +167,12 @@ export const providers = [
166167
],
167168
"e": "backtracks.fm/oembed"
168169
},
170+
{
171+
"s": [
172+
"balsamiq\\.cloud/*"
173+
],
174+
"e": "balsamiq.cloud/oembed"
175+
},
169176
{
170177
"s": [
171178
"beams\\.fm/*"
@@ -465,6 +472,12 @@ export const providers = [
465472
],
466473
"e": "api.d.tube/oembed"
467474
},
475+
{
476+
"s": [
477+
"app\\.echoeshq\\.com/embed/*"
478+
],
479+
"e": "api.echoeshq.com/oembed"
480+
},
468481
{
469482
"s": [],
470483
"e": "www.edumedia-sciences.com/oembed.json"
@@ -651,13 +664,6 @@ export const providers = [
651664
],
652665
"e": "embed.gettyimages.com/oembed"
653666
},
654-
{
655-
"s": [
656-
"gfycat\\.com/*",
657-
"www\\.gfycat\\.com/*"
658-
],
659-
"e": "api.gfycat.com/v1/oembed"
660-
},
661667
{
662668
"s": [
663669
"www\\.gifnote\\.com/play/*"

src/utils/providers.orginal.json

Lines changed: 40 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -213,10 +213,17 @@
213213
"endpoints": [
214214
{
215215
"schemes": [
216-
"https://studio.assemblrworld.com/*",
216+
"http://*.studio.assemblrworld.com/creation/*",
217+
"http://studio.assemblrworld.com/creation/*",
218+
"http://*.app-edu.assemblrworld.com/Creation/*",
219+
"http://app-edu.assemblrworld.com/Creation/*",
220+
"http://assemblr.world/*",
221+
"http://editor.assemblrworld.com/*",
222+
"https://*.studio.assemblrworld.com/creation/*",
223+
"https://studio.assemblrworld.com/creation/*",
224+
"https://*.app-edu.assemblrworld.com/Creation/*",
225+
"https://app-edu.assemblrworld.com/Creation/*",
217226
"https://assemblr.world/*",
218-
"https://app-edu.assemblrworld.com/*",
219-
"https://staging.d1o2otincy91d.amplifyapp.com/*",
220227
"https://editor.assemblrworld.com/*"
221228
],
222229
"url": "https://studio.assemblrworld.com/api/oembed",
@@ -339,6 +346,19 @@
339346
}
340347
]
341348
},
349+
{
350+
"provider_name": "Balsamiq Cloud",
351+
"provider_url": "https://balsamiq.cloud/",
352+
"endpoints": [
353+
{
354+
"schemes": [
355+
"https://balsamiq.cloud/*"
356+
],
357+
"url": "https://balsamiq.cloud/oembed",
358+
"discovery": true
359+
}
360+
]
361+
},
342362
{
343363
"provider_name": "Beams.fm",
344364
"provider_url": "http://beams.fm",
@@ -986,6 +1006,23 @@
9861006
}
9871007
]
9881008
},
1009+
{
1010+
"provider_name": "EchoesHQ",
1011+
"provider_url": "https://echoeshq.com",
1012+
"endpoints": [
1013+
{
1014+
"schemes": [
1015+
"http://app.echoeshq.com/embed/*"
1016+
],
1017+
"url": "https://api.echoeshq.com/oembed",
1018+
"formats": [
1019+
"json",
1020+
"xml"
1021+
],
1022+
"discovery": true
1023+
}
1024+
]
1025+
},
9891026
{
9901027
"provider_name": "eduMedia",
9911028
"provider_url": "https://www.edumedia-sciences.com/",
@@ -1340,22 +1377,6 @@
13401377
}
13411378
]
13421379
},
1343-
{
1344-
"provider_name": "Gfycat",
1345-
"provider_url": "https://gfycat.com/",
1346-
"endpoints": [
1347-
{
1348-
"schemes": [
1349-
"http://gfycat.com/*",
1350-
"http://www.gfycat.com/*",
1351-
"https://gfycat.com/*",
1352-
"https://www.gfycat.com/*"
1353-
],
1354-
"url": "https://api.gfycat.com/v1/oembed",
1355-
"discovery": true
1356-
}
1357-
]
1358-
},
13591380
{
13601381
"provider_name": "Gifnote",
13611382
"provider_url": "https://www.gifnote.com/",

src/utils/providers.prev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// provider data, synchronized at 2023-07-12T01:33:32.812Z
1+
// provider data, synchronized at 2023-08-16T03:16:17.352Z
22

33
/* eslint-disable */
44

0 commit comments

Comments
 (0)