diff --git a/lib/meta/type_constructor.js b/lib/meta/type_constructor.js index 4edf048..9af96ac 100644 --- a/lib/meta/type_constructor.js +++ b/lib/meta/type_constructor.js @@ -1,5 +1,5 @@ import { getHumanReadableName } from "../primitives/symbol.js"; -import { inspect } from "util"; +import { inspect } from "node:util"; import { prettyT } from "../util/pretty.js"; export const inspectType = function(depth, options, inspect){ return options.stylize(prettyT(this), 'date'); } diff --git a/lib/util/rbtree_wrapper.js b/lib/util/rbtree_wrapper.js index dc5d067..a328c37 100644 --- a/lib/util/rbtree_wrapper.js +++ b/lib/util/rbtree_wrapper.js @@ -1,7 +1,7 @@ // Tiny wrapper around function-red-black-tree that overrides the [inspect.custom] symbol so when we print it (during debugging) we just see the (key=>value)-pairs instead of the tree structure. import createRBTree from "functional-red-black-tree"; -import { inspect } from "util"; +import { inspect } from "node:util"; function defaultPrintf(depth, options, inspect) { const entries = [];