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 8.0.0-beta.16 to 8.0.0-beta.17

13

index.cjs.js

@@ -46,8 +46,9 @@ 'use strict';

function classes({
destinationConstructor = (_, destinationIdentifier) => new destinationIdentifier(),
applyMetadata,
postMap,
preMap
} = core.defaultSerializerOptions) {
function classes(options = {}) {
const {
destinationConstructor = (_, destinationIdentifier) => new destinationIdentifier(),
applyMetadata,
postMap,
preMap
} = Object.assign(Object.assign({}, core.defaultSerializerOptions), options);
return mapper => ({

@@ -54,0 +55,0 @@ destinationConstructor,

@@ -42,8 +42,9 @@ import { isDateConstructor, isPrimitiveConstructor, defaultSerializerOptions } from '@automapper/core';

function classes({
destinationConstructor = (_, destinationIdentifier) => new destinationIdentifier(),
applyMetadata,
postMap,
preMap
} = defaultSerializerOptions) {
function classes(options = {}) {
const {
destinationConstructor = (_, destinationIdentifier) => new destinationIdentifier(),
applyMetadata,
postMap,
preMap
} = Object.assign(Object.assign({}, defaultSerializerOptions), options);
return mapper => ({

@@ -50,0 +51,0 @@ destinationConstructor,

import type { Constructor, MappingStrategyInitializer, MappingStrategyInitializerOptions } from '@automapper/core';
import 'reflect-metadata';
export declare function classes({ destinationConstructor, applyMetadata, postMap, preMap, }?: MappingStrategyInitializerOptions): MappingStrategyInitializer<Constructor>;
export declare function classes(options?: MappingStrategyInitializerOptions): MappingStrategyInitializer<Constructor>;
{
"name": "@automapper/classes/mapped-types",
"version": "8.0.0-beta.16",
"version": "8.0.0-beta.17",
"exports": {

@@ -34,5 +34,5 @@ "import": "./index.esm.js",

"peerDependencies": {
"@automapper/core": "8.0.0-beta.16",
"@automapper/classes": "8.0.0-beta.16"
"@automapper/core": "8.0.0-beta.17",
"@automapper/classes": "8.0.0-beta.17"
}
}
{
"name": "@automapper/classes",
"version": "8.0.0-beta.16",
"version": "8.0.0-beta.17",
"peerDependencies": {
"reflect-metadata": "~0.1.13",
"@automapper/core": "8.0.0-beta.16"
"@automapper/core": "8.0.0-beta.17"
},

@@ -8,0 +8,0 @@ "exports": {

{
"name": "@automapper/classes/transformer-plugin",
"version": "8.0.0-beta.16",
"version": "8.0.0-beta.17",
"exports": {

@@ -34,4 +34,4 @@ "import": "./index.esm.js",

"peerDependencies": {
"@automapper/classes": "8.0.0-beta.16"
"@automapper/classes": "8.0.0-beta.17"
}
}
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