Skip to content

Commit

Permalink
chore(tools): replaces a stray use of lodash.cloneXXX with structured…
Browse files Browse the repository at this point in the history
…Clone
  • Loading branch information
sverweij committed Oct 16, 2023
1 parent 27aa37e commit b0171b2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tools/generate-schemas.utl.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
import { writeFileSync } from "node:fs";
import { extname } from "node:path";
import prettier from "prettier";
import clone from "lodash/clone.js";

function stripAttribute(pObject, pAttribute) {
const lObject = clone(pObject);
const lObject = structuredClone(pObject);
delete lObject[pAttribute];

Object.keys(pObject).forEach((pKey) => {
Expand Down

0 comments on commit b0171b2

Please sign in to comment.