Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@automapper/classes

Package Overview
Dependencies
Maintainers
1
Versions
141
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@automapper/classes - npm Package Compare versions

Comparing version 3.2.2 to 3.3.0

mapped-types/package.json

8

experimental/transformer-plugin/package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc