@orion-js/typed-model 3.0.17 → 3.0.27

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2018 Orionjs Team
3
+ Copyright (c) 2021 Orionjs Team
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/lib/index.test.js CHANGED
@@ -433,7 +433,7 @@ describe('typed-schema e2e tests', () => {
433
433
  }
434
434
  });
435
435
  expect((0, index_1.getModelForClass)(Spec).name).toEqual(expected.name);
436
- expect((0, index_1.getModelForClass)(Spec).getSchema()).toEqual(expected.getSchema());
436
+ expect((0, index_1.getModelForClass)(Spec).getCleanSchema()).toEqual(expected.getCleanSchema());
437
437
  });
438
438
  it('works for nested models', () => {
439
439
  let A = class A {
@@ -464,7 +464,7 @@ describe('typed-schema e2e tests', () => {
464
464
  }
465
465
  });
466
466
  expect((0, index_1.getModelForClass)(Spec).name).toEqual(expected.name);
467
- expect((0, index_1.getModelForClass)(Spec).getSchema()).toEqual(expected.getSchema());
467
+ expect((0, index_1.getModelForClass)(Spec).getCleanSchema()).toEqual(expected.getCleanSchema());
468
468
  });
469
469
  it('works for nested arrays of models', () => {
470
470
  let A = class A {
@@ -495,7 +495,7 @@ describe('typed-schema e2e tests', () => {
495
495
  }
496
496
  });
497
497
  expect((0, index_1.getModelForClass)(Spec).name).toEqual(expected.name);
498
- expect((0, index_1.getModelForClass)(Spec).getSchema()).toEqual(expected.getSchema());
498
+ expect((0, index_1.getModelForClass)(Spec).getCleanSchema()).toEqual(expected.getCleanSchema());
499
499
  });
500
500
  it('works for nested models together with nested classes', () => {
501
501
  let NestedModelClass = class NestedModelClass {
@@ -550,7 +550,7 @@ describe('typed-schema e2e tests', () => {
550
550
  }
551
551
  });
552
552
  expect((0, index_1.getModelForClass)(Spec).name).toEqual(expected.name);
553
- expect((0, index_1.getModelForClass)(Spec).getSchema()).toEqual(expected.getSchema());
553
+ expect((0, index_1.getModelForClass)(Spec).getCleanSchema()).toEqual(expected.getCleanSchema());
554
554
  });
555
555
  });
556
556
  describe('using resolvers', () => {
@@ -594,7 +594,7 @@ describe('typed-schema e2e tests', () => {
594
594
  });
595
595
  const model = (0, index_1.getModelForClass)(User);
596
596
  expect(model.name).toEqual(expected.name);
597
- expect(model.getSchema()).toEqual(expected.getSchema());
597
+ expect(model.getCleanSchema()).toEqual(expected.getCleanSchema());
598
598
  expect(model.getResolvers()).toEqual(expected.getResolvers());
599
599
  });
600
600
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orion-js/typed-model",
3
- "version": "3.0.17",
3
+ "version": "3.0.27",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "files": [
@@ -18,8 +18,8 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "@orion-js/helpers": "^3.0.17",
21
- "@orion-js/models": "^3.0.17",
22
- "@orion-js/resolvers": "^3.0.17",
21
+ "@orion-js/models": "^3.0.27",
22
+ "@orion-js/resolvers": "^3.0.24",
23
23
  "@orion-js/schema": "^3.0.17",
24
24
  "lodash": "^4.17.21",
25
25
  "reflect-metadata": "0.1.13"
@@ -39,5 +39,5 @@
39
39
  "publishConfig": {
40
40
  "access": "public"
41
41
  },
42
- "gitHead": "55e56828a55b355ec68f91c11d942676bbeb241b"
42
+ "gitHead": "084f56bda6733955cdc640b3c8adf1731ec95af4"
43
43
  }