Skip to content

Commit c2632f6

Browse files
authored
Merge pull request #26 from microsoftgraph/testing-legacy-node
Support Node 4 and 5
2 parents 7250ca2 + e628e6c commit c2632f6

File tree

6 files changed

+15
-7
lines changed

6 files changed

+15
-7
lines changed

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@ node_js:
44
- "6"
55
- "6.1"
66
- "6.9"
7-
- "7.2"
7+
- "7.2"
8+
- "5"
9+
- "4"

lib/graph-js-sdk-web.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ class GraphRequest {
5151
this.urlComponents.path = rawPath.substr(0, queryStrPos);
5252
let queryParams = rawPath.substring(queryStrPos + 1, rawPath.length).split("&");
5353
for (let queryParam of queryParams) {
54-
let [key, value] = queryParam.split("=");
54+
let queryParams = queryParam.split("=");
55+
let key = queryParams[0];
56+
let value = queryParams[1];
5557
if (common_1.oDataQueryNames.indexOf(key)) {
5658
this.urlComponents.oDataQueryParams[key] = value;
5759
}
@@ -2239,7 +2241,7 @@ exports.cleanHeader = function(header, shouldStripCookie){
22392241
module.exports={
22402242
"name": "msgraph-sdk-javascript",
22412243
"version": "0.3.0",
2242-
"description": "Microsoft Graph JavaScript SDK",
2244+
"description": "Microsoft Graph Client Library",
22432245
"main": "lib/src/index.js",
22442246
"typings": "lib/src/index",
22452247
"files": [

lib/src/GraphRequest.js

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/src/GraphRequest.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/GraphRequest.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ export class GraphRequest {
8080
let queryParams = rawPath.substring(queryStrPos + 1, rawPath.length).split("&");
8181
for (let queryParam of queryParams) {
8282
//queryParam: a=b
83-
let [key, value] = queryParam.split("=");
83+
let queryParams = queryParam.split("=");
84+
let key = queryParams[0];
85+
let value = queryParams[1];
8486

8587
if (oDataQueryNames.indexOf(key)) {
8688
this.urlComponents.oDataQueryParams[key] = value;

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@
1919
"./src/index.ts",
2020
"./test/*.ts"
2121
]
22-
}
22+
}

0 commit comments

Comments
 (0)