fix(core): update
This commit is contained in:
@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@pushrocks/smarthbs',
|
||||
version: '3.0.1',
|
||||
version: '3.0.2',
|
||||
description: 'handlebars with better fs support'
|
||||
}
|
||||
|
@ -1,8 +1,15 @@
|
||||
import handlebars from 'handlebars';
|
||||
import lodashUniq from 'lodash.uniq';
|
||||
import * as smartpath from '@pushrocks/smartpath';
|
||||
// node native
|
||||
import * as path from 'path';
|
||||
|
||||
export { path };
|
||||
|
||||
import * as smartpath from '@pushrocks/smartpath';
|
||||
import * as smartfile from '@pushrocks/smartfile';
|
||||
import * as smartpromise from '@pushrocks/smartpromise';
|
||||
|
||||
export { handlebars, lodashUniq, path, smartfile, smartpromise };
|
||||
export { smartpath, smartfile, smartpromise };
|
||||
|
||||
// third party
|
||||
import handlebars from 'handlebars';
|
||||
|
||||
export { handlebars };
|
||||
|
@ -31,7 +31,10 @@ export let findVarsInHbsString = async (hbsStringArg: string) => {
|
||||
});
|
||||
|
||||
// make sure are uniq
|
||||
varNameArray = plugins.lodashUniq(varNameArray);
|
||||
function uniqueArray(input: string[]): string[] {
|
||||
return Array.from(new Set(input));
|
||||
}
|
||||
varNameArray = uniqueArray(varNameArray);
|
||||
return varNameArray;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user