smart-sms-solutions
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -1,1 +0,2 @@ | ||
export * from "./src/index"; | ||
import SmartSmsSolutions from "./src/index"; | ||
export default SmartSmsSolutions; |
import axios from "axios"; | ||
import { createFormData, getRefId, sortBySMEFirst, voiceOtpClasses, } from "../src/utils"; | ||
import { createFormData, getRefId, sortBySMEFirst, voiceOtpClasses, } from "./utils"; | ||
class Index { | ||
@@ -4,0 +4,0 @@ constructor(api_key) { |
@@ -1,1 +0,3 @@ | ||
export * from "./src/index" | ||
import SmartSmsSolutions from "./src/index" | ||
export default SmartSmsSolutions | ||
{ | ||
"name": "smart-sms-solutions", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Smart-SMS-Solutions sdk - https://developer.smartsmssolutions.com/", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -17,14 +17,2 @@ export function sortBySMEFirst( | ||
export function formatPrice(inputString: string) { | ||
const numberString = inputString.replace(/[^\d.]/g, ""); // Remove non-digit characters except '.' | ||
return parseFloat(numberString); | ||
} | ||
export function formatPriceToNaira(price: number) { | ||
return price.toLocaleString("en-NG", { | ||
style: "currency", | ||
currency: "NGN", | ||
}); | ||
} | ||
export function generateRandomId(length: number): string { | ||
@@ -31,0 +19,0 @@ const characters = |
@@ -1,2 +0,2 @@ | ||
export * from "@/index"; | ||
export * from "./src/interface/smartSmsSolutions"; | ||
import SmartSmsSolutions from "./src/index"; | ||
export default SmartSmsSolutions; |
@@ -7,4 +7,2 @@ /// <reference types="bun-types" /> | ||
}): 1 | -1 | 0; | ||
export declare function formatPrice(inputString: string): number; | ||
export declare function formatPriceToNaira(price: number): string; | ||
export declare function generateRandomId(length: number): string; | ||
@@ -11,0 +9,0 @@ export declare function createFormData(data: Record<string, any>): FormData; |
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
40687
1038