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

sainofirst

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sainofirst - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

3

changelog.md

@@ -0,2 +1,5 @@

## v1.0.1
added internal packages
## v1.0.0
initial release

3

lib/index.d.ts

@@ -8,3 +8,3 @@ import Sms from "./services/sms";

*/
export default class Sainofirst {
declare class Sainofirst {
/**

@@ -25,1 +25,2 @@ * Sainofirst api key

}
export = Sainofirst;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var sms_1 = require("./services/sms");
var voice_1 = require("./services/voice");
var errors = require("./errors.json");
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
var sms_1 = __importDefault(require("./services/sms"));
var voice_1 = __importDefault(require("./services/voice"));
var errors_json_1 = __importDefault(require("./errors.json"));
/**

@@ -18,10 +20,10 @@ *

if (this.__apiKey === undefined)
throw Error(errors["SFV001"]);
throw Error(errors_json_1.default["SFV001"]);
if (typeof this.__apiKey !== "string")
throw Error(errors["SFT001"]);
throw Error(errors_json_1.default["SFT001"]);
if (this.__apiKey.trim() === "")
throw Error(errors["SFV002"]);
throw Error(errors_json_1.default["SFV002"]);
}
return Sainofirst;
}());
exports.default = Sainofirst;
module.exports = Sainofirst;
/**
* Programmatically send high volumes of text messages globally. Your users can get OTP, alerts, stock prices, account balance, transaction statements, discounts, offers and much more all over a message.
*/
export default class Sms {
declare class Sms {
/**

@@ -58,1 +58,2 @@ * Sainofirst api key

}
export = Sms;

@@ -13,6 +13,15 @@ "use strict";

};
Object.defineProperty(exports, "__esModule", { value: true });
var config = require("../../config.json");
var errors = require("../../errors.json");
var axios_1 = require("axios");
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
var config = __importStar(require("../../config.json"));
var errors = __importStar(require("../../errors.json"));
var axios_1 = __importDefault(require("axios"));
/**

@@ -216,2 +225,2 @@ * Programmatically send high volumes of text messages globally. Your users can get OTP, alerts, stock prices, account balance, transaction statements, discounts, offers and much more all over a message.

}());
exports.default = Sms;
module.exports = Sms;

@@ -5,3 +5,3 @@ /**

*/
export default class Voice {
declare class Voice {
/**

@@ -77,1 +77,2 @@ * Sainofirst api key

}
export = Voice;

@@ -13,6 +13,15 @@ "use strict";

};
Object.defineProperty(exports, "__esModule", { value: true });
var config = require("../../config.json");
var errors = require("../../errors.json");
var axios_1 = require("axios");
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
var config = __importStar(require("../../config.json"));
var errors = __importStar(require("../../errors.json"));
var axios_1 = __importDefault(require("axios"));
/**

@@ -357,2 +366,2 @@ * Programmatically send voice calls globally. Build conversations anywhere and everywhere. Make calls around the world.

}());
exports.default = Voice;
module.exports = Voice;
{
"name": "sainofirst",
"version": "1.0.1",
"version": "1.0.2",
"description": "The Sainofirst SDK for javascript provides a javascript API for Sainofirst communication services.",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -689,3 +689,3 @@ # Sainofirst SDK

|repeat | `Number` | Value must be a single digit number. On press of this number key, the call will be repeated.|
|callTransfer| `Dict` | Use to configure call transfer|
|callTransfer| `Object` | Use to configure call transfer|

@@ -692,0 +692,0 @@ `callTransfer` is used to do a call transfer on press of a key. It has two properties

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