@routr/simpledata 2.0.8-alpha.15 → 2.0.8-alpha.17
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/api.d.ts +4 -4
- package/dist/api.js +2 -2
- package/dist/utils.d.ts +1 -1
- package/package.json +4 -4
package/dist/api.d.ts
CHANGED
|
@@ -3,14 +3,14 @@ import { CommonConnect as CC } from "@routr/common";
|
|
|
3
3
|
/**
|
|
4
4
|
* Enclosure with method to obtain a resource by reference.
|
|
5
5
|
*
|
|
6
|
-
* @param {CC.
|
|
6
|
+
* @param {CC.ConnectModel[]} resources - the resources to search from
|
|
7
7
|
* @return {Function } enclosed method with actual "get" logic
|
|
8
8
|
*/
|
|
9
|
-
export declare function get(resources: CC.
|
|
9
|
+
export declare function get(resources: CC.ConnectModel[]): (call: CT.GrpcCall, callback: CT.GrpcCallback) => void;
|
|
10
10
|
/**
|
|
11
11
|
* Enclosure with method to obtain a resource with a query.
|
|
12
12
|
*
|
|
13
|
-
* @param {CC.
|
|
13
|
+
* @param {CC.ConnectModel[]} resources - the resources to search from
|
|
14
14
|
* @return {Function} enclosed method with actual "findBy" logic
|
|
15
15
|
*/
|
|
16
|
-
export declare function findBy(resources: CC.
|
|
16
|
+
export declare function findBy(resources: CC.ConnectModel[]): (call: CT.GrpcCall, callback: CT.GrpcCallback) => void;
|
package/dist/api.js
CHANGED
|
@@ -49,7 +49,7 @@ const jsonToStruct = protobufUtil.struct.encode;
|
|
|
49
49
|
/**
|
|
50
50
|
* Enclosure with method to obtain a resource by reference.
|
|
51
51
|
*
|
|
52
|
-
* @param {CC.
|
|
52
|
+
* @param {CC.ConnectModel[]} resources - the resources to search from
|
|
53
53
|
* @return {Function } enclosed method with actual "get" logic
|
|
54
54
|
*/
|
|
55
55
|
function get(resources) {
|
|
@@ -73,7 +73,7 @@ exports.get = get;
|
|
|
73
73
|
/**
|
|
74
74
|
* Enclosure with method to obtain a resource with a query.
|
|
75
75
|
*
|
|
76
|
-
* @param {CC.
|
|
76
|
+
* @param {CC.ConnectModel[]} resources - the resources to search from
|
|
77
77
|
* @return {Function} enclosed method with actual "findBy" logic
|
|
78
78
|
*/
|
|
79
79
|
function findBy(resources) {
|
package/dist/utils.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { CommonConnect as CC, CommonTypes as CT } from "@routr/common";
|
|
|
6
6
|
* @param {string} kind - the kind of resource to load
|
|
7
7
|
* @return {Resource[]} the loaded resources
|
|
8
8
|
*/
|
|
9
|
-
export default function loadResources(resourcesPath: string, kind?: CC.Kind): CC.
|
|
9
|
+
export default function loadResources(resourcesPath: string, kind?: CC.Kind): CC.ConnectModel[];
|
|
10
10
|
/**
|
|
11
11
|
* Returns UnimplementedError via callback.
|
|
12
12
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@routr/simpledata",
|
|
3
|
-
"version": "2.0.8-alpha.
|
|
3
|
+
"version": "2.0.8-alpha.17",
|
|
4
4
|
"description": "Files-based API Server for Routr Connect",
|
|
5
5
|
"author": "Pedro Sanders <psanders@fonoster.com>",
|
|
6
6
|
"homepage": "https://github.com/fonoster/routr#readme",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"@opentelemetry/sdk-trace-base": "^1.0.4",
|
|
30
30
|
"@opentelemetry/sdk-trace-node": "^1.0.4",
|
|
31
31
|
"@opentelemetry/semantic-conventions": "^1.0.4",
|
|
32
|
-
"@routr/common": "^2.0.8-alpha.
|
|
33
|
-
"@routr/processor": "^2.0.8-alpha.
|
|
32
|
+
"@routr/common": "^2.0.8-alpha.17",
|
|
33
|
+
"@routr/processor": "^2.0.8-alpha.17",
|
|
34
34
|
"google-protobuf": "^3.9.2",
|
|
35
35
|
"jsonpath": "^1.1.1",
|
|
36
36
|
"pb-util": "^1.0.3"
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"@types/google-protobuf": "^3.15.6",
|
|
53
53
|
"@types/jsonpath": "^0.2.0"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "58f2415a0c32ab860a254a6fac0c1d3de8718dfb"
|
|
56
56
|
}
|