New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@automapper/nestjs

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/nestjs - npm Package Compare versions

Comparing version 3.4.0 to 3.4.1

6

package.json
{
"name": "@automapper/nestjs",
"version": "3.4.0",
"version": "3.4.1",
"peerDependencies": {
"@nestjs/common": "^7.0.0",
"@nestjs/core": "^7.0.0",
"@automapper/types": "3.4.0",
"@automapper/core": "3.4.0"
"@automapper/types": "3.4.1",
"@automapper/core": "3.4.1"
},

@@ -10,0 +10,0 @@ "sideEffects": false,

@@ -16,2 +16,3 @@ "use strict";

transform(value, { type }) {
var _a;
if (utils_1.shouldSkipTransform(this.mapper, to, from) ||

@@ -25,3 +26,3 @@ (type !== 'body' && type !== 'query')) {

}
return this.mapper.map(value, to, from, transformedMapOptions);
return (_a = this.mapper) === null || _a === void 0 ? void 0 : _a.map(value, to, from, transformedMapOptions);
}

@@ -28,0 +29,0 @@ catch (e) {

@@ -9,3 +9,10 @@ "use strict";

return (...args) => {
const n = args.reduce((key, arg) => key.concat('|', typeof arg === 'string' ? arg : arg.toString()), '') || defaultKey;
const n = args.reduce((key, arg) => {
const argToConcat = typeof arg === 'string'
? arg
: typeof arg === 'object'
? JSON.stringify(arg)
: arg.toString();
return key.concat('|', argToConcat);
}, '') || defaultKey;
if (n in cache) {

@@ -12,0 +19,0 @@ return cache[n];

import type { MapOptions, Mapper } from '@automapper/types';
export declare function shouldSkipTransform(mapper: Mapper, to: unknown, from: unknown): boolean;
export declare function transformArray(value: unknown, mapper: Mapper, to: any, from: any, options?: MapOptions): unknown;
export declare function shouldSkipTransform(mapper: Mapper | undefined, to: unknown, from: unknown): boolean;
export declare function transformArray(value: unknown, mapper: Mapper | undefined, to: any, from: any, options?: MapOptions): unknown;
export declare function getTransformOptions(options?: {

@@ -8,5 +8,5 @@ isArray?: boolean;

} & MapOptions): {
mapperName: string;
mapperName?: string;
isArray: boolean;
transformedMapOptions?: MapOptions;
};

@@ -13,3 +13,3 @@ "use strict";

return value;
return mapper.mapArray(value, to, from, options);
return mapper === null || mapper === void 0 ? void 0 : mapper.mapArray(value, to, from, options);
}

@@ -16,0 +16,0 @@ exports.transformArray = transformArray;

Sorry, the diff of this file is not supported yet

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