Skip to content
This repository has been archived by the owner on May 12, 2020. It is now read-only.

Commit

Permalink
Merge branch 'sdk-version'
Browse files Browse the repository at this point in the history
Merge in sdk version from package json
  • Loading branch information
avidas committed Jan 2, 2015
2 parents 8b18014 + 8806f36 commit be328f8
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 22 deletions.
2 changes: 1 addition & 1 deletion lib/configure.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* Copyright 2015 PayPal */
"use strict";

var sdkVersion = exports.sdkVersion = '1.2.2';
var sdkVersion = exports.sdkVersion = require('../package').version;
var userAgent = exports.userAgent = 'PayPalSDK/PayPal-node-SDK ' + sdkVersion + ' (node ' + process.version + '-' + process.arch + '-' + process.platform + ')';

var default_options = exports.default_options = {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"author": "PayPal <DL-PP-NODEJS-SDK@ebay.com> (https://developer.paypal.com/)",
"name": "paypal-rest-sdk",
"description": "SDK for PayPal REST APIs",
"version": "1.3.0",
"version": "1.3.1",
"homepage": "https://github.com/paypal/PayPal-node-SDK",
"keywords": [
"paypal",
Expand Down
4 changes: 4 additions & 0 deletions release_notes.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
PayPal Node SDK release notes
============================

v1.3.1
----
* Version read from package.json for User Agent

v1.3.0
----
* Payouts API support added
Expand Down
18 changes: 18 additions & 0 deletions test/basic.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
"use strict";

var chai = require('chai'),
expect = chai.expect,
should = chai.should();

var paypal = require('../');
require('./configure');

describe('Main module tests', function () {

var sdkConfig = require('../lib/configure');

it('check version appears in user agent', function (done) {
expect(sdkConfig.userAgent).to.contain(paypal.version);
done();
});
});
20 changes: 0 additions & 20 deletions test/utils.js

This file was deleted.

0 comments on commit be328f8

Please sign in to comment.