ts-jackson
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -7,2 +7,5 @@ "use strict"; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -12,3 +15,4 @@ /** | ||
*/ | ||
var lodash_1 = require("lodash"); | ||
var lodash_get_1 = __importDefault(require("lodash.get")); | ||
var lodash_set_1 = __importDefault(require("lodash.set")); | ||
require("reflect-metadata"); | ||
@@ -35,3 +39,3 @@ var common_1 = require("./common"); | ||
var _c = _b[_a], propName = _c[0], propParams = _c[1]; | ||
var jsonValue = lodash_1.get(json, propParams.path); | ||
var jsonValue = lodash_get_1.default(json, propParams.path); | ||
propParams.required && | ||
@@ -56,3 +60,3 @@ common_1.assertRequired({ | ||
if (deserializedValue !== undefined) { | ||
lodash_1.set(result, propName, deserializedValue); | ||
lodash_set_1.default(result, propName, deserializedValue); | ||
} | ||
@@ -59,0 +63,0 @@ } |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -6,3 +9,3 @@ /** | ||
*/ | ||
var lodash_1 = require("lodash"); | ||
var lodash_set_1 = __importDefault(require("lodash.set")); | ||
var common_1 = require("./common"); | ||
@@ -24,3 +27,3 @@ /** | ||
: serializeProperty(instance[propName], propParams.type, propParams.elementType); | ||
lodash_1.set(json, propParams.path, serializedProperty); | ||
lodash_set_1.default(json, propParams.path, serializedProperty); | ||
} | ||
@@ -27,0 +30,0 @@ return json; |
{ | ||
"name": "ts-jackson", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"author": "Ilias Gazdaliev", | ||
@@ -31,3 +31,4 @@ "description": "", | ||
"dependencies": { | ||
"lodash": "^4.17.21", | ||
"lodash.get": "^4.4.2", | ||
"lodash.set": "^4.3.2", | ||
"reflect-metadata": "^0.1.13" | ||
@@ -34,0 +35,0 @@ }, |
/** | ||
* @author Ilias Gazdaliev <invimind@gmail.com> | ||
*/ | ||
import { get, set } from 'lodash' | ||
import get from 'lodash.get' | ||
import set from 'lodash.set' | ||
import 'reflect-metadata' | ||
@@ -6,0 +7,0 @@ import { |
/** | ||
* @author Ilias Gazdaliev <invimind@gmail.com> | ||
*/ | ||
import { set } from 'lodash' | ||
import set from 'lodash.set' | ||
import { | ||
@@ -6,0 +6,0 @@ assertSerializable, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
217450
4310
3
+ Addedlodash.get@^4.4.2
+ Addedlodash.set@^4.3.2
+ Addedlodash.get@4.4.2(transitive)
+ Addedlodash.set@4.3.2(transitive)
- Removedlodash@^4.17.21
- Removedlodash@4.17.21(transitive)