Files
bare-operating-system/kernel/lib/bare/bundles/barePosix.js
T
Raven Scott 9bdecc4170
Release rolling / release (push) Successful in 11m16s
Sync Holepunch modules to current clone/npm latest
Bump published pins (compact-encoding 3, bare-fetch/tls/https/ws 3,
bare-subprocess 6, bare-signals 5, corestore 7.12, protomux 3.11,
hypercore-crypto 3.7, bare-runtime 1.31) and regenerate catalogs,
manifests, and kernel/seeder bundles.

Adapt call sites to the new APIs:
- Corestore: explicit session flush before suspend(); treeCache ctor opts
- bare-crypto: KeyObject.export() instead of removed ._key
- Protomux 3.11: wait for fullyOpened()/fullyClosed() on chat channels
- bare-fetch: surface response.type and Headers.getSetCookie
- host snapshots: bare-os 3.9 / bare-posix / bare-fs.statfs frsize
- bare-subprocess 6: optional IPC channel + json serialization

Keep catalog sync from wiping curated pearEntries. Teach the Node test
shim to stub bare-thread/bare-worker (ESM absolute paths) and chain
Bare.on so bare-timers can load. Booter 479, protocol 34, seeder 14.
2026-08-12 20:56:28 -04:00

86 lines
3.9 KiB
JavaScript

var __bare_os_bundle_exports__ = (() => {
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
}) : x)(function(x) {
if (typeof require !== "undefined") return require.apply(this, arguments);
throw Error('Dynamic require of "' + x + '" is not supported');
});
var __commonJS = (cb, mod) => function __require2() {
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
};
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// ../../node_modules/bare-posix/binding.js
var require_binding = __commonJS({
"../../node_modules/bare-posix/binding.js"(exports, module) {
module.exports = __require.addon();
}
});
// ../../node_modules/bare-posix/index.js
var require_bare_posix = __commonJS({
"../../node_modules/bare-posix/index.js"(exports) {
var binding = require_binding();
exports.getgid = binding.getgid;
exports.setgid = function setgid(id) {
if (typeof id === "string") id = exports.getgrnam(id).gid;
binding.setgid(id);
};
exports.getegid = binding.getegid;
exports.setegid = function setegid(id) {
if (typeof id === "string") id = exports.getgrnam(id).gid;
binding.setegid(id);
};
exports.getuid = binding.getuid;
exports.setuid = function setuid(id) {
if (typeof id === "string") id = exports.getpwnam(id).uid;
binding.setuid(id);
};
exports.geteuid = binding.geteuid;
exports.seteuid = function seteuid(id) {
if (typeof id === "string") id = exports.getpwnam(id).uid;
binding.seteuid(id);
};
exports.getgroups = binding.getgroups;
exports.getgrnam = binding.getgrnam;
exports.getpwnam = binding.getpwnam;
}
});
// ../../bare-lib-entry-barePosix.js
var bare_lib_entry_barePosix_exports = {};
__export(bare_lib_entry_barePosix_exports, {
default: () => bare_lib_entry_barePosix_default
});
var import_bare_posix = __toESM(require_bare_posix());
var bare_lib_entry_barePosix_default = import_bare_posix.default;
return __toCommonJS(bare_lib_entry_barePosix_exports);
})();
;(function(){var g=globalThis;var s="__bare_os_stdlib__";g[s]=g[s]||{};var e=typeof __bare_os_bundle_exports__!=="undefined"?__bare_os_bundle_exports__:void 0;var v=e!=null&&typeof e==="object"&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e;g[s]["barePosix"]=v;})();