Skip to content

Commit

Permalink
chore: corrected the package name
Browse files Browse the repository at this point in the history
  • Loading branch information
MathurAditya724 committed Nov 29, 2023
1 parent 7f3c3a1 commit dfa7665
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
edition = "2021"
name = "espreso_core"
name = "espresso_core"
version = "0.0.0"

[lib]
Expand Down
28 changes: 14 additions & 14 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./core.android-arm64.node')
} else {
nativeBinding = require('@espreso/core-android-arm64')
nativeBinding = require('@espresso/core-android-arm64')
}
} catch (e) {
loadError = e
Expand All @@ -49,7 +49,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./core.android-arm-eabi.node')
} else {
nativeBinding = require('@espreso/core-android-arm-eabi')
nativeBinding = require('@espresso/core-android-arm-eabi')
}
} catch (e) {
loadError = e
Expand All @@ -69,7 +69,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./core.win32-x64-msvc.node')
} else {
nativeBinding = require('@espreso/core-win32-x64-msvc')
nativeBinding = require('@espresso/core-win32-x64-msvc')
}
} catch (e) {
loadError = e
Expand All @@ -83,7 +83,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./core.win32-ia32-msvc.node')
} else {
nativeBinding = require('@espreso/core-win32-ia32-msvc')
nativeBinding = require('@espresso/core-win32-ia32-msvc')
}
} catch (e) {
loadError = e
Expand All @@ -97,7 +97,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./core.win32-arm64-msvc.node')
} else {
nativeBinding = require('@espreso/core-win32-arm64-msvc')
nativeBinding = require('@espresso/core-win32-arm64-msvc')
}
} catch (e) {
loadError = e
Expand All @@ -113,7 +113,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./core.darwin-universal.node')
} else {
nativeBinding = require('@espreso/core-darwin-universal')
nativeBinding = require('@espresso/core-darwin-universal')
}
break
} catch {}
Expand All @@ -124,7 +124,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./core.darwin-x64.node')
} else {
nativeBinding = require('@espreso/core-darwin-x64')
nativeBinding = require('@espresso/core-darwin-x64')
}
} catch (e) {
loadError = e
Expand All @@ -138,7 +138,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./core.darwin-arm64.node')
} else {
nativeBinding = require('@espreso/core-darwin-arm64')
nativeBinding = require('@espresso/core-darwin-arm64')
}
} catch (e) {
loadError = e
Expand All @@ -157,7 +157,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./core.freebsd-x64.node')
} else {
nativeBinding = require('@espreso/core-freebsd-x64')
nativeBinding = require('@espresso/core-freebsd-x64')
}
} catch (e) {
loadError = e
Expand All @@ -174,7 +174,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./core.linux-x64-musl.node')
} else {
nativeBinding = require('@espreso/core-linux-x64-musl')
nativeBinding = require('@espresso/core-linux-x64-musl')
}
} catch (e) {
loadError = e
Expand All @@ -187,7 +187,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./core.linux-x64-gnu.node')
} else {
nativeBinding = require('@espreso/core-linux-x64-gnu')
nativeBinding = require('@espresso/core-linux-x64-gnu')
}
} catch (e) {
loadError = e
Expand All @@ -203,7 +203,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./core.linux-arm64-musl.node')
} else {
nativeBinding = require('@espreso/core-linux-arm64-musl')
nativeBinding = require('@espresso/core-linux-arm64-musl')
}
} catch (e) {
loadError = e
Expand All @@ -216,7 +216,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./core.linux-arm64-gnu.node')
} else {
nativeBinding = require('@espreso/core-linux-arm64-gnu')
nativeBinding = require('@espresso/core-linux-arm64-gnu')
}
} catch (e) {
loadError = e
Expand All @@ -231,7 +231,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./core.linux-arm-gnueabihf.node')
} else {
nativeBinding = require('@espreso/core-linux-arm-gnueabihf')
nativeBinding = require('@espresso/core-linux-arm-gnueabihf')
}
} catch (e) {
loadError = e
Expand Down
4 changes: 2 additions & 2 deletions npm/darwin-x64/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# `@espreso/core-darwin-x64`
# `@espresso/core-darwin-x64`

This is the **x86_64-apple-darwin** binary for `@espreso/core`
This is the **x86_64-apple-darwin** binary for `@espresso/core`
2 changes: 1 addition & 1 deletion npm/darwin-x64/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@espreso/core-darwin-x64",
"name": "@espresso/core-darwin-x64",
"version": "0.0.0",
"os": [
"darwin"
Expand Down
4 changes: 2 additions & 2 deletions npm/linux-x64-gnu/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# `@espreso/core-linux-x64-gnu`
# `@espresso/core-linux-x64-gnu`

This is the **x86_64-unknown-linux-gnu** binary for `@espreso/core`
This is the **x86_64-unknown-linux-gnu** binary for `@espresso/core`
2 changes: 1 addition & 1 deletion npm/linux-x64-gnu/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@espreso/core-linux-x64-gnu",
"name": "@espresso/core-linux-x64-gnu",
"version": "0.0.0",
"os": [
"linux"
Expand Down
4 changes: 2 additions & 2 deletions npm/win32-x64-msvc/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# `@espreso/core-win32-x64-msvc`
# `@espresso/core-win32-x64-msvc`

This is the **x86_64-pc-windows-msvc** binary for `@espreso/core`
This is the **x86_64-pc-windows-msvc** binary for `@espresso/core`
2 changes: 1 addition & 1 deletion npm/win32-x64-msvc/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@espreso/core-win32-x64-msvc",
"name": "@espresso/core-win32-x64-msvc",
"version": "0.0.0",
"os": [
"win32"
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@espreso/core",
"name": "@espresso/core",
"version": "0.0.0",
"main": "index.js",
"types": "index.d.ts",
Expand Down Expand Up @@ -28,4 +28,4 @@
"version": "napi version"
},
"packageManager": "[email protected]"
}
}
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ __metadata:
version: 8
cacheKey: 10c0

"@espreso/core@workspace:.":
"@espresso/core@workspace:.":
version: 0.0.0-use.local
resolution: "@espreso/core@workspace:."
resolution: "@espresso/core@workspace:."
dependencies:
"@napi-rs/cli": "npm:^2.16.5"
ava: "npm:^5.1.1"
Expand Down

0 comments on commit dfa7665

Please sign in to comment.