const clone = require('clone') module.exports = getObjStructure // This will create an object that represents the structure of the given object // it replaces all values with the result of their type // { // "data": { // "CurrencyController": { // "conversionDate": "number", // "conversionRate": "number", // "currentCurrency": "string" // } // } /** * Creates an object that represents the structure of the given object. It replaces all values with the result of their * type. * * @param {object} obj The object for which a 'structure' will be returned. Usually a plain object and not a class. * @returns {object} The "mapped" version of a deep clone of the passed object, with each non-object property value * replaced with the javascript type of that value. * */ function getObjStructure (obj) { const structure = clone(obj) return deepMap(structure, (value) => { return value === null ? 'null' : typeof value }) } /** * Modifies all the properties and deeply nested of a passed object. Iterates recursively over all nested objects and * their properties, and covers the entire depth of the object. At each property value which is not an object is modified. * * @param {object} target The object to modify * @param {Function} visit The modifier to apply to each non-object property value * @returns {object} The modified object */ function deepMap (target = {}, visit) { Object.entries(target).forEach(([key, value]) => { if (typeof value === 'object' && value !== null) { target[key] = deepMap(value, visit) } else { target[key] = visit(value) } }) return target } n/devel/electron4/files/elliptic-6.5.4'>dependabot/npm_and_yarn/devel/electron4/files/elliptic-6.5.4 FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)
aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/dav1d
Commit message (Expand)AuthorAgeFilesLines
* multimedia/dav1d: update to 0.9.0Jan Beich2021-05-173-10/+9
* Regenerate all distfiles using gitlab as source.Matthias Fechner2021-04-101-5/+5
* One more small cleanup, forgotten yesterday.Mathieu Arnold2021-04-071-1/+0
* Remove # $FreeBSD$ from Makefiles.Mathieu Arnold2021-04-061-1/+0
* graphics/libplacebo: update to 3.120.0Jan Beich2021-04-061-0/+1
* multimedia/dav1d: update to 0.8.2Jan Beich2021-02-223-9/+9
* multimedia/dav1d: update to 0.8.1Jan Beich2021-01-032-6/+5
* graphics/libplacebo: update to 3.104.0Jan Beich2021-01-021-0/+1
* devel/vulkan-*: move to graphics/ where vulkan-loader isJan Beich2020-12-241-1/+1
* multimedia/dav1d: update to 0.8.0Jan Beich2020-11-243-10/+10
* multimedia/dav1d: unbreak on 12.1 i386 after r539947Jan Beich2020-06-231-0/+1
* multimedia/dav1d: update to 0.7.1Jan Beich2020-06-233-10/+9
* graphics/libplacebo: update to 2.72.0Jan Beich2020-06-121-0/+1
* multimedia/dav1d: update to 0.7.0Jan Beich2020-05-213-15/+9
* Convert GitLab patches to simple diffsJan Beich2020-05-122-3/+3
* multimedia/dav1d: regen patches (gitlab bug)Jan Beich2020-05-081-1/+1
* graphics/libplacebo: update to 2.43.0Jan Beich2020-04-231-0/+1
* multimedia/dav1d: update to 0.6.0Jan Beich2020-03-063-11/+15
* graphics/libplacebo: update to 1.29.0Jan Beich2019-12-231-0/+1
* multimedia/dav1d: update to 0.5.2Jan Beich2019-12-053-9/+9
* multimedia/dav1d: update to 0.5.1Jan Beich2019-10-272-5/+5
* multimedia/dav1d: update to 0.5.0Jan Beich2019-10-123-14/+11
* graphics/libplacebo: update to 1.21.0Jan Beich2019-10-071-0/+1
* multimedia/dav1d: update to 0.4.0Jan Beich2019-08-063-11/+20
* Bump PORTREVISION for ports depending on the canonical version of GCCGerald Pfeifer2019-07-271-0/+1
* multimedia/dav1d: update to 0.3.1Jan Beich2019-05-124-10/+9
* multimedia/dav1d: update to 0.3.0Jan Beich2019-04-302-5/+5
* multimedia/dav1d: update to 0.2.2Jan Beich2019-04-202-5/+5
* multimedia/dav1d: drop -z notext after r494637Jan Beich2019-04-051-1/+0
* multimedia/dav1d: drop unnecessary dependency on binutilsJan Beich2019-04-051-6/+0
* multimedia/dav1d: adjust r496941 for CFI (depends on LTO)Jan Beich2019-03-271-5/+7
* multimedia/dav1d: disallow Clang LTO on x86Jan Beich2019-03-271-0/+5
* multimedia/dav1d: update to 0.2.1Jan Beich2019-03-133-6/+6
* multimedia/dav1d: update to 0.2.0Jan Beich2019-03-053-18/+11
* multimedia/dav1d: unbreak with LLD on i386Jan Beich2019-01-081-0/+1
* multimedia/dav1d: convert to upstreamable patchesJan Beich2018-12-204-75/+50
* multimedia/dav1d: unbreak on GCC architecturesJan Beich2018-12-171-1/+1