-
-
Save jungleeforce/fc51827a0ad9129816806de30f291a7a to your computer and use it in GitHub Desktop.
npm package dependencies & initialization
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// npm packages & initialization | |
const grpc = require("grpc"); | |
const fs = require("fs"); | |
const jsforce = require("jsforce"); | |
const avro = require("avro-js"); | |
const protoLoader = require("@grpc/proto-loader"); | |
const packageDef = protoLoader.loadSync("sf.proto", {}); | |
const grpcObj = grpc.loadPackageDefinition(packageDef); | |
const sfdcPackage = grpcObj.eventbus.v1; | |
const root_cert = fs.readFileSync("roots.cer"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment