mikser-io-drive 0.17.0 → 11.0.3
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 +3 -0
- package/lib/files.js +2 -2
- package/package.json +5 -5
package/index.js
CHANGED
|
@@ -232,6 +232,9 @@ export function drive(options = {}) {
|
|
|
232
232
|
: configured === 0 ? 'disabled by config.server.requestTimeout'
|
|
233
233
|
: `${configured}ms from config.server.requestTimeout`)
|
|
234
234
|
})
|
|
235
|
+
// Names this package to the runtime's loaded-plugin record, so
|
|
236
|
+
// ping reports it as running rather than as undetectable.
|
|
237
|
+
return { module: import.meta.url }
|
|
235
238
|
}
|
|
236
239
|
}
|
|
237
240
|
|
package/lib/files.js
CHANGED
|
@@ -30,7 +30,7 @@ import { lookup as mimeLookup } from 'mime-types'
|
|
|
30
30
|
// Drive writes with fs directly rather than through a collection handle, so
|
|
31
31
|
// it records its own paths. Without this a media replacement — the change most
|
|
32
32
|
// worth taking back — falls into the unattributed sweep.
|
|
33
|
-
import { looksTextual, recordChangeSetWrite, explainRefusal, actingRole, useService, hasCapability, missingCapability } from 'mikser-io'
|
|
33
|
+
import { looksTextual, recordChangeSetWrite, checksumOf, explainRefusal, actingRole, useService, hasCapability, missingCapability } from 'mikser-io'
|
|
34
34
|
import { readFile, writeFile, mkdir, rename, stat, unlink, open } from 'node:fs/promises'
|
|
35
35
|
import {
|
|
36
36
|
runtime, readEntity, findEntities, nextCycleId, whenCycleCompletes, checksum,
|
|
@@ -417,7 +417,7 @@ export function registerFileTools({ runtime, endpoints, capabilityOf, writeCapab
|
|
|
417
417
|
for (const s of staged) {
|
|
418
418
|
await mkdir(path.dirname(s.file), { recursive: true })
|
|
419
419
|
await writeFile(s.file, s.bytes)
|
|
420
|
-
recordChangeSetWrite({ uri: s.file })
|
|
420
|
+
recordChangeSetWrite({ uri: s.file, checksum: checksumOf(s.bytes) })
|
|
421
421
|
written.push(s)
|
|
422
422
|
}
|
|
423
423
|
logger?.info?.('drive: stored %d file(s) in %s for %j (%d bytes)',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mikser-io-drive",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "11.0.3",
|
|
4
4
|
"description": "WebDAV for mikser-io. Exposes working-folder directories as WebDAV endpoints via Nephele, authenticated through mikser-io-auth's htpasswd identity — so content can be edited from Finder, Explorer or any DAV client and the build picks the change up.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"homepage": "https://github.com/almero-digital-marketing/mikser-io-drive#readme",
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"mikser-io": "^
|
|
31
|
+
"mikser-io": "^11.2.0",
|
|
32
32
|
"zod": "^4.0.0"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
@@ -41,9 +41,9 @@
|
|
|
41
41
|
"bcryptjs": "^3.0.0",
|
|
42
42
|
"express": "^5.2.1",
|
|
43
43
|
"globby": "^15.0.0",
|
|
44
|
-
"mikser-io": "^
|
|
45
|
-
"mikser-io-auth": "^0.
|
|
46
|
-
"mikser-io-mcp": "^
|
|
44
|
+
"mikser-io": "^11.2.0",
|
|
45
|
+
"mikser-io-auth": "^11.0.1",
|
|
46
|
+
"mikser-io-mcp": "^11.0.1",
|
|
47
47
|
"webdav": "^5.10.0",
|
|
48
48
|
"zod": "^4.0.0"
|
|
49
49
|
}
|