@fonoster/common 0.4.7 → 0.4.8

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.
@@ -1,3 +1,4 @@
1
- declare const getServerCredentials: () => any;
2
- declare const getClientCredentials: () => any;
1
+ import * as grpc from "@grpc/grpc-js";
2
+ declare const getServerCredentials: () => grpc.ServerCredentials;
3
+ declare const getClientCredentials: () => grpc.ChannelCredentials;
3
4
  export { getClientCredentials, getServerCredentials };
@@ -45,12 +45,12 @@ exports.getServerCredentials = exports.getClientCredentials = void 0;
45
45
  * See the License for the specific language governing permissions and
46
46
  * limitations under the License.
47
47
  */
48
+ const grpc = __importStar(require("@grpc/grpc-js"));
48
49
  const os = __importStar(require("os"));
49
50
  const fs = __importStar(require("fs"));
50
51
  const logger_1 = require("@fonoster/logger");
51
52
  const path_1 = __importDefault(require("path"));
52
53
  const atob_1 = __importDefault(require("atob"));
53
- const grpc = require("@grpc/grpc-js");
54
54
  const prepCert = (cert) => Buffer.from((0, atob_1.default)(cert), "utf-8");
55
55
  const logger = (0, logger_1.getLogger)({ service: "common", filePath: __filename });
56
56
  let config = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fonoster/common",
3
- "version": "0.4.7",
3
+ "version": "0.4.8",
4
4
  "description": "Common artifacts",
5
5
  "homepage": "https://github.com/fonoster/fonoster#readme",
6
6
  "bugs": {
@@ -50,5 +50,5 @@
50
50
  "publishConfig": {
51
51
  "access": "public"
52
52
  },
53
- "gitHead": "ed437f652e2a294fab087cacc41fb311a63050a7"
53
+ "gitHead": "e594d9c289ce814090b8133d3efb03561cfa7598"
54
54
  }