4 Commits

Author SHA1 Message Date
8f1254b4de 3.0.3 2023-06-25 00:40:42 +02:00
735708d950 fix(core): update 2023-06-25 00:40:41 +02:00
0ab254e4ed 3.0.2 2023-06-25 00:29:03 +02:00
185b7a38d5 fix(core): update 2023-06-25 00:29:02 +02:00
5 changed files with 1306 additions and 1234 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@pushrocks/smarthbs",
"version": "3.0.1",
"version": "3.0.3",
"private": false,
"description": "handlebars with better fs support",
"main": "dist_ts/index.js",
@ -24,19 +24,17 @@
},
"homepage": "https://gitlab.com/pkunz/smarthbs#README",
"dependencies": {
"@pushrocks/smartfile": "^10.0.2",
"@pushrocks/smartfile": "^10.0.17",
"@pushrocks/smartpath": "^5.0.5",
"@pushrocks/smartpromise": "^3.1.7",
"@types/lodash.uniq": "^4.5.7",
"handlebars": "^4.7.7",
"lodash.uniq": "^4.5.0"
"@pushrocks/smartpromise": "^4.0.2",
"handlebars": "^4.7.7"
},
"devDependencies": {
"@gitzone/tsbuild": "^2.1.63",
"@gitzone/tsrun": "^1.2.37",
"@gitzone/tsbuild": "^2.1.66",
"@gitzone/tsrun": "^1.2.42",
"@gitzone/tstest": "^1.0.72",
"@pushrocks/tapbundle": "^5.0.4",
"@types/node": "^18.0.6"
"@pushrocks/tapbundle": "^5.0.8",
"@types/node": "^20.3.1"
},
"files": [
"ts/**/*",

2500
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@pushrocks/smarthbs',
version: '3.0.1',
version: '3.0.3',
description: 'handlebars with better fs support'
}

View File

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

View File

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