Skip to content

Commit

Permalink
add prefix to node import to fix issue with vite (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
powerpaul17 committed Feb 1, 2023
1 parent 11b1243 commit 9c059b1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion hyperid.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const uuidv4 = require('./uuid')
const uuidv4 = require('./uuid-node')
const parser = require('uuid-parse')
const maxInt = Math.pow(2, 31) - 1
const Buffer = require('buffer').Buffer
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"files": [
"hyperid.js",
"index.d.ts",
"uuid.js",
"uuid-node.js",
"uuid-browser.js",
"test"
],
Expand Down Expand Up @@ -48,6 +48,6 @@
"uuid-parse": "^1.1.0"
},
"browser": {
"./uuid.js": "./uuid-browser.js"
"./uuid-node.js": "./uuid-browser.js"
}
}
File renamed without changes.

0 comments on commit 9c059b1

Please sign in to comment.