@travetto/model 5.0.0-rc.14 → 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 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/model",
3
- "version": "5.0.0-rc.14",
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.13",
30
- "@travetto/di": "^5.0.0-rc.12",
31
- "@travetto/registry": "^5.0.0-rc.12",
32
- "@travetto/schema": "^5.0.0-rc.13"
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.13",
36
- "@travetto/test": "^5.0.0-rc.12"
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
  */