@travetto/model 5.0.0-rc.13 → 5.0.0-rc.15
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 +3 -8
- package/__index__.ts +0 -1
- package/package.json +7 -7
- package/src/internal/service/blob.ts +1 -3
package/README.md
CHANGED
|
@@ -160,19 +160,14 @@ Some implementations also allow for the ability to read/write binary data as [Bl
|
|
|
160
160
|
```typescript
|
|
161
161
|
export interface ModelBlobSupport {
|
|
162
162
|
|
|
163
|
-
/**
|
|
164
|
-
* Insert blob to storage
|
|
165
|
-
* @param location The location of the blob
|
|
166
|
-
* @param input The actual blob to write
|
|
167
|
-
*/
|
|
168
|
-
insertBlob(location: string, input: BinaryInput, meta?: BlobMeta, errorIfExisting?: boolean): Promise<void>;
|
|
169
|
-
|
|
170
163
|
/**
|
|
171
164
|
* Upsert blob to storage
|
|
172
165
|
* @param location The location of the blob
|
|
173
166
|
* @param input The actual blob to write
|
|
167
|
+
* @param meta Additional metadata to store with the blob
|
|
168
|
+
* @param overwrite Should we replace content if already found, defaults to true
|
|
174
169
|
*/
|
|
175
|
-
upsertBlob(location: string, input: BinaryInput, meta?: BlobMeta): Promise<void>;
|
|
170
|
+
upsertBlob(location: string, input: BinaryInput, meta?: BlobMeta, overwrite?: boolean): Promise<void>;
|
|
176
171
|
|
|
177
172
|
/**
|
|
178
173
|
* Get blob from storage
|
package/__index__.ts
CHANGED
|
@@ -9,7 +9,6 @@ export * from './src/service/crud';
|
|
|
9
9
|
export * from './src/service/indexed';
|
|
10
10
|
export * from './src/service/expiry';
|
|
11
11
|
export * from './src/service/storage';
|
|
12
|
-
export * from './src/util/blob';
|
|
13
12
|
|
|
14
13
|
export * from './src/error/exists';
|
|
15
14
|
export * from './src/error/not-found';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/model",
|
|
3
|
-
"version": "5.0.0-rc.
|
|
3
|
+
"version": "5.0.0-rc.15",
|
|
4
4
|
"description": "Datastore abstraction for core operations.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"datastore",
|
|
@@ -26,14 +26,14 @@
|
|
|
26
26
|
"directory": "module/model"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@travetto/config": "^5.0.0-rc.
|
|
30
|
-
"@travetto/di": "^5.0.0-rc.
|
|
31
|
-
"@travetto/registry": "^5.0.0-rc.
|
|
32
|
-
"@travetto/schema": "^5.0.0-rc.
|
|
29
|
+
"@travetto/config": "^5.0.0-rc.14",
|
|
30
|
+
"@travetto/di": "^5.0.0-rc.13",
|
|
31
|
+
"@travetto/registry": "^5.0.0-rc.13",
|
|
32
|
+
"@travetto/schema": "^5.0.0-rc.14"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
|
-
"@travetto/cli": "^5.0.0-rc.
|
|
36
|
-
"@travetto/test": "^5.0.0-rc.
|
|
35
|
+
"@travetto/cli": "^5.0.0-rc.14",
|
|
36
|
+
"@travetto/test": "^5.0.0-rc.13"
|
|
37
37
|
},
|
|
38
38
|
"peerDependenciesMeta": {
|
|
39
39
|
"@travetto/cli": {
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
+
import { Readable } from 'node:stream';
|
|
1
2
|
import { Class, AppError, BinaryInput, BinaryUtil, BlobMeta, ByteRange } from '@travetto/runtime';
|
|
2
3
|
import { ModelType } from '../../types/model';
|
|
3
4
|
|
|
4
5
|
export const ModelBlobNamespace = '__blobs';
|
|
5
6
|
export const MODEL_BLOB: Class<ModelType> = class { id: string; };
|
|
6
7
|
|
|
7
|
-
import { Readable } from 'node:stream';
|
|
8
|
-
|
|
9
|
-
|
|
10
8
|
/**
|
|
11
9
|
* Utilities for processing assets
|
|
12
10
|
*/
|