Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

smart-sms-solutions

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

smart-sms-solutions - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

3

build/index.js

@@ -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;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc