diff --git a/index.d.ts b/index.d.ts index fec07d7..3794c42 100644 --- a/index.d.ts +++ b/index.d.ts @@ -6,7 +6,7 @@ An object is plain if it's created by either `{}`, `new Object()`, or `Object.cr @example ``` import isPlainObject from 'is-plain-obj'; -import {runInNewContext} from 'vm'; +import {runInNewContext} from 'node:vm'; isPlainObject({foo: 'bar'}); //=> true diff --git a/readme.md b/readme.md index 6982942..28de6fb 100644 --- a/readme.md +++ b/readme.md @@ -14,7 +14,7 @@ $ npm install is-plain-obj ```js import isPlainObject from 'is-plain-obj'; -import {runInNewContext} from 'vm'; +import {runInNewContext} from 'node:vm'; isPlainObject({foo: 'bar'}); //=> true diff --git a/test.js b/test.js index 685f6d5..5e825a9 100644 --- a/test.js +++ b/test.js @@ -1,6 +1,6 @@ +import {runInNewContext} from 'node:vm'; import test from 'ava'; import isPlainObject from './index.js'; -import {runInNewContext} from 'vm'; function Foo(x) { this.x = x;