@jargon/platform-sdk-core
Version:
Core components of the Jargon Platform SDK for node.js
30 lines • 1.36 kB
JavaScript
;
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.stat = exports.readFile = void 0;
const fs = __importStar(require("fs"));
const util_1 = require("util");
// fs.promises was added in node 10, but we'll continue to support node 8
// until GCF's node 10 support is out of beta and they've officially deprecated
// their node 8 runtime (as AWS Lambda has already done)
exports.readFile = util_1.promisify(fs.readFile);
exports.stat = util_1.promisify(fs.stat);
//# sourceMappingURL=fsPromises.js.map