mirror of
https://github.com/julia-actions/julia-buildpkg.git
synced 2026-02-20 04:46:53 +08:00
Fix vulns in dev deps with npm audit fix
This commit is contained in:
4
node_modules/handlebars/lib/handlebars/helpers/with.js
generated
vendored
4
node_modules/handlebars/lib/handlebars/helpers/with.js
generated
vendored
@@ -1,7 +1,9 @@
|
||||
import {appendContextPath, blockParams, createFrame, isEmpty, isFunction} from '../utils';
|
||||
import { appendContextPath, blockParams, createFrame, isEmpty, isFunction } from '../utils';
|
||||
import Exception from '../exception';
|
||||
|
||||
export default function(instance) {
|
||||
instance.registerHelper('with', function(context, options) {
|
||||
if (arguments.length != 2) { throw new Exception('#with requires exactly one argument');}
|
||||
if (isFunction(context)) { context = context.call(this); }
|
||||
|
||||
let fn = options.fn;
|
||||
|
||||
Reference in New Issue
Block a user