Skip to content

Commit

Permalink
Fix issue with util._extend deprecation in @ladjs/consolidate
Browse files Browse the repository at this point in the history
  • Loading branch information
banoni-dev committed Jul 10, 2024
1 parent 54df695 commit d16051f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/consolidate.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ function fromStringRenderer(name) {

return promisify(cb, function (cb) {
readPartials(path, options, function (err, partials) {
const extend = requires.extend || (requires.extend = util._extend);
const extend = requires.extend || (requires.extend = Object.assign);
const opts = extend({}, options);
opts.partials = partials;
if (err) return cb(err);
Expand Down Expand Up @@ -1363,7 +1363,7 @@ exports.dot.render = function (str, options, cb) {
return promisify(cb, function (cb) {
try {
const engine = requires.dot || (requires.dot = require('dot'));
const extend = requires.extend || (requires.extend = util._extend);
const extend = requires.extend || (requires.extend = Object.assign);
let settings = {};
settings = extend(settings, engine.templateSettings);
settings = extend(settings, options ? options.dot : {});
Expand Down Expand Up @@ -1421,7 +1421,7 @@ exports.ractive.render = function (str, options, cb) {
options.template = template;

if (options.data === null || options.data === undefined) {
const extend = requires.extend || (requires.extend = util._extend);
const extend = requires.extend || (requires.extend = Object.assign);

// Shallow clone the options object
options.data = extend({}, options);
Expand Down

0 comments on commit d16051f

Please sign in to comment.