Skip to content

Commit

Permalink
Use node:vm instead of vm (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky authored Jun 14, 2022
1 parent db81db9 commit c49ab09
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test.js
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit c49ab09

Please sign in to comment.