@ocfl/ocfl-fs 1.0.0-beta.6 → 1.0.0-beta.8

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 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
@@ -1,5 +1,6 @@
1
1
  import { type OcflFsStoreConfig } from './store.ts';
2
- export { ObjectNotFoundError, ObjectNotLoadedError } from '@ocfl/ocfl';
2
+ export type { OcflErrorCode } from '@ocfl/ocfl';
3
+ export { ObjectNotFoundError, ObjectNotLoadedError, OcflError, ValidationError } from '@ocfl/ocfl';
3
4
  export type { OcflFsStoreConfig } from './store.ts';
4
5
  export { OcflFsStore } from './store.ts';
5
6
  declare const ocfl: {
@@ -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,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"}
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,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AACnG,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,6 +1,6 @@
1
1
  import { implementOcfl } from '@ocfl/ocfl';
2
2
  import { OcflFsStore } from './store.js';
3
- export { ObjectNotFoundError, ObjectNotLoadedError } from '@ocfl/ocfl';
3
+ export { ObjectNotFoundError, ObjectNotLoadedError, OcflError, ValidationError } from '@ocfl/ocfl';
4
4
  export { OcflFsStore } from './store.js';
5
5
  const ocfl = implementOcfl(OcflFsStore);
6
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;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"}
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;AAGjE,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAEnG,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.6",
3
+ "version": "1.0.0-beta.8",
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.6"
36
- },
37
34
  "devDependencies": {
35
+ "@ocfl/ocfl": "^1.0.0-beta.8",
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.8"
43
+ },
43
44
  "publishConfig": {
44
45
  "access": "public",
45
46
  "provenance": true
package/src/index.ts CHANGED
@@ -1,7 +1,8 @@
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
+ export type { OcflErrorCode } from '@ocfl/ocfl';
5
+ export { ObjectNotFoundError, ObjectNotLoadedError, OcflError, ValidationError } from '@ocfl/ocfl';
5
6
  export type { OcflFsStoreConfig } from './store.ts';
6
7
  export { OcflFsStore } from './store.ts';
7
8