@routr/pgdata 2.0.20 → 2.0.29
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/create.js +2 -2
- package/dist/api/delete.js +2 -2
- package/dist/api/find.js +2 -2
- package/dist/api/get.js +2 -2
- package/dist/api/list.js +2 -2
- package/dist/runner.js +0 -0
- package/dist/tracer.js +1 -1
- package/package.json +2 -2
package/dist/api/create.js
CHANGED
|
@@ -56,7 +56,7 @@ const grpc = __importStar(require("@grpc/grpc-js"));
|
|
|
56
56
|
const pb_util_1 = require("pb-util");
|
|
57
57
|
const common_1 = require("@routr/common");
|
|
58
58
|
const utils_1 = require("../mappers/utils");
|
|
59
|
-
const
|
|
59
|
+
const library_1 = require("@prisma/client/runtime/library");
|
|
60
60
|
function create(operation, kind) {
|
|
61
61
|
return (call, callback) => __awaiter(this, void 0, void 0, function* () {
|
|
62
62
|
try {
|
|
@@ -77,7 +77,7 @@ function create(operation, kind) {
|
|
|
77
77
|
callback(null, Manager.mapToDto(objFromDB));
|
|
78
78
|
}
|
|
79
79
|
catch (e) {
|
|
80
|
-
if (e instanceof
|
|
80
|
+
if (e instanceof library_1.PrismaClientInitializationError) {
|
|
81
81
|
callback({
|
|
82
82
|
code: grpc.status.UNAVAILABLE,
|
|
83
83
|
message: "database is not available"
|
package/dist/api/delete.js
CHANGED
|
@@ -53,7 +53,7 @@ exports.del = void 0;
|
|
|
53
53
|
*/
|
|
54
54
|
/* eslint-disable require-jsdoc */
|
|
55
55
|
const grpc = __importStar(require("@grpc/grpc-js"));
|
|
56
|
-
const
|
|
56
|
+
const library_1 = require("@prisma/client/runtime/library");
|
|
57
57
|
const common_1 = require("@routr/common");
|
|
58
58
|
// TODO: Fix the error handling. We should return the error
|
|
59
59
|
function del(operation) {
|
|
@@ -69,7 +69,7 @@ function del(operation) {
|
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
71
|
catch (e) {
|
|
72
|
-
if (e instanceof
|
|
72
|
+
if (e instanceof library_1.PrismaClientInitializationError) {
|
|
73
73
|
callback({
|
|
74
74
|
code: grpc.status.UNAVAILABLE,
|
|
75
75
|
message: "database is not available"
|
package/dist/api/find.js
CHANGED
|
@@ -55,7 +55,7 @@ exports.findBy = void 0;
|
|
|
55
55
|
const grpc = __importStar(require("@grpc/grpc-js"));
|
|
56
56
|
const pb_util_1 = require("pb-util");
|
|
57
57
|
const utils_1 = require("../mappers/utils");
|
|
58
|
-
const
|
|
58
|
+
const library_1 = require("@prisma/client/runtime/library");
|
|
59
59
|
function findBy(operation, kind) {
|
|
60
60
|
return (call, callback) => __awaiter(this, void 0, void 0, function* () {
|
|
61
61
|
try {
|
|
@@ -76,7 +76,7 @@ function findBy(operation, kind) {
|
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
78
|
catch (e) {
|
|
79
|
-
if (e instanceof
|
|
79
|
+
if (e instanceof library_1.PrismaClientInitializationError) {
|
|
80
80
|
callback({
|
|
81
81
|
code: grpc.status.UNAVAILABLE,
|
|
82
82
|
message: "database is not available"
|
package/dist/api/get.js
CHANGED
|
@@ -56,7 +56,7 @@ const grpc = __importStar(require("@grpc/grpc-js"));
|
|
|
56
56
|
const pb_util_1 = require("pb-util");
|
|
57
57
|
const common_1 = require("@routr/common");
|
|
58
58
|
const utils_1 = require("../mappers/utils");
|
|
59
|
-
const
|
|
59
|
+
const library_1 = require("@prisma/client/runtime/library");
|
|
60
60
|
function get(operation, kind) {
|
|
61
61
|
return (call, callback) => __awaiter(this, void 0, void 0, function* () {
|
|
62
62
|
if (!call.request.ref) {
|
|
@@ -78,7 +78,7 @@ function get(operation, kind) {
|
|
|
78
78
|
: callback(new common_1.CommonErrors.ResourceNotFoundError(call.request.ref), null);
|
|
79
79
|
}
|
|
80
80
|
catch (e) {
|
|
81
|
-
if (e instanceof
|
|
81
|
+
if (e instanceof library_1.PrismaClientInitializationError) {
|
|
82
82
|
callback({
|
|
83
83
|
code: grpc.status.UNAVAILABLE,
|
|
84
84
|
message: "database is not available"
|
package/dist/api/list.js
CHANGED
|
@@ -55,7 +55,7 @@ exports.list = void 0;
|
|
|
55
55
|
const grpc = __importStar(require("@grpc/grpc-js"));
|
|
56
56
|
const pb_util_1 = require("pb-util");
|
|
57
57
|
const utils_1 = require("../mappers/utils");
|
|
58
|
-
const
|
|
58
|
+
const library_1 = require("@prisma/client/runtime/library");
|
|
59
59
|
function list(operation, kind) {
|
|
60
60
|
return (call, callback) => __awaiter(this, void 0, void 0, function* () {
|
|
61
61
|
var _a;
|
|
@@ -85,7 +85,7 @@ function list(operation, kind) {
|
|
|
85
85
|
});
|
|
86
86
|
}
|
|
87
87
|
catch (e) {
|
|
88
|
-
if (e instanceof
|
|
88
|
+
if (e instanceof library_1.PrismaClientInitializationError) {
|
|
89
89
|
callback({
|
|
90
90
|
code: grpc.status.UNAVAILABLE,
|
|
91
91
|
message: "database is not available"
|
package/dist/runner.js
CHANGED
|
File without changes
|
package/dist/tracer.js
CHANGED
|
@@ -22,7 +22,6 @@ exports.init = void 0;
|
|
|
22
22
|
* See the License for the specific language governing permissions and
|
|
23
23
|
* limitations under the License.
|
|
24
24
|
*/
|
|
25
|
-
const api_1 = __importDefault(require("@opentelemetry/api"));
|
|
26
25
|
const instrumentation_1 = require("@opentelemetry/instrumentation");
|
|
27
26
|
const sdk_trace_node_1 = require("@opentelemetry/sdk-trace-node");
|
|
28
27
|
const resources_1 = require("@opentelemetry/resources");
|
|
@@ -30,6 +29,7 @@ const semantic_conventions_1 = require("@opentelemetry/semantic-conventions");
|
|
|
30
29
|
const sdk_trace_base_1 = require("@opentelemetry/sdk-trace-base");
|
|
31
30
|
const exporter_jaeger_1 = require("@opentelemetry/exporter-jaeger");
|
|
32
31
|
const instrumentation_grpc_1 = require("@opentelemetry/instrumentation-grpc");
|
|
32
|
+
const api_1 = __importDefault(require("@opentelemetry/api"));
|
|
33
33
|
/**
|
|
34
34
|
* This function registers the instrumentations for the service.
|
|
35
35
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@routr/pgdata",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.29",
|
|
4
4
|
"description": "Postgres API Server for Routr Connect",
|
|
5
5
|
"author": "Pedro Sanders <psanders@fonoster.com>",
|
|
6
6
|
"homepage": "https://github.com/fonoster/routr#readme",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"@types/validator": "^13.7.10",
|
|
58
58
|
"prisma": "^4.8.0"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "59b95dfd079d17c604be42e8c4d2d428506a06a3"
|
|
61
61
|
}
|