@nhtio/lucid-resourceful 0.1.0-master-29dd5a13 → 0.1.0-master-9b5b956c

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/bundled_liqe.d.ts +6 -5
  2. package/bundled_xml_js.d.ts +5 -4
  3. package/definitions.d.ts +1 -1
  4. package/encoding.d.ts +6 -6
  5. package/errors.d.ts +23 -8
  6. package/{index-Bsyx9Sty.js → index-BrX3MdY9.js} +76 -221
  7. package/index-BrX3MdY9.js.map +1 -0
  8. package/index-C9zyi90j.js.map +1 -1
  9. package/{index-CpyTnwZV.cjs → index-CQApAM0M.cjs} +298 -353
  10. package/index-CQApAM0M.cjs.map +1 -0
  11. package/index-CxRBayw6.cjs.map +1 -1
  12. package/{index-C8mGEf4P.js → index-DLVvkVxI.js} +295 -350
  13. package/index-DLVvkVxI.js.map +1 -0
  14. package/{index-B6dIMDux.cjs → index-Drtzxl1B.cjs} +76 -221
  15. package/index-Drtzxl1B.cjs.map +1 -0
  16. package/index-DsojAcQ4.js.map +1 -1
  17. package/index-DuzIXu31.cjs.map +1 -1
  18. package/index.cjs +1 -1
  19. package/index.d.ts +7 -7
  20. package/index.mjs +1 -1
  21. package/integration/middlewares/odata_error.cjs +1 -1
  22. package/integration/middlewares/odata_error.d.ts +1 -1
  23. package/integration/middlewares/odata_error.mjs +1 -1
  24. package/integration/middlewares/resourceful_encoded_request.cjs +100 -12
  25. package/integration/middlewares/resourceful_encoded_request.cjs.map +1 -1
  26. package/integration/middlewares/resourceful_encoded_request.d.ts +1 -1
  27. package/integration/middlewares/resourceful_encoded_request.mjs +98 -10
  28. package/integration/middlewares/resourceful_encoded_request.mjs.map +1 -1
  29. package/integration/middlewares/resourceful_error.cjs +1 -1
  30. package/integration/middlewares/resourceful_error.d.ts +1 -1
  31. package/integration/middlewares/resourceful_error.mjs +1 -1
  32. package/integration/provider.cjs +1 -1
  33. package/integration/provider.cjs.map +1 -1
  34. package/integration/provider.d.ts +17 -0
  35. package/integration/provider.mjs +1 -1
  36. package/integration/provider.mjs.map +1 -1
  37. package/joi.d.ts +1 -1
  38. package/{manager-OLS5T3G7-C-NS6lhx.js → manager-OLS5T3G7-CQrDQz6n.js} +2 -2
  39. package/{manager-OLS5T3G7-C-NS6lhx.js.map → manager-OLS5T3G7-CQrDQz6n.js.map} +1 -1
  40. package/{manager-OLS5T3G7-CJHhMwR7.cjs → manager-OLS5T3G7-DWCVMtbE.cjs} +2 -2
  41. package/{manager-OLS5T3G7-CJHhMwR7.cjs.map → manager-OLS5T3G7-DWCVMtbE.cjs.map} +1 -1
  42. package/odata/context.d.ts +1 -1
  43. package/odata/macro.d.ts +1 -1
  44. package/{odata_error_middleware-BWfOpQZV.cjs → odata_error_middleware-DhLzccN7.cjs} +4 -4
  45. package/{odata_error_middleware-BWfOpQZV.cjs.map → odata_error_middleware-DhLzccN7.cjs.map} +1 -1
  46. package/{odata_error_middleware-CWYqZMez.js → odata_error_middleware-Dspi8bct.js} +4 -4
  47. package/{odata_error_middleware-CWYqZMez.js.map → odata_error_middleware-Dspi8bct.js.map} +1 -1
  48. package/package.json +1 -1
  49. package/private/data_type_schemas.d.ts +12 -12
  50. package/private/data_types.d.ts +1 -1
  51. package/private/decorator_schemas.d.ts +1 -1
  52. package/private/decorator_utils.d.ts +1 -1
  53. package/private/decorators.d.ts +14 -11
  54. package/private/encoding.d.ts +3 -3
  55. package/private/joi/index.d.ts +3 -3
  56. package/private/lucene_to_lucid_translator.d.ts +1 -1
  57. package/private/mixin.d.ts +25 -8
  58. package/private/odata_macro/controllers/resourceful_model_controller.d.ts +4 -4
  59. package/private/odata_macro/index.d.ts +1 -1
  60. package/private/odata_macro/middlewares/odata_error_middleware.d.ts +22 -10
  61. package/private/odata_macro/services/odata_context_service.d.ts +1 -1
  62. package/private/odata_macro/services/odata_metadata_service.d.ts +3 -3
  63. package/private/odata_macro/utils/odata.d.ts +2 -2
  64. package/private/odata_to_lucid_translator.d.ts +1 -1
  65. package/private/open_api_schema_service.d.ts +3 -3
  66. package/private/router_macro/controllers/resourceful_model_controller.d.ts +5 -5
  67. package/private/router_macro/index.d.ts +3 -3
  68. package/private/router_macro/middlewares/resourceful_error_middleware.d.ts +22 -10
  69. package/private/router_macro/services/resourceful_router_choices_service.d.ts +3 -3
  70. package/private/router_macro/services/resourceful_router_context_service.d.ts +1 -1
  71. package/private/router_macro/services/resourceful_router_model_options_service.d.ts +1 -1
  72. package/private/router_macro/services/resourceful_router_model_resolver_service.d.ts +3 -3
  73. package/private/router_macro/services/resourceful_router_openapi_document_service.d.ts +4 -4
  74. package/private/router_macro/services/resourceful_router_options_service.d.ts +3 -3
  75. package/private/router_macro/types.d.ts +15 -8
  76. package/private/router_macro/utils/errors.d.ts +1 -1
  77. package/private/router_macro/utils/http.d.ts +1 -1
  78. package/private/router_macro/utils/openapi_validation_schemas.d.ts +2 -2
  79. package/private/router_macro/utils/relationships.d.ts +1 -1
  80. package/private/router_macro/utils/type_guards.d.ts +1 -1
  81. package/private/schema_types.d.ts +1 -1
  82. package/private/type_guards.d.ts +5 -5
  83. package/private/types.d.ts +5 -5
  84. package/private/utils/casters.d.ts +1 -1
  85. package/private/utils/consumers.d.ts +1 -1
  86. package/private/utils/preparers.d.ts +1 -1
  87. package/private/utils.d.ts +1 -1
  88. package/{resourceful_error_middleware-CMSZGdoG.js → resourceful_error_middleware-Cb_eTzST.js} +4 -4
  89. package/{resourceful_error_middleware-CMSZGdoG.js.map → resourceful_error_middleware-Cb_eTzST.js.map} +1 -1
  90. package/{resourceful_error_middleware-lXgefPIC.cjs → resourceful_error_middleware-CnjbNoev.cjs} +4 -4
  91. package/{resourceful_error_middleware-lXgefPIC.cjs.map → resourceful_error_middleware-CnjbNoev.cjs.map} +1 -1
  92. package/router/context.d.ts +1 -1
  93. package/router/utils.cjs +1 -1
  94. package/router/utils.d.ts +1 -1
  95. package/router/utils.mjs +1 -1
  96. package/router.cjs +1 -1
  97. package/router.d.ts +2 -2
  98. package/router.mjs +1 -1
  99. package/types.d.ts +13 -13
  100. package/utils.d.ts +4 -4
  101. package/vite-env.d.ts +3 -0
  102. package/index-B6dIMDux.cjs.map +0 -1
  103. package/index-Bsyx9Sty.js.map +0 -1
  104. package/index-C8mGEf4P.js.map +0 -1
  105. package/index-CpIq4gOr.js +0 -93
  106. package/index-CpIq4gOr.js.map +0 -1
  107. package/index-CpyTnwZV.cjs.map +0 -1
  108. package/index-DqbJXpcT.cjs +0 -92
  109. package/index-DqbJXpcT.cjs.map +0 -1
  110. package/private/controller_factory.d.ts +0 -1
  111. package/private/utils/function_serializer.d.ts +0 -32
