sync.js 605 B

1234567891011121314151617
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.getLibzipPromise = exports.getLibzipSync = void 0;
  4. const tslib_1 = require("tslib");
  5. const libzipSync_1 = tslib_1.__importDefault(require("./libzipSync"));
  6. const makeInterface_1 = require("./makeInterface");
  7. let mod = null;
  8. function getLibzipSync() {
  9. if (mod === null)
  10. mod = (0, makeInterface_1.makeInterface)((0, libzipSync_1.default)());
  11. return mod;
  12. }
  13. exports.getLibzipSync = getLibzipSync;
  14. async function getLibzipPromise() {
  15. return getLibzipSync();
  16. }
  17. exports.getLibzipPromise = getLibzipPromise;