hbs-dedent-helper
Advanced tools
Comparing version 0.1.0 to 0.2.0
'use strict'; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
@@ -4,0 +6,0 @@ |
@@ -1,2 +0,2 @@ | ||
"use strict";var e,t=require("handlebars"),r=(e=require("assert"))&&"object"==typeof e&&"default"in e?e.default:e;function n(e,t,r){var n=r.fn(this),s=function(e,t){switch(t){case"level":case"levels":return exports.levelChar+"{"+e*exports.levelSize+"}";case"tab":case"tabs":return"\\t{"+e+"}";case"space":case"spaces":return"[ ]{"+e+"}"}throw new Error("Invalid unit specified: "+t)}(e,t);return n.split("\n").map(function(e){var t=e.match(new RegExp("^(\\s*)("+s+")[^\\s]"));return t?""+t[1]+e.slice(t[0].length-1):e}).join("\n")}exports.levelSize=4,exports.levelChar="\\s",exports.dedentHelper=n,exports.register=function(){t.registerHelper("dedent-by",function(e,t,s){return r("number"==typeof e,"Expected count to be a number"),r("string"==typeof t,"Expected unit to be a string"),n.apply(this,[e,t,s])}),t.registerHelper("dedent",function(e){return n.apply(this,[1,"level",e])})},exports.setLevelChar=function(e){exports.levelChar=e},exports.setLevelSize=function(e){exports.levelSize=e}; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t=require("handlebars"),r=(e=require("assert"))&&"object"==typeof e&&"default"in e?e.default:e;function s(e,t,r){var s=r.fn(this),n=function(e,t){switch(t){case"level":case"levels":return exports.levelChar+"{"+e*exports.levelSize+"}";case"tab":case"tabs":return"\\t{"+e+"}";case"space":case"spaces":return"[ ]{"+e+"}"}throw new Error("Invalid unit specified: "+t)}(e,t);return s.split("\n").map((function(e){var t=e.match(new RegExp("^(\\s*)("+n+")[^\\s]"));return t?""+t[1]+e.slice(t[0].length-1):e})).join("\n")}exports.levelSize=4,exports.levelChar="\\s",exports.dedentHelper=s,exports.register=function(){t.registerHelper("dedent-by",(function(e,t,n){return r("number"==typeof e,"Expected count to be a number"),r("string"==typeof t,"Expected unit to be a string"),s.apply(this,[e,t,n])})),t.registerHelper("dedent",(function(e){return s.apply(this,[1,"level",e])}))},exports.setLevelChar=function(e){exports.levelChar=e},exports.setLevelSize=function(e){exports.levelSize=e}; | ||
//# sourceMappingURL=hbs-dedent-helper.cjs.production.min.js.map |
{ | ||
"name": "hbs-dedent-helper", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"main": "dist/index.js", | ||
@@ -11,9 +11,13 @@ "module": "dist/hbs-dedent-helper.esm.js", | ||
], | ||
"scripts": { | ||
"start": "tsdx watch", | ||
"build": "tsdx build", | ||
"test": "tsdx test" | ||
"author": { | ||
"name": "Lorefnon", | ||
"email": "lorefnon@tutanota.com", | ||
"url": "https://lorefnon.me" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/lorefnon/hbs-dedent-helper" | ||
}, | ||
"peerDependencies": { | ||
"handlebars": "^4.1.2" | ||
"handlebars": "^4.7.7" | ||
}, | ||
@@ -32,11 +36,17 @@ "husky": { | ||
"devDependencies": { | ||
"@types/jest": "^24.0.16", | ||
"handlebars": "^4.1.2", | ||
"husky": "^3.0.2", | ||
"prettier": "^1.18.2", | ||
"pretty-quick": "^1.11.1", | ||
"tsdx": "^0.7.2", | ||
"tslib": "^1.10.0", | ||
"typescript": "^3.5.3" | ||
"@types/jest": "^28.1.1", | ||
"@types/node": "^17.0.42", | ||
"handlebars": "^4.7.7", | ||
"husky": "^8.0.1", | ||
"prettier": "^2.6.2", | ||
"pretty-quick": "^3.1.3", | ||
"tsdx": "^0.14.1", | ||
"tslib": "^2.4.0", | ||
"typescript": "^4.7.3" | ||
}, | ||
"scripts": { | ||
"start": "tsdx watch", | ||
"build": "tsdx build", | ||
"test": "tsdx test" | ||
} | ||
} | ||
} |
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
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
17515
114
1
1
9