@loopback/example-graphql 0.9.2 → 0.9.3
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/dist/datasources/recipes.datasource.js +2 -1
- package/dist/datasources/recipes.datasource.js.map +1 -1
- package/dist/graphql-resolvers/recipe-resolver.js +2 -1
- package/dist/graphql-resolvers/recipe-resolver.js.map +1 -1
- package/dist/graphql-types/recipe-input.js +2 -1
- package/dist/graphql-types/recipe-input.js.map +1 -1
- package/dist/graphql-types/recipe-type.js +2 -1
- package/dist/graphql-types/recipe-type.js.map +1 -1
- package/dist/repositories/recipe.repository.js +2 -1
- package/dist/repositories/recipe.repository.js.map +1 -1
- package/dist/services/recipe.service.js +4 -4
- package/dist/services/recipe.service.js.map +1 -1
- package/package.json +14 -14
|
@@ -18,11 +18,12 @@ const config = {
|
|
|
18
18
|
// application is stopped. This allows the application to be shut down
|
|
19
19
|
// gracefully. The `stop()` method is inherited from `juggler.DataSource`.
|
|
20
20
|
// Learn more at https://loopback.io/doc/en/lb4/Life-cycle.html
|
|
21
|
-
let RecipesDataSource =
|
|
21
|
+
let RecipesDataSource = class RecipesDataSource extends repository_1.juggler.DataSource {
|
|
22
22
|
constructor(dsConfig = config) {
|
|
23
23
|
super(dsConfig);
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
|
+
exports.RecipesDataSource = RecipesDataSource;
|
|
26
27
|
RecipesDataSource.dataSourceName = 'recipes';
|
|
27
28
|
RecipesDataSource.defaultConfig = config;
|
|
28
29
|
exports.RecipesDataSource = RecipesDataSource = tslib_1.__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recipes.datasource.js","sourceRoot":"","sources":["../../src/datasources/recipes.datasource.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,yCAAyC;AACzC,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAKwB;AACxB,qDAAiE;AAEjE,MAAM,MAAM,GAAG;IACb,IAAI,EAAE,SAAS;IACf,SAAS,EAAE,QAAQ;IACnB,YAAY,EAAE,EAAE;IAChB,IAAI,EAAE,EAAE;CACT,CAAC;AAEF,qEAAqE;AACrE,sEAAsE;AACtE,0EAA0E;AAC1E,+DAA+D;AAOxD,IAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"recipes.datasource.js","sourceRoot":"","sources":["../../src/datasources/recipes.datasource.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,yCAAyC;AACzC,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAKwB;AACxB,qDAAiE;AAEjE,MAAM,MAAM,GAAG;IACb,IAAI,EAAE,SAAS;IACf,SAAS,EAAE,QAAQ;IACnB,YAAY,EAAE,EAAE;IAChB,IAAI,EAAE,EAAE;CACT,CAAC;AAEF,qEAAqE;AACrE,sEAAsE;AACtE,0EAA0E;AAC1E,+DAA+D;AAOxD,IAAM,iBAAiB,GAAvB,MAAM,iBACX,SAAQ,oBAAO,CAAC,UAAU;IAM1B,YAEE,WAAmB,MAAM;QAEzB,KAAK,CAAC,QAAQ,CAAC,CAAC;IAClB,CAAC;;AAZU,8CAAiB;AAIrB,gCAAc,GAAG,SAAS,AAAZ,CAAa;AAClB,+BAAa,GAAG,MAAM,AAAT,CAAU;4BAL5B,iBAAiB;IAN7B,IAAA,wBAAiB,EAAC,YAAY,EAAE;QAC/B,IAAI,EAAE;YACJ,CAAC,kBAAW,CAAC,IAAI,CAAC,EAAE,SAAS;YAC7B,CAAC,kBAAW,CAAC,SAAS,CAAC,EAAE,+BAAkB,CAAC,WAAW;SACxD;KACF,CAAC;IASG,mBAAA,IAAA,aAAM,EAAC,4BAA4B,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC,CAAA;;GAR9C,iBAAiB,CAa7B"}
|
|
@@ -13,7 +13,7 @@ const recipe_input_1 = require("../graphql-types/recipe-input");
|
|
|
13
13
|
const recipe_type_1 = require("../graphql-types/recipe-type");
|
|
14
14
|
const repositories_1 = require("../repositories");
|
|
15
15
|
const recipe_service_1 = require("../services/recipe.service");
|
|
16
|
-
let RecipeResolver =
|
|
16
|
+
let RecipeResolver = class RecipeResolver {
|
|
17
17
|
constructor(recipeRepo, recipeService, resolverData) {
|
|
18
18
|
this.recipeRepo = recipeRepo;
|
|
19
19
|
this.recipeService = recipeService;
|
|
@@ -41,6 +41,7 @@ let RecipeResolver = exports.RecipeResolver = class RecipeResolver {
|
|
|
41
41
|
return this.recipeService.ratingsCount(recipe, minRate);
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
|
+
exports.RecipeResolver = RecipeResolver;
|
|
44
45
|
tslib_1.__decorate([
|
|
45
46
|
(0, graphql_1.query)(returns => recipe_type_1.Recipe, { nullable: true }),
|
|
46
47
|
(0, graphql_1.authorized)('owner'),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recipe-resolver.js","sourceRoot":"","sources":["../../src/graphql-resolvers/recipe-resolver.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,yCAAyC;AACzC,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAA+C;AAC/C,+CAe2B;AAC3B,qDAAgD;AAChD,gEAA0D;AAC1D,8DAAoD;AACpD,kDAAiD;AACjD,+DAAyD;AAGlD,IAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"recipe-resolver.js","sourceRoot":"","sources":["../../src/graphql-resolvers/recipe-resolver.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,yCAAyC;AACzC,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAA+C;AAC/C,+CAe2B;AAC3B,qDAAgD;AAChD,gEAA0D;AAC1D,8DAAoD;AACpD,kDAAiD;AACjD,+DAAyD;AAGlD,IAAM,cAAc,GAApB,MAAM,cAAc;IACzB,YAGmB,UAA4B,EACJ,aAA4B,EAEtB,YAA0B;QAHxD,eAAU,GAAV,UAAU,CAAkB;QACJ,kBAAa,GAAb,aAAa,CAAe;QAEtB,iBAAY,GAAZ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AAC;IAEzB,mBAAA,IAAA,aAAG,EAAC,QAAQ,CAAC,CAAA;IACb,mBAAA,IAAA,gBAAM,EAAC,eAAe,CAAC,CAAA;;6CADD,0BAAW;;+CAMnC;AAGK;IADL,IAAA,sBAAY,EAAC,OAAO,CAAC,EAAE,CAAC,oBAAM,EAAE,EAAC,MAAM,EAAE,eAAe,EAAC,CAAC;IACtC,mBAAA,IAAA,cAAI,GAAE,CAAA;;6CAAS,oBAAM;;mDAEzC;AAGK;IADL,IAAA,uBAAa,GAAE;IACU,mBAAA,IAAA,cAAI,GAAE,CAAA;;6CAAS,oBAAM;;wDAG9C;AAGD;IADC,IAAA,uBAAa,GAAE;IAEb,mBAAA,IAAA,cAAI,GAAE,CAAA;IACN,mBAAA,IAAA,aAAG,EAAC,SAAS,EAAE,IAAI,CAAC,EAAE,CAAC,aAAG,EAAE,EAAC,YAAY,EAAE,GAAG,EAAC,CAAC,CAAA;;6CADjC,oBAAM;;kDAKvB;yBAjDU,cAAc;IAD1B,IAAA,kBAAQ,EAAC,EAAE,CAAC,EAAE,CAAC,oBAAM,CAAC;IAIlB,mBAAA,IAAA,uBAAU,EAAC,kBAAkB,CAAC,CAAA;IAE9B,mBAAA,IAAA,cAAO,EAAC,8BAAa,CAAC,CAAA;IAEtB,mBAAA,IAAA,aAAM,EAAC,yBAAe,CAAC,aAAa,CAAC,CAAA;6CAHT,+BAAgB;QACW,8BAAa;GAL5D,cAAc,CAkD1B"}
|
|
@@ -7,8 +7,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
7
7
|
exports.RecipeInput = void 0;
|
|
8
8
|
const tslib_1 = require("tslib");
|
|
9
9
|
const graphql_1 = require("@loopback/graphql");
|
|
10
|
-
let RecipeInput =
|
|
10
|
+
let RecipeInput = class RecipeInput {
|
|
11
11
|
};
|
|
12
|
+
exports.RecipeInput = RecipeInput;
|
|
12
13
|
tslib_1.__decorate([
|
|
13
14
|
(0, graphql_1.field)(),
|
|
14
15
|
tslib_1.__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recipe-input.js","sourceRoot":"","sources":["../../src/graphql-types/recipe-input.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,yCAAyC;AACzC,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,+CAAmD;AAI5C,IAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"recipe-input.js","sourceRoot":"","sources":["../../src/graphql-types/recipe-input.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,yCAAyC;AACzC,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,+CAAmD;AAI5C,IAAM,WAAW,GAAjB,MAAM,WAAW;CASvB,CAAA;AATY,kCAAW;AAEtB;IADC,IAAA,eAAK,GAAE;;0CACM;AAGd;IADC,IAAA,eAAK,EAAC,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;;gDACH;AAGrB;IADC,IAAA,eAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC;;gDACF;sBARX,WAAW;IADvB,IAAA,mBAAS,GAAE;GACC,WAAW,CASvB"}
|
|
@@ -8,7 +8,7 @@ exports.Recipe = void 0;
|
|
|
8
8
|
const tslib_1 = require("tslib");
|
|
9
9
|
const graphql_1 = require("@loopback/graphql");
|
|
10
10
|
const repository_1 = require("@loopback/repository");
|
|
11
|
-
let Recipe =
|
|
11
|
+
let Recipe = class Recipe extends repository_1.Entity {
|
|
12
12
|
get specification() {
|
|
13
13
|
return this.description;
|
|
14
14
|
}
|
|
@@ -24,6 +24,7 @@ let Recipe = exports.Recipe = class Recipe extends repository_1.Entity {
|
|
|
24
24
|
return ratingsSum / ratingsCount;
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
|
+
exports.Recipe = Recipe;
|
|
27
28
|
tslib_1.__decorate([
|
|
28
29
|
(0, graphql_1.field)(type => graphql_1.ID),
|
|
29
30
|
(0, repository_1.property)({ id: true }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recipe-type.js","sourceRoot":"","sources":["../../src/graphql-types/recipe-type.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,yCAAyC;AACzC,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,+CAAoE;AACpE,qDAA6D;AAItD,IAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"recipe-type.js","sourceRoot":"","sources":["../../src/graphql-types/recipe-type.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,yCAAyC;AACzC,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,+CAAoE;AACpE,qDAA6D;AAItD,IAAM,MAAM,GAAZ,MAAM,MAAO,SAAQ,mBAAM;IAShC,IAII,aAAa;QACf,OAAO,IAAI,CAAC,WAAW,CAAC;IAC1B,CAAC;IAyBD,IACc,iBAAiB;QAC7B,OAAO,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC;IACjC,CAAC;IAED,IACI,aAAa;QACf,MAAM,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC;QACzC,IAAI,YAAY,KAAK,CAAC,EAAE;YACtB,OAAO,IAAI,CAAC;SACb;QACD,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;QAC3D,OAAO,UAAU,GAAG,YAAY,CAAC;IACnC,CAAC;CACF,CAAA;AAtDY,wBAAM;AAGjB;IAFC,IAAA,eAAK,EAAC,IAAI,CAAC,EAAE,CAAC,YAAE,CAAC;IACjB,IAAA,qBAAQ,EAAC,EAAC,EAAE,EAAE,IAAI,EAAC,CAAC;;kCACV;AAIX;IAFC,IAAA,eAAK,GAAE;IACP,IAAA,qBAAQ,GAAE;;qCACG;AAEd;IAAC,IAAA,eAAK,EAAC,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE;QACrB,QAAQ,EAAE,IAAI;QACd,iBAAiB,EAAE,iCAAiC;KACrD,CAAC;;;2CAGD;AAOD;IALC,IAAA,eAAK,EAAC;QACL,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,8CAA8C;KAC5D,CAAC;IACD,IAAA,qBAAQ,GAAE;;2CACU;AAGrB;IADC,IAAA,eAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,aAAG,CAAC,CAAC;;uCACH;AAIlB;IAFC,IAAA,eAAK,GAAE;IACP,IAAA,qBAAQ,GAAE;sCACG,IAAI;4CAAC;AAGT;IADT,IAAA,eAAK,EAAC,IAAI,CAAC,EAAE,CAAC,aAAG,CAAC;;kDACkB;AAGrC;IADC,IAAA,eAAK,EAAC,IAAI,CAAC,EAAE,CAAC,aAAG,CAAC;;4CACE;AAGrB;IADC,IAAA,eAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC;;2CACF;AAEtB;IAAC,IAAA,eAAK,EAAC,IAAI,CAAC,EAAE,CAAC,aAAG,CAAC;;;+CAGlB;AAED;IAAC,IAAA,eAAK,EAAC,IAAI,CAAC,EAAE,CAAC,eAAK,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;;;2CAQtC;iBArDU,MAAM;IAFlB,IAAA,oBAAU,EAAC,EAAC,WAAW,EAAE,oCAAoC,EAAC,CAAC;IAC/D,IAAA,kBAAK,EAAC,EAAC,QAAQ,EAAE,EAAC,MAAM,EAAE,KAAK,EAAC,EAAC,CAAC;GACtB,MAAM,CAsDlB"}
|
|
@@ -12,7 +12,7 @@ const repository_1 = require("@loopback/repository");
|
|
|
12
12
|
const class_transformer_1 = require("class-transformer");
|
|
13
13
|
const recipes_datasource_1 = require("../datasources/recipes.datasource");
|
|
14
14
|
const recipe_type_1 = require("../graphql-types/recipe-type");
|
|
15
|
-
let RecipeRepository =
|
|
15
|
+
let RecipeRepository = RecipeRepository_1 = class RecipeRepository extends repository_1.DefaultCrudRepository {
|
|
16
16
|
constructor(dataSource) {
|
|
17
17
|
super(recipe_type_1.Recipe, dataSource);
|
|
18
18
|
}
|
|
@@ -50,6 +50,7 @@ let RecipeRepository = exports.RecipeRepository = RecipeRepository_1 = class Rec
|
|
|
50
50
|
return (++RecipeRepository_1.idCounter).toString();
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
|
+
exports.RecipeRepository = RecipeRepository;
|
|
53
54
|
RecipeRepository.idCounter = 0;
|
|
54
55
|
tslib_1.__decorate([
|
|
55
56
|
(0, core_1.inject)('recipes'),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recipe.repository.js","sourceRoot":"","sources":["../../src/repositories/recipe.repository.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,yCAAyC;AACzC,+CAA+C;AAC/C,gEAAgE;;;;;AAEhE,yCAOwB;AACxB,qDAA+E;AAC/E,yDAA+C;AAC/C,0EAAoE;AAEpE,8DAAoD;AAO7C,IAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"recipe.repository.js","sourceRoot":"","sources":["../../src/repositories/recipe.repository.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,yCAAyC;AACzC,+CAA+C;AAC/C,gEAAgE;;;;;AAEhE,yCAOwB;AACxB,qDAA+E;AAC/E,yDAA+C;AAC/C,0EAAoE;AAEpE,8DAAoD;AAO7C,IAAM,gBAAgB,wBAAtB,MAAM,gBACX,SAAQ,kCAA6D;IAQrE,YAA2C,UAA6B;QACtE,KAAK,CAAC,oBAAM,EAAE,UAAU,CAAC,CAAC;IAC5B,CAAC;IAED,KAAK,CAAC,KAAK;QACT,MAAM,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QACzC,+CAA+C;QAC/C,kBAAgB,CAAC,SAAS,IAAI,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC;IAC1D,CAAC;IAED,IAAI;QACF,uBAAuB;QACvB,kBAAgB,CAAC,SAAS,GAAG,CAAC,CAAC;IACjC,CAAC;IAED,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AAC,EAAE,+BAAkB,CAAC,YAAY,EAAC;KACjE,CAAC;IACD,IAAA,wBAAiB,EAAC,YAAY,CAAC;IAUjB,mBAAA,IAAA,aAAM,EAAC,qBAAqB,CAAC,CAAA;6CAAa,sCAAiB;GAT7D,gBAAgB,CAqD5B"}
|
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
// Node module: @loopback/example-graphql
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
6
|
-
var RecipeService_1;
|
|
7
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
7
|
exports.RecipeService = void 0;
|
|
9
8
|
const tslib_1 = require("tslib");
|
|
10
9
|
const core_1 = require("@loopback/core");
|
|
11
|
-
let RecipeService =
|
|
10
|
+
let RecipeService = class RecipeService {
|
|
12
11
|
ratingsCount(recipe, minRate) {
|
|
13
12
|
return recipe.ratings.filter(rating => rating >= minRate).length;
|
|
14
13
|
}
|
|
15
14
|
};
|
|
16
|
-
exports.RecipeService = RecipeService
|
|
17
|
-
|
|
15
|
+
exports.RecipeService = RecipeService;
|
|
16
|
+
exports.RecipeService = RecipeService = tslib_1.__decorate([
|
|
17
|
+
(0, core_1.injectable)((0, core_1.asService)(RecipeService))
|
|
18
18
|
], RecipeService);
|
|
19
19
|
//# sourceMappingURL=recipe.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recipe.service.js","sourceRoot":"","sources":["../../src/services/recipe.service.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,yCAAyC;AACzC,+CAA+C;AAC/C,gEAAgE
|
|
1
|
+
{"version":3,"file":"recipe.service.js","sourceRoot":"","sources":["../../src/services/recipe.service.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,yCAAyC;AACzC,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAAqD;AAI9C,IAAM,aAAa,GAAnB,MAAM,aAAa;IACxB,YAAY,CAAC,MAAc,EAAE,OAAe;QAC1C,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,IAAI,OAAO,CAAC,CAAC,MAAM,CAAC;IACnE,CAAC;CACF,CAAA;AAJY,sCAAa;wBAAb,aAAa;IADzB,IAAA,iBAAU,EAAC,IAAA,gBAAS,EAAC,aAAa,CAAC,CAAC;GACxB,aAAa,CAIzB"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loopback/example-graphql",
|
|
3
3
|
"description": "GraphQL Example Application",
|
|
4
|
-
"version": "0.9.
|
|
4
|
+
"version": "0.9.3",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"loopback-application",
|
|
7
7
|
"loopback"
|
|
@@ -49,24 +49,24 @@
|
|
|
49
49
|
"!*/__tests__"
|
|
50
50
|
],
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@loopback/boot": "^6.1.
|
|
53
|
-
"@loopback/core": "^5.1.
|
|
54
|
-
"@loopback/graphql": "^0.10.
|
|
55
|
-
"@loopback/repository": "^6.1.
|
|
56
|
-
"@loopback/rest": "^13.1.
|
|
52
|
+
"@loopback/boot": "^6.1.3",
|
|
53
|
+
"@loopback/core": "^5.1.3",
|
|
54
|
+
"@loopback/graphql": "^0.10.3",
|
|
55
|
+
"@loopback/repository": "^6.1.3",
|
|
56
|
+
"@loopback/rest": "^13.1.3",
|
|
57
57
|
"class-transformer": "^0.5.1",
|
|
58
|
-
"tslib": "^2.6.
|
|
58
|
+
"tslib": "^2.6.2"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@loopback/build": "^10.1.
|
|
62
|
-
"@loopback/eslint-config": "^14.0.
|
|
63
|
-
"@loopback/testlab": "^6.1.
|
|
61
|
+
"@loopback/build": "^10.1.3",
|
|
62
|
+
"@loopback/eslint-config": "^14.0.4",
|
|
63
|
+
"@loopback/testlab": "^6.1.3",
|
|
64
64
|
"@types/multer": "^1.4.7",
|
|
65
|
-
"@types/node": "^16.18.
|
|
66
|
-
"eslint": "^8.
|
|
65
|
+
"@types/node": "^16.18.50",
|
|
66
|
+
"eslint": "^8.48.0",
|
|
67
67
|
"rimraf": "^5.0.1",
|
|
68
68
|
"source-map-support": "^0.5.21",
|
|
69
|
-
"typescript": "~5.
|
|
69
|
+
"typescript": "~5.2.2"
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "9107199cdf1597260ee03e2a903b7db0dec8445d"
|
|
72
72
|
}
|