Skip to content

Commit

Permalink
feat: add node: prefix for assert (#347)
Browse files Browse the repository at this point in the history
  • Loading branch information
SavaCool122 committed Feb 16, 2024
1 parent f3170bd commit c4ffd9e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
'~': 126 - ~
*/

const assert = require('assert')
const assert = require('node:assert')
const querystring = require('fast-querystring')
const isRegexSafe = require('safe-regex2')
const deepEqual = require('fast-deep-equal')
Expand Down
2 changes: 1 addition & 1 deletion lib/constrainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const acceptVersionStrategy = require('./strategies/accept-version')
const acceptHostStrategy = require('./strategies/accept-host')
const assert = require('assert')
const assert = require('node:assert')

class Constrainer {
constructor (customStrategies) {
Expand Down
2 changes: 1 addition & 1 deletion lib/strategies/accept-host.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use strict'
const assert = require('assert')
const assert = require('node:assert')

function HostStorage () {
const hosts = {}
Expand Down
2 changes: 1 addition & 1 deletion lib/strategies/accept-version.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const assert = require('assert')
const assert = require('node:assert')

function SemVerStore () {
if (!(this instanceof SemVerStore)) {
Expand Down

0 comments on commit c4ffd9e

Please sign in to comment.