@ocfl/ocfl-fs 1.0.0-beta.5 → 1.0.0-beta.7
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/README.md +4 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +5 -4
- package/src/index.ts +1 -0
package/README.md
CHANGED
|
@@ -7,6 +7,10 @@ This package implements the OCFL client that stores storage root and its objects
|
|
|
7
7
|
|
|
8
8
|
npm install @ocfl/ocfl-fs
|
|
9
9
|
|
|
10
|
+
`@ocfl/ocfl` is a peer dependency of `@ocfl/ocfl-fs`, so your app shares one copy of it. pnpm and npm
|
|
11
|
+
install it automatically; with Yarn, add it yourself. List it in your own dependencies too if you
|
|
12
|
+
import from it directly.
|
|
13
|
+
|
|
10
14
|
## Usage
|
|
11
15
|
|
|
12
16
|
The storage and object methods accept an optional fs parameter, which can be any module that implements Node.js fs module API. By default, it will use the built in fs module.
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAe,KAAK,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEjE,YAAY,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC,QAAA,MAAM,IAAI;;;;;;;;CAAgD,CAAC;AAE3D,eAAO,MAAQ,aAAa,2BAAE,aAAa,sCAAE,aAAa,+IAAE,WAAW,+IAAE,MAAM,oIAAE,OAAO,sIAAE,aAAa,uGAAS,CAAC;eAClG,IAAI"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAe,KAAK,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEjE,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AACvE,YAAY,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC,QAAA,MAAM,IAAI;;;;;;;;CAAgD,CAAC;AAE3D,eAAO,MAAQ,aAAa,2BAAE,aAAa,sCAAE,aAAa,+IAAE,WAAW,+IAAE,MAAM,oIAAE,OAAO,sIAAE,aAAa,uGAAS,CAAC;eAClG,IAAI"}
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { implementOcfl } from '@ocfl/ocfl';
|
|
2
2
|
import { OcflFsStore } from './store.js';
|
|
3
|
+
export { ObjectNotFoundError, ObjectNotLoadedError } from '@ocfl/ocfl';
|
|
3
4
|
export { OcflFsStore } from './store.js';
|
|
4
5
|
const ocfl = implementOcfl(OcflFsStore);
|
|
5
6
|
export const { OCFL_VERSIONS, StorageLayout, createStorage, loadStorage, object, storage, storageLayout } = ocfl;
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,EAAE,WAAW,EAA0B,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,EAAE,WAAW,EAA0B,MAAM,YAAY,CAAC;AAEjE,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAEvE,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC,MAAM,IAAI,GAAG,aAAa,CAAoB,WAAW,CAAC,CAAC;AAE3D,MAAM,CAAC,MAAM,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,GAAG,IAAI,CAAC;AACjH,eAAe,IAAI,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ocfl/ocfl-fs",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.7",
|
|
4
4
|
"description": "Oxford Common File Layout (OCFL) JS client library for filesystem storage",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ocfl",
|
|
@@ -31,15 +31,16 @@
|
|
|
31
31
|
"dist",
|
|
32
32
|
"src"
|
|
33
33
|
],
|
|
34
|
-
"dependencies": {
|
|
35
|
-
"@ocfl/ocfl": "1.0.0-beta.5"
|
|
36
|
-
},
|
|
37
34
|
"devDependencies": {
|
|
35
|
+
"@ocfl/ocfl": "^1.0.0-beta.7",
|
|
38
36
|
"@ocfl/ocfl-tests": "0.0.0",
|
|
39
37
|
"@types/node": "^22.20.5",
|
|
40
38
|
"memfs": "^4.80.0",
|
|
41
39
|
"typescript": "^7.0.2"
|
|
42
40
|
},
|
|
41
|
+
"peerDependencies": {
|
|
42
|
+
"@ocfl/ocfl": "^1.0.0-beta.7"
|
|
43
|
+
},
|
|
43
44
|
"publishConfig": {
|
|
44
45
|
"access": "public",
|
|
45
46
|
"provenance": true
|
package/src/index.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { implementOcfl } from '@ocfl/ocfl';
|
|
2
2
|
import { OcflFsStore, type OcflFsStoreConfig } from './store.ts';
|
|
3
3
|
|
|
4
|
+
export { ObjectNotFoundError, ObjectNotLoadedError } from '@ocfl/ocfl';
|
|
4
5
|
export type { OcflFsStoreConfig } from './store.ts';
|
|
5
6
|
export { OcflFsStore } from './store.ts';
|
|
6
7
|
|