@socketsecurity/lib
Version:
Core utilities and infrastructure for Socket.dev security tools
69 lines (68 loc) • 1.98 kB
JavaScript
;
/* Socket Lib - Built with esbuild */
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
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 __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var licenses_exports = {};
__export(licenses_exports, {
MIT: () => MIT,
UNLICENCED: () => UNLICENCED,
UNLICENSED: () => UNLICENSED,
getCopyLeftLicenses: () => getCopyLeftLicenses
});
module.exports = __toCommonJS(licenses_exports);
const MIT = "MIT";
const UNLICENCED = "UNLICENCED";
const UNLICENSED = "UNLICENSED";
let _copyLeftLicenses;
function getCopyLeftLicenses() {
if (_copyLeftLicenses === void 0) {
_copyLeftLicenses = /* @__PURE__ */ new Set([
"AGPL-1.0",
"AGPL-1.0-only",
"AGPL-1.0-or-later",
"AGPL-3.0",
"AGPL-3.0-only",
"AGPL-3.0-or-later",
"CC-BY-SA-1.0",
"CC-BY-SA-2.0",
"CC-BY-SA-3.0",
"CC-BY-SA-4.0",
"EPL-1.0",
"EPL-2.0",
"EUPL-1.1",
"EUPL-1.2",
"GPL-1.0",
"GPL-1.0-only",
"GPL-1.0-or-later",
"GPL-2.0",
"GPL-2.0-only",
"GPL-2.0-or-later",
"GPL-3.0",
"GPL-3.0-only",
"GPL-3.0-or-later"
]);
}
return _copyLeftLicenses;
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
MIT,
UNLICENCED,
UNLICENSED,
getCopyLeftLicenses
});