sonamu 0.2.44 → 0.2.45

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.
package/dist/index.js CHANGED
@@ -79,13 +79,13 @@
79
79
 
80
80
 
81
81
 
82
- var _chunkEYNTBWQCjs = require('./chunk-EYNTBWQC.js');
82
+ var _chunk77XBF27Ljs = require('./chunk-77XBF27L.js');
83
83
 
84
84
  // src/exceptions/error-handler.ts
85
85
  function setupErrorHandler(server) {
86
86
  server.setErrorHandler((error, request, reply) => {
87
87
  _nullishCoalesce(error.statusCode, () => ( (error.statusCode = 400)));
88
- if (_chunkEYNTBWQCjs.isSoException.call(void 0, error) && error.payload && Array.isArray(error.payload)) {
88
+ if (_chunk77XBF27Ljs.isSoException.call(void 0, error) && error.payload && Array.isArray(error.payload)) {
89
89
  const issues = error.payload;
90
90
  const [issue] = issues;
91
91
  const message = `${issue.message} (${issue.path.join("/")})`;
@@ -421,5 +421,5 @@ function unique(columns) {
421
421
 
422
422
 
423
423
 
424
- exports.AlreadyProcessedException = _chunkEYNTBWQCjs.AlreadyProcessedException; exports.ApiParamType = _chunkEYNTBWQCjs.ApiParamType; exports.BadRequestException = _chunkEYNTBWQCjs.BadRequestException; exports.BaseModel = _chunkEYNTBWQCjs.BaseModel; exports.BaseModelClass = _chunkEYNTBWQCjs.BaseModelClass; exports.DB = _chunkEYNTBWQCjs.DB; exports.DuplicateRowException = _chunkEYNTBWQCjs.DuplicateRowException; exports.EntityManager = _chunkEYNTBWQCjs.EntityManager; exports.FixtureManager = _chunkEYNTBWQCjs.FixtureManager; exports.FixtureManagerClass = _chunkEYNTBWQCjs.FixtureManagerClass; exports.GenerateOptions = _chunkEYNTBWQCjs.GenerateOptions; exports.InternalServerErrorException = _chunkEYNTBWQCjs.InternalServerErrorException; exports.Migrator = _chunkEYNTBWQCjs.Migrator; exports.NotFoundException = _chunkEYNTBWQCjs.NotFoundException; exports.PathAndCode = _chunkEYNTBWQCjs.PathAndCode; exports.RenderingNode = _chunkEYNTBWQCjs.RenderingNode; exports.SQLDateTimeString = _chunkEYNTBWQCjs.SQLDateTimeString; exports.ServiceUnavailableException = _chunkEYNTBWQCjs.ServiceUnavailableException; exports.SoException = _chunkEYNTBWQCjs.SoException; exports.Sonamu = _chunkEYNTBWQCjs.Sonamu; exports.SonamuQueryMode = _chunkEYNTBWQCjs.SonamuQueryMode; exports.Syncer = _chunkEYNTBWQCjs.Syncer; exports.TargetNotFoundException = _chunkEYNTBWQCjs.TargetNotFoundException; exports.TemplateKey = _chunkEYNTBWQCjs.TemplateKey; exports.TemplateOptions = _chunkEYNTBWQCjs.TemplateOptions; exports.UnauthorizedException = _chunkEYNTBWQCjs.UnauthorizedException; exports.UpsertBuilder = _chunkEYNTBWQCjs.UpsertBuilder; exports.api = _chunkEYNTBWQCjs.api; exports.apiParamToTsCode = _chunkEYNTBWQCjs.apiParamToTsCode; exports.apiParamTypeToTsType = _chunkEYNTBWQCjs.apiParamTypeToTsType; exports.asArray = asArray; exports.findApiRootPath = _chunkEYNTBWQCjs.findApiRootPath; exports.findAppRootPath = _chunkEYNTBWQCjs.findAppRootPath; exports.getTextTypeLength = _chunkEYNTBWQCjs.getTextTypeLength; exports.getZodObjectFromApi = _chunkEYNTBWQCjs.getZodObjectFromApi; exports.getZodObjectFromApiParams = _chunkEYNTBWQCjs.getZodObjectFromApiParams; exports.getZodTypeFromApiParamType = _chunkEYNTBWQCjs.getZodTypeFromApiParamType; exports.globAsync = _chunkEYNTBWQCjs.globAsync; exports.i = i; exports.importMultiple = _chunkEYNTBWQCjs.importMultiple; exports.isBelongsToOneRelationProp = _chunkEYNTBWQCjs.isBelongsToOneRelationProp; exports.isBigIntegerProp = _chunkEYNTBWQCjs.isBigIntegerProp; exports.isBooleanProp = _chunkEYNTBWQCjs.isBooleanProp; exports.isCustomJoinClause = _chunkEYNTBWQCjs.isCustomJoinClause; exports.isDaemonServer = _chunkEYNTBWQCjs.isDaemonServer; exports.isDateProp = _chunkEYNTBWQCjs.isDateProp; exports.isDateTimeProp = _chunkEYNTBWQCjs.isDateTimeProp; exports.isDecimalProp = _chunkEYNTBWQCjs.isDecimalProp; exports.isDevelopment = _chunkEYNTBWQCjs.isDevelopment; exports.isDoubleProp = _chunkEYNTBWQCjs.isDoubleProp; exports.isEnumProp = _chunkEYNTBWQCjs.isEnumProp; exports.isFloatProp = _chunkEYNTBWQCjs.isFloatProp; exports.isHasManyRelationProp = _chunkEYNTBWQCjs.isHasManyRelationProp; exports.isInDocker = _chunkEYNTBWQCjs.isInDocker; exports.isIntegerProp = _chunkEYNTBWQCjs.isIntegerProp; exports.isJsonProp = _chunkEYNTBWQCjs.isJsonProp; exports.isKnexError = _chunkEYNTBWQCjs.isKnexError; exports.isLocal = _chunkEYNTBWQCjs.isLocal; exports.isManyToManyRelationProp = _chunkEYNTBWQCjs.isManyToManyRelationProp; exports.isOneToOneRelationProp = _chunkEYNTBWQCjs.isOneToOneRelationProp; exports.isProduction = _chunkEYNTBWQCjs.isProduction; exports.isRefField = _chunkEYNTBWQCjs.isRefField; exports.isRelationProp = _chunkEYNTBWQCjs.isRelationProp; exports.isRemote = _chunkEYNTBWQCjs.isRemote; exports.isSoException = _chunkEYNTBWQCjs.isSoException; exports.isStaging = _chunkEYNTBWQCjs.isStaging; exports.isStringProp = _chunkEYNTBWQCjs.isStringProp; exports.isTest = _chunkEYNTBWQCjs.isTest; exports.isTextProp = _chunkEYNTBWQCjs.isTextProp; exports.isTimeProp = _chunkEYNTBWQCjs.isTimeProp; exports.isTimestampProp = _chunkEYNTBWQCjs.isTimestampProp; exports.isUuidProp = _chunkEYNTBWQCjs.isUuidProp; exports.isVirtualProp = _chunkEYNTBWQCjs.isVirtualProp; exports.nonNullable = _chunkEYNTBWQCjs.nonNullable; exports.objToMap = objToMap; exports.p = p; exports.propNodeToZodTypeDef = _chunkEYNTBWQCjs.propNodeToZodTypeDef; exports.propToZodTypeDef = _chunkEYNTBWQCjs.propToZodTypeDef; exports.registeredApis = _chunkEYNTBWQCjs.registeredApis; exports.serializeZodType = _chunkEYNTBWQCjs.serializeZodType; exports.setupErrorHandler = setupErrorHandler; exports.unwrapPromiseOnce = _chunkEYNTBWQCjs.unwrapPromiseOnce; exports.zArrayable = _chunkEYNTBWQCjs.zArrayable; exports.zodTypeToTsTypeDef = _chunkEYNTBWQCjs.zodTypeToTsTypeDef; exports.zodTypeToZodCode = _chunkEYNTBWQCjs.zodTypeToZodCode;
424
+ exports.AlreadyProcessedException = _chunk77XBF27Ljs.AlreadyProcessedException; exports.ApiParamType = _chunk77XBF27Ljs.ApiParamType; exports.BadRequestException = _chunk77XBF27Ljs.BadRequestException; exports.BaseModel = _chunk77XBF27Ljs.BaseModel; exports.BaseModelClass = _chunk77XBF27Ljs.BaseModelClass; exports.DB = _chunk77XBF27Ljs.DB; exports.DuplicateRowException = _chunk77XBF27Ljs.DuplicateRowException; exports.EntityManager = _chunk77XBF27Ljs.EntityManager; exports.FixtureManager = _chunk77XBF27Ljs.FixtureManager; exports.FixtureManagerClass = _chunk77XBF27Ljs.FixtureManagerClass; exports.GenerateOptions = _chunk77XBF27Ljs.GenerateOptions; exports.InternalServerErrorException = _chunk77XBF27Ljs.InternalServerErrorException; exports.Migrator = _chunk77XBF27Ljs.Migrator; exports.NotFoundException = _chunk77XBF27Ljs.NotFoundException; exports.PathAndCode = _chunk77XBF27Ljs.PathAndCode; exports.RenderingNode = _chunk77XBF27Ljs.RenderingNode; exports.SQLDateTimeString = _chunk77XBF27Ljs.SQLDateTimeString; exports.ServiceUnavailableException = _chunk77XBF27Ljs.ServiceUnavailableException; exports.SoException = _chunk77XBF27Ljs.SoException; exports.Sonamu = _chunk77XBF27Ljs.Sonamu; exports.SonamuQueryMode = _chunk77XBF27Ljs.SonamuQueryMode; exports.Syncer = _chunk77XBF27Ljs.Syncer; exports.TargetNotFoundException = _chunk77XBF27Ljs.TargetNotFoundException; exports.TemplateKey = _chunk77XBF27Ljs.TemplateKey; exports.TemplateOptions = _chunk77XBF27Ljs.TemplateOptions; exports.UnauthorizedException = _chunk77XBF27Ljs.UnauthorizedException; exports.UpsertBuilder = _chunk77XBF27Ljs.UpsertBuilder; exports.api = _chunk77XBF27Ljs.api; exports.apiParamToTsCode = _chunk77XBF27Ljs.apiParamToTsCode; exports.apiParamTypeToTsType = _chunk77XBF27Ljs.apiParamTypeToTsType; exports.asArray = asArray; exports.findApiRootPath = _chunk77XBF27Ljs.findApiRootPath; exports.findAppRootPath = _chunk77XBF27Ljs.findAppRootPath; exports.getTextTypeLength = _chunk77XBF27Ljs.getTextTypeLength; exports.getZodObjectFromApi = _chunk77XBF27Ljs.getZodObjectFromApi; exports.getZodObjectFromApiParams = _chunk77XBF27Ljs.getZodObjectFromApiParams; exports.getZodTypeFromApiParamType = _chunk77XBF27Ljs.getZodTypeFromApiParamType; exports.globAsync = _chunk77XBF27Ljs.globAsync; exports.i = i; exports.importMultiple = _chunk77XBF27Ljs.importMultiple; exports.isBelongsToOneRelationProp = _chunk77XBF27Ljs.isBelongsToOneRelationProp; exports.isBigIntegerProp = _chunk77XBF27Ljs.isBigIntegerProp; exports.isBooleanProp = _chunk77XBF27Ljs.isBooleanProp; exports.isCustomJoinClause = _chunk77XBF27Ljs.isCustomJoinClause; exports.isDaemonServer = _chunk77XBF27Ljs.isDaemonServer; exports.isDateProp = _chunk77XBF27Ljs.isDateProp; exports.isDateTimeProp = _chunk77XBF27Ljs.isDateTimeProp; exports.isDecimalProp = _chunk77XBF27Ljs.isDecimalProp; exports.isDevelopment = _chunk77XBF27Ljs.isDevelopment; exports.isDoubleProp = _chunk77XBF27Ljs.isDoubleProp; exports.isEnumProp = _chunk77XBF27Ljs.isEnumProp; exports.isFloatProp = _chunk77XBF27Ljs.isFloatProp; exports.isHasManyRelationProp = _chunk77XBF27Ljs.isHasManyRelationProp; exports.isInDocker = _chunk77XBF27Ljs.isInDocker; exports.isIntegerProp = _chunk77XBF27Ljs.isIntegerProp; exports.isJsonProp = _chunk77XBF27Ljs.isJsonProp; exports.isKnexError = _chunk77XBF27Ljs.isKnexError; exports.isLocal = _chunk77XBF27Ljs.isLocal; exports.isManyToManyRelationProp = _chunk77XBF27Ljs.isManyToManyRelationProp; exports.isOneToOneRelationProp = _chunk77XBF27Ljs.isOneToOneRelationProp; exports.isProduction = _chunk77XBF27Ljs.isProduction; exports.isRefField = _chunk77XBF27Ljs.isRefField; exports.isRelationProp = _chunk77XBF27Ljs.isRelationProp; exports.isRemote = _chunk77XBF27Ljs.isRemote; exports.isSoException = _chunk77XBF27Ljs.isSoException; exports.isStaging = _chunk77XBF27Ljs.isStaging; exports.isStringProp = _chunk77XBF27Ljs.isStringProp; exports.isTest = _chunk77XBF27Ljs.isTest; exports.isTextProp = _chunk77XBF27Ljs.isTextProp; exports.isTimeProp = _chunk77XBF27Ljs.isTimeProp; exports.isTimestampProp = _chunk77XBF27Ljs.isTimestampProp; exports.isUuidProp = _chunk77XBF27Ljs.isUuidProp; exports.isVirtualProp = _chunk77XBF27Ljs.isVirtualProp; exports.nonNullable = _chunk77XBF27Ljs.nonNullable; exports.objToMap = objToMap; exports.p = p; exports.propNodeToZodTypeDef = _chunk77XBF27Ljs.propNodeToZodTypeDef; exports.propToZodTypeDef = _chunk77XBF27Ljs.propToZodTypeDef; exports.registeredApis = _chunk77XBF27Ljs.registeredApis; exports.serializeZodType = _chunk77XBF27Ljs.serializeZodType; exports.setupErrorHandler = setupErrorHandler; exports.unwrapPromiseOnce = _chunk77XBF27Ljs.unwrapPromiseOnce; exports.zArrayable = _chunk77XBF27Ljs.zArrayable; exports.zodTypeToTsTypeDef = _chunk77XBF27Ljs.zodTypeToTsTypeDef; exports.zodTypeToZodCode = _chunk77XBF27Ljs.zodTypeToZodCode;
425
425
  //# sourceMappingURL=index.js.map
package/dist/index.mjs CHANGED
@@ -80,7 +80,7 @@ import {
80
80
  zArrayable,
81
81
  zodTypeToTsTypeDef,
82
82
  zodTypeToZodCode
83
- } from "./chunk-FOD6BJQJ.mjs";
83
+ } from "./chunk-7BVQURJT.mjs";
84
84
  import "./chunk-JXJTFHF7.mjs";
85
85
 
86
86
  // src/exceptions/error-handler.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sonamu",
3
- "version": "0.2.44",
3
+ "version": "0.2.45",
4
4
  "description": "Sonamu — TypeScript Fullstack API Framework",
5
5
  "keywords": [
6
6
  "typescript",