deprecations.js 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. var __create = Object.create;
  2. var __defProp = Object.defineProperty;
  3. var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
  4. var __getOwnPropNames = Object.getOwnPropertyNames;
  5. var __getProtoOf = Object.getPrototypeOf;
  6. var __hasOwnProp = Object.prototype.hasOwnProperty;
  7. var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
  8. var __export = (target, all) => {
  9. __markAsModule(target);
  10. for (var name in all)
  11. __defProp(target, name, { get: all[name], enumerable: true });
  12. };
  13. var __reExport = (target, module2, desc) => {
  14. if (module2 && typeof module2 === "object" || typeof module2 === "function") {
  15. for (let key of __getOwnPropNames(module2))
  16. if (!__hasOwnProp.call(target, key) && key !== "default")
  17. __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
  18. }
  19. return target;
  20. };
  21. var __toModule = (module2) => {
  22. return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
  23. };
  24. __export(exports, {
  25. noBoolOperatorAliases: () => noBoolOperatorAliases,
  26. noDoubleNestedGroup: () => noDoubleNestedGroup,
  27. noRawAttributes: () => noRawAttributes,
  28. noStringOperators: () => noStringOperators,
  29. noTrueLogging: () => noTrueLogging,
  30. unsupportedEngine: () => unsupportedEngine
  31. });
  32. var import_util = __toModule(require("util"));
  33. const noop = () => {
  34. };
  35. const noRawAttributes = (0, import_util.deprecate)(noop, "Use sequelize.fn / sequelize.literal to construct attributes", "SEQUELIZE0001");
  36. const noTrueLogging = (0, import_util.deprecate)(noop, "The logging-option should be either a function or false. Default: console.log", "SEQUELIZE0002");
  37. const noStringOperators = (0, import_util.deprecate)(noop, "String based operators are deprecated. Please use Symbol based operators for better security, read more at https://sequelize.org/master/manual/querying.html#operators", "SEQUELIZE0003");
  38. const noBoolOperatorAliases = (0, import_util.deprecate)(noop, "A boolean value was passed to options.operatorsAliases. This is a no-op with v5 and should be removed.", "SEQUELIZE0004");
  39. const noDoubleNestedGroup = (0, import_util.deprecate)(noop, "Passing a double nested nested array to `group` is unsupported and will be removed in v6.", "SEQUELIZE0005");
  40. const unsupportedEngine = (0, import_util.deprecate)(noop, "This database engine version is not supported, please update your database server. More information https://github.com/sequelize/sequelize/blob/main/ENGINE.md", "SEQUELIZE0006");
  41. //# sourceMappingURL=deprecations.js.map