node-object-mapper
node-object-mapper copied to clipboard
Copy properties from one object to another.
Hello! I have a use case where I'm trying to transform a key in a deeply nested array + object structure. See example below: ```js var objectMapper = require('object-mapper'); var...
Hey there! I belong to an open source security research community, and a member (@sampaguitas) has found an issue, but doesn’t know the best way to disclose it. If not...
Currently I have to map a large collection of objects, but only a few keys need to be mapped to new properties, it would be nice to be able to...
Is it possible to include parent items when mapping arrays For example, if I have: ``` { "a": "AA", "b": "BB", "array": [ { "x": "one" }, { "x": "two"...
Null values on the source object is only mapped for the first element of an array (when a post-fix operator '?' is used). Test 102 for issue [#41 ](https://github.com/wankdanker/node-object-mapper/issues/41) is...
I have an object: `const srcA = [{ "person": { "firstName": "John", "middleName": "Michael", "lastName": "Doe" }, "contact": { "phones": [{ "type": "cell", "number": "999-888-7777" }, { "type": "home", "number":...
Hi Is there a way to avoid writing big map objects by excluding keys with same name in source and dest? eg ``` const source ={ foo: 1, bar:2, baz:3...
Hi! I'm using object-mapper for simplifying objects and came across a bug(?) or at least an unexpected result. When using the transform function the mapper wil always create a empty...
Mapping an empty array (ex. empty result from db) to a mapping profile with a sub profile like this: ``` const mappingProfile = { "[].Id": "[].Id", "[].file": { key: "[].file",...
Bumps [minimist](https://github.com/substack/minimist) from 1.2.0 to 1.2.6. Commits 7efb22a 1.2.6 ef88b93 security notice for additional prototype pollution issue c2b9819 isConstructorOrProto adapted from PR bc8ecee test from prototype pollution PR aeb3e27 1.2.5...