@automapper/classes
Advanced tools
Comparing version 3.2.2 to 3.3.0
{ | ||
"name": "@automapper/classes/experimental/transformer-plugin", | ||
"version": "3.2.2", | ||
"version": "3.3.0", | ||
"sideEffects": false, | ||
@@ -29,6 +29,6 @@ "publishConfig": { | ||
"peerDependencies": { | ||
"@automapper/classes": "3.2.2", | ||
"@automapper/core": "3.2.2", | ||
"@automapper/types": "3.2.2" | ||
"@automapper/classes": "3.3.0", | ||
"@automapper/core": "3.3.0", | ||
"@automapper/types": "3.3.0" | ||
} | ||
} |
{ | ||
"name": "@automapper/classes", | ||
"version": "3.2.2", | ||
"version": "3.3.0", | ||
"peerDependencies": { | ||
"reflect-metadata": "~0.1.13", | ||
"@automapper/core": "3.2.2", | ||
"@automapper/types": "3.2.2" | ||
"@automapper/core": "3.3.0", | ||
"@automapper/types": "3.3.0" | ||
}, | ||
@@ -9,0 +9,0 @@ "sideEffects": false, |
@@ -5,1 +5,2 @@ export * from './lib/classes'; | ||
export * from './lib/types'; | ||
export * from './lib/utils/explore-metadata.util'; |
@@ -8,2 +8,3 @@ "use strict"; | ||
tslib_1.__exportStar(require("./lib/types"), exports); | ||
tslib_1.__exportStar(require("./lib/utils/explore-metadata.util"), exports); | ||
//# sourceMappingURL=index.js.map |
import type { ClassInstanceStorage, ClassMetadataStorage } from '../storages'; | ||
import type { Constructible } from '../types'; | ||
export declare function exploreMetadata(metadataStorage: ClassMetadataStorage, instanceStorage: ClassInstanceStorage, ...models: Constructible[]): void; | ||
export declare function getMetadataList(model: Constructible): [string, { | ||
typeFn: any; | ||
depth?: number; | ||
}][]; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.exploreMetadata = void 0; | ||
exports.getMetadataList = exports.exploreMetadata = void 0; | ||
const core_1 = require("@automapper/core"); | ||
@@ -12,6 +12,3 @@ const constants_1 = require("../constants"); | ||
// get the metadata from Reflection and AUTOMAPPER_METADATA_FACTORY then populate metadataStorage and instanceStorage | ||
let metadataList = Reflect.getMetadata(constants_1.AUTOMAP_PROPERTIES_METADATA_KEY, model) || []; | ||
if (model[constants_1.AUTOMAPPER_METADATA_FACTORY_KEY]) { | ||
metadataList = metadataList.concat(model[constants_1.AUTOMAPPER_METADATA_FACTORY_KEY]() || []); | ||
} | ||
const metadataList = getMetadataList(model); | ||
// if no metadata, skip | ||
@@ -31,2 +28,10 @@ if (!core_1.isDefined(metadataList)) | ||
exports.exploreMetadata = exploreMetadata; | ||
function getMetadataList(model) { | ||
let metadataList = Reflect.getMetadata(constants_1.AUTOMAP_PROPERTIES_METADATA_KEY, model) || []; | ||
if (model[constants_1.AUTOMAPPER_METADATA_FACTORY_KEY]) { | ||
metadataList = metadataList.concat(model[constants_1.AUTOMAPPER_METADATA_FACTORY_KEY]() || []); | ||
} | ||
return metadataList; | ||
} | ||
exports.getMetadataList = getMetadataList; | ||
//# sourceMappingURL=explore-metadata.util.js.map |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
114049
156
1323