@0xsequence/utils
Advanced tools
Comparing version 0.21.2 to 0.21.3
# @0xsequence/utils | ||
## 0.21.3 | ||
### Patch Changes | ||
- add window session cache | ||
## 0.21.2 | ||
@@ -4,0 +10,0 @@ |
export declare const base64Encode: (val: string) => string; | ||
export declare const base64EncodeObject: (obj: any) => string; | ||
export declare const base64Decode: (encodedString: string) => string | undefined; | ||
export declare const base64DecodeObject: <T = any>(encodedObject: string) => T | undefined; | ||
export declare const base64DecodeObject: <T = any>(encodedObject: string | null) => T | undefined; |
@@ -1,3 +0,3 @@ | ||
export declare const sanitizeNumberString: (numString: string) => string; | ||
export declare const sanitizeNumberString: (numString: string | null) => string; | ||
export declare const sanitizeAlphanumeric: (alphanum: string) => string; | ||
export declare const sanitizeHost: (host: string) => string; |
{ | ||
"name": "@0xsequence/utils", | ||
"version": "0.21.2", | ||
"version": "0.21.3", | ||
"description": "utils sub-package for Sequence", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/utils", |
@@ -18,3 +18,3 @@ import { Base64 } from 'js-base64' | ||
export const base64DecodeObject = <T = any>(encodedObject: string): T | undefined => { | ||
export const base64DecodeObject = <T = any>(encodedObject: string | null): T | undefined => { | ||
if (encodedObject === null || encodedObject === undefined) { | ||
@@ -21,0 +21,0 @@ return undefined |
// sanitizeNumberString accepts a number string and returns back a clean number string. | ||
// For example, input '1234.5678' will return '1234.5678' but '12javascript:{}etc' will return '12' | ||
export const sanitizeNumberString = (numString: string): string => { | ||
export const sanitizeNumberString = (numString: string | null): string => { | ||
if (!numString || typeof(numString) !== 'string') { | ||
@@ -6,0 +6,0 @@ return '' |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41314