@pisell/pisellos
Version:
一个可扩展的前端模块化SDK框架,支持插件系统
45 lines (43 loc) • 1.47 kB
JavaScript
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);
// src/model/strategy/type.ts
var type_exports = {};
__export(type_exports, {
ERROR_CODES: () => ERROR_CODES,
NOT_APPLICABLE_CODES: () => NOT_APPLICABLE_CODES,
SUCCESS_CODES: () => SUCCESS_CODES
});
module.exports = __toCommonJS(type_exports);
var SUCCESS_CODES = {
SUCCESS: "SUCCESS"
};
var NOT_APPLICABLE_CODES = {
CONDITION_NOT_MET: "CONDITION_NOT_MET"
};
var ERROR_CODES = {
INVALID_CONFIG: "INVALID_CONFIG",
INVALID_CONTEXT: "INVALID_CONTEXT",
EVALUATION_ERROR: "EVALUATION_ERROR",
UNKNOWN_ERROR: "UNKNOWN_ERROR"
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
ERROR_CODES,
NOT_APPLICABLE_CODES,
SUCCESS_CODES
});