@neupgroup/mapper 1.2.2 → 1.2.3

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.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import type { DbAdapter, QueryOptions } from './orm';
2
+ import Mapper from './mapper';
2
3
  export type ColumnType = 'string' | 'number' | 'boolean' | 'date' | 'int';
3
4
  export type ConnectionType = 'mysql' | 'sql' | 'firestore' | 'mongodb' | 'api';
4
5
  export interface Field {
@@ -90,7 +91,7 @@ export { parseConnectionsDsl, toNormalizedConnections } from './env';
90
91
  export type { EnvDslConnections, NormalizedConnection } from './env';
91
92
  export { documentationMd, markdownToHtml, getDocumentationHtml } from './docs';
92
93
  export { Mapper, createMapper } from './mapper';
93
- export { default } from './mapper';
94
+ export default Mapper;
94
95
  export { StaticMapper } from './fluent-mapper';
95
96
  export type { FluentQueryBuilder, FluentConnectionBuilder, FluentSchemaBuilder, FluentSchemaCollectionBuilder, FluentConnectionSelector, FluentMapper } from './fluent-mapper';
96
97
  export { ConfigBasedMapper, ConfigLoader, createConfigMapper, getConfigMapper, createDefaultMapper } from './config';
package/dist/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ import Mapper from './mapper';
1
2
  class AdapterRegistry {
2
3
  constructor() {
3
4
  this.adaptersByConnection = new Map();
@@ -278,9 +279,9 @@ export const schemas = (() => {
278
279
  export { createOrm } from './orm';
279
280
  export { parseConnectionsDsl, toNormalizedConnections } from './env';
280
281
  export { documentationMd, markdownToHtml, getDocumentationHtml } from './docs';
281
- // Export the simplified Mapper as default
282
+ // Export the simplified Mapper and default instance
282
283
  export { Mapper, createMapper } from './mapper';
283
- export { default } from './mapper';
284
+ export default Mapper;
284
285
  // Export the new fluent/static API
285
286
  export { StaticMapper } from './fluent-mapper';
286
287
  // Export the new config-based system
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neupgroup/mapper",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "description": "Neup.Mapper core library for schema and mapping utilities",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",