You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

coolsms-rest-sdk

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coolsms-rest-sdk - npm Package Compare versions

Comparing version

to
1.0.2

.travis.yml

0

example.js

@@ -0,0 +0,0 @@ 'use strict';

module.exports = require('./lib/coolsms');

@@ -0,0 +0,0 @@ /*

@@ -0,0 +0,0 @@ /*!

@@ -0,0 +0,0 @@ /*!

@@ -0,0 +0,0 @@ /*!

@@ -0,0 +0,0 @@ /*!

@@ -0,0 +0,0 @@ /*!

@@ -0,0 +0,0 @@ /*!

10

package.json
{
"name": "coolsms-rest-sdk",
"description": "coolsms rest-sdk for node.js",
"version": "1.0.1",
"version": "1.0.2",
"author": {

@@ -19,3 +19,3 @@ "name": "Seungjae Lee",

"scripts": {
"test":"mocha test"
"test": "mocha test"
},

@@ -30,4 +30,4 @@ "repository": {

"dependencies": {
"lodash": "~2.4.1",
"request": "~2.36.0"
"lodash": "~4.13.1",
"request": "~2.72.0"
},

@@ -41,4 +41,4 @@ "main": "index",

"i": "^0.3.4",
"mocha": "^2.4.5"
"mocha": "^2.5.3"
}
}
coolsms-rest-sdk
=====
coolsms rest-sdk for node.js
[Documentation](http://www.coolsms.co.kr/REST_API)
[![Build Status](https://travis-ci.org/a0ly/coolsms-rest-sdk.svg?branch=master)](https://travis-ci.org/a0ly/coolsms-rest-sdk)
[![npm version](https://badge.fury.io/js/coolsms-rest-sdk.svg)](https://badge.fury.io/js/coolsms-rest-sdk)
[![Dependency Status](https://david-dm.org/a0ly/coolsms-rest-sdk.svg)](https://david-dm.org/a0ly/coolsms-rest-sdk)
## Installation

@@ -23,3 +27,3 @@ `npm install coolsms-rest-sdk`

to: '00000000000', // recipient
from: '11111111111', // sender
from: '11111111111', // sender
type: 'SMS', // SMS, LMS, MMS

@@ -26,0 +30,0 @@ text: 'your message',

var expected = require('chai').expect;
var expect = require('chai').expect;
var util = require('../lib/util');

@@ -9,6 +9,6 @@ var hasOwn = {}.hasOwnProperty;

it('should have api_key value properly', function() {
expected(authInfo).have.property('api_key').and.equal('1234');
expect(authInfo).have.property('api_key').and.equal('1234');
});
it('should have api_key, timestamp, salt, signature property', function() {
expected(authInfo).to.have.all.keys(['api_key','timestamp','salt','signature']);
expect(authInfo).to.have.all.keys(['api_key','timestamp','salt','signature']);
});

@@ -19,17 +19,32 @@ });

it('"abcd" return 4', function(){
expected(util.getTextLength('abcd')).to.be.equal(4);
expect(util.getTextLength('abcd')).to.be.equal(4);
});
it('"a" return 1', function(){
expected(util.getTextLength('a')).to.be.equal(1);
expect(util.getTextLength('a')).to.be.equal(1);
});
it('"12dgfde" return 7', function(){
expected(util.getTextLength('12dgfde')).to.be.equal(7);
expect(util.getTextLength('12dgfde')).to.be.equal(7);
});
it('"001" return 3', function(){
expected(util.getTextLength('001')).to.be.equal(3);
expect(util.getTextLength('001')).to.be.equal(3);
});
it('"abcdefghijklmn" return 14', function(){
expected(util.getTextLength('abcdefghijklmn')).to.be.equal(14);
expect(util.getTextLength('abcdefghijklmn')).to.be.equal(14);
});
});
describe('protoExtend', function() {
it('Provides an extension mechanism', function() {
function A() {}
A.extend = util.protoExtend;
var B = A.extend({
constructor: function() {
this.called = true;
},
});
expect(new B()).to.be.an.instanceof(A);
expect(new B()).to.be.an.instanceof(B);
expect(new B().called).to.equal(true);
expect(B.extend === util.protoExtend).to.equal(true);
});
});

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet