fix(core): update

This commit is contained in:
2023-07-12 19:59:28 +02:00
parent 9e343aab84
commit 17be38125f
5 changed files with 40 additions and 49 deletions

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@push.rocks/smartobject',
version: '1.0.11',
version: '1.0.12',
description: 'work with objects'
}

View File

@ -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 };

View File

@ -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]);