@loopback/repository 5.0.1 → 5.0.2
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.
|
@@ -44,7 +44,7 @@ async function findByForeignKeys(targetRepository, fkName, fkValues, scope, opti
|
|
|
44
44
|
if (!(scope === null || scope === void 0 ? void 0 : scope.limit)) {
|
|
45
45
|
useScopeFilterGlobally = true;
|
|
46
46
|
}
|
|
47
|
-
// This code is to keep backward
|
|
47
|
+
// This code is to keep backward compatibility.
|
|
48
48
|
// See https://github.com/loopbackio/loopback-next/issues/6832 for more info.
|
|
49
49
|
if (scope === null || scope === void 0 ? void 0 : scope.totalLimit) {
|
|
50
50
|
scope.limit = scope.totalLimit;
|
|
@@ -51,7 +51,7 @@ export declare class DefaultCrudRepository<T extends Entity, ID, Relations exten
|
|
|
51
51
|
private ensurePersistedModel;
|
|
52
52
|
/**
|
|
53
53
|
* Creates a legacy persisted model class, attaches it to the datasource and
|
|
54
|
-
* returns it. This method can be
|
|
54
|
+
* returns it. This method can be overridden in sub-classes to acess methods
|
|
55
55
|
* and properties in the generated model class.
|
|
56
56
|
* @param entityClass - LB4 Entity constructor
|
|
57
57
|
*/
|
|
@@ -90,7 +90,7 @@ class DefaultCrudRepository {
|
|
|
90
90
|
}
|
|
91
91
|
/**
|
|
92
92
|
* Creates a legacy persisted model class, attaches it to the datasource and
|
|
93
|
-
* returns it. This method can be
|
|
93
|
+
* returns it. This method can be overridden in sub-classes to acess methods
|
|
94
94
|
* and properties in the generated model class.
|
|
95
95
|
* @param entityClass - LB4 Entity constructor
|
|
96
96
|
*/
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loopback/repository",
|
|
3
3
|
"description": "Define and implement a common set of interfaces for interacting with databases",
|
|
4
|
-
"version": "5.0.
|
|
4
|
+
"version": "5.0.2",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"!*/__tests__"
|
|
34
34
|
],
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@loopback/core": "^4.0.
|
|
36
|
+
"@loopback/core": "^4.0.2"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@loopback/filter": "^3.0.
|
|
39
|
+
"@loopback/filter": "^3.0.2",
|
|
40
40
|
"@types/debug": "^4.1.7",
|
|
41
41
|
"debug": "^4.3.4",
|
|
42
42
|
"lodash": "^4.17.21",
|
|
@@ -44,15 +44,15 @@
|
|
|
44
44
|
"tslib": "^2.4.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@loopback/build": "^9.0.
|
|
48
|
-
"@loopback/core": "^4.0.
|
|
49
|
-
"@loopback/eslint-config": "^13.0.
|
|
50
|
-
"@loopback/testlab": "^5.0.
|
|
47
|
+
"@loopback/build": "^9.0.2",
|
|
48
|
+
"@loopback/core": "^4.0.2",
|
|
49
|
+
"@loopback/eslint-config": "^13.0.2",
|
|
50
|
+
"@loopback/testlab": "^5.0.2",
|
|
51
51
|
"@types/bson": "^4.0.5",
|
|
52
52
|
"@types/json-schema": "^7.0.11",
|
|
53
53
|
"@types/lodash": "^4.14.182",
|
|
54
54
|
"@types/node": "^14.18.21",
|
|
55
55
|
"bson": "4.6.4"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "d2eddfc1319810f4c0126e613c24499b5685f7e4"
|
|
58
58
|
}
|
|
@@ -62,7 +62,7 @@ export async function findByForeignKeys<
|
|
|
62
62
|
useScopeFilterGlobally = true;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
// This code is to keep backward
|
|
65
|
+
// This code is to keep backward compatibility.
|
|
66
66
|
// See https://github.com/loopbackio/loopback-next/issues/6832 for more info.
|
|
67
67
|
if (scope?.totalLimit) {
|
|
68
68
|
scope.limit = scope.totalLimit;
|
|
@@ -170,7 +170,7 @@ export class DefaultCrudRepository<
|
|
|
170
170
|
|
|
171
171
|
/**
|
|
172
172
|
* Creates a legacy persisted model class, attaches it to the datasource and
|
|
173
|
-
* returns it. This method can be
|
|
173
|
+
* returns it. This method can be overridden in sub-classes to acess methods
|
|
174
174
|
* and properties in the generated model class.
|
|
175
175
|
* @param entityClass - LB4 Entity constructor
|
|
176
176
|
*/
|