fix(core): update
This commit is contained in:
@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@push.rocks/smartobject',
|
||||
version: '1.0.11',
|
||||
version: '1.0.12',
|
||||
description: 'work with objects'
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
// thirdparty scope
|
||||
// tslint:disable-next-line: no-submodule-imports
|
||||
import fastDeepEqual from 'fast-deep-equal/es6/index.js';
|
||||
import minimatch from 'minimatch';
|
||||
import * as minimatch from 'minimatch';
|
||||
|
||||
export { fastDeepEqual, minimatch };
|
||||
|
@ -13,7 +13,7 @@ export let forEachMinimatch = async (
|
||||
) => {
|
||||
let propertyNames = Object.getOwnPropertyNames(parentObjectArg);
|
||||
let propertyNamesMatched = propertyNames.filter((propertyNameArg) => {
|
||||
return plugins.minimatch(propertyNameArg, wildcardArg);
|
||||
return plugins.minimatch.minimatch(propertyNameArg, wildcardArg);
|
||||
});
|
||||
for (let propertyNameArg of propertyNamesMatched) {
|
||||
await callbackArg(parentObjectArg[propertyNameArg]);
|
||||
|
Reference in New Issue
Block a user