@fastify/static 6.6.0 → 6.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/index.js +1 -1
- package/package.json +3 -3
- package/test/static.test.js +1 -1
package/index.js
CHANGED
|
@@ -4,7 +4,7 @@ const path = require('path')
|
|
|
4
4
|
const statSync = require('fs').statSync
|
|
5
5
|
const { PassThrough } = require('readable-stream')
|
|
6
6
|
const glob = require('glob')
|
|
7
|
-
const send = require('send')
|
|
7
|
+
const send = require('@fastify/send')
|
|
8
8
|
const contentDisposition = require('content-disposition')
|
|
9
9
|
const fp = require('fastify-plugin')
|
|
10
10
|
const util = require('util')
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fastify/static",
|
|
3
|
-
"version": "6.6.
|
|
3
|
+
"version": "6.6.1",
|
|
4
4
|
"description": "Plugin for serving static files as fast as possible.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "types/index.d.ts",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"glob": "^8.0.1",
|
|
36
36
|
"p-limit": "^3.1.0",
|
|
37
37
|
"readable-stream": "^4.0.0",
|
|
38
|
-
"send": "^0.
|
|
38
|
+
"@fastify/send": "^1.0.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@fastify/compress": "^6.0.0",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"snazzy": "^9.0.0",
|
|
55
55
|
"standard": "^17.0.0",
|
|
56
56
|
"tap": "^16.0.0",
|
|
57
|
-
"tsd": "^0.
|
|
57
|
+
"tsd": "^0.25.0"
|
|
58
58
|
},
|
|
59
59
|
"tsd": {
|
|
60
60
|
"directory": "test/types"
|
package/test/static.test.js
CHANGED
|
@@ -1336,7 +1336,7 @@ t.test('send options', (t) => {
|
|
|
1336
1336
|
}
|
|
1337
1337
|
const fastify = Fastify({ logger: false })
|
|
1338
1338
|
const fastifyStatic = require('proxyquire')('../', {
|
|
1339
|
-
send: function sendStub (req, pathName, options) {
|
|
1339
|
+
'@fastify/send': function sendStub (req, pathName, options) {
|
|
1340
1340
|
t.equal(pathName, '/index.html')
|
|
1341
1341
|
t.equal(options.root, path.join(__dirname, '/static'))
|
|
1342
1342
|
t.equal(options.acceptRanges, 'acceptRanges')
|