@things-factory/fav-base 4.3.671 → 4.3.673

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.
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./service"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../server/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB"}
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.FavoriteMutation = void 0;
16
+ const type_graphql_1 = require("type-graphql");
17
+ const typeorm_1 = require("typeorm");
18
+ const favorite_1 = require("./favorite");
19
+ const favorite_type_1 = require("./favorite-type");
20
+ let FavoriteMutation = class FavoriteMutation {
21
+ async createFavorite(favorite, context) {
22
+ const { user, domain } = context.state;
23
+ const repository = (0, typeorm_1.getRepository)(favorite_1.Favorite);
24
+ return await repository.save({
25
+ domain,
26
+ user,
27
+ routing: favorite.routing
28
+ });
29
+ }
30
+ async deleteFavorite(routing, context) {
31
+ const { domain, user } = context.state;
32
+ const repository = (0, typeorm_1.getRepository)(favorite_1.Favorite);
33
+ await repository.delete({
34
+ domain,
35
+ user,
36
+ routing
37
+ });
38
+ return true;
39
+ }
40
+ };
41
+ __decorate([
42
+ (0, type_graphql_1.Mutation)(returns => favorite_1.Favorite, { description: 'To create new Favorite' }),
43
+ __param(0, (0, type_graphql_1.Arg)('favorite')),
44
+ __param(1, (0, type_graphql_1.Ctx)()),
45
+ __metadata("design:type", Function),
46
+ __metadata("design:paramtypes", [favorite_type_1.NewFavorite, Object]),
47
+ __metadata("design:returntype", Promise)
48
+ ], FavoriteMutation.prototype, "createFavorite", null);
49
+ __decorate([
50
+ (0, type_graphql_1.Mutation)(returns => Boolean, { description: 'To delete Favorite' }),
51
+ __param(0, (0, type_graphql_1.Arg)('routing')),
52
+ __param(1, (0, type_graphql_1.Ctx)()),
53
+ __metadata("design:type", Function),
54
+ __metadata("design:paramtypes", [String, Object]),
55
+ __metadata("design:returntype", Promise)
56
+ ], FavoriteMutation.prototype, "deleteFavorite", null);
57
+ FavoriteMutation = __decorate([
58
+ (0, type_graphql_1.Resolver)(favorite_1.Favorite)
59
+ ], FavoriteMutation);
60
+ exports.FavoriteMutation = FavoriteMutation;
61
+ //# sourceMappingURL=favorite-m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AA,kBAAG,EAAC,SAAS,CAAC,CAAA;IAAmB,WAAA,IAAA,kBAAG,GAAE,CAAA;;;;sDAW3D;AA1BU,gBAAgB;IAD5B,IAAA,uBAAQ,EAAC,mBAAQ,CAAC;GACN,gBAAgB,CA2B5B;AA3BY,4CAAgB"}
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ var _a;
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.FavoriteQuery = void 0;
17
+ const type_graphql_1 = require("type-graphql");
18
+ const typeorm_1 = require("typeorm");
19
+ const shell_1 = require("@things-factory/shell");
20
+ const favorite_1 = require("./favorite");
21
+ const favorite_type_1 = require("./favorite-type");
22
+ let FavoriteQuery = class FavoriteQuery {
23
+ async favorite(id, context) {
24
+ const { domain } = context.state;
25
+ return await (0, typeorm_1.getRepository)(favorite_1.Favorite).findOne({ domain, id });
26
+ }
27
+ async favorites(params, context) {
28
+ const queryBuilder = (0, typeorm_1.getRepository)(favorite_1.Favorite).createQueryBuilder();
29
+ (0, shell_1.buildQuery)(queryBuilder, params, context);
30
+ const [items, total] = await queryBuilder.getManyAndCount();
31
+ return { items, total };
32
+ }
33
+ async myFavorites(context) {
34
+ const { domain, user } = context.state;
35
+ return await (0, typeorm_1.getRepository)(favorite_1.Favorite).find({
36
+ where: { user, domain }
37
+ });
38
+ }
39
+ };
40
+ __decorate([
41
+ (0, type_graphql_1.Query)(returns => favorite_1.Favorite, { description: 'To fetch a Favorite' }),
42
+ __param(0, (0, type_graphql_1.Arg)('id')),
43
+ __param(1, (0, type_graphql_1.Ctx)()),
44
+ __metadata("design:type", Function),
45
+ __metadata("design:paramtypes", [String, Object]),
46
+ __metadata("design:returntype", Promise)
47
+ ], FavoriteQuery.prototype, "favorite", null);
48
+ __decorate([
49
+ (0, type_graphql_1.Query)(returns => favorite_type_1.FavoriteList, { description: 'To fetch multiple Favorites' }),
50
+ __param(0, (0, type_graphql_1.Args)()),
51
+ __param(1, (0, type_graphql_1.Ctx)()),
52
+ __metadata("design:type", Function),
53
+ __metadata("design:paramtypes", [typeof (_a = typeof shell_1.ListParam !== "undefined" && shell_1.ListParam) === "function" ? _a : Object, Object]),
54
+ __metadata("design:returntype", Promise)
55
+ ], FavoriteQuery.prototype, "favorites", null);
56
+ __decorate([
57
+ (0, type_graphql_1.Query)(returns => [favorite_1.Favorite], { description: "To fetch current user's Favorites" }),
58
+ __param(0, (0, type_graphql_1.Ctx)()),
59
+ __metadata("design:type", Function),
60
+ __metadata("design:paramtypes", [Object]),
61
+ __metadata("design:returntype", Promise)
62
+ ], FavoriteQuery.prototype, "myFavorites", null);
63
+ FavoriteQuery = __decorate([
64
+ (0, type_graphql_1.Resolver)(favorite_1.Favorite)
65
+ ], FavoriteQuery);
66
+ exports.FavoriteQuery = FavoriteQuery;
67
+ //# sourceMappingURL=favorite-query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"favorite-query.js","sourceRoot":"","sources":["../../../server/service/favorite/favorite-query.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA8F;AAC9F,qCAAuC;AACvC,iDAAqE;AAErE,yCAAqC;AACrC,mDAA8C;AAGvC,IAAM,aAAa,GA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,CAAA;IAAqB,WAAA,IAAA,kBAAG,GAAE,CAAA;;yDAAjB,iBAAS,oBAAT,iBAAS;;8CAMxC;AAGK;IADL,IAAA,oBAAK,EAAC,OAAO,CAAC,EAAE,CAAC,CAAC,mBAAQ,CAAC,EAAE,EAAE,WAAW,EAAE,mCAAmC,EAAE,CAAC;IAChE,WAAA,IAAA,kBAAG,GAAE,CAAA;;;;gDAMvB;AAxBU,aAAa;IADzB,IAAA,uBAAQ,EAAC,mBAAQ,CAAC;GACN,aAAa,CAyBzB;AAzBY,sCAAa"}
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.FavoriteList = exports.NewFavorite = void 0;
13
+ const type_graphql_1 = require("type-graphql");
14
+ const favorite_1 = require("./favorite");
15
+ let NewFavorite = class NewFavorite {
16
+ };
17
+ __decorate([
18
+ (0, type_graphql_1.Field)(),
19
+ __metadata("design:type", String)
20
+ ], NewFavorite.prototype, "routing", void 0);
21
+ NewFavorite = __decorate([
22
+ (0, type_graphql_1.InputType)()
23
+ ], NewFavorite);
24
+ exports.NewFavorite = NewFavorite;
25
+ let FavoriteList = class FavoriteList {
26
+ };
27
+ __decorate([
28
+ (0, type_graphql_1.Field)(type => [favorite_1.Favorite]),
29
+ __metadata("design:type", Array)
30
+ ], FavoriteList.prototype, "items", void 0);
31
+ __decorate([
32
+ (0, type_graphql_1.Field)(type => type_graphql_1.Int),
33
+ __metadata("design:type", Number)
34
+ ], FavoriteList.prototype, "total", void 0);
35
+ FavoriteList = __decorate([
36
+ (0, type_graphql_1.ObjectType)()
37
+ ], FavoriteList);
38
+ exports.FavoriteList = FavoriteList;
39
+ //# sourceMappingURL=favorite-type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"favorite-type.js","sourceRoot":"","sources":["../../../server/service/favorite/favorite-type.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAAsF;AAEtF,yCAAqC;AAG9B,IAAM,WAAW,GAAjB,MAAM,WAAW;CAGvB,CAAA;AAFC;IAAC,IAAA,oBAAK,GAAE;;4CACO;AAFJ,WAAW;IADvB,IAAA,wBAAS,GAAE;GACC,WAAW,CAGvB;AAHY,kCAAW;AAMjB,IAAM,YAAY,GAAlB,MAAM,YAAY;CAMxB,CAAA;AALC;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,mBAAQ,CAAC,CAAC;;2CACT;AAEjB;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;2CACN;AALF,YAAY;IADxB,IAAA,yBAAU,GAAE;GACA,YAAY,CAMxB;AANY,oCAAY"}
@@ -0,0 +1,86 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var _a, _b, _c, _d;
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ exports.Favorite = void 0;
14
+ const typeorm_1 = require("typeorm");
15
+ const type_graphql_1 = require("type-graphql");
16
+ const shell_1 = require("@things-factory/shell");
17
+ const auth_base_1 = require("@things-factory/auth-base");
18
+ let Favorite = class Favorite {
19
+ };
20
+ __decorate([
21
+ (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
22
+ (0, type_graphql_1.Field)(type => type_graphql_1.ID),
23
+ __metadata("design:type", String)
24
+ ], Favorite.prototype, "id", void 0);
25
+ __decorate([
26
+ (0, typeorm_1.ManyToOne)(type => shell_1.Domain),
27
+ (0, type_graphql_1.Field)(),
28
+ __metadata("design:type", typeof (_a = typeof shell_1.Domain !== "undefined" && shell_1.Domain) === "function" ? _a : Object)
29
+ ], Favorite.prototype, "domain", void 0);
30
+ __decorate([
31
+ (0, typeorm_1.RelationId)((favorite) => favorite.domain),
32
+ __metadata("design:type", String)
33
+ ], Favorite.prototype, "domainId", void 0);
34
+ __decorate([
35
+ (0, typeorm_1.ManyToOne)(type => auth_base_1.User),
36
+ (0, type_graphql_1.Field)(),
37
+ __metadata("design:type", typeof (_b = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _b : Object)
38
+ ], Favorite.prototype, "user", void 0);
39
+ __decorate([
40
+ (0, typeorm_1.RelationId)((favorite) => favorite.user),
41
+ __metadata("design:type", String)
42
+ ], Favorite.prototype, "userId", void 0);
43
+ __decorate([
44
+ (0, typeorm_1.Column)(),
45
+ (0, type_graphql_1.Field)(),
46
+ __metadata("design:type", String)
47
+ ], Favorite.prototype, "routing", void 0);
48
+ __decorate([
49
+ (0, typeorm_1.CreateDateColumn)(),
50
+ (0, type_graphql_1.Field)({ nullable: true }),
51
+ __metadata("design:type", Date)
52
+ ], Favorite.prototype, "createdAt", void 0);
53
+ __decorate([
54
+ (0, typeorm_1.UpdateDateColumn)(),
55
+ (0, type_graphql_1.Field)({ nullable: true }),
56
+ __metadata("design:type", Date)
57
+ ], Favorite.prototype, "updatedAt", void 0);
58
+ __decorate([
59
+ (0, typeorm_1.ManyToOne)(type => auth_base_1.User, {
60
+ nullable: true
61
+ }),
62
+ (0, type_graphql_1.Field)({ nullable: true }),
63
+ __metadata("design:type", typeof (_c = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _c : Object)
64
+ ], Favorite.prototype, "creator", void 0);
65
+ __decorate([
66
+ (0, typeorm_1.RelationId)((favorite) => favorite.creator),
67
+ __metadata("design:type", String)
68
+ ], Favorite.prototype, "creatorId", void 0);
69
+ __decorate([
70
+ (0, typeorm_1.ManyToOne)(type => auth_base_1.User, {
71
+ nullable: true
72
+ }),
73
+ (0, type_graphql_1.Field)({ nullable: true }),
74
+ __metadata("design:type", typeof (_d = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _d : Object)
75
+ ], Favorite.prototype, "updater", void 0);
76
+ __decorate([
77
+ (0, typeorm_1.RelationId)((favorite) => favorite.creator),
78
+ __metadata("design:type", String)
79
+ ], Favorite.prototype, "updaterId", void 0);
80
+ Favorite = __decorate([
81
+ (0, typeorm_1.Entity)(),
82
+ (0, typeorm_1.Index)('ix_favorite_0', (favorite) => [favorite.domain, favorite.user, favorite.routing], { unique: true }),
83
+ (0, type_graphql_1.ObjectType)({ description: 'Entity for Favorite' })
84
+ ], Favorite);
85
+ exports.Favorite = Favorite;
86
+ //# sourceMappingURL=favorite.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"favorite.js","sourceRoot":"","sources":["../../../server/service/favorite/favorite.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qCASgB;AAChB,+CAAoD;AAEpD,iDAA8C;AAC9C,yDAAgD;AAKzC,IAAM,QAAQ,GAAd,MAAM,QAAQ;CAgDpB,CAAA;AA/CC;IAAC,IAAA,gCAAsB,EAAC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IACD,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;kDAChB,gBAAI,oBAAJ,gBAAI;yCAAA;AAEd;IAAC,IAAA,oBAAU,EAAC,CAAC,QAAkB,EAAE,EAAE,CAAC,QAAQ,CAAC,OAAO,CAAC;;2CACnC;AA/CP,QAAQ;IAHpB,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,eAAe,EAAE,CAAC,QAAkB,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACpH,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,qBAAqB,EAAE,CAAC;GACtC,QAAQ,CAgDpB;AAhDY,4BAAQ"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.resolvers = exports.entities = void 0;
4
+ const favorite_1 = require("./favorite");
5
+ const favorite_query_1 = require("./favorite-query");
6
+ const favorite_mutation_1 = require("./favorite-mutation");
7
+ exports.entities = [favorite_1.Favorite];
8
+ exports.resolvers = [favorite_query_1.FavoriteQuery, favorite_mutation_1.FavoriteMutation];
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/favorite/index.ts"],"names":[],"mappings":";;;AAAA,yCAAqC;AACrC,qDAAgD;AAChD,2DAAsD;AAEzC,QAAA,QAAQ,GAAG,CAAC,mBAAQ,CAAC,CAAA;AACrB,QAAA,SAAS,GAAG,CAAC,8BAAa,EAAE,oCAAgB,CAAC,CAAA"}
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.schema = exports.entities = void 0;
18
+ /* IMPORT ENTITIES AND RESOLVERS */
19
+ const favorite_1 = require("./favorite");
20
+ /* EXPORT ENTITY TYPES */
21
+ __exportStar(require("./favorite/favorite"), exports);
22
+ /* EXPORT TYPES */
23
+ __exportStar(require("./favorite/favorite-type"), exports);
24
+ exports.entities = [
25
+ /* ENTITIES */
26
+ ...favorite_1.entities
27
+ ];
28
+ exports.schema = {
29
+ resolverClasses: [
30
+ /* RESOLVER CLASSES */
31
+ ...favorite_1.resolvers
32
+ ]
33
+ };
34
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/service/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,mCAAmC;AACnC,yCAAyF;AAEzF,yBAAyB;AACzB,sDAAmC;AAEnC,kBAAkB;AAClB,2DAAwC;AAE3B,QAAA,QAAQ,GAAG;IACtB,cAAc;IACd,GAAG,mBAAgB;CACpB,CAAA;AAEY,QAAA,MAAM,GAAG;IACpB,eAAe,EAAE;QACf,sBAAsB;QACtB,GAAG,oBAAiB;KACrB;CACF,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/fav-base",
3
- "version": "4.3.671",
3
+ "version": "4.3.673",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -23,7 +23,7 @@
23
23
  "migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
24
24
  },
25
25
  "dependencies": {
26
- "@things-factory/auth-base": "^4.3.671"
26
+ "@things-factory/auth-base": "^4.3.673"
27
27
  },
28
- "gitHead": "ef524cb207378186ec71917d9a8546363d4300b2"
28
+ "gitHead": "d22f985380f3af2ebc0f81ea8bec478ba00b4777"
29
29
  }