Skip to content

Commit c69b8df

Browse files
committed
fixes
1 parent 2011b06 commit c69b8df

File tree

34 files changed

+87
-693
lines changed

34 files changed

+87
-693
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# dev-utils
22

33
<p align="center">
4-
<img src="https://github.com/cosmology-tech/interweb-utils/assets/545047/89c743c4-be88-409f-9a77-4b02cd7fe9a4" width="80">
4+
<img src="https://raw.githubusercontent.com/hyperweb-io/dev-utils/refs/heads/main/docs/img/logo.svg" width="80">
55
<br />
66
Open-source development utilities for modern web applications
77
<br />

__fixtures__/output/assetlist.camel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export interface NonIbcTransition {
8484
provider: string;
8585
}
8686
export interface AssetLists {
87-
schema?: string;
87+
$schema?: string;
8888
chainName: string;
8989
assets: Asset[];
9090
}

__fixtures__/output/chain.camel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export interface Pointer {
3333
baseDenom?: string;
3434
}
3535
export interface CosmosChain {
36-
schema?: string;
36+
$schema?: string;
3737
chainName: string;
3838
chainId: string;
3939
preForkChainName?: string;

__fixtures__/output/memo.camel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export interface Memo {
2-
schema?: string;
2+
$schema?: string;
33
memoKeys: {
44
key: string;
55
description: string;

docs/img/logo.svg

Lines changed: 10 additions & 0 deletions
Loading

packages/casing/CHANGELOG.md

Lines changed: 0 additions & 48 deletions
This file was deleted.

packages/casing/README.md

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# @interweb/casing
22

33
<p align="center">
4-
<img src="https://github.com/cosmology-tech/interweb-utils/assets/545047/89c743c4-be88-409f-9a77-4b02cd7fe9a4" width="80">
4+
<img src="https://raw.githubusercontent.com/hyperweb-io/dev-utils/refs/heads/main/docs/img/logo.svg" width="80">
55
<br />
66
Casing utils
77
<br />
8-
<a href="https://github.com/pyramation/schema-typescript/blob/main/LICENSE-MIT"><img height="20" src="https://img.shields.io/badge/license-MIT-blue.svg"/></a>
8+
<a href="https://github.com/hyperweb-io/dev-utils/blob/main/LICENSE-MIT"><img height="20" src="https://img.shields.io/badge/license-MIT-blue.svg"/></a>
99
</p>
1010

1111
## install
@@ -21,27 +21,4 @@ When first cloning the repo:
2121
```
2222
yarn
2323
yarn build
24-
```
25-
26-
## Related
27-
28-
Checkout these related projects:
29-
30-
* [@cosmology/telescope](https://github.com/cosmology-tech/telescope) Your Frontend Companion for Building with TypeScript with Cosmos SDK Modules.
31-
* [@cosmwasm/ts-codegen](https://github.com/CosmWasm/ts-codegen) Convert your CosmWasm smart contracts into dev-friendly TypeScript classes.
32-
* [chain-registry](https://github.com/cosmology-tech/chain-registry) Everything from token symbols, logos, and IBC denominations for all assets you want to support in your application.
33-
* [cosmos-kit](https://github.com/cosmology-tech/cosmos-kit) Experience the convenience of connecting with a variety of web3 wallets through a single, streamlined interface.
34-
* [create-cosmos-app](https://github.com/cosmology-tech/create-cosmos-app) Set up a modern Cosmos app by running one command.
35-
* [interchain-ui](https://github.com/cosmology-tech/interchain-ui) The Interchain Design System, empowering developers with a flexible, easy-to-use UI kit.
36-
* [starship](https://github.com/cosmology-tech/starship) Unified Testing and Development for the Interchain.
37-
38-
## Credits
39-
40-
🛠 Built by Cosmology — if you like our tools, please consider delegating to [our validator ⚛️](https://cosmology.zone/validator)
41-
42-
43-
## Disclaimer
44-
45-
AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED “AS IS”, AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND.
46-
47-
No developer or entity involved in creating this software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the code, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value.
24+
```

packages/casing/src/index.ts

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,14 @@ export function toCamelCase(
1111
stripLeadingNonAlphabetChars: boolean = false
1212
) {
1313
if (stripLeadingNonAlphabetChars) {
14-
// First, remove all leading non-alphabet characters
15-
key = key.replace(/^[^a-zA-Z]+/, '');
14+
// First, remove all leading non-alphanumeric characters (preserves numbers)
15+
key = key.replace(/^[^a-zA-Z0-9]+/, '');
1616
}
17-
return (
18-
key
19-
// Convert what follows a separator into upper case
20-
.replace(/[-_\s]+(.)?/g, (_, c) => (c ? c.toUpperCase() : ''))
21-
// Ensure the first character of the result is always lowercase
22-
.replace(/^./, (c) => c.toLowerCase())
23-
);
17+
return key
18+
// Convert what follows a separator into upper case
19+
.replace(/[-_\s]+(.)?/g, (_, c) => c ? c.toUpperCase() : '')
20+
// Ensure the first character of the result is always lowercase
21+
.replace(/^./, (c) => c.toLowerCase());
2422
}
2523

2624
// // Determine if the key is a valid JavaScript identifier

packages/cli/CHANGELOG.md

Lines changed: 0 additions & 48 deletions
This file was deleted.

packages/cli/README.md

Lines changed: 0 additions & 51 deletions
This file was deleted.

0 commit comments

Comments
 (0)