Sin descripción
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.loadCJSON = void 0;
  4. const error_1 = require("./error");
  5. const cjson = require("cjson");
  6. function loadCJSON(path) {
  7. try {
  8. return cjson.load(path);
  9. }
  10. catch (e) {
  11. if (e.code === "ENOENT") {
  12. throw new error_1.FirebaseError(`File ${path} does not exist`);
  13. }
  14. throw new error_1.FirebaseError(`Parse Error in ${path}:\n\n${e.message}`);
  15. }
  16. }
  17. exports.loadCJSON = loadCJSON;