Skip to content

Commit 5486687

Browse files
authored
feat: got rid of deprecated certifi
build: bump dependencies
2 parents f4ab808 + 4c91d1d commit 5486687

File tree

9 files changed

+10660
-1042
lines changed

9 files changed

+10660
-1042
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ See the [official Pub/Sub API repo](https://github.com/developerforce/pub-sub-ap
3131
- [EventParseError](#eventparseerror)
3232
- [Configuration](#configuration)
3333

34+
This project bundles and uses CA root certificates from the [python-ceritfi](https://github.com/certifi/python-certifi/blob/master/certifi/cacert.pem) project.
35+
3436
## v4 to v5 Migration
3537

3638
> [!WARNING]

dist/cacert-2ebcb9e8.pem

Lines changed: 4634 additions & 0 deletions
Large diffs are not rendered by default.

dist/client.cjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ var import_crypto2 = __toESM(require("crypto"), 1);
3636
var import_fs = __toESM(require("fs"), 1);
3737
var import_url = require("url");
3838
var import_avro_js3 = __toESM(require("avro-js"), 1);
39-
var import_certifi = __toESM(require("certifi"), 1);
4039
var import_grpc_js = __toESM(require("@grpc/grpc-js"), 1);
4140
var import_proto_loader = __toESM(require("@grpc/proto-loader"), 1);
4241
var import_grpc_js2 = require("@grpc/grpc-js");
@@ -671,7 +670,9 @@ var PubSubApiClient = class {
671670
}
672671
try {
673672
this.#logger.debug(`Connecting to Pub/Sub API`);
674-
const rootCert = import_fs.default.readFileSync(import_certifi.default);
673+
const rootCert = import_fs.default.readFileSync(
674+
(0, import_url.fileURLToPath)(new URL("./cacert-2ebcb9e8.pem?hash=2ebcb9e8", "file://" + __filename))
675+
);
675676
const protoFilePath = (0, import_url.fileURLToPath)(
676677
new URL("./pubsub_api-07e1f84a.proto?hash=07e1f84a", "file://" + __filename)
677678
);

dist/client.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/client.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import crypto2 from "crypto";
33
import fs from "fs";
44
import { fileURLToPath } from "url";
55
import avro3 from "avro-js";
6-
import certifi from "certifi";
76
import grpc from "@grpc/grpc-js";
87
import protoLoader from "@grpc/proto-loader";
98
import { connectivityState } from "@grpc/grpc-js";
@@ -638,7 +637,9 @@ var PubSubApiClient = class {
638637
}
639638
try {
640639
this.#logger.debug(`Connecting to Pub/Sub API`);
641-
const rootCert = fs.readFileSync(certifi);
640+
const rootCert = fs.readFileSync(
641+
fileURLToPath(new URL("./cacert-2ebcb9e8.pem?hash=2ebcb9e8", import.meta.url))
642+
);
642643
const protoFilePath = fileURLToPath(
643644
new URL("./pubsub_api-07e1f84a.proto?hash=07e1f84a", import.meta.url)
644645
);

0 commit comments

Comments
 (0)