Skip to content

Commit

Permalink
rename toml-parser
Browse files Browse the repository at this point in the history
  • Loading branch information
nitaliano committed Dec 3, 2024
1 parent b682cea commit 130717a
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 27 deletions.
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"ink": "^5.0.1",
"pastel": "^3.0.0",
"react": "^18.2.0",
"toml-parser": "workspace:*",
"@eth-optimism/toml-rs": "workspace:*",
"viem": "^2.21.41",
"zod": "^3.21.4",
"zod-validation-error": "^3.4.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/commands/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type {AppProps} from 'pastel';
import {QueryClient, QueryClientProvider} from '@tanstack/react-query';
import {useInput} from 'ink';
import {parseToml} from 'toml-parser';
import {parseToml} from '@eth-optimism/toml-rs';

export const queryClient = new QueryClient();

Expand Down
42 changes: 21 additions & 21 deletions packages/toml-parser/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function requireNative() {
loadErrors.push(e)
}
try {
return require('toml-parser-android-arm64')
return require('@eth-optimism/toml-rs-android-arm64')
} catch (e) {
loadErrors.push(e)
}
Expand All @@ -80,7 +80,7 @@ function requireNative() {
loadErrors.push(e)
}
try {
return require('toml-parser-android-arm-eabi')
return require('@eth-optimism/toml-rs-android-arm-eabi')
} catch (e) {
loadErrors.push(e)
}
Expand All @@ -96,7 +96,7 @@ function requireNative() {
loadErrors.push(e)
}
try {
return require('toml-parser-win32-x64-msvc')
return require('@eth-optimism/toml-rs-win32-x64-msvc')
} catch (e) {
loadErrors.push(e)
}
Expand All @@ -108,7 +108,7 @@ function requireNative() {
loadErrors.push(e)
}
try {
return require('toml-parser-win32-ia32-msvc')
return require('@eth-optimism/toml-rs-win32-ia32-msvc')
} catch (e) {
loadErrors.push(e)
}
Expand All @@ -120,7 +120,7 @@ function requireNative() {
loadErrors.push(e)
}
try {
return require('toml-parser-win32-arm64-msvc')
return require('@eth-optimism/toml-rs-win32-arm64-msvc')
} catch (e) {
loadErrors.push(e)
}
Expand All @@ -135,7 +135,7 @@ function requireNative() {
loadErrors.push(e)
}
try {
return require('toml-parser-darwin-universal')
return require('@eth-optimism/toml-rs-darwin-universal')
} catch (e) {
loadErrors.push(e)
}
Expand All @@ -147,7 +147,7 @@ function requireNative() {
loadErrors.push(e)
}
try {
return require('toml-parser-darwin-x64')
return require('@eth-optimism/toml-rs-darwin-x64')
} catch (e) {
loadErrors.push(e)
}
Expand All @@ -159,7 +159,7 @@ function requireNative() {
loadErrors.push(e)
}
try {
return require('toml-parser-darwin-arm64')
return require('@eth-optimism/toml-rs-darwin-arm64')
} catch (e) {
loadErrors.push(e)
}
Expand All @@ -175,7 +175,7 @@ function requireNative() {
loadErrors.push(e)
}
try {
return require('toml-parser-freebsd-x64')
return require('@eth-optimism/toml-rs-freebsd-x64')
} catch (e) {
loadErrors.push(e)
}
Expand All @@ -187,7 +187,7 @@ function requireNative() {
loadErrors.push(e)
}
try {
return require('toml-parser-freebsd-arm64')
return require('@eth-optimism/toml-rs-freebsd-arm64')
} catch (e) {
loadErrors.push(e)
}
Expand All @@ -204,7 +204,7 @@ function requireNative() {
loadErrors.push(e)
}
try {
return require('toml-parser-linux-x64-musl')
return require('@eth-optimism/toml-rs-linux-x64-musl')
} catch (e) {
loadErrors.push(e)
}
Expand All @@ -216,7 +216,7 @@ function requireNative() {
loadErrors.push(e)
}
try {
return require('toml-parser-linux-x64-gnu')
return require('@eth-optimism/toml-rs-linux-x64-gnu')
} catch (e) {
loadErrors.push(e)
}
Expand All @@ -230,7 +230,7 @@ function requireNative() {
loadErrors.push(e)
}
try {
return require('toml-parser-linux-arm64-musl')
return require('@eth-optimism/toml-rs-linux-arm64-musl')
} catch (e) {
loadErrors.push(e)
}
Expand All @@ -242,7 +242,7 @@ function requireNative() {
loadErrors.push(e)
}
try {
return require('toml-parser-linux-arm64-gnu')
return require('@eth-optimism/toml-rs-linux-arm64-gnu')
} catch (e) {
loadErrors.push(e)
}
Expand All @@ -256,7 +256,7 @@ function requireNative() {
loadErrors.push(e)
}
try {
return require('toml-parser-linux-arm-musleabihf')
return require('@eth-optimism/toml-rs-linux-arm-musleabihf')
} catch (e) {
loadErrors.push(e)
}
Expand All @@ -268,7 +268,7 @@ function requireNative() {
loadErrors.push(e)
}
try {
return require('toml-parser-linux-arm-gnueabihf')
return require('@eth-optimism/toml-rs-linux-arm-gnueabihf')
} catch (e) {
loadErrors.push(e)
}
Expand All @@ -282,7 +282,7 @@ function requireNative() {
loadErrors.push(e)
}
try {
return require('toml-parser-linux-riscv64-musl')
return require('@eth-optimism/toml-rs-linux-riscv64-musl')
} catch (e) {
loadErrors.push(e)
}
Expand All @@ -294,7 +294,7 @@ function requireNative() {
loadErrors.push(e)
}
try {
return require('toml-parser-linux-riscv64-gnu')
return require('@eth-optimism/toml-rs-linux-riscv64-gnu')
} catch (e) {
loadErrors.push(e)
}
Expand All @@ -307,7 +307,7 @@ function requireNative() {
loadErrors.push(e)
}
try {
return require('toml-parser-linux-ppc64-gnu')
return require('@eth-optimism/toml-rs-linux-ppc64-gnu')
} catch (e) {
loadErrors.push(e)
}
Expand All @@ -319,7 +319,7 @@ function requireNative() {
loadErrors.push(e)
}
try {
return require('toml-parser-linux-s390x-gnu')
return require('@eth-optimism/toml-rs-linux-s390x-gnu')
} catch (e) {
loadErrors.push(e)
}
Expand All @@ -344,7 +344,7 @@ if (!nativeBinding || process.env.NAPI_RS_FORCE_WASI) {
}
if (!nativeBinding) {
try {
nativeBinding = require('toml-parser-wasm32-wasi')
nativeBinding = require('@eth-optimism/toml-rs-wasm32-wasi')
} catch (err) {
if (process.env.NAPI_RS_FORCE_WASI) {
loadErrors.push(err)
Expand Down
2 changes: 1 addition & 1 deletion packages/toml-parser/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "toml-parser",
"name": "@eth-optimism/toml-rs",
"version": "0.0.1",
"license": "MIT",
"main": "./index.js",
Expand Down
6 changes: 3 additions & 3 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 130717a

Please sign in to comment.