@@ -1 +1 @@
1
- {"version":3,"file":"index-DuzIXu31.cjs","sources":["../node_modules/.pnpm/vite-plugin-node-polyfills@0.24.0_rollup@4.53.3_vite@7.2.7_@types+node@24.10.2_jiti@2.6_1c078f750bb94eb4134b9ea2faf86632/node_modules/vite-plugin-node-polyfills/shims/process/dist/index.js"],"sourcesContent":["function getDefaultExportFromCjs (x) {\n\treturn x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;\n}\n\nvar browser = {exports: {}};\n\n// shim for using process in browser\nvar process = browser.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ());\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] };\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n\nvar browserExports = browser.exports;\nconst process$1 = /*@__PURE__*/getDefaultExportFromCjs(browserExports);\n\nexport { process$1 as default, process$1 as process };\n//# sourceMappingURL=index.js.map\n"],"names":["e"],"mappings":";AAAA,SAAS,wBAAyB,GAAG;AACpC,SAAO,KAAK,EAAE,cAAc,OAAO,UAAU,eAAe,KAAK,GAAG,SAAS,IAAI,EAAE,SAAS,IAAI;AACjG;AAEA,IAAI,UAAU,EAAC,SAAS,GAAE;AAG1B,IAAI,UAAU,QAAQ,UAAU,CAAA;AAOhC,IAAI;AACJ,IAAI;AAEJ,SAAS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AAU;AAClB,QAAQ,MAAM,CAAA;AACd,QAAQ,OAAO,CAAA;AACf,QAAQ,UAAU;AAClB,QAAQ,WAAW,CAAA;AAEnB,SAAS,OAAO;AAAC;AAEjB,QAAQ,KAAK;AACb,QAAQ,cAAc;AACtB,QAAQ,OAAO;AACf,QAAQ,MAAM;AACd,QAAQ,iBAAiB;AACzB,QAAQ,qBAAqB;AAC7B,QAAQ,OAAO;AACf,QAAQ,kBAAkB;AAC1B,QAAQ,sBAAsB;AAE9B,QAAQ,YAAY,SAAU,MAAM;AAAE,SAAO,CAAA;AAAG;AAEhD,QAAQ,UAAU,SAAU,MAAM;AAC9B,QAAM,IAAI,MAAM,kCAAkC;AACtD;AAEA,QAAQ,MAAM,WAAY;AAAE,SAAO;AAAI;AACvC,QAAQ,QAAQ,SAAU,KAAK;AAC3B,QAAM,IAAI,MAAM,gCAAgC;AACpD;AACA,QAAQ,QAAQ,WAAW;AAAE,SAAO;AAAG;AAEvC,IAAI,iBAAiB,QAAQ;AACxB,MAAC,YAAyB,wCAAwB,cAAc;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index-DuzIXu31.cjs","sources":["../node_modules/.pnpm/vite-plugin-node-polyfills@0.24.0_rollup@4.53.3_vite@7.2.7_@types+node@25.0.1_jiti@2.6.1_lightningcss@1.30.2_yaml@2.8.2_/node_modules/vite-plugin-node-polyfills/shims/process/dist/index.js"],"sourcesContent":["function getDefaultExportFromCjs (x) {\n\treturn x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;\n}\n\nvar browser = {exports: {}};\n\n// shim for using process in browser\nvar process = browser.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ());\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] };\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n\nvar browserExports = browser.exports;\nconst process$1 = /*@__PURE__*/getDefaultExportFromCjs(browserExports);\n\nexport { process$1 as default, process$1 as process };\n//# source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AAC;AAC9B,MAAI,MAAM,WAAW,KAAK,CAAC,UAAU;AACjC,eAAW,UAAU;AAAA,EACzB;AACJ;AAGA,SAAS,KAAK,KAAK,OAAO;AACtB,OAAK,MAAM;AACX,OAAK,QAAQ;AACjB;AACA,KAAK,UAAU,MAAM,WAAY;AAC7B,OAAK,IAAI,MAAM,MAAM,KAAK,KAAK;AACnC;AACA,QAAQ,QAAQ;AAChB,QAAQ,UAAU;AAClB,QAAQ,MAAM,CAAA;AACd,QAAQ,OAAO,CAAA;AACf,QAAQ,UAAU;AAClB,QAAQ,WAAW,CAAA;AAEnB,SAAS,OAAO;AAAC;AAEjB,QAAQ,KAAK;AACb,QAAQ,cAAc;AACtB,QAAQ,OAAO;AACf,QAAQ,MAAM;AACd,QAAQ,iBAAiB;AACzB,QAAQ,qBAAqB;AAC7B,QAAQ,OAAO;AACf,QAAQ,kBAAkB;AAC1B,QAAQ,sBAAsB;AAE9B,QAAQ,YAAY,SAAU,MAAM;AAAE,SAAO,CAAA;AAAG;AAEhD,QAAQ,UAAU,SAAU,MAAM;AAC9B,QAAM,IAAI,MAAM,kCAAkC;AACtD;AAEA,QAAQ,MAAM,WAAY;AAAE,SAAO;AAAI;AACvC,QAAQ,QAAQ,SAAU,KAAK;AAC3B,QAAM,IAAI,MAAM,gCAAgC;AACpD;AACA,QAAQ,QAAQ,WAAW;AAAE,SAAO;AAAG;AAEvC,IAAI,iBAAiB,QAAQ;AACxB,MAAC,YAAyB,wCAAwB,cAAc;;","x_google_ignoreList":[0]}
package/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("./index-B6dIMDux.cjs");
3
+ const index = require("./index-Drtzxl1B.cjs");
4
4
  const errors = require("./errors-jr8bQS6M.cjs");
5
5
  const definitions = require("./definitions-C6zRWP4X.cjs");
6
6
  exports.configure = index.configure;
package/index.d.ts CHANGED
@@ -8,10 +8,10 @@
8
8
  * @tip This is a constant that is replaced during the build process with the actual version of the package.
9
9
  */
10
10
  export declare const version: string;
11
- export { withResourceful } from './private/mixin'
12
- export { resourcefulColumn, resourcefulComputed, resourcefulBelongsTo, resourcefulHasOne, resourcefulHasMany, resourcefulManyToMany, resourcefulHasManyThrough, } from './private/decorators'
13
- export * as errors from './errors'
14
- export * as definitions from './definitions'
15
- export { resourcefulRouterMacro } from './private/router_macro'
16
- export { odataRouterMacro } from './private/odata_macro'
17
- export { configure } from './integration/configure'
11
+ export { withResourceful } from "./private/mixin";
12
+ export { resourcefulColumn, resourcefulComputed, resourcefulBelongsTo, resourcefulHasOne, resourcefulHasMany, resourcefulManyToMany, resourcefulHasManyThrough, } from "./private/decorators";
13
+ export * as errors from "./errors";
14
+ export * as definitions from "./definitions";
15
+ export { resourcefulRouterMacro } from "./private/router_macro/index";
16
+ export { odataRouterMacro } from "./private/odata_macro/index";
17
+ export { configure } from "./integration/configure";
package/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { j, o, c, a, b, f, i, e, h, r, v, w } from "./index-Bsyx9Sty.js";
1
+ import { j, o, c, a, b, f, i, e, h, r, v, w } from "./index-BrX3MdY9.js";
2
2
  import { ag } from "./errors-b4tqg-tH.js";
3
3
  import { k } from "./definitions-CKHQyT0I.js";
4
4
  export {
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const odata_error_middleware = require("../../odata_error_middleware-BWfOpQZV.cjs");
3
+ const odata_error_middleware = require("../../odata_error_middleware-DhLzccN7.cjs");
4
4
  exports.default = odata_error_middleware.ODataErrorMiddleware;
5
5
  //# sourceMappingURL=odata_error.cjs.map
@@ -3,5 +3,5 @@
3
3
  * formats the responses in a consistent manner meant to be easily consumed by clients.
4
4
  * @module @nhtio/lucid-resourceful/integration/middlewares/odata_error
5
5
  */
6
- import { ODataErrorMiddleware } from '../../private/odata_macro/middlewares/odata_error_middleware'
6
+ import { ODataErrorMiddleware } from "../../private/odata_macro/middlewares/odata_error_middleware";
7
7
  export default ODataErrorMiddleware;
@@ -1,4 +1,4 @@
1
- import { O as ODataErrorMiddleware } from "../../odata_error_middleware-CWYqZMez.js";
1
+ import { O as ODataErrorMiddleware } from "../../odata_error_middleware-Dspi8bct.js";
2
2
  export {
3
3
  ODataErrorMiddleware as default
4
4
  };
@@ -3,12 +3,100 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
3
3
  const encoding = require("../../encoding.cjs");
4
4
  const errors = require("../../errors-jr8bQS6M.cjs");
5
5
  const index = require("../../index-DuzIXu31.cjs");
6
- const index$2 = require("../../index-CxRBayw6.cjs");
7
- const index$1 = require("../../index-DqbJXpcT.cjs");
6
+ const index$1 = require("../../index-CxRBayw6.cjs");
8
7
  const require$$0$2 = require("path");
9
8
  const require$$0$3 = require("buffer");
10
9
  const string_decoder = require("../../string_decoder-LNfV3-8M.cjs");
11
10
  const require$$3$1 = require("zlib");
11
+ var bytes = { exports: {} };
12
+ var hasRequiredBytes;
13
+ function requireBytes() {
14
+ if (hasRequiredBytes) return bytes.exports;
15
+ hasRequiredBytes = 1;
16
+ bytes.exports = bytes$1;
17
+ bytes.exports.format = format;
18
+ bytes.exports.parse = parse;
19
+ var formatThousandsRegExp = /\B(?=(\d{3})+(?!\d))/g;
20
+ var formatDecimalsRegExp = /(?:\.0*|(\.[^0]+)0+)$/;
21
+ var map = {
22
+ b: 1,
23
+ kb: 1 << 10,
24
+ mb: 1 << 20,
25
+ gb: 1 << 30,
26
+ tb: Math.pow(1024, 4),
27
+ pb: Math.pow(1024, 5)
28
+ };
29
+ var parseRegExp = /^((-|\+)?(\d+(?:\.\d+)?)) *(kb|mb|gb|tb|pb)$/i;
30
+ function bytes$1(value, options) {
31
+ if (typeof value === "string") {
32
+ return parse(value);
33
+ }
34
+ if (typeof value === "number") {
35
+ return format(value, options);
36
+ }
37
+ return null;
38
+ }
39
+ function format(value, options) {
40
+ if (!Number.isFinite(value)) {
41
+ return null;
42
+ }
43
+ var mag = Math.abs(value);
44
+ var thousandsSeparator = options && options.thousandsSeparator || "";
45
+ var unitSeparator = options && options.unitSeparator || "";
46
+ var decimalPlaces = options && options.decimalPlaces !== void 0 ? options.decimalPlaces : 2;
47
+ var fixedDecimals = Boolean(options && options.fixedDecimals);
48
+ var unit = options && options.unit || "";
49
+ if (!unit || !map[unit.toLowerCase()]) {
50
+ if (mag >= map.pb) {
51
+ unit = "PB";
52
+ } else if (mag >= map.tb) {
53
+ unit = "TB";
54
+ } else if (mag >= map.gb) {
55
+ unit = "GB";
56
+ } else if (mag >= map.mb) {
57
+ unit = "MB";
58
+ } else if (mag >= map.kb) {
59
+ unit = "KB";
60
+ } else {
61
+ unit = "B";
62
+ }
63
+ }
64
+ var val = value / map[unit.toLowerCase()];
65
+ var str = val.toFixed(decimalPlaces);
66
+ if (!fixedDecimals) {
67
+ str = str.replace(formatDecimalsRegExp, "$1");
68
+ }
69
+ if (thousandsSeparator) {
70
+ str = str.split(".").map(function(s, i) {
71
+ return i === 0 ? s.replace(formatThousandsRegExp, thousandsSeparator) : s;
72
+ }).join(".");
73
+ }
74
+ return str + unitSeparator + unit;
75
+ }
76
+ function parse(val) {
77
+ if (typeof val === "number" && !isNaN(val)) {
78
+ return val;
79
+ }
80
+ if (typeof val !== "string") {
81
+ return null;
82
+ }
83
+ var results = parseRegExp.exec(val);
84
+ var floatValue;
85
+ var unit = "b";
86
+ if (!results) {
87
+ floatValue = parseInt(val, 10);
88
+ unit = "b";
89
+ } else {
90
+ floatValue = parseFloat(results[1]);
91
+ unit = results[4].toLowerCase();
92
+ }
93
+ if (isNaN(floatValue)) {
94
+ return null;
95
+ }
96
+ return Math.floor(map[unit] * floatValue);
97
+ }
98
+ return bytes.exports;
99
+ }
12
100
  var httpErrors = { exports: {} };
13
101
  var depd_1;
14
102
  var hasRequiredDepd;
@@ -2321,18 +2409,18 @@ function requireDbcsCodec() {
2321
2409
  DBCSCodec.prototype.encoder = DBCSEncoder;
2322
2410
  DBCSCodec.prototype.decoder = DBCSDecoder;
2323
2411
  DBCSCodec.prototype._getDecodeTrieNode = function(addr) {
2324
- var bytes = [];
2412
+ var bytes2 = [];
2325
2413
  for (; addr > 0; addr >>>= 8) {
2326
- bytes.push(addr & 255);
2414
+ bytes2.push(addr & 255);
2327
2415
  }
2328
- if (bytes.length == 0) {
2329
- bytes.push(0);
2416
+ if (bytes2.length == 0) {
2417
+ bytes2.push(0);
2330
2418
  }
2331
2419
  var node = this.decodeTables[0];
2332
- for (var i2 = bytes.length - 1; i2 > 0; i2--) {
2333
- var val = node[bytes[i2]];
2420
+ for (var i2 = bytes2.length - 1; i2 > 0; i2--) {
2421
+ var val = node[bytes2[i2]];
2334
2422
  if (val == UNASSIGNED) {
2335
- node[bytes[i2]] = NODE_START - this.decodeTables.length;
2423
+ node[bytes2[i2]] = NODE_START - this.decodeTables.length;
2336
2424
  this.decodeTables.push(node = UNASSIGNED_NODE.slice(0));
2337
2425
  } else if (val <= NODE_START) {
2338
2426
  node = this.decodeTables[NODE_START - val];
@@ -4547,7 +4635,7 @@ function requireRawBody() {
4547
4635
  if (hasRequiredRawBody) return rawBody;
4548
4636
  hasRequiredRawBody = 1;
4549
4637
  var asyncHooks = tryRequireAsyncHooks();
4550
- var bytes = index$1.requireBytes();
4638
+ var bytes2 = requireBytes();
4551
4639
  var createError = requireHttpErrors();
4552
4640
  var iconv = requireLib();
4553
4641
  var unpipe = requireUnpipe();
@@ -4589,7 +4677,7 @@ function requireRawBody() {
4589
4677
  throw new TypeError("argument callback is required");
4590
4678
  }
4591
4679
  var encoding2 = opts.encoding !== true ? opts.encoding : "utf-8";
4592
- var limit = bytes.parse(opts.limit);
4680
+ var limit = bytes2.parse(opts.limit);
4593
4681
  var length = opts.length != null && !isNaN(opts.length) ? parseInt(opts.length, 10) : null;
4594
4682
  if (done) {
4595
4683
  return readStream(stream, encoding2, length, limit, wrap(done));
@@ -4698,7 +4786,7 @@ function requireRawBody() {
4698
4786
  type: "request.size.invalid"
4699
4787
  }));
4700
4788
  } else {
4701
- var string = decoder ? buffer + (decoder.end() || "") : index$2.Buffer.concat(buffer);
4789
+ var string = decoder ? buffer + (decoder.end() || "") : index$1.Buffer.concat(buffer);
4702
4790
  done(null, string);
4703
4791
  }
4704
4792
  }