hypercore-fetch 8.6.0 → 8.6.1
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/.github/workflows/test.yml +22 -0
- package/package.json +5 -3
- package/test.js +1 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
name: Testing
|
|
2
|
+
|
|
3
|
+
on: [ push, pull_request ]
|
|
4
|
+
|
|
5
|
+
jobs:
|
|
6
|
+
build:
|
|
7
|
+
continue-on-error: true
|
|
8
|
+
strategy:
|
|
9
|
+
matrix:
|
|
10
|
+
node: [ '16' ]
|
|
11
|
+
os: [ubuntu-latest, windows-latest, macOS-latest]
|
|
12
|
+
runs-on: ${{ matrix.os }}
|
|
13
|
+
name: Node ${{ matrix.node }}-${{matrix.os}} tests
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v2
|
|
16
|
+
- name: Setup node
|
|
17
|
+
uses: actions/setup-node@v2
|
|
18
|
+
with:
|
|
19
|
+
node-version: ${{ matrix.node }}
|
|
20
|
+
- run: npm install
|
|
21
|
+
- run: npm run lint
|
|
22
|
+
- run: npm test
|
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hypercore-fetch",
|
|
3
|
-
"version": "8.6.
|
|
3
|
+
"version": "8.6.1",
|
|
4
4
|
"description": "Implementation of Fetch that uses the Dat SDK for loading p2p content",
|
|
5
5
|
"bin": {
|
|
6
6
|
"hypercore-fetch": "bin.js"
|
|
7
7
|
},
|
|
8
8
|
"main": "index.js",
|
|
9
9
|
"scripts": {
|
|
10
|
-
"test": "node test"
|
|
10
|
+
"test": "node test",
|
|
11
|
+
"lint": "standard --fix"
|
|
11
12
|
},
|
|
12
13
|
"repository": {
|
|
13
14
|
"type": "git",
|
|
@@ -30,7 +31,7 @@
|
|
|
30
31
|
"hyper-dns": "^0.12.0",
|
|
31
32
|
"hyper-sdk": "^3.0.9",
|
|
32
33
|
"make-dir": "^3.1.0",
|
|
33
|
-
"make-fetch": "^2.
|
|
34
|
+
"make-fetch": "^2.3.3",
|
|
34
35
|
"mime": "^2.4.4",
|
|
35
36
|
"range-parser": "^1.2.1",
|
|
36
37
|
"resolve-dat-path": "^2.0.0",
|
|
@@ -40,6 +41,7 @@
|
|
|
40
41
|
"devDependencies": {
|
|
41
42
|
"form-data": "^4.0.0",
|
|
42
43
|
"random-access-memory": "^3.1.1",
|
|
44
|
+
"standard": "^17.0.0",
|
|
43
45
|
"tape": "^5.2.2"
|
|
44
46
|
}
|
|
45
47
|
}
|
package/test.js
CHANGED
|
@@ -85,7 +85,7 @@ async function runTests () {
|
|
|
85
85
|
t.equal(await response2.text(), SAMPLE_CONTENT, 'Read back written data')
|
|
86
86
|
})
|
|
87
87
|
|
|
88
|
-
test
|
|
88
|
+
test('PUT FormData to directory', async (t) => {
|
|
89
89
|
const form = new FormData()
|
|
90
90
|
|
|
91
91
|
form.append('file', SAMPLE_CONTENT, {
|