@lppedd/kotlinx-charset 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,9 +1,10 @@
1
1
  # kotlinx-charset
2
2
 
3
- ![Build status](https://github.com/lppedd/kotlinx-charset/workflows/Build/badge.svg)
4
- ![MIT license](https://img.shields.io/github/license/lppedd/kotlinx-charset)
5
- ![Kotlin 2.1.20](https://img.shields.io/badge/kotlin-2.1.20-blue.svg?logo=kotlin)
3
+ [![Build status](https://github.com/lppedd/kotlinx-charset/workflows/Build/badge.svg)](https://github.com/lppedd/kotlinx-charset/actions/workflows/build.yml)
4
+ [![MIT license](https://img.shields.io/github/license/lppedd/kotlinx-charset)](./LICENSE)
5
+ [![Kotlin 2.1.20](https://img.shields.io/badge/kotlin-2.1.20-blue.svg?logo=kotlin)](https://kotlinlang.org)
6
6
  [![Maven Central](https://img.shields.io/maven-central/v/com.lppedd.kotlinx-charset/core)](https://mvnrepository.com/artifact/com.lppedd.kotlinx-charset)
7
+ [![NPM Version](https://img.shields.io/npm/v/%40lppedd%2Fkotlinx-charset)](https://www.npmjs.com/package/@lppedd/kotlinx-charset)
7
8
 
8
9
  Minimal charset support for Kotlin Multiplatform.
9
10
 
@@ -24,7 +24,8 @@ export declare interface XCharsetEncoder {
24
24
  readonly "com.lppedd.kotlinx.charset.exported.XCharsetEncoder": unique symbol;
25
25
  };
26
26
  }
27
- export declare function getCharsets(): Array<XCharset>;
27
+ export declare function getCharsetOrNull(charsetName: string): Nullable<XCharset>;
28
28
  export declare function getCharset(charsetName: string): XCharset;
29
+ export declare function getCharsets(): Array<XCharset>;
29
30
  export declare function decode(charsetName: string, bytes: Uint8Array): string;
30
31
  export declare function encode(charsetName: string, value: string): Uint8Array;