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

spryng

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spryng - npm Package Compare versions

Comparing version 0.1.0 to 1.0.0

dist/interfaces/balance.d.ts

7

dist/interfaces/api.d.ts

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

import { Balance } from "./balance";
import { Message, PartialMessage } from "./message";

@@ -21,2 +22,8 @@ import { CancelMessageParams, ListMessageFilters, RequestIncludes, ShowMessageParams } from "./parameters";

}
export interface GetBalanceSpec {
(): Balance | Promise<Balance>;
}
export interface BalanceApiSpec {
get: GetBalanceSpec;
}
export interface ListMessageResponse {

@@ -23,0 +30,0 @@ total: number;

2

dist/spryng.d.ts
import { SpryngRequest } from "./interfaces/http";
import { BalanceClient } from "./resources/balance-client";
import { MessageClient } from "./resources/message-client";

@@ -9,2 +10,3 @@ export declare class Spryng {

message: MessageClient;
balance: BalanceClient;
constructor(apiKey: string);

@@ -11,0 +13,0 @@ sendRequest(request: SpryngRequest): Promise<import("axios").AxiosResponse<any>>;

@@ -18,2 +18,3 @@ "use strict";

const qs_1 = require("qs");
const balance_client_1 = require("./resources/balance-client");
const message_client_1 = require("./resources/message-client");

@@ -25,2 +26,3 @@ const API_BASE_URL = 'https://rest.spryngsms.com/v1';

this.message = new message_client_1.MessageClient(this);
this.balance = new balance_client_1.BalanceClient(this);
this.baseURL = API_BASE_URL;

@@ -27,0 +29,0 @@ this.version = VERSION;

2

package.json
{
"name": "spryng",
"version": "0.1.0",
"version": "1.0.0",
"description": "NodeJS SDK for the Spryng SMS API",

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

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

import { Balance } from "./balance";
import { Message, PartialMessage } from "./message";

@@ -27,2 +28,10 @@ import { CancelMessageParams, ListMessageFilters, RequestIncludes, ShowMessageParams } from "./parameters";

export interface GetBalanceSpec {
(): Balance | Promise<Balance>
}
export interface BalanceApiSpec {
get: GetBalanceSpec
}
export interface ListMessageResponse {

@@ -29,0 +38,0 @@ total: number,

import axios, { AxiosInstance } from "axios"
import { stringify } from "qs"
import { SpryngRequest } from "./interfaces/http"
import { BalanceClient } from "./resources/balance-client"
import { MessageClient } from "./resources/message-client"

@@ -16,2 +17,3 @@

public message = new MessageClient(this)
public balance = new BalanceClient(this)

@@ -18,0 +20,0 @@ constructor(apiKey: string) {

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