@travetto/model 3.3.5 → 3.3.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/model",
3
- "version": "3.3.5",
3
+ "version": "3.3.7",
4
4
  "description": "Datastore abstraction for core operations.",
5
5
  "keywords": [
6
6
  "datastore",
@@ -33,7 +33,7 @@
33
33
  },
34
34
  "peerDependencies": {
35
35
  "@travetto/cli": "^3.3.5",
36
- "@travetto/test": "^3.3.4"
36
+ "@travetto/test": "^3.3.5"
37
37
  },
38
38
  "peerDependenciesMeta": {
39
39
  "@travetto/cli": {
@@ -21,6 +21,18 @@ export interface StreamMeta {
21
21
  * Filenames title, optional for elements like images, audio, videos
22
22
  */
23
23
  title?: string;
24
+ /**
25
+ * Content encoding
26
+ */
27
+ contentEncoding?: string;
28
+ /**
29
+ * Content language
30
+ */
31
+ contentLanguage?: string;
32
+ /**
33
+ * Cache control
34
+ */
35
+ cacheControl?: string;
24
36
  }
25
37
 
26
38
  export interface PartialStream {
@@ -143,6 +143,12 @@ export abstract class ModelCrudSuite extends BaseModelSuite<ModelCrudSupport> {
143
143
  assert(!('street2' in o3.address));
144
144
  }
145
145
 
146
+ @Test('Verify update partial on missing item fails')
147
+ async testMissingUpdatePartial() {
148
+ const service = await this.service;
149
+ await assert.rejects(() => service.updatePartial(User2, { id: '-1' }), NotFoundError);
150
+ }
151
+
146
152
  @Test('Verify partial update with field removal and lists')
147
153
  async testPartialUpdateList() {
148
154
  const service = await this.service;