mirror of
https://github.com/actions/setup-python.git
synced 2024-11-06 07:55:52 -05:00
39 lines
727 B
JavaScript
39 lines
727 B
JavaScript
|
'use strict';
|
||
|
|
||
|
Object.defineProperty(exports, '__esModule', {
|
||
|
value: true
|
||
|
});
|
||
|
exports.default = void 0;
|
||
|
|
||
|
function _jestSerializer() {
|
||
|
const data = _interopRequireDefault(require('jest-serializer'));
|
||
|
|
||
|
_jestSerializer = function _jestSerializer() {
|
||
|
return data;
|
||
|
};
|
||
|
|
||
|
return data;
|
||
|
}
|
||
|
|
||
|
function _interopRequireDefault(obj) {
|
||
|
return obj && obj.__esModule ? obj : {default: obj};
|
||
|
}
|
||
|
|
||
|
class FilePersistence {
|
||
|
write(cachePath, internalHasteMap) {
|
||
|
_jestSerializer().default.writeFileSync(cachePath, internalHasteMap);
|
||
|
}
|
||
|
|
||
|
read(cachePath) {
|
||
|
return _jestSerializer().default.readFileSync(cachePath);
|
||
|
}
|
||
|
|
||
|
getType() {
|
||
|
return 'file';
|
||
|
}
|
||
|
}
|
||
|
|
||
|
var _default = new FilePersistence();
|
||
|
|
||
|
exports.default = _default;
|