Skip to content

Commit

Permalink
test: add ipaddr.js case
Browse files Browse the repository at this point in the history
  • Loading branch information
Brooooooklyn committed Jul 16, 2024
1 parent 0ed2c19 commit ebec16e
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 25 deletions.
36 changes: 18 additions & 18 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ crate-type = ["cdylib"]

[dependencies]
napi = { version = "3.0.0-alpha.7", default-features = false, features = ["async", "serde-json"] }
napi-derive = { version = "3.0.0-alpha.5", default-features = false, features = ["type-def"] }
napi-derive = { version = "3.0.0-alpha.6", default-features = false, features = ["type-def"] }
oxc = { version = "0.20", features = ["codegen", "transformer"] }
oxc_resolver = "1"
phf = "0.11"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"packageManager": "[email protected]",
"devDependencies": {
"@napi-rs/cli": "^3.0.0-alpha.58",
"@napi-rs/cli": "^3.0.0-alpha.60",
"@napi-rs/wasm-runtime": "^0.2.4",
"@oxc-node/core": "workspace:*",
"@taplo/cli": "^0.7.0",
Expand Down
1 change: 1 addition & 0 deletions packages/integrate-module/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"@types/node": "^20.14.9",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"ipaddr.js": "^2.2.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"simple-git": "^3.25.0",
Expand Down
5 changes: 5 additions & 0 deletions packages/integrate-module/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { bar as subBar } from '@subdirectory/bar.mjs'
import { supportedExtensions } from 'file-type'
import { renderToString } from 'react-dom/server'
import { simpleGit } from 'simple-git'
import ipaddr from 'ipaddr.js'

import { CompiledClass } from './compiled.js'
import { foo } from './foo.mjs'
Expand Down Expand Up @@ -61,3 +62,7 @@ await test('resolve simple-git', () => {
await test('resolve package.json', () => {
assert.equal(pkgJson.name, 'integrate-module')
})

await test('resolve ipaddr.js', () => {
assert.ok(ipaddr.isValid('::1'))
})
19 changes: 14 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ebec16e

Please sign in to comment.