Skip to content

Commit

Permalink
Merge pull request #23 from bvanjoi/next
Browse files Browse the repository at this point in the history
release: 0.0.18
  • Loading branch information
bvanjoi authored Jul 11, 2022
2 parents 73aa3ef + f1611d0 commit d084933
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ crate-type = ["cdylib"]
[dependencies]
napi = "2"
napi-derive = "2"
nodejs-resolver = "0.0.26"
serde = { version = "1.0.137", features = ["derive"] }
nodejs-resolver = "0.0.27"
serde = { version = "1.0.138", features = ["derive"] }

[build-dependencies]
napi-build = "2"
Expand Down
1 change: 0 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ export interface RawResolverOptions {
mainFields?: Array<string>
modules?: Array<string>
preferRelative?: boolean
enableUnsafeCache?: boolean
tsconfigPath?: string
}
export interface ResolverInternal {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nodejs-resolver",
"version": "0.0.17",
"version": "0.0.18",
"description": "node binding for nodejs-resolver",
"main": "index.js",
"license": "MIT",
Expand Down
5 changes: 0 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ pub struct RawResolverOptions {
pub main_fields: Option<Vec<String>>,
pub modules: Option<Vec<String>>,
pub prefer_relative: Option<bool>,
pub enable_unsafe_cache: Option<bool>,
pub tsconfig_path: Option<String>,
}

Expand All @@ -54,10 +53,6 @@ impl RawResolverOptions {
main_files: self.main_files.to_owned().unwrap_or(default.main_files),
main_fields: self.main_fields.to_owned().unwrap_or(default.main_fields),
prefer_relative: self.prefer_relative.unwrap_or(default.prefer_relative),
disable_unsafe_cache: self
.enable_unsafe_cache
.to_owned()
.unwrap_or(default.disable_unsafe_cache),
tsconfig: self.tsconfig_path.to_owned().map(PathBuf::from),
unsafe_cache,
}
Expand Down

0 comments on commit d084933

Please sign in to comment.