Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ See the [official Pub/Sub API repo](https://github.com/developerforce/pub-sub-ap
- [EventParseError](#eventparseerror)
- [Configuration](#configuration)

This project bundles and uses CA root certificates from the [python-ceritfi](https://github.com/certifi/python-certifi/blob/master/certifi/cacert.pem) project.

## v4 to v5 Migration

> [!WARNING]
Expand Down
4,634 changes: 4,634 additions & 0 deletions dist/cacert-2ebcb9e8.pem

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions dist/client.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ var import_crypto2 = __toESM(require("crypto"), 1);
var import_fs = __toESM(require("fs"), 1);
var import_url = require("url");
var import_avro_js3 = __toESM(require("avro-js"), 1);
var import_certifi = __toESM(require("certifi"), 1);
var import_grpc_js = __toESM(require("@grpc/grpc-js"), 1);
var import_proto_loader = __toESM(require("@grpc/proto-loader"), 1);
var import_grpc_js2 = require("@grpc/grpc-js");
Expand Down Expand Up @@ -671,7 +670,9 @@ var PubSubApiClient = class {
}
try {
this.#logger.debug(`Connecting to Pub/Sub API`);
const rootCert = import_fs.default.readFileSync(import_certifi.default);
const rootCert = import_fs.default.readFileSync(
(0, import_url.fileURLToPath)(new URL("./cacert-2ebcb9e8.pem?hash=2ebcb9e8", "file://" + __filename))
);
const protoFilePath = (0, import_url.fileURLToPath)(
new URL("./pubsub_api-07e1f84a.proto?hash=07e1f84a", "file://" + __filename)
);
Expand Down
2 changes: 1 addition & 1 deletion dist/client.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions dist/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import crypto2 from "crypto";
import fs from "fs";
import { fileURLToPath } from "url";
import avro3 from "avro-js";
import certifi from "certifi";
import grpc from "@grpc/grpc-js";
import protoLoader from "@grpc/proto-loader";
import { connectivityState } from "@grpc/grpc-js";
Expand Down Expand Up @@ -638,7 +637,9 @@ var PubSubApiClient = class {
}
try {
this.#logger.debug(`Connecting to Pub/Sub API`);
const rootCert = fs.readFileSync(certifi);
const rootCert = fs.readFileSync(
fileURLToPath(new URL("./cacert-2ebcb9e8.pem?hash=2ebcb9e8", import.meta.url))
);
const protoFilePath = fileURLToPath(
new URL("./pubsub_api-07e1f84a.proto?hash=07e1f84a", import.meta.url)
);
Expand Down
Loading