Skip to content

Commit

Permalink
fix: rename imports
Browse files Browse the repository at this point in the history
  • Loading branch information
lsndr committed Mar 20, 2023
1 parent d7a2da0 commit 1986758
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./rrule-rust.android-arm64.node')
} else {
nativeBinding = require('rrule-rust-android-arm64')
nativeBinding = require('@rrule-rust/android-arm64')
}
} catch (e) {
loadError = e
Expand All @@ -43,7 +43,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./rrule-rust.android-arm-eabi.node')
} else {
nativeBinding = require('rrule-rust-android-arm-eabi')
nativeBinding = require('@rrule-rust/android-arm-eabi')
}
} catch (e) {
loadError = e
Expand All @@ -63,7 +63,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./rrule-rust.win32-x64-msvc.node')
} else {
nativeBinding = require('rrule-rust-win32-x64-msvc')
nativeBinding = require('@rrule-rust/win32-x64-msvc')
}
} catch (e) {
loadError = e
Expand All @@ -77,7 +77,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./rrule-rust.win32-ia32-msvc.node')
} else {
nativeBinding = require('rrule-rust-win32-ia32-msvc')
nativeBinding = require('@rrule-rust/win32-ia32-msvc')
}
} catch (e) {
loadError = e
Expand All @@ -91,7 +91,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./rrule-rust.win32-arm64-msvc.node')
} else {
nativeBinding = require('rrule-rust-win32-arm64-msvc')
nativeBinding = require('@rrule-rust/win32-arm64-msvc')
}
} catch (e) {
loadError = e
Expand All @@ -107,7 +107,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./rrule-rust.darwin-universal.node')
} else {
nativeBinding = require('rrule-rust-darwin-universal')
nativeBinding = require('@rrule-rust/darwin-universal')
}
break
} catch {}
Expand All @@ -118,7 +118,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./rrule-rust.darwin-x64.node')
} else {
nativeBinding = require('rrule-rust-darwin-x64')
nativeBinding = require('@rrule-rust/darwin-x64')
}
} catch (e) {
loadError = e
Expand All @@ -132,7 +132,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./rrule-rust.darwin-arm64.node')
} else {
nativeBinding = require('rrule-rust-darwin-arm64')
nativeBinding = require('@rrule-rust/darwin-arm64')
}
} catch (e) {
loadError = e
Expand All @@ -151,7 +151,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./rrule-rust.freebsd-x64.node')
} else {
nativeBinding = require('rrule-rust-freebsd-x64')
nativeBinding = require('@rrule-rust/freebsd-x64')
}
} catch (e) {
loadError = e
Expand All @@ -168,7 +168,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./rrule-rust.linux-x64-musl.node')
} else {
nativeBinding = require('rrule-rust-linux-x64-musl')
nativeBinding = require('@rrule-rust/linux-x64-musl')
}
} catch (e) {
loadError = e
Expand All @@ -181,7 +181,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./rrule-rust.linux-x64-gnu.node')
} else {
nativeBinding = require('rrule-rust-linux-x64-gnu')
nativeBinding = require('@rrule-rust/linux-x64-gnu')
}
} catch (e) {
loadError = e
Expand All @@ -197,7 +197,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./rrule-rust.linux-arm64-musl.node')
} else {
nativeBinding = require('rrule-rust-linux-arm64-musl')
nativeBinding = require('@rrule-rust/linux-arm64-musl')
}
} catch (e) {
loadError = e
Expand All @@ -210,7 +210,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./rrule-rust.linux-arm64-gnu.node')
} else {
nativeBinding = require('rrule-rust-linux-arm64-gnu')
nativeBinding = require('@rrule-rust/linux-arm64-gnu')
}
} catch (e) {
loadError = e
Expand All @@ -225,7 +225,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./rrule-rust.linux-arm-gnueabihf.node')
} else {
nativeBinding = require('rrule-rust-linux-arm-gnueabihf')
nativeBinding = require('@rrule-rust/linux-arm-gnueabihf')
}
} catch (e) {
loadError = e
Expand Down

0 comments on commit 1986758

Please sign in to comment.