Comparing version 2.2.1 to 2.2.2
@@ -11,3 +11,3 @@ var util = require('util'), | ||
endpoints: { | ||
createSession: '/hl/session/create' | ||
createSession: '/session/create' | ||
} | ||
@@ -14,0 +14,0 @@ }; |
{ | ||
"name": "opentok", | ||
"description": "OpenTok server-side SDK", | ||
"version": "2.2.1", | ||
"version": "2.2.2", | ||
"homepage": "http://opentok.github.io/opentok-node", | ||
@@ -6,0 +6,0 @@ "repository": { |
@@ -65,3 +65,3 @@ var expect = require('chai').expect, | ||
.matchHeader('user-agent', new RegExp("OpenTok-Node-SDK\/"+package.version)) | ||
.post('/hl/session/create', "p2p.preference=disabled") | ||
.post('/session/create', "p2p.preference=disabled") | ||
.reply(200, "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><sessions><Session><session_id>SESSIONID</session_id><partner_id>123456</partner_id><create_dt>Wed Mar 19 23:35:24 PDT 2014</create_dt></Session></sessions>", { server: 'nginx', | ||
@@ -90,3 +90,3 @@ date: 'Thu, 20 Mar 2014 06:35:24 GMT', | ||
var scope = nock('https://api.opentok.com:443') | ||
.post('/hl/session/create', "p2p.preference=disabled") | ||
.post('/session/create', "p2p.preference=disabled") | ||
.reply(403, "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><errorPayload><code>-1</code><message>Invalid partner credentials</message></errorPayload>", { server: 'nginx', | ||
@@ -116,3 +116,3 @@ date: 'Fri, 30 May 2014 19:37:12 GMT', | ||
.matchHeader('user-agent', new RegExp("OpenTok-Node-SDK\/"+package.version)) | ||
.post('/hl/session/create', "p2p.preference=disabled") | ||
.post('/session/create', "p2p.preference=disabled") | ||
.reply(200, "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><sessions><Session><session_id>SESSIONID</session_id><partner_id>123456</partner_id><create_dt>Wed Mar 19 23:35:24 PDT 2014</create_dt></Session></sessions>", { server: 'nginx', | ||
@@ -139,3 +139,3 @@ date: 'Thu, 20 Mar 2014 06:35:24 GMT', | ||
.matchHeader('user-agent', new RegExp("OpenTok-Node-SDK\/"+package.version)) | ||
.post('/hl/session/create', "p2p.preference=enabled") | ||
.post('/session/create', "p2p.preference=enabled") | ||
.reply(200, "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><sessions><Session><session_id>SESSIONID</session_id><partner_id>123456</partner_id><create_dt>Thu Mar 20 07:02:45 PDT 2014</create_dt></Session></sessions>", { server: 'nginx', | ||
@@ -161,3 +161,3 @@ date: 'Thu, 20 Mar 2014 14:02:45 GMT', | ||
.matchHeader('user-agent', new RegExp("OpenTok-Node-SDK\/"+package.version)) | ||
.post('/hl/session/create', "p2p.preference=disabled") | ||
.post('/session/create', "p2p.preference=disabled") | ||
.reply(200, "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><sessions><Session><session_id>SESSIONID</session_id><partner_id>123456</partner_id><create_dt>Thu Mar 20 07:02:45 PDT 2014</create_dt></Session></sessions>", { server: 'nginx', | ||
@@ -183,3 +183,3 @@ date: 'Thu, 20 Mar 2014 14:02:45 GMT', | ||
.matchHeader('user-agent', new RegExp("OpenTok-Node-SDK\/"+package.version)) | ||
.post('/hl/session/create', "location=12.34.56.78&p2p.preference=disabled") | ||
.post('/session/create', "location=12.34.56.78&p2p.preference=disabled") | ||
.reply(200, "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><sessions><Session><session_id>SESSIONID</session_id><partner_id>123456</partner_id><create_dt>Thu Mar 20 07:17:22 PDT 2014</create_dt></Session></sessions>", { server: 'nginx', | ||
@@ -220,3 +220,3 @@ date: 'Thu, 20 Mar 2014 14:17:22 GMT', | ||
.matchHeader('user-agent', new RegExp("OpenTok-Node-SDK\/"+package.version)) | ||
.post('/hl/session/create', "p2p.preference=disabled") | ||
.post('/session/create', "p2p.preference=disabled") | ||
.reply(500, "", { server: 'nginx', | ||
@@ -223,0 +223,0 @@ date: 'Thu, 20 Mar 2014 06:35:24 GMT', |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
296831
50
2390