semanticdb-common-lib
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -93,7 +93,7 @@ "use strict"; | ||
}; | ||
exports.merge = function (arrays) { | ||
exports.mergeBy = function (_id, arrays) { | ||
var merged = {}; | ||
arrays.forEach(function (array) { | ||
array.forEach(function (i) { | ||
var id = i._id; | ||
var id = i[_id]; | ||
if (id in merged) { | ||
@@ -112,4 +112,4 @@ merged[id] = __assign(__assign({}, merged[id]), i); | ||
sort: sort, | ||
merge: exports.merge | ||
mergeBy: exports.mergeBy | ||
}; | ||
//# sourceMappingURL=semanticdb-common-lib.js.map |
@@ -107,7 +107,7 @@ /*! ***************************************************************************** | ||
}; | ||
var merge = function (arrays) { | ||
var mergeBy = function (_id, arrays) { | ||
var merged = {}; | ||
arrays.forEach(function (array) { | ||
array.forEach(function (i) { | ||
var id = i._id; | ||
var id = i[_id]; | ||
if (id in merged) { | ||
@@ -126,7 +126,7 @@ merged[id] = __assign(__assign({}, merged[id]), i); | ||
sort: sort, | ||
merge: merge | ||
mergeBy: mergeBy | ||
}; | ||
export default semanticdbCommonLib; | ||
export { merge }; | ||
export { mergeBy }; | ||
//# sourceMappingURL=semanticdb-common-lib.es5.js.map |
@@ -113,7 +113,7 @@ (function (global, factory) { | ||
}; | ||
var merge = function (arrays) { | ||
var mergeBy = function (_id, arrays) { | ||
var merged = {}; | ||
arrays.forEach(function (array) { | ||
array.forEach(function (i) { | ||
var id = i._id; | ||
var id = i[_id]; | ||
if (id in merged) { | ||
@@ -132,6 +132,6 @@ merged[id] = __assign(__assign({}, merged[id]), i); | ||
sort: sort, | ||
merge: merge | ||
mergeBy: mergeBy | ||
}; | ||
exports.merge = merge; | ||
exports.mergeBy = mergeBy; | ||
exports.default = semanticdbCommonLib; | ||
@@ -138,0 +138,0 @@ |
@@ -1,2 +0,2 @@ | ||
export declare const merge: (arrays: any[][]) => any[]; | ||
export declare const mergeBy: (_id: string, arrays: any[][]) => any[]; | ||
declare const _default: { | ||
@@ -7,4 +7,4 @@ each: (arr: any, func: Function) => Promise<any>; | ||
}) => any[]; | ||
merge: (arrays: any[][]) => any[]; | ||
mergeBy: (_id: string, arrays: any[][]) => any[]; | ||
}; | ||
export default _default; |
{ | ||
"name": "semanticdb-common-lib", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29